/* Services Section */
.services {
    padding: 2rem 0 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Services Page Styles */
.services-hero {
    background-image: url("../../public/images/HeroServicios.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.services-hero-background {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    min-height: 60vh;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
}

.services-hero-content {
    position: relative;
    z-index: 2;
}

.services-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services-hero-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}

.all-services {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.related-services .section-header h2 {
  @media (max-width: 768px) {
    font-size: 2rem;
  }
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.featured-card {
    border: 2px solid rgba(230, 0, 18, 0.1);
}

.featured-card:hover {
    border-color: rgba(230, 0, 18, 0.3);
}

.featured-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.service-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.services-cta {
    padding: 2rem 0 2rem 0;
    background: transparent;
    color: inherit;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: #f8f9fa;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 1.2em;
}

/* Service Detail Styles */
.service-detail-hero {
    background: url("../../public/images/HeroServicios.jpg");
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    color: white;
}

.service-detail-hero-background {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  min-height: 60vh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}

.service-detail-content {
  @media (max-width: 768px) {
    padding: 3rem 0;
  }
}

.service-category {
  position: relative;
}

.service-category h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--text-light);
  margin-bottom: 1rem;
}

.service-title-anchor {
  position: absolute;
  top: -5.5rem;
  left: 0;
}


.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}


.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.service-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.service-info p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.service-details {
    padding: 30px 0;
    background: white;
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-detail-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.8rem 2.5rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
}

.service-detail-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--primary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.details-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.details-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0px 0 15px 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 5px 0;
    display: flex;
    align-items: start;
    gap: 10px;
}

.benefits-list i {
    margin-top: 2px;
    color: #28a745;
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: #7e7e7e;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 5px 0;
    display: flex;
    align-items: start;
    gap: 10px;
}

.features-list i {
    margin-top: 2px;
    color: #ffb52b;
    font-size: 1.1rem;
}

.process-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.process-list li {
    counter-increment: step-counter;
    padding: 5px 0;
    position: relative;
    padding-left: 40px;
}

.process-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 5px;
    background: var(--primary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.related-services{
  padding: 2rem 0;
}

.service-grid {
    padding: 80px 0;
    background: #f8f9fa;
}

.all-services {
    padding: 3rem 0;
}

.services-grid.related {
    margin-top: 40px;
}

.service-card.related-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.service-related-header {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-related-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-related-footer {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: end;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e6e6e6" stroke-width="0.5" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
}

/* Duplicate removed - using main definition above */

.section-service-card {
  padding: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.section-service-card::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff4757);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.section-service-card:hover::before, .service-card:hover::before {
    transform: scaleX(1);
}

.section-service-card:hover, .service-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary-color);
}

.service-image {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.section-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.section-service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.section-service-card:hover .service-icon::after {
    opacity: 0.2;
}

.section-service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.section-service-icon i {
    font-size: 2.2rem;
    color: white;
    transition: transform 0.4s ease;
}

.section-service-card:hover .service-icon i {
    transform: scale(1.1);
}

.section-service-card h3, .service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #2c3e50;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-service-card:hover h3, .service-card:hover h3 {
    color: var(--primary-color);
}

.section-service-card p, .service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    flex-grow: 1;

    -webkit-line-clamp: 4;
    line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 92px;
}

.section-service-card .full-description {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
    -webkit-box-orient: unset;
    overflow: unset;
    max-height: unset;
}

.btn-service {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgb(228, 228, 228);
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-service:hover::before {
    left: 100%;
}

.btn-service:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(238, 229, 229);
    border: 2px solid var(--primary-color);
}

.btn-service-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgb(228, 228, 228);
    padding: 0.75rem 1.5rem;
    /* padding: 0.9rem 2rem; */
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: var(--text-light);
}

.btn-service-outline:hover {
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(238, 229, 229);
    border: 2px solid var(--text-light);
}


.services-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.services-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    border: none;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.services-cta .btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.services-cta .btn:hover::before {
    left: 100%;
}

.services-cta .btn:hover, .services-cta .btn:active {
    transform: translateY(-3px) scale(1.03);
    border: 1px solid rgba(230, 0, 19, 0.2);
    box-shadow: 0 7px 20px rgba(230, 0, 19, 0.2);
    background: white;
    color: var(--primary-color);
}

.services-cta .btn:hover::after {
    transform: translateX(3px);
}

/* Responsive Services */
@media (max-width: 768px) {
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .service-info h1 {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
}


.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-buttons .btn {
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
}


/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
}
