/* ============================================
   VARIABLES CSS CON NUEVA PALETA DE COLORES
   ============================================ */
:root {
    /* Colores principales de la paleta */
    --primary: #272F40;        /* Azul marino oscuro */
    --primary-dark: #1a1f2e;   /* Versión más oscura del primary */
    --secondary: #80B4BF;      /* Azul claro/turquesa */
    --accent: #F2BC1B;         /* Amarillo dorado */
    --accent-orange: #F2A71B;  /* Naranja dorado */
    --accent-red: #BF1717;     /* Rojo */
    
    /* Colores de soporte */
    --dark: #272F40;
    --dark-light: #3a4458;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --error: #BF1717;
    --warning: #F2BC1B;
    
    /* Efectos y sombras */
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(39, 47, 64, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(39, 47, 64, 0.15);
    
    /* Gradientes con nueva paleta */
    --gradient-primary: linear-gradient(135deg, #272F40, #80B4BF);
    --gradient-secondary: linear-gradient(135deg, #F2BC1B, #F2A71B);
    --gradient-accent: linear-gradient(135deg, #80B4BF, #F2BC1B);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw; /* Prevenir overflow */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw; /* Asegurar ancho completo */
    max-width: 100vw; /* Prevenir overflow */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   HEADER MEJORADO
   ============================================ */
.header {
    background: var(--primary);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    z-index: 1001;
}

.logo-icon img {
    height: 40px;
    width: auto;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--light);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
}

.nav-menu li a:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--accent);
    color: var(--dark) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(242, 188, 27, 0.3);
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--accent-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(242, 188, 27, 0.4) !important;
}

/* ============================================
   ESTILOS ADICIONALES PARA MENÚ CHECKBOX
   ============================================ */
.btn.menu-btn {
    display: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
}

.btn.close-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

input[type="checkbox"]#menu-btn,
input[type="checkbox"]#close-btn {
    display: none;
}

/* Asegurar que el menú normal sea visible en desktop */
@media (min-width: 701px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        max-width: none !important;
        top: auto !important;
        left: auto !important;
        background: transparent !important;
        padding: 0 !important;
        line-height: normal !important;
        overflow: visible !important;
        box-shadow: none !important;
        transition: none !important;
    }
    
    .nav-menu::before {
        display: none !important;
    }
}

/* ============================================
   MENÚ MÓVIL MEJORADO
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

/* ============================================
   HERO SECTION CON NUEVA PALETA
   ============================================ */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light) 0%, #f0f4f8 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/landing/assets/img/ini/bg-hr.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(39, 47, 64, 0.2);
}

.hero-badge i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-fill-color: transparent; */
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 2rem;
}

.urgency-section {
    margin-bottom: 2rem;
}



.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.hero-image {
    position: relative;
}

.heritage-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(39, 47, 64, 0.2);
}

.heritage-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.heritage-image:hover {
    transform: scale(1.05);
}

.heritage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(39, 47, 64, 0.9), transparent);
    color: var(--light);
}

.heritage-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.heritage-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.heritage-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.heritage-thumbnail {
    width: calc(33.333% - 0.667rem);
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(39, 47, 64, 0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.heritage-thumbnail:hover {
    transform: translateY(-5px);
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(39, 47, 64, 0.25);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    max-width: 100%; /* Prevenir overflow */
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.code-window {
    background: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    min-width: 400px;
    max-width: 100%; /* Prevenir overflow en móviles */
}

.code-header {
    background: var(--dark-light);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent); }
.dot.green { background: var(--secondary); }

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-line {
    color: #e2e8f0;
}

.code-keyword { color: var(--accent); }
.code-variable { color: var(--secondary); }
.code-function { color: var(--accent-orange); }
.code-method { color: #34d399; }

/* ============================================
   BOTONES MEJORADOS CON NUEVA PALETA
   ============================================ */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(242, 188, 27, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 188, 27, 0.5);
}

.btn-secondary {
    background: #3b82f6;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 30px rgba(16, 185, 129, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* ============================================
   CARDS MEJORADAS
   ============================================ */
.enhanced-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--light);
    overflow: hidden;
}

.enhanced-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   DETALLES DEL CURSO
   ============================================ */
.course-details {
    background: var(--light);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.detail-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.detail-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   INSTRUCTOR
   ============================================ */
.instructor {
    background: var(--light);
}

.instructor-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    align-items: center;
}

@media (max-width: 992px) {
    .instructor-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .instructor-image {
        display: flex;
        justify-content: center;
    }
    
    .instructor-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .instructor-card {
        padding: 1.5rem;
    }
    
    .avatar {
        width: 200px;
        height: 200px;
    }
    
    .instructor-info h3 {
        font-size: 1.5rem;
    }
    
    .instructor-stats span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.25rem;
    }
}

