/* ============================================
   ÍCONOS EN LISTAS DE BENEFICIOS DE SERVICIOS
   ============================================ */
.servicio-beneficios li {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.5em;
}
.servicio-beneficios li svg {
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    stroke: var(--color-primary);
    stroke-width: 2.2;
    margin-right: 0.5em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
/* ============================================
   DRONEAGRO - STYLES.CSS PREMIUM
   Diseño moderno con efectos visuales avanzados
   ============================================ */

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    line-height: 1.7;
    color: var(--color-texto);
    overflow-x: hidden;
    background: var(--color-white);
    -webkit-tap-highlight-color: transparent;
}

body.loading {
    overflow: hidden;
}

/* ============================================
   VARIABLES CSS - NUEVA PALETA DE COLORES
   ============================================ */
:root {
    /* Paleta de colores principal */
    --color-primary: #1E5F9E;      /* Azul Principal (60%) */
    --color-cta: #D96B2A;          /* Naranja CTA (20%) */
    --color-tech: #2A9E6B;         /* Verde Tecnológico (10%) */
    --color-dark: #0F3A5C;         /* Azul Oscuro */
    --color-gray: #6B7280;         /* Gris Medio */
    --color-light: #F5F7FA;        /* Gris Claro */
    --color-white: #FFFFFF;        /* Blanco */
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    --gradient-tech: linear-gradient(135deg, var(--color-tech) 0%, #228B5A 100%);
    --gradient-cta: linear-gradient(135deg, var(--color-cta) 0%, #C75A1F 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 58, 92, 0.95) 0%, rgba(30, 95, 158, 0.85) 100%);
    
    /* Sombras mejoradas */
    --shadow-sm: 0 2px 8px rgba(15, 58, 92, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 58, 92, 0.12);
    --shadow-lg: 0 10px 40px rgba(15, 58, 92, 0.15);
    --shadow-xl: 0 20px 60px rgba(15, 58, 92, 0.2);
    --shadow-glow: 0 0 30px rgba(30, 95, 158, 0.3);
    
    /* Transiciones */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografía */
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.8rem;
    --line-height-title: 1.2;
    --letter-spacing-title: -0.02em;
    
    /* Backwards compatibility */
    --color-primario: var(--color-primary);
    --color-secundario: var(--color-cta);
    --color-oscuro: var(--color-dark);
    --color-texto: var(--color-dark);
    --color-fondo: var(--color-light);
    --color-blanco: var(--color-white);
    --sombra-suave: var(--shadow-md);
    --sombra-fuerte: var(--shadow-lg);
    --transicion: var(--transition-base);
}

/* ============================================
   LOADING ANIMATION INICIAL
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PROGRESS BAR AL SCROLL
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-cta);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--color-cta);
}

/* ============================================
   HEADER GLASSMORPHISM - Navegación sticky premium
   ============================================ */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(15, 58, 92, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
    height: 130px;
    overflow: visible; /* permitir que el menú desplegable se muestre fuera del header */
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 40px rgba(15, 58, 92, 0.15);
}

header.hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;   /* control horizontal del espacio (gutter) */
    width: 100%;
    max-width: 1200px; /* limitar ancho y centrar contenido dentro del header */
    margin: 0 auto;    /* centra el nav dentro del header para evitar elementos en los extremos */
    position: relative;
    height: 100%;      /* que el nav ocupe toda la altura del header */
    gap: 1rem;         /* espacio entre logo y menú */
}

/* Logo con efecto */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0;
    letter-spacing: -0.5px;
    transition: var(--transition-base);
    position: relative;
    max-width: 60%; /* evitar que el logo ocupe todo el espacio en móvil */
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: var(--transition-base);
}

.logo:hover::before {
    opacity: 1;
}

.logo img {
    max-height: 120px; /* restaurado: tamaño anterior más grande */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(30, 95, 158, 0.2));
    transition: var(--transition-base);
    margin-top: 0; /* asegurarse que no sobresalga */
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(30, 95, 158, 0.3));
}

.logo-img {
    max-height: 120px;
    width: auto;
}

@media (max-width: 900px) {
    header { height: 110px; }
    nav { padding: 0.6rem 1.2rem; max-width: 1000px; }
    .logo img, .logo-img { max-height: 96px; }
}

@media (max-width: 600px) {
    header { height: 100px; }
    nav { padding: 0.5rem 0.5rem; }
    .logo img,
    .logo-img {
        max-height: 85px; /* tamaño más grande para mejor visibilidad */
        margin-top: 0;
    }
}

