/* ============================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ============================================ */
:root {
    --primary-color: #E67817; /* Naranja del logo */
    --primary-dark: #C56610;
    --secondary-color: #1E2532; /* Azul oscuro del logo */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E8EAED;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400; /* Regular para textos normales */
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    font-weight: 400; /* Regular */
}

/* Textos más ligeros */
.hero-subtitle, .cta-subtitle, .footer-description, .footer-contact li, .footer-copyright {
    font-weight: 300;
}

strong, b {
    font-weight: 600;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header-main {
    background: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 2rem;
}

.logo {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.btn-contacto {
    background: var(--primary-color);
    color: var(--bg-white) !important;
    border-radius: 25px;
    padding: 0.6rem 1.8rem !important;
    margin-left: 1rem;
    transition: var(--transition);
}

.btn-contacto::after {
    display: none;
}

.btn-contacto:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* DROPDOWN MENU */

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 280px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 0;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item-with-submenu {
    position: relative;
}

.submenu-lateral {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--bg-white);
    min-width: 260px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}

.dropdown-item-with-submenu:hover .submenu-lateral {
    display: block;
}

.submenu-item {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.submenu-item:hover {
    background: var(--bg-light);
    color: #1fa084;
    padding-left: 1.5rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO SECTION (Portada)
   ============================================ */
.hero-section {
    position: relative;
    min-height: 75vh;
    background-image: linear-gradient(135deg, rgba(30,37,50,0.35) 0%, rgba(30,37,50,0.35) 100%), url('Img/fondotunel.png');
    background-size: 120%; /* Permite el efecto zoom */
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: background-size 0.8s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(228, 142, 13, 0.044) 35px,
            rgba(255, 255, 255, 0.03) 70px
        );
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(30, 37, 50, 0.6) 0%, rgba(30, 37, 50, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-title {
    color: var(--bg-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-hero {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 120, 23, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 120, 23, 0.4);
    color: var(--bg-white);
}

/* Animaciones para el hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones para los círculos en CTA */
@keyframes float-right {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
        opacity: 0.08;
    }
    66% {
        transform: translateY(20px) rotate(240deg);
        opacity: 0.12;
    }
}

@keyframes float-left {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(25px) rotate(-180deg);
        opacity: 0.08;
    }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 5rem 0;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-content p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.6rem;
    font-weight: 400;
    text-align: justify;
}

.section-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ============================================
   SECCIÓN QUIÉNES SOMOS
   ============================================ */
.section-quienes-somos {
    background: var(--bg-white);
    position: relative;
}

.section-quienes-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.image-placeholder {
    position: relative;
    width: 90%;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-left: auto;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image-placeholder img {
    width: 100%;
    height: 570px;
    min-height: 450px;
    max-height: 580px;
    object-fit: cover;
}

/* ============================================
   SECCIÓN METODOLOGÍA
   ============================================ */
.section-metodologia {
    background: var(--bg-light);
    position: relative;
}

.section-metodologia::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
}

.image-placeholder2 {
    position: relative;
    width: 90%;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.image-placeholder2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image-placeholder2 img {
    width: 100%;
    height: 400px;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
}

/* ============================================
   SECCIÓN POR QUÉ SIDEDRIFT
   ============================================ */
.section-porque-sidedrift {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.section-porque-sidedrift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-porque-sidedrift::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
}

.porque-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.porque-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.porque-content p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
    font-weight: 400;
}

.porque-content .lead {
    font-size: 1.15rem;
    font-weight: 500;
    border-bottom: 2px solid rgba(230, 120, 23, 0.2);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* ============================================
   SECCIÓN CTA (CALL TO ACTION)
   ============================================ */
.section-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2C3E50 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Círculo grande animado a la derecha */
.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
    animation: float-right 20s ease-in-out infinite;
}

/* Círculo mediano animado a la izquierda */
.section-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
    animation: float-left 18s ease-in-out infinite alternate;
}

.section-cta .container {
    position: relative;
    z-index: 2;
}

.cta-card {
    background: rgba(30, 37, 50, 0.8);
    border-radius: 15px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-decorative-top,
.cta-decorative-bottom {
    z-index: -1;
}

.cta-line-top {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

.cta-line-bottom {
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    margin: 0 auto;
}

.cta-title {
    color: var(--bg-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.btn-cta {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-overlay {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-cta:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 120, 23, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 1rem 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   DISEÑO RESPONSIVE
   ============================================ */

/* Tablets y pantallas medianas */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        
        font-size: 2.2rem;
    }
    
     .navbar {
        /* ✅ AGREGADO: Reducción de padding en navbar */
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 0 !important;
        margin: 0;
    }
    
       .navbar-nav .nav-link::after {
        display: none;
    }

    .btn-contacto {
        margin-left: 0;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        padding: 0.75rem 2.5rem !important;
        width: calc(100% - 1rem);
        text-align: center;
    }

     .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }
    
    /* ✅ AGREGADO: Imágenes al 100% en tablets */
    .image-placeholder,
    .image-placeholder2 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
        
    /* Ajustes para círculos en tablets */
     .section-cta::before {
        width: 500px;
        height: 500px;
        top: -40%;
        right: -15%;
    }
    
    .section-cta::after {
        width: 350px;
        height: 350px;
        left: -15%;
    }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .porque-content {
        padding: 1.5rem;
    }
    
    .image-placeholder {
        min-height: 300px;
        margin-left: 5%;
        width: 95%;
    }
    
    .cta-card {
        padding: 2rem !important;
    }
    
    /* Reducir velocidad de animación en móviles */
    .section-cta::before,
    .section-cta::after {
        animation-duration: 25s;
    }
    
    .section-cta::before {
        width: 400px;
        height: 400px;
        top: -30%;
        right: -20%;
    }
    
    .section-cta::after {
        width: 300px;
        height: 300px;
        left: -20%;
    }
}

/* Móviles muy pequeños */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-hero {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }
    
    .section-content p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .cta-card {
        padding: 1.5rem !important;
    }
    
    .btn-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* Ocultar círculos en móviles muy pequeños para mejor rendimiento */
    .section-cta::before,
    .section-cta::after {
        display: none;
    }
}

/* ============================================
   ANIMACIONES DE SCROLL (para futuras implementaciones)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ============================================
   ✅ OPTIMIZACIONES DE RENDIMIENTO - TODA ESTA SECCIÓN ES NUEVA
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

.image-placeholder img,
.image-placeholder2 img {
    will-change: transform;
}

/* ✅ AGREGADO: Respeto por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-size: cover !important;
    }
}

/* ============================================
   ✅ ESTILOS PARA PÁGINA SERVICIOS - TODO NUEVO
   ============================================ */

/* ✅ NUEVO: Hero específico para servicios */
.hero-servicios {
    min-height: 50vh;
    background-image: linear-gradient(135deg, rgba(30,37,50,0.45) 0%, rgba(30,37,50,0.45) 100%), url('Img/fondotunel.png');
}

/* ✅ NUEVO: Sección de contenido de servicios */
.servicios-content-section {
    padding: 4rem 0;
    background: var(--bg-light);
}



.servicios-nav li {
    margin-bottom: 0.5rem;
}

.servicios-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.servicios-nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.servicios-nav-link.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ✅ NUEVO: Área de servicio */
.servicio-area {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    scroll-margin-top: 100px;
}

.area-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.area-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
}

.area-intro {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.area-content {
    padding: 1rem 0;
}

/* ✅ NUEVO: Lista de servicios */
.servicios-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicios-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

.servicios-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ✅ NUEVO: Subáreas y submenú */
.subareas-menu {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid var(--primary-color);
}

.subareas-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.subareas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subareas-list li {
    margin-bottom: 0.8rem;
}

.subarea-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.subarea-link::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.subarea-link:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.subarea-link:hover::before {
    margin-right: 1rem;
}

/* ✅ NUEVO: Subárea individual */
.subarea {
    padding: 2.5rem 0;
    border-top: 2px solid var(--border-color);
    scroll-margin-top: 100px;
}

.subarea:first-of-type {
    border-top: none;
}

.subarea-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* ✅ NUEVO: Espacio para imágenes */
.servicio-imagen {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--bg-light);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-imagen:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ NUEVO: Responsive para servicios */
@media (max-width: 991px) {
    .servicios-menu {
        position: static;
        margin-bottom: 2rem;
    }
    
    .servicios-content-section {
        padding: 2rem 0;
    }
    
    .servicio-area {
        padding: 2rem 1.5rem;
    }
    
    .area-title {
        font-size: 1.7rem;
    }
    
    .subarea-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .servicios-menu {
        padding: 1.5rem 1rem;
    }
    
    .servicios-menu-title {
        font-size: 1.1rem;
    }
    
    .servicios-nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .servicio-area {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .area-title {
        font-size: 1.5rem;
    }
    
    .subarea-title {
        font-size: 1.2rem;
    }
    
    .area-intro {
        font-size: 1rem;
    }
    
    .servicios-list li {
        font-size: 0.95rem;
    }
    
    .subareas-menu {
        padding: 1.5rem 1rem;
    }
    
    .servicio-imagen {
        min-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .subarea {
        padding: 2rem 0;
        min-height: 85vh;
        padding: 4rem 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-servicios {
        min-height: 40vh;
    }
    
    .servicios-content-section {
        padding: 1.5rem 0;
    }
    
    .servicio-area {
        padding: 1.5rem 0.8rem;
    }
    
    .area-title {
        font-size: 1.3rem;
    }
    
    .subarea-title {
        font-size: 1.1rem;
    }
    
    .servicios-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
    
    .servicio-imagen {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-servicios .hero-subtitle:last-of-type {
        display: none;
    }
}