.instructor-image {
    display: flex;
    justify-content: center;
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(39, 47, 64, 0.3);
}

.instructor-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.instructor-title {
    font-size: 1.125rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.instructor-bio {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.instructor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.instructor-stats span {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--secondary);
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials {
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-enhanced {
    border-left: 4px solid var(--accent);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--primary);
    font-weight: 700;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content > p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Fix adicional para cta-final en pantallas muy pequeñas */
@media (max-width: 480px) {
    .cta-final {
        padding: 3rem 0.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content > p {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .cta-content .btn-large {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .cta-note {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* ============================================
   FORMULARIO DE INSCRIPCIÓN
   ============================================ */
.form-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray);
}

/* Estilos para el formulario por pasos */
.form-progress {
    height: 8px;
    background-color: rgba(128, 180, 191, 0.2);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background-color: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.form-step {
    animation: fadeIn 0.5s ease;
}

.step-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev, .btn-next, .btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev {
    background-color: var(--light);
    color: var(--dark);
}

.btn-next {
    background-color: var(--secondary);
    color: var(--dark);
    margin-left: auto;
}

.btn-submit {
    background-color: var(--accent);
    color: var(--dark);
    margin-left: auto;
}

.btn-prev:hover, .btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 188, 27, 0.3);
}

.enhanced-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enhanced-input {
    position: relative;
}

.enhanced-input input,
.enhanced-input select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.enhanced-input input:focus,
.enhanced-input select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(128, 180, 191, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--gray);
    pointer-events: none;
}

.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 2px rgba(191, 23, 23, 0.2) !important;
}

.form-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.mensaje {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
}

.mensaje.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid var(--success);
}

.mensaje.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid var(--accent-red);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TEMARIO
   ============================================ */
.temario-section {
    padding: 5rem 2rem;
    background: var(--light);
    min-height: 80vh;
}

.temario-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.temario-intro h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.temario-intro p {
    color: var(--gray);
    font-size: 1.125rem;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.modulo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent);
}

.modulo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.modulo-numero {
    display: inline-flex;
    background: var(--gradient-secondary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
}

.modulo-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.modulo-card ul {
    list-style: none;
    padding: 0;
}

.modulo-card li {
    color: var(--gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modulo-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Responsive para temario */
@media (max-width: 768px) {
    .temario-section {
        padding: 2rem 0.5rem;
    }
    
    .temario-intro h2 {
        font-size: 2rem;
    }
    
    .modulos-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .modulo-card {
        padding: 1.5rem;
    }
    
    .modulo-card h3 {
        font-size: 1.25rem;
    }
}



/* ============================================
   URGENCY SECTION
   ============================================ */
.urgency-section {
    padding: 2rem 0;
    text-align: center;
}



/* ============================================
   PRICING
   ============================================ */
.pricing-section {
    padding: 5rem 0;
}

.pricing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}



/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMACIONES
   ============================================ */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   LOADING INDICATOR
   ============================================ */
.htmx-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

.htmx-indicator.htmx-request {
    display: block;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SECCIÓN DE RECURSOS - BOTONES LLAMATIVOS
   ============================================ */
.recursos-container {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    border: 1px solid rgba(128, 180, 191, 0.2);
    box-shadow: 0 10px 25px rgba(39, 47, 64, 0.1);
}

.recursos-container h4 {
    text-align: center;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.recursos-container h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.recurso-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recurso-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.recurso-item > i {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.recurso-item:nth-child(1) > i {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.recurso-item:nth-child(2) > i {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.recurso-item > div {
    flex: 1;
}

.recurso-item h5 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recurso-item p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-recurso {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 180px;
}

.btn-recurso::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-recurso:hover::before {
    left: 100%;
}

.recurso-item:nth-child(1) .btn-recurso {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.recurso-item:nth-child(1) .btn-recurso:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.recurso-item:nth-child(2) .btn-recurso {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.recurso-item:nth-child(2) .btn-recurso:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.btn-recurso i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 2px solid var(--success);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.success-message h3 {
    color: #065f46;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #047857;
    font-size: 1.1rem;
}

/* Animaciones para los botones de recursos */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

@keyframes pulse-download {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
}

.recurso-item:nth-child(1) .btn-recurso {
    animation: pulse 2s infinite;
}

.recurso-item:nth-child(2) .btn-recurso {
    animation: pulse-download 2.5s infinite;
}

/* Responsive para sección de recursos */
@media (max-width: 768px) {
    .recursos-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .recurso-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .recurso-item > i {
        margin-bottom: 1rem;
    }
    
    .btn-recurso {
        min-width: 160px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .success-message {
        padding: 1.5rem;
    }
    
    .success-message h3 {
        font-size: 1.5rem;
    }
}

 

/* Mejoras para la alineación de imágenes en la navegación */
.nav-img-container {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.nav-img {
    height: 24px;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Ajustes de color para enlaces en la barra de navegación oscura */
.header .nav-link {
    color: var(--light);
}

.header .nav-link:hover {
    color: var(--accent);
}

/* ============================================
   FOOTER STICKY - Pegado al fondo
   ============================================ */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
    width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN CON MENÚ CHECKBOX
   ============================================ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Prevenir overflow en tablets */
    .hero, .instructor, .pricing-section, .testimonials {
        overflow-x: hidden;
    }
}

@media (max-width: 700px) {
    .btn.menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: var(--primary);
        color: var(--white);
        border-radius: 8px;
        padding: 0.75rem;
        font-size: 1.2rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .btn.menu-btn:hover {
        background: var(--dark);
        transform: translateY(-50%) scale(1.05);
    }
    
    .nav-menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 350px;
        top: 0;
        left: -100%;
        background: var(--primary);
        display: block;
        padding: 80px 20px 50px;
        line-height: 50px;
        overflow-y: auto;
        box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
    }
    
    .nav-menu .close-btn {
        display: block;
    }
    
    #menu-btn:checked ~ .nav-menu {
        left: 0%;
    }
    
    #menu-btn:checked ~ .btn.menu-btn {
        display: none;
    }
    
    #close-btn:checked ~ .btn.menu-btn {
        display: block;
    }
    
    /* Reset del menú cuando se hace clic en cerrar */
    #close-btn:checked ~ .nav-menu {
        left: -100%;
    }
    
    /* Asegurar que el menú se muestre correctamente */
    #menu-btn:not(:checked) ~ .nav-menu {
        left: -100%;
    }
    
    .nav-menu li {
        margin: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        display: block;
        font-size: 18px;
        color: var(--white);
        border-radius: 8px;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .nav-menu a:hover {
        background: var(--dark-light);
        color: var(--white);
        transform: translateX(5px);
    }
    
    .nav-menu .nav-cta {
        background: var(--accent);
        color: var(--primary) !important;
        margin-top: 1rem;
        font-weight: 600;
        text-align: center;
    }
    
    .nav-menu .nav-cta:hover {
        background: var(--accent-orange);
        color: var(--primary) !important;
    }
    
    /* Overlay para cerrar menú al hacer clic fuera */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    #menu-btn:checked ~ .nav-menu::before {
        opacity: 1;
        pointer-events: all;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    /* Fixes para móviles - prevenir scroll horizontal */
    .hero, .instructor, .pricing-section, .testimonials {
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero .container,
    .instructor .container,
    .pricing-section .container,
    .testimonials .container {
        padding: 0 1rem;
    }
    
    .hero-card {
        min-width: auto;
        width: 100%;
    }
    
    .code-window {
        min-width: auto;
        width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .instructor-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    /* Fix para cta-final en móviles */
    .cta-final {
        padding: 4rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content > p {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        max-width: 300px;
        padding: 70px 15px 40px;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    /* Fixes adicionales para pantallas muy pequeñas */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-card {
        padding: 1.5rem;
        transform: none;
    }
    
    .code-window {
        min-width: auto;
        max-width: 100%;
    }
    
    .heritage-thumbnails {
        flex-wrap: wrap;
    }
    
    .heritage-thumbnail {
        width: calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }
    
    /* Fix adicional para cta-final en pantallas muy pequeñas */
    .cta-final {
        padding: 3rem 0.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content > p {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 2rem;
    }
}