/* ========================================
   Variables y Reset
   ======================================== */
:root {
    /* Colores basados en el logo de Alvas Consultores */
    --color-primary: #1e3a52; /* Azul oscuro del fondo */
    --color-secondary: #2d4f6a; /* Azul oscuro más claro */
    --color-accent-orange: #ff6b35; /* Naranja principal */
    --color-accent-red: #f44336; /* Rojo anaranjado */
    --color-accent-yellow: #f4b942; /* Amarillo dorado */
    --color-blue-light: #4a9eff; /* Azul claro del logo */
    --color-blue-medium: #2563eb; /* Azul medio */
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #9ca3af;
    --color-gray-dark: #4b5563;
    --color-text: #1f2937;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Tipografía */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Header y Navegación
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-image {
    height: 75px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.logo-icon {
    width: 50px;
    height: 50px;
    position: relative;
    flex-shrink: 0;
}

.logo-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-medium) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
}

.logo-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--color-white);
    clip-path: polygon(30% 0%, 70% 0%, 50% 100%);
}

.logo-text h1 {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text h1 span {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Navegación */
.nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-yellow);
    transition: width var(--transition-normal);
}

.nav a:hover {
    color: var(--color-blue-light);
}

.nav a:hover::after {
    width: 100%;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: var(--transition-normal);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 107px;
    padding: var(--spacing-md) 0;
}

/* ========================================
   Hero Carousel — Premium Redesign
   ======================================== */
.hero-carousel-wrapper {
    padding: 0;
    display: block;
    margin-top: 107px; /* header: 75px logo + 2×1rem padding ≈ 107px */
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 107px);
}

/* ── Slide Container ── */
.hero-slide {
    display: none;
    min-height: calc(100vh - 107px);
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-slide.hero-slide-active {
    display: flex;
    animation: heroSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.hero-slide-exit {
    animation: heroSlideOut 0.6s ease forwards;
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes heroSlideOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Background Layer ── */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    background-color: var(--overlay-a, #0c2442);
    background-image: linear-gradient(135deg, var(--overlay-a, rgba(12,36,66,0.88)) 0%, var(--overlay-b, rgba(0,80,180,0.75)) 100%), var(--slide-bg, none);
    animation: heroBgZoom 12s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroBgZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* ── Decorative Elements ── */
.hero-slide-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hsd-circle {
    position: absolute;
    border-radius: 50%;
    animation: hsdFloat 8s ease-in-out infinite;
    will-change: transform;
}

.hsd-c1 {
    width: 600px;
    height: 600px;
    top: -180px;
    right: -140px;
    background: radial-gradient(circle, rgba(255,107,53,0.28) 0%, transparent 70%);
}

.hsd-c2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(244,185,66,0.22) 0%, transparent 70%);
    animation-delay: -3s;
}

.hsd-line {
    position: absolute;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 40%, rgba(255,255,255,0.12) 60%, transparent 100%);
    transform: rotate(-12deg);
    animation-delay: -5s;
}

.hsd-l1 {
    top: 38%;
    left: -10%;
}

.hsd-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes hsdFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-25px) rotate(3deg); }
}

/* ── Inner Layout ── */
.hero-slide-inner {
    position: relative;
    z-index: 2;
    padding: 100px 0 140px;
    width: 100%;
}

.hero-slide-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Text Block ── */
.hero-slide-text {
    max-width: 700px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    animation: heroTextUp 0.7s 0.1s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-title {
    color: var(--color-blue-light);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.15;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    animation: heroTextUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-title em {
    font-style: normal;
    color: #fff;
    opacity: 0.95;
}

.hero-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.75;
    margin-bottom: 38px;
    max-width: 580px;
    animation: heroTextUp 0.7s 0.32s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes heroTextUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA Buttons ── */
.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
    animation: heroTextUp 0.7s 0.45s cubic-bezier(0.16,1,0.3,1) both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-blue-light);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.btn-arrow {
    font-size: 1.1em;
    transition: transform 0.25s;
}

.btn-hero-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-size: 0.97rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.35);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    white-space: nowrap;
}

.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* ── Badges ── */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: heroTextUp 0.7s 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-badge {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 100px;
    padding: 6px 14px;
    backdrop-filter: blur(8px);
}