/* Navegación con efectos premium */
.nav_links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
}

.nav_links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-base);
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
}

/* Efecto underline animado */
.nav_links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-cta);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav_links a:hover,
.nav_links a.active {
    color: var(--color-cta);
}

.nav_links a:hover::after,
.nav_links a.active::after {
    width: 100%;
}

/* Efecto hover glow sutil */
.nav_links a:hover {
    text-shadow: 0 0 8px rgba(217, 107, 42, 0.3);
}

/* Menú hamburguesa premium */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(30, 95, 158, 0.05);
    transition: var(--transition-base);
    position: absolute;   
    right: 1.5rem;        
    top: 50%;             
    transform: translateY(-50%);
}

.menu-toggle:hover {
    background: none;
    transform: translateY(-50%) scale(1.05);
}

.menu-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
    border-radius: 3px;
}

.menu-toggle.active {
    background: rgba(217, 107, 42, 0.1);
}

.menu-toggle.active span {
    background: var(--color-cta);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO SECTION PREMIUM con Parallax y Efectos
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* viewport dinámico: descuenta la barra del navegador en móvil */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 2rem;
    padding-top: 80px;
    overflow: hidden;
    /* Optimización para scroll suave */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Patrón geométrico de fondo */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgb(255, 255, 255,0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px);
    z-index: 1;
    pointer-events: none;
    /* Optimización */
    will-change: auto;
}

/* Hexágonos flotantes decorativos */
#hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50 1 95 25 95 75 50 99 5 75 5 25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    top: 10%;
    right: 5%;
    opacity: 0.3;
    animation: floatHexagon 20s ease-in-out infinite;
    z-index: 1;
    /* Optimización para animación suave */
    will-change: transform;
    transform: translateZ(0);
}

@keyframes floatHexagon {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(30px, -30px, 0) rotate(120deg); }
    66% { transform: translate3d(-20px, 40px, 0) rotate(240deg); }
}

/* Carrusel de imágenes del hero */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mejorar calidad visual de la imagen */
    object-fit: cover;
    object-position: center center;
    /* Optimización crítica para scroll suave */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Suavizar la imagen cuando se escala */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Transición suave entre imágenes */
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05) translateZ(0);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Efectos adicionales de transición */
.hero-slide.fade-out {
    opacity: 0;
    transform: scale(0.95) translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(13, 110, 253, 0.75) 0%,
        rgba(25, 135, 255, 0.7) 50%,
        rgba(13, 110, 253, 0.75) 100%);
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Patrón de rayitas mejorado sobre el overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.05) 20px,
            rgba(255, 255, 255, 0.05) 22px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.05) 20px,
            rgba(255, 255, 255, 0.05) 22px
        );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

#hero h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 95, 158, 0.3);
    line-height: var(--line-height-title);
    letter-spacing: var(--letter-spacing-title);
    font-weight: 800;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 95, 158, 0.3); }
    to { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 50px rgba(217, 107, 42, 0.4); }
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    line-height: 1.6;
}

/* Texto rotativo premium - Controlado por JavaScript */
.rotating-text-container {
    display: inline-block;
    position: relative;
    height: 2.5em;
    min-width: 220px;
    overflow: visible;
    vertical-align: middle;
    margin-left: 10px;
}

.rotating-text {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rotating-text span {
    display: inline-block;
    height: auto;
    padding: 8px 20px;
    background: linear-gradient(135deg, 
        rgba(217, 107, 42, 0.95) 0%, 
        rgba(255, 140, 60, 0.95) 100%);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(217, 107, 42, 0.4), 
                0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.2);
    will-change: transform, opacity;
}

/* ============================================
   BOTONES CTA PREMIUM
   ============================================ */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Efecto ripple al hacer hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

/* Efecto brillante que se mueve */
.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cta-button:hover::after {
    left: 200%;
}

.cta-button.primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: 0 8px 25px rgba(217, 107, 42, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(217, 107, 42, 0.5), 0 0 30px rgba(217, 107, 42, 0.3);
}

