/* Service Pages Styles */
.service-hero {
    height: 100vh;
    background-image: url('../principal.jpg');
    background-size: cover;
    background-position: center;
    background-attachment:fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px; /* Account for fixed header */
}

.service-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.6));
}


.service-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.service-details {
    padding: 6rem 0;
    background-color: var(--white);
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.service-info h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.service-info > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--gray-600);
}

.service-features {
    display: grid;
    gap: 2rem;
}

.feature-item {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

.service-image img {
    
    height:auto;    
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image2 img {
    
    max-width: 100%; /*  Asegura que la imagen no exceda el ancho del contenedor */
    height: auto;  
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.service-benefits {
    padding: 6rem 0;
    background-color: var(--gray-100);
}

.service-benefits h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

.service-cta {
    padding: 6rem 0;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation brand link */
.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-brand a:hover {
    color: inherit;
}

/* Active dropdown link */
.dropdown-content a.active {
    background-color: var(--secondary-blue);
    color: var(--white);
}

/* Service Pages Responsive Design */
@media (max-width: 1024px) {
    .service-hero {
        padding-top: 120px; /* Increased padding for tablet header */
    }
   
}

@media (max-width: 768px) {
/*@media (max-width: 768px) {*/    
    .service-hero {
        height: 100vh;
        background-attachment: scroll;
        padding-top: 140px; /* Increased padding for mobile header */
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-info h2 {
        font-size: 2rem;
    }
    
    .service-details,
    .service-benefits,
    .service-cta {
        padding: 4rem 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /*.service-hero {
        height: 40vh;
        padding-top: 160px; /* Extra padding for smaller mobile screens */
    /*}
    */
    .service-title {
        font-size: 1.8rem;
    }
    
    .service-subtitle {
        font-size: 0.9rem;
    }
    
    .service-details,
    .service-benefits,
    .service-cta {
        padding: 3rem 0;
    }
    
    .feature-item,
    .benefit-item {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}