/* ── Product chips (CONTPAQi slide) ── */
.hero-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
    animation: heroTextUp 0.7s 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-chip {
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 7px 16px;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.hero-chip:hover {
    background: rgba(255,255,255,0.24);
    transform: translateY(-2px);
}

/* ── CONTPAQi logo container ── */
.hero-contpaqi-logo {
    margin-bottom: 22px;
    animation: heroTextUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Nav Buttons ── */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    color: white;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hero-carousel-btn svg {
    width: 22px;
    height: 22px;
}

.hero-carousel-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hero-prev { left: 28px; }
.hero-next { right: 28px; }

/* ── Bottom bar: counter + dots + progress ── */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    padding: 0 60px 36px;
    gap: 24px;
}

.hero-slide-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-width: 48px;
}

#heroCurrentNum {
    color: #fff;
    font-size: 1.05rem;
}

.hero-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}

.hero-dot::after {
    content: attr(data-label);
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}

.hero-dot:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hero-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}

.hero-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255,255,255,0.6), #fff);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.hero-progress-fill.running {
    transition: width 5s linear;
    width: 100%;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
    position: absolute;
    right: 36px;
    bottom: 90px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.45; transform: scaleY(1); }
    50%       { opacity: 0.9; transform: scaleY(1.15); }
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, rgba(244, 67, 54, 0.1) 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, rgba(244, 67, 54, 0.2) 70%);
    opacity: 1;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: -2s;
    background: radial-gradient(circle, rgba(244, 185, 66, 0.3) 0%, rgba(244, 185, 66, 0.1) 70%);
    opacity: 1;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 30%;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.3) 0%, rgba(37, 99, 235, 0.1) 70%);
    opacity: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: left;
}

.hero-title {
    color: var(--color-blue-light);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-medium) 100%);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Secciones Comunes
   ======================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-dark);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Servicios
   ======================================== */
.servicios {
    background: var(--color-gray-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (min-width: 1200px) {
    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.servicio-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-top: 4px solid var(--color-blue-light);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-medium) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.servicio-icon svg {
    width: 35px;
    height: 35px;
}

.servicio-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.servicio-card > p {
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.servicio-card ul {
    list-style: none;
    color: var(--color-gray-dark);
}

.servicio-card ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.servicio-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-blue-light);
    font-weight: bold;
}

/* ========================================
   Coaching - Carrusel
   ======================================== */
.coaching {
    background: var(--color-white);
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: var(--shadow-xl);
}

.carousel-slide {
    display: none;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 350px;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
    animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-content {
    text-align: center;
    color: var(--color-white);
}

.slide-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-blue-light);
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--color-white);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn.prev {
    left: var(--spacing-sm);
}