.cta-button.primary:active {
    transform: translateY(-2px) scale(1);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background: white;
    color: var(--color-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.cta-button.large {
    padding: 1.4rem 3.5rem;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
}

/* Flecha de scroll mejorada */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 2.5rem;
    animation: bounceGlow 2s infinite;
    cursor: pointer;
    z-index: 2;
    color: var(--color-white);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    transition: var(--transition-base);
}

.scroll-indicator:hover {
    transform: scale(1.2);
    color: var(--color-cta);
    filter: drop-shadow(0 0 20px rgba(217, 107, 42, 0.8));
}

@keyframes bounceGlow {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    40% { 
        transform: translateY(-20px); 
        filter: drop-shadow(0 0 20px rgba(217, 107, 42, 0.8));
    }
    60% { 
        transform: translateY(-10px); 
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

/* ============================================
   BOTÓN VOLVER ARRIBA (Back to Top)
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-cta);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(217, 107, 42, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* ============================================
   ANIMACIONES FADE IN UP PREMIUM
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ANIMACIONES AL SCROLL CON INTERSECTION OBSERVER
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.from-left {
    transform: translateX(-40px);
}

.animate-on-scroll.from-right {
    transform: translateX(40px);
}

.animate-on-scroll.from-bottom {
    transform: translateY(40px);
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
}

.animate-on-scroll.bounce-effect {
    transform: translateY(40px) scale(0.95);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.animate-on-scroll.slow {
    transition-duration: 1.2s;
}

.animate-on-scroll.fast {
    transition-duration: 0.5s;
}

/* ============================================
   ESTADÍSTICAS CON CÍRCULOS ANIMADOS Y GRADIENTES
   ============================================ */
#stats {
    background: var(--gradient-primary);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Patrón de líneas diagonales */
#stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.03) 35px,
        rgba(255, 255, 255, 0.03) 70px
    );
    pointer-events: none;
}

/* Círculos decorativos flotantes */
#stats::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
    min-width: 200px;
}

/* Círculo de progreso detrás del número */
.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: rotateCircle 3s linear infinite;
    z-index: -1;
}

@keyframes rotateCircle {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hexágono decorativo */
.stat-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50 1 95 25 95 75 50 99 5 75 5 25" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: contain;
    z-index: -1;
    animation: floatStat 4s ease-in-out infinite;
}

@keyframes floatStat {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -55%) rotate(180deg); }
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number::after {
    content: '%';
    color: var(--color-white);
    -webkit-text-fill-color: white;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 0.8rem;
    display: block;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ============================================
   SECCIONES GENERALES CON TÍTULOS MEJORADOS
   ============================================ */
section {
    padding: 6rem 2rem;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: var(--font-size-h2);
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    position: relative;
    font-weight: 800;
    letter-spacing: var(--letter-spacing-title);
    line-height: var(--line-height-title);
}

/* Línea decorativa bajo los títulos */
section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--gradient-cta);
    margin: 1.5rem auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(217, 107, 42, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 400;
}

/* ============================================
   TARJETAS DE SERVICIOS CON HEXAGONOS Y EFECTOS PREMIUM
   ============================================ */
#servicios-home {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-white);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.servicio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    border: 1px solid rgba(30, 95, 158, 0.1);
    cursor: pointer;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.servicio-card:hover::before {
    opacity: 0.05;
}

.servicio-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

/* icono hexagonal */
.servicio-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition-base);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-card:hover .servicio-icon {
    transform: rotate(360deg) scale(1.1);
    background: var(--gradient-cta);
    box-shadow: var(--shadow-glow);
}

.servicio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
    position: relative;
    z-index: 1;
}

.servicio-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.servicio-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.servicio-content h3 {
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    transition: var(--transition-base);
}

.servicio-card:hover .servicio-content h3 {
    color: var(--color-primary);
}

.servicio-content p {
    color: var(--color-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-link::after {
    content: '';
    transition: var(--transition-base);
}

.btn-link:hover {
    color: var(--color-cta);
    gap: 12px;
}

.btn-link:hover::after {
    transform: translateX(5px);
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   POR QUÉ ELEGIRNOS CON EFECTOS PREMIUM
   ============================================ */
#porque {
    background: var(--color-light);
    position: relative;
    overflow: hidden;
}

#porque::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 95, 158, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    left: -250px;
}

.porque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.porque-item {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.porque-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.porque-item:hover::before {
    left: 0;
    opacity: 0.05;
}

.porque-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.porque-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-base);
    filter: drop-shadow(0 4px 10px rgba(30, 95, 158, 0.2));
    position: relative;
    z-index: 1;
}

.porque-item:hover .porque-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(217, 107, 42, 0.4));
}

.porque-item h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.porque-item:hover h3 {
    color: var(--color-cta);
}

.porque-item p {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   TESTIMONIOS CON GLASSMORPHISM
   ============================================ */
#testimonios-home {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos */
#testimonios-home::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: pulse 6s ease-in-out infinite;
}

#testimonios-home h2 {
    color: white;
}

#testimonios-home h2::after {
    background: var(--gradient-cta);
}

.testimonios-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.testimonio-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.testimonio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.testimonio-card:hover::before {
    opacity: 1;
    transform: translate(25%, 25%);
}

.testimonio-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.testimonio-stars {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stars {
    color: #FFD700;
    letter-spacing: 3px;
}

.testimonio-text {
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.testimonio-text::before {
    content: '“';
    position: absolute;
    left: -15px;
    top: -20px;
    font-size: 4rem;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.testimonio-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.testimonio-card:hover .testimonio-author img {
    border-color: var(--color-cta);
    transform: scale(1.1);
}

.testimonio-author strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonio-author span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   PREGUNTAS FRECUENTES (FAQs) PREMIUM
   ============================================ */
#faqs {
    background: var(--color-light);
}

.faqs-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.faq-item.active {
    background: linear-gradient(to bottom, white, rgba(30, 95, 158, 0.02));
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.8rem 2.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    transition: var(--transition-base);
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-cta);
    opacity: 0;
    transition: var(--transition-base);
}

.faq-item.active .faq-question::before,
.faq-question:hover::before {
    opacity: 1;
}

.faq-question:hover {
    color: var(--color-primary);
    padding-left: 2.8rem;
}

.faq-item.active .faq-question {
    color: var(--color-primary);
    padding-left: 2.8rem;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1.5rem;
}

.faq-icon {
    color: var(--color-primary);
    font-weight: 300;
    transition: transform 0.2s ease-out,
                background 0.2s ease,
                color 0.2s ease,
                box-shadow 0.2s ease;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    /* Contenedor de posicionamiento para centrar el + */
    position: relative;
    font-size: 0; /* ocultar el + del DOM como texto */
    overflow: hidden;
}

/* Dibujamos el + con pseudo-elemento para centrado pixel-perfect */
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: inherit;
}

/* Línea horizontal del + */
.faq-icon::before {
    width: 18px;
    height: 2.5px;
    transform: translate(-50%, -50%);
}

/* Línea vertical del + */
.faq-icon::after {
    width: 2.5px;
    height: 18px;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--gradient-cta);
    box-shadow: var(--shadow-glow);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2.5rem;
    background: transparent;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 2.5rem 2rem 2.5rem;
}

.faq-answer p {
    color: var(--color-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
    animation: fadeInText 0.6s ease forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CONTACTO
   ============================================ */
#contacto {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-oscuro) 0%, #1a2332 100%);
    text-align: center;
}

#contacto h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-claro);
}

.cta-center {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--color-primario);
    color: white;
}

.cta-button.primary:hover {
    background: #5a8eff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--color-primario);
    border: 2px solid var(--color-primario);
}

.cta-button.secondary:hover {
    background: var(--color-primario);
    color: white;
    transform: translateY(-2px);
}

.social-links-contacto a svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.social-links-contacto a:hover {
    background: var(--color-primario);
    transform: scale(1.1);
    border-color: var(--color-primario);
}

/* Eliminar estilos viejos del formulario */
.contacto-container,
.contacto-info,
.contacto-form,
.info-item,
.info-icon,
.social-links,
.social-link,
.form-row,
.form-message {
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border:  1px solid #c3e6cb;
}

.form-message.error {
    display:  block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER PREMIUM CON GRADIENTES
   ============================================ */
footer {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo de fondo */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 70px);
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-col:first-child h4 {
    font-size: 1.5rem;
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
    display: inline-block;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-cta);
    transition: var(--transition-base);
}

.footer-col a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.footer-col a:hover::after {
    width: 100%;
}

/* Redes sociales premium */
.footer-social {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-cta);
    transition: var(--transition-slow);
}

.footer-social a:hover::before {
    width: 100%;
    height: 100%;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(217, 107, 42, 0.4);
    border-color: var(--color-cta);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    color: white;
    position: relative;
    z-index: 1;
}

/* Información adicional */
.footer-info {
    margin-top: 1.5rem;
}

.footer-info p:first-child {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Contactos en footer */
.footer-contacto {
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-base);
}

.footer-contacto:hover {
    padding-left: 10px;
    border-bottom-color: var(--color-cta);
}