.carousel-btn.next {
    right: var(--spacing-sm);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active {
    background: var(--color-blue-light);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   Hero Carousel — Slide-specific overrides
   ======================================== */

/* Slide 1 */
.hero-slide-1 {
    --slide-bg: url('../ASSETS/IMAGES/Principal.png');
    --overlay-a: rgba(12,36,66,0.88);
    --overlay-b: rgba(0,80,180,0.75);
}

/* Slide 2 — Desarrollo Humano */
.hero-slide-2 {
    --slide-bg: url('../ASSETS/IMAGES/logo Desarrollo Humano.jpg');
    --overlay-a: rgba(8,55,30,0.90);
    --overlay-b: rgba(10,110,55,0.80);
}
.hero-slide-2 .hsd-c1 {
    background: radial-gradient(circle, rgba(52,211,153,0.35) 0%, transparent 70%);
}
.hero-slide-2 .hsd-c2 {
    background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
}
.hero-slide-2 .hero-eyebrow {
    background: rgba(52,211,153,0.25);
    border-color: rgba(52,211,153,0.5);
}
.hero-slide-2 .btn-hero-primary {
    background: #10b981;
}

/* Slide 3 — CONTPAQi */
.hero-slide-3 .hero-slide-bg {
    background: linear-gradient(135deg, #002b6b 0%, #0055c8 60%, #0099ff 100%);
}
.hero-slide-3 .hsd-c1 {
    background: radial-gradient(circle, rgba(99,179,255,0.3) 0%, transparent 70%);
}
.hero-slide-3 .hsd-c2 {
    width: 500px;
    height: 500px;
    top: auto;
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(0,180,255,0.2) 0%, transparent 70%);
}
.hero-slide-3 .hero-slide-text {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}
.hero-slide-3 .hero-eyebrow {
    background: rgba(99,179,255,0.2);
    border-color: rgba(99,179,255,0.5);
}
.hero-slide-3 .hero-cta-row {
    justify-content: center;
}
.hero-slide-3 .btn-hero-primary {
    background: #fff;
    color: #0055c8;
    font-weight: 700;
}
.hero-contpaqi-logo img {
    max-width: 400px;
    width: 85%;
    filter: brightness(0) invert(1);
}

/* Slide 4 — Coaching */
.hero-slide-4 {
    --slide-bg: url('../ASSETS/IMAGES/ALVAS CIRCULO AZUL.png');
    --overlay-a: rgba(25,12,60,0.92);
    --overlay-b: rgba(80,30,140,0.82);
}
.hero-slide-4 .hsd-c1 {
    background: radial-gradient(circle, rgba(168,85,247,0.35) 0%, transparent 70%);
}
.hero-slide-4 .hsd-c2 {
    background: radial-gradient(circle, rgba(244,185,66,0.25) 0%, transparent 70%);
}
.hero-slide-4 .hero-eyebrow {
    background: rgba(168,85,247,0.25);
    border-color: rgba(168,85,247,0.5);
}
.hero-slide-4 .btn-hero-primary {
    background: #a855f7;
}

/* ========================================
   Servicios — card button
   ======================================== */
.servicio-card .btn-primary {
    margin-top: 15px;
    display: inline-block;
}

/* ========================================
   Coaching Preview Grid
   ======================================== */
.coaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coaching-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.coaching-item-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.coaching-item h3 {
    color: #1e3a52;
    margin-bottom: 10px;
}

.coaching-item p {
    color: #666;
}

.coaching-cta {
    text-align: center;
    margin-top: 40px;
}

.coaching-cta p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* ========================================
   Banner CONTPAQi (index)
   ======================================== */
.contpaqi-banner {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.contpaqi-banner-inner {
    max-width: 900px;
    margin: 0 auto;
}

.contpaqi-banner-logo {
    max-width: 600px;
    width: 100%;
    margin-bottom: 30px;
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.contpaqi-banner-desc {
    font-size: 1.3em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contpaqi-banner-sub {
    font-size: 1.1em;
    margin-bottom: 35px;
    opacity: 0.95;
}

.contpaqi-products-box {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.contpaqi-products-box p {
    font-size: 1.1em;
    margin-bottom: 0;
}

.contpaqi-banner-btn {
    font-size: 1.2em;
    padding: 15px 40px;
    background: white;
    color: #0066cc;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contpaqi-banner-contact {
    margin-top: 25px;
    font-size: 0.95em;
    opacity: 0.9;
}

/* ========================================
   Equipo cards — cursor & inner btn
   ======================================== */
.equipo-card {
    cursor: pointer;
}

.equipo-contacto .btn-primary {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.85em;
    padding: 8px 18px;
}

/* ========================================
   Footer certification image
   ======================================== */
.footer-certificacion img {
    max-width: 160px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* ========================================
   Programas
   ======================================== */
.programas {
    background: var(--color-gray-light);
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.programa-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.programa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue-light) 0%, var(--color-blue-medium) 100%);
}

.programa-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.programa-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-blue-light);
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
}

.programa-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.programa-card p {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* ========================================
   Software CONTPAQi
   ======================================== */
.software-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-xl) 0;
}

.software-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    line-height: 1.8;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.software-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.software-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-blue-medium);
}

.software-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.software-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.software-card p {
    color: var(--color-gray-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.software-services {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-lg);
}

.software-services h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    padding: var(--spacing-md);
    background: var(--color-gray-light);
    border-radius: 10px;
    transition: transform var(--transition-normal);
}

.service-item:hover {
    transform: translateX(5px);
}