.footer-contacto:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contacto-titulo {
    color: var(--color-cta);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contacto-nombre {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contacto-telefono {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.contacto-telefono a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.contacto-telefono a:hover {
    color: var(--color-cta);
    text-decoration: underline;
}

/* Barra inferior con efecto */
.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-cta);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .hero-slide {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 2rem 1rem;
    }
    
    .footer-col {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-col h4 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .footer-col:first-child h4 {
        font-size: 1.3rem;
    }
    
    .footer-col p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-col ul li {
        margin-bottom: 0.6rem;
    }
    
    .footer-col a {
        font-size: 0.9rem;
        transform: none;
    }
    
    .footer-col a:hover {
        transform: none;
    }
    
    .footer-social {
        justify-content: center;
        gap: 0.8rem;
        margin: 1rem auto;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .footer-social svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-info {
        margin-top: 1rem;
    }
    
    .footer-contacto p {
        margin-bottom: 0.4rem;
    }
    
    .footer-bottom {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   PAGE HERO PREMIUM - Para páginas internas
   ============================================ */
.page-hero {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 9rem 2rem 5rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

/* Patrón hexágonos de fondo */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50 1 95 25 95 75 50 99 5 75 5 25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 120px 120px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    from { background-position: 0 0; }
    to { background-position: 120px 120px; }
}

/* Círculos decorativos */
.page-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 107, 42, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: pulse 4s ease-in-out infinite;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: var(--letter-spacing-title);
}

.page-hero p {
    opacity: 0.95;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SERVICIOS DETALLADOS (servicios.html)
   ============================================ */
#servicios-detalle {
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
}

.servicio-detalle.reverse {
    direction: rtl;
}

.servicio-detalle.reverse > * {
    direction: ltr;
}

.servicio-detalle-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.servicio-detalle-img img {
    width:  100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-detalle:hover .servicio-detalle-img img {
    transform:  scale(1.05);
}

.servicio-badge {
    position:  absolute;
    top: 15px;
    left: 15px;
    background: var(--color-secundario);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.servicio-badge.nuevo {
    background:  #2196F3;
}

.servicio-header {
    display:  flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.servicio-icon-large {
    font-size: 2.5rem;
    background: transparent;
    padding: 15px;
    border-radius: 15px;
}

.servicio-detalle-content h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 0;
}

.servicio-detalle-content h2::after {
    display: none;
}

.servicio-descripcion {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.servicio-beneficios {
    list-style: none;
    margin-bottom: 1.5rem;
}

.servicio-beneficios li {
    padding:  0.5rem 0;
    color: #555;
    font-size: 1rem;
}

.servicio-precio {
    background: transparent;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.precio-desde {
    font-size: 0.9rem;
    color: #666;
}

.precio-valor {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primario);
    margin:  0 5px;
}

.precio-unidad {
    font-size: 0.9rem;
    color: #666;
}

/* Tabla comparativa */
#comparativa {
    background: var(--color-fondo);
}

.tabla-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.tabla-comparativa {
    width: 100%;
    border-collapse:  collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.tabla-comparativa th,
.tabla-comparativa td {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tabla-comparativa th {
    background: var(--color-primario);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.tabla-comparativa th:first-child {
    text-align: left;
}

.tabla-comparativa td:first-child {
    text-align: left;
    font-weight: 500;
}

.tabla-comparativa .ventaja {
    color: var(--color-primario);
    font-weight: 600;
}

.tabla-comparativa tr:hover {
    background:  #f9f9f9;
}

/* CTA Servicios */
#cta-servicios {
    background:  linear-gradient(135deg, var(--color-primario) 0%, #1B5E20 100%);
    text-align: center;
    color: white;
}

.cta-servicios-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-servicios-content h2::after {
    background: white;
}

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

/* ============================================
   NOSOTROS (nosotros.html)
   ============================================ */
#historia {
    max-width: 1200px;
    margin: 0 auto;
}

.historia-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.historia-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.historia-content h2::after {
    margin: 1rem 0 0;
}

.historia-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.historia-img img {
    width:  100%;
    height: 400px;
    object-fit: contain;
    border-radius:  20px;
    box-shadow: var(--sombra-fuerte);
}

/* Misión, Visión, Valores */
#mision-vision {
    background: var(--color-fondo);
}

.mvv-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mvv-card {
    background:  white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

.mvv-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mvv-card h3 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mvv-card p {
    color: #666;
    line-height: 1.7;
}

.mvv-card ul {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.mvv-card ul li {
    padding: 0.5rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mvv-card ul li svg {
    width: 20px;
    height: 20px;
    color: var(--color-primario);
    flex-shrink: 0;
}

/* Equipo */
#equipo {
    max-width: 1200px;
    margin: 0 auto;
}

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

.miembro-card {
    background: white;
    border-radius:  20px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    text-align: center;
    transition: var(--transicion);
}

.miembro-card:hover {
    transform:  translateY(-10px);
    box-shadow: var(--sombra-fuerte);
}

.miembro-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 45%;
}

.miembro-card h4 {
    margin:  1.5rem 0 0.25rem;
    color: var(--color-texto);
    font-size: 1.2rem;
}

.miembro-card .cargo {
    color:  var(--color-primario);
    font-weight: 600;
    font-size: 0.9rem;
}

.miembro-card p {
    padding: 1rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.miembro-social {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.miembro-social a {
    font-size: 1.2rem;
    text-decoration: none;
    background: var(--color-fondo);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.miembro-social a svg {
    width: 20px;
    height: 20px;
    color: var(--color-texto);
    transition: var(--transicion);
}

.miembro-social a:hover {
    background:  var(--color-primario);
    transform: scale(1.1);
}

.miembro-social a:hover svg {
    color: white;
}

/* Timeline */
#timeline {
    background: var(--color-fondo);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height:  100%;
    background: var(--color-primario);
    border-radius: 2px;
}

.timeline-item {
    display:  flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-primario);
    border-radius:  50%;
    border:  4px solid white;
    box-shadow: 0 0 0 4px var(--color-primario);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius:  15px;
    margin-right: 2rem;
    box-shadow: var(--sombra-suave);
    max-width: 300px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 2rem;
}

.timeline-year {
    background: var(--color-primario);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--color-texto);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    font-size:  0.95rem;
}

/* Tecnología */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width:  1000px;
    margin: 0 auto;
}

.tech-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow:  var(--sombra-fuerte);
}

.tech-card img {
    width: 100%;
    height:  200px;
    object-fit:  cover;
    object-position: center;
}

.tech-content {
    padding:  1.5rem;
    text-align: center;
}

.tech-content h4 {
    color: var(--color-texto);
    margin-bottom: 0.5rem;
}

.tech-content p {
    color: #666;
    font-size:  0.95rem;
}

/* CTA Nosotros */
#cta-nosotros {
    background: linear-gradient(135deg, var(--color-oscuro) 0%, #16213e 100%);
    text-align: center;
    color: white;
}

.cta-nosotros-content h2 {
    color: white;
}

.cta-nosotros-content h2::after {
    background: var(--color-secundario);
}

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

.cta-buttons {
    display:  flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   TESTIMONIOS (testimonios.html)
   ============================================ */
#satisfaccion {
    background: var(--color-primario);
    padding: 4rem 2rem;
    margin-top: 0;
}

.satisfaccion-grid {
    display: flex;
    justify-content: center;
    gap:  4rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.satisfaccion-item {
    text-align: center;
    color: white;
}

.satisfaccion-numero {
    font-size: 3.5rem;
    font-weight: bold;
    display: block;
}

.satisfaccion-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonios destacados */
#testimonios-destacados {
    max-width: 1200px;
    margin: 0 auto;
}

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

.testimonio-destacado {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    border-left: 5px solid var(--color-primario);
}

.testimonio-destacado-header {
    display:  flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonio-destacado-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit:  cover;
    border: 3px solid var(--color-primario);
}

.testimonio-destacado-header h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.testimonio-destacado-header span {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonio-destacado-header .stars {
    font-size: 1rem;
}

.testimonio-destacado blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.testimonio-destacado blockquote::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 4rem;
    color:  var(--color-primario);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonio-servicio {
    background: var(--color-fondo);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.testimonio-servicio span {
    color:  #666;
}

/* Todos los testimonios */
#todos-testimonios {
    background: var(--color-fondo);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio-simple {
    background:  white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

.testimonio-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

.testimonio-simple .stars {
    margin-bottom: 1rem;
}

.testimonio-simple p {
    color:  #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonio-simple .autor {
    display: flex;
    align-items: center;
    gap:  1rem;
}

.testimonio-simple .autor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit:  cover;
}

.testimonio-simple .autor strong {
    display: block;
    color: var(--color-texto);
}

.testimonio-simple .autor span {
    color:  #888;
    font-size: 0.9rem;
}

/* Video testimonial */
#video-testimonial {
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--color-oscuro) 0%, #16213e 100%);
    border-radius: 20px;
    padding: 5rem 2rem;
    color: white;
    cursor: pointer;
    transition: var(--transicion);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--color-primario);
    border-radius: 50%;
    display:  flex;
    align-items: center;
    justify-content: center;
    margin:  0 auto 1.5rem;
    font-size: 2rem;
    transition: var(--transicion);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(46, 125, 50, 0.5);
}

.video-placeholder p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.video-placeholder span {
    opacity: 0.7;
}

/* Casos de éxito */
#casos-exito {
    background:  var(--color-fondo);
}

.casos-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width:  1200px;
    margin: 0 auto;
}

.caso-card {
    background:  white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

.caso-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-fuerte);
}

.caso-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.caso-content {
    padding:  1.5rem;
}

.caso-content h4 {
    color: var(--color-texto);
    margin-bottom: 0.25rem;
}

.caso-tipo {
    color:  #888;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.caso-resultados {
    display: flex;
    gap: 1.5rem;
}

.resultado {
    text-align: center;
}

.resultado strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-primario);
}

.resultado span {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:  992px) {
    .servicio-detalle,
    .servicio-detalle.reverse {
        grid-template-columns:  1fr;
        direction: ltr;
    }

    .historia-container {
        grid-template-columns:  1fr;
        gap: 2rem;
    }

    .historia-img img {
        height: 300px;
    }

    .contacto-container {
        grid-template-columns: 1fr;
    }

    .testimonios-destacados-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header */
    header { overflow: visible; height: 95px; }
    
    nav {
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
    }
    
    .logo {
        max-width: 70%;
    }
    
    .logo img,
    .logo-img {
        max-height: 80px;
    }
    
    .menu-toggle {
        display: flex;
        padding: 8px;
        gap: 6px;
        flex-shrink: 0;
        margin-right: 0.3rem;
    }
    
    .menu-toggle span {
        width: 28px;
        height: 3px;
    }
    
    .nav_links {
        /* mantener layout flex pero oculto mediante max-height para animar */
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 1500;
        max-height: 0; /* colapsado */
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.24s ease;
        pointer-events: none;
    }

    .nav_links.active {
        max-height: 480px; /* suficiente para mostrar los items */
        opacity: 1;
        padding: 1rem;
        pointer-events: auto;
    }

    .nav_links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
        transform: translateY(-8px);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    /* Cuando el menú está activo, animar cada ítem con pequeño retraso */
    .nav_links.active li {
        transform: translateY(0);
        opacity: 1;
    }

    .nav_links.active li:nth-child(1) { transition-delay: 0.04s; }
    .nav_links.active li:nth-child(2) { transition-delay: 0.08s; }
    .nav_links.active li:nth-child(3) { transition-delay: 0.12s; }
    .nav_links.active li:nth-child(4) { transition-delay: 0.16s; }
    .nav_links.active li:nth-child(5) { transition-delay: 0.20s; }

    .nav_links li:last-child { border-bottom: none; }

    .menu-toggle {
        display: flex;
        z-index: 1600; /* asegurar que el botón esté por encima */
        transition: transform 0.28s ease;
    }

    /* Animación extra para las barras del toggle cuando se activa */
    .menu-toggle span {
        transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s;
    }
    .menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* Hero */
    #hero {
        padding: 0 1rem;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    #hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    #hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-slide {
        object-position: center 40%;
        object-fit: cover;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .cta-button {
        width:  100%;
        max-width: 300px;
        text-align: center;
    }

    /* Estadísticas */
    .stat-number {
        font-size: 2.5rem;
    }

    /* Secciones */
    section h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 1rem;
    }

    /* Page Hero */
    .page-hero {
        padding: 8rem 1rem 3rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    /* Formulario */
    .form-row {
        grid-template-columns:  1fr;
    }

    /* Timeline */
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right:  0;
        max-width: 100%;
    }

    /* Satisfacción */
    .satisfaccion-grid {
        gap: 2rem;
    }

    .satisfaccion-numero {
        font-size: 2.5rem;
    }

    /* Equipo */
    .equipo-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .miembro-card img {
        height: 350px;
    }

    /* Tech cards */
    .tech-grid {
        grid-template-columns: 1fr;
    }

    /* MVV Cards */
    .mvv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo img,
    .logo-img {
        max-height: 70px; /* tamaño proporcional para móviles pequeños */
        width: auto;
        margin-top: 0;
        height: auto;
        display: block;
    }

    #hero h1 {
        font-size: 1.6rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    .rotating-text-container {
        min-width: 160px;
        height: 2.2em;
        margin-left: 5px;
        overflow: visible;
    }

    .rotating-text span {
        font-size: 0.95rem;
        padding: 6px 12px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .hero-slide {
        object-position: center 45%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .servicio-precio {
        text-align: center;
    }

    .precio-valor {
        display: block;
        margin:  0.5rem 0;
    }
}

/* ============================================
   EMPRESA INTRO - Página de Contacto
   ============================================ */
#empresa-intro {
    padding: 6rem 2rem;
    background: white;
}