.service-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.service-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.service-item p {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-software {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ========================================
   Nosotros
   ======================================== */
.nosotros {
    background: var(--color-white);
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.equipo-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.equipo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.equipo-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #000000;
    box-shadow: var(--shadow-md);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}

.equipo-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.cargo {
    color: var(--color-blue-light);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.descripcion {
    color: var(--color-gray-dark);
    line-height: 1.6;
    font-size: 0.85rem;
}

.equipo-contacto {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.equipo-contacto p {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.equipo-card.expanded .equipo-contacto {
    display: block;
}

.equipo-card::after {
    content: '▼ Ver contacto';
    display: block;
    margin-top: 12px;
    color: var(--color-blue-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.equipo-card.expanded::after {
    content: '▲ Ocultar';
}

/* ========================================
   Contacto
   ======================================== */
.contacto {
    background: var(--color-gray-light);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--spacing-sm);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.info-content p {
    color: var(--color-gray-dark);
    margin-bottom: 0.25rem;
}

.info-content small {
    color: var(--color-gray-medium);
    font-style: italic;
    display: block;
    margin-top: var(--spacing-xs);
}

.contacto-form {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue-light);
}

.form-group textarea {
    resize: vertical;
}

.contacto-form .btn-primary {
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo p {
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

.footer-links h4,
.footer-contacto h4 {
    color: var(--color-blue-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--color-blue-light);
}

.footer-contacto p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-certificacion {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-certificacion img {
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.footer-certificacion img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(244, 185, 66, 0.3));
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .programas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.75rem;
        --spacing-sm: 1.25rem;
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --font-size-base: 15px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navegación móvil */
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-primary);
        padding: var(--spacing-md);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding-top: var(--spacing-md);
    }
    
    .nav a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Header */
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text h1 span {
        font-size: 0.8rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-image {
        height: 55px;
        max-width: 220px;
    }
    
    /* Hero Carousel — Mobile */
    .hero-carousel-wrapper {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .hero-slide {
        min-height: calc(100vh - 70px);
    }    .hero-slide-inner {
        padding: 60px 0 120px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-carousel-btn {
        width: 44px;
        height: 44px;
    }

    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }

    .hero-bottom-bar {
        padding: 0 16px 24px;
        gap: 12px;
    }

    .hero-scroll-hint {
        display: none;
    }

    .hero-product-chips {
        justify-content: center;
        gap: 8px;
    }

    .hero-chip { font-size: 0.75rem; padding: 5px 12px; }
    .hero-badge { font-size: 0.75rem; padding: 5px 11px; }
    .hsd-c1 { width: 300px; height: 300px; }
    .hsd-c2 { width: 200px; height: 200px; }
    
    /* Círculos más discretos en móviles */
    .circle-1 {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -100px;
        opacity: 0.7;
    }
    
    .circle-2 {
        width: 180px;
        height: 180px;
        top: 40%;
        right: -50px;
        opacity: 0.6;
    }
    
    .circle-3 {
        width: 120px;
        height: 120px;
        bottom: 15%;
        left: -30px;
        opacity: 0.5;
    }
    
    /* Secciones */
    section {
        padding: 3.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    /* Servicios */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .servicio-card {
        min-height: auto;
    }
    
    .servicio-card {
        padding: 1.75rem 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .servicio-card h3 {
        margin-bottom: 1rem;
    }
    
    .servicio-card > p {
        margin-bottom: 1.25rem;
    }
    
    .servicio-card ul li {
        padding: 0.625rem 0;
    }
    
    /* Carrusel */
    .carousel {
        padding: 1rem 0.5rem;
        margin: 0 auto;
    }
    
    .carousel-container {
        margin: 0 0.5rem;
    }
    
    .carousel-slide {
        padding: 2.5rem 1.5rem;
        min-height: 320px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .slide-icon {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .slide-content p {
        font-size: 1.05rem;
        padding: 0 1rem;
        line-height: 1.7;
    }
    
    /* Programas */
    .programas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .programa-card {
        padding: 2rem 1.75rem;
    }
    
    .programa-card h3 {
        margin-bottom: 1rem;
    }
    
    .programa-card p {
        line-height: 1.8;
    }
    
    /* Equipo */
    .equipo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .equipo-card {
        padding: 2rem 1.5rem;
    }
    
    .equipo-photo {
        margin-bottom: 1.5rem;
    }
    
    .equipo-card h3 {
        margin-bottom: 0.75rem;
    }
    
    .cargo {
        margin-bottom: 1rem;
    }
    
    .descripcion {
        line-height: 1.75;
    }
    
    /* Contacto */
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .contacto-info {
        gap: 1.5rem;
    }
    
    .info-item {
        padding: 1.5rem;
    }
    
    .info-content h3 {
        margin-bottom: 0.75rem;
    }
    
    .info-content p {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    .contacto-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem 0;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contacto {
        padding: 0 1rem;
    }
    
    .footer-links ul,
    .footer-contacto {
        text-align: center;
    }
}

/* Móviles medianos */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.625rem;
        --spacing-sm: 1rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
        --font-size-base: 14px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Logo más pequeño */
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text h1 span {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    /* Hero mejorado para móviles pequeños */
    .hero {
        padding: var(--spacing-lg) 0;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 var(--spacing-xs);
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 160px);
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.35;
        margin-bottom: var(--spacing-md);
        letter-spacing: -0.3px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-md);
        max-width: 100%;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: fit-content;
        display: inline-block;
        margin-top: var(--spacing-xs);
    }
    
    /* Decoraciones más pequeñas y discretas */
    .circle-1 {
        width: 220px;
        height: 220px;
        top: -60px;
        right: -70px;
        opacity: 0.5;
    }
    
    .circle-2 {
        width: 130px;
        height: 130px;
        top: 35%;
        right: -40px;
        opacity: 0.4;
    }
    
    .circle-3 {
        width: 90px;
        height: 90px;
        bottom: 20%;
        left: -20px;
        opacity: 0.4;
    }
    
    /* Secciones */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Servicios */
    .servicios-grid {
        gap: 1.25rem;
        padding: 0 0.25rem;
    }
    
    .servicio-card {
        padding: 1.5rem 1.25rem;
    }
    
    .servicio-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.875rem;
    }
    
    .servicio-card > p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.65;
    }
    
    .servicio-icon {
        width: 60px;
        height: 60px;
    }
    
    .servicio-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .servicio-card h3 {
        font-size: 1.25rem;
    }
    
    /* Carrusel */
    .carousel-slide {
        padding: 2rem 1.25rem;
        min-height: 300px;
    }
    
    .slide-icon {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .slide-content h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 0.5rem;
    }
    
    .carousel-indicators {
        gap: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 25px;
    }
    
    /* Programas */
    .programa-number {
        font-size: 2.5rem;
    }
    
    .programa-card h3 {
        font-size: 1.25rem;
    }
    
    /* Equipo */
    .equipo-card {
        padding: 1.75rem 1.25rem;
    }
    
    .equipo-photo {
        width: 130px;
        height: 130px;
        margin-bottom: 1.25rem;
    }
    
    .photo-placeholder {
        font-size: 2.75rem;
    }
    
    .equipo-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }
    
    .cargo {
        font-size: 1.05rem;
        margin-bottom: 0.875rem;
    }
    
    .descripcion {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Contacto */
    .info-item {
        padding: 1.25rem;
    }
    
    .info-icon {
        font-size: 2.25rem;
    }
    
    .info-content h3 {
        font-size: 1.15rem;
        margin-bottom: 0.625rem;
    }
    
    .info-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contacto-form {
        padding: 1.75rem 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 360px) {
    :root {
        --font-size-base: 13px;
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.65rem;
    }
    
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero-content {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 1.625rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .carousel-slide {
        min-height: 250px;
    }
    
    .slide-icon {
        font-size: 2.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.1rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
}

/* Landscape móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }
    
    .hero-content {
        min-height: auto;
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.5;
    }
    
    .btn-primary {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* Ocultar o reducir círculos en landscape */
    .circle {
        opacity: 0.3;
        animation: none;
    }
    
    .carousel-slide {
        min-height: 250px;
        padding: var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Áreas de toque más grandes para móviles */
    .nav a {
        padding: 1rem 0;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        min-height: 48px;
    }
    
    .carousel-btn {
        width: 48px;
        height: 48px;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
    }
    
    .indicator.active {
        width: 32px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Previene zoom en iOS */
    }
}

/* ========================================
   Animaciones y Efectos Adicionales
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: slideInUp 0.6s ease-out;
}

/* Smooth scroll padding */
section {
    scroll-margin-top: 80px;
}

/* Efecto de hover en imágenes */
img {
    transition: transform var(--transition-normal);
}

img:hover {
    transform: scale(1.05);
}

/* Selección de texto personalizada */
::selection {
    background: var(--color-blue-light);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-blue-light);
    color: var(--color-white);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-blue-light) 0%, var(--color-blue-medium) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-blue-medium) 0%, var(--color-blue-light) 100%);
}

/* Prevenir selección de elementos UI en móviles */
.carousel-btn,
.menu-toggle,
.btn-primary,
button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Optimización de fuentes en móviles */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Mejoras de accesibilidad táctil */
.touch-device a,
.touch-device button,
.touch-device .carousel-btn,
.touch-device .indicator {
    min-width: 44px;
    min-height: 44px;
}

/* Animación optimizada para móviles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro del sistema (bonus) */
@media (prefers-color-scheme: dark) {
    /* Mantener colores del diseño original */
}