.empresa-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.empresa-intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.empresa-descripcion {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.empresa-valores {
    display: grid;
    gap: 1.5rem;
}

.valor-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.valor-item p {
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

.empresa-intro-imagen {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.empresa-intro-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   RESPONSIVE PARA EMPRESA INTRO
   ============================================ */
@media (max-width: 900px) {
    .empresa-intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .empresa-intro-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    #empresa-intro {
        padding: 4rem 1rem;
    }

    .empresa-intro-content h2 {
        font-size: 1.8rem;
    }

    .empresa-descripcion {
        font-size: 1rem;
    }
}
#contacto-info {
    padding: 6rem 2rem;
    background: var(--color-light);
}

.contacto-info-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.contacto-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid rgba(30, 95, 158, 0.1);
}

.contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contacto-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contacto-icon svg {
    width: 28px;
    height: 28px;
}

.contacto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.contacto-card p {
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contacto-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.contacto-link:hover {
    color: var(--color-cta);
}

.contacto-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.contacto-social a {
    width: 40px;
    height: 40px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: 1px solid rgba(30, 95, 158, 0.1);
}

.contacto-social a:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.contacto-social a svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.contacto-social a:hover svg {
    fill: white;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
#contacto-formulario {
    padding: 6rem 2rem;
    background: white;
}

#contacto-formulario h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.formulario-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.formulario-imagen {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.formulario-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.formulario-contacto {
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(30, 95, 158, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   MAPA DE UBICACIÓN
   ============================================ */
#contacto-mapa {
    padding: 6rem 2rem;
    background: var(--color-light);
}

#contacto-mapa h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.mapa-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mapa-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mapa-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.mapa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 58, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mapa-info {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.mapa-info h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mapa-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ============================================
   HORARIOS DE ATENCIÓN
   ============================================ */
#horarios {
    padding: 6rem 2rem;
    background: white;
}

.horarios-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.horarios-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.horario-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.horario-icon svg {
    width: 24px;
    height: 24px;
}

.horario-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.horario-info p {
    color: var(--color-gray);
    font-weight: 600;
}

.horarios-nota {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-cta);
}

.horarios-nota p {
    margin: 0;
    color: var(--color-dark);
    font-weight: 500;
}

.horarios-imagen {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.horarios-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   RESPONSIVE PARA CONTACTO
   ============================================ */
@media (max-width: 900px) {
    .formulario-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .horarios-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .horarios-grid {
        justify-items: center;
    }

    .horario-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    #contacto-info,
    #contacto-formulario,
    #contacto-mapa,
    #horarios {
        padding: 4rem 1rem;
    }

    .contacto-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .formulario-contacto {
        padding: 2rem;
    }

    .horarios-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AJUSTES PARA CONTACTANOS.HTML
   ============================================ */
#empresa-intro {
    margin-bottom: 0;
}

#contacto-info {
    margin-bottom: 0;
}

.servicio-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.porque-icon svg {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 0;
        overflow: hidden;
    }
    .hero-carousel {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        overflow: hidden;
    }
    .hero-slide {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
        background: none;
        box-shadow: none;
        border-radius: 0;
        position: absolute;
        top: 0;
        left: 0;
    }
    .hero-overlay {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    .hero-content {
        position: relative;
        z-index: 2;
        padding: 1.5rem 1rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        background: none;
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        justify-content: center;
    }
    #hero h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    #hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.9rem;
        width: 100%;
        max-width: 320px;
        margin: 0.5rem auto 0 auto;
    }
    .cta-button {
        width: 100%;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        box-sizing: border-box;
    }
    .scroll-indicator {
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
    }
}

/* ============================================
   OPTIMIZACIÓN EXTRA PARA MÓVILES PEQUEÑOS
   ============================================ */
@media (max-width: 480px) {
    header {
        height: 95px;
    }
    
    nav {
        padding: 0.4rem 0.3rem;
        gap: 0.4rem;
    }
    
    .logo {
        max-width: 68%;
    }
    
    .logo img,
    .logo-img {
        max-height: 78px;
    }
    
    .menu-toggle {
        padding: 6px;
        gap: 5px;
        margin-right: 0.2rem;
    }
    
    .menu-toggle span {
        width: 26px;
        height: 2.5px;
    }
}