/* =============================================
   FRONTEND MODERN DESIGN SYSTEM 2026
   Respecting original color palette
   ============================================= */

/* =============================================
   CSS VARIABLES - Design Tokens
   ============================================= */
:root {
    /* Original Color Palette - Preserved */
    --main: #f44e2d;
    --main-light: #ff6b4a;
    --main-dark: #d93d1c;
    --main-sub: #02a5b6;

    --secondary: #092d54;
    --secondary-light: #0d3f73;
    --secondary-sub: #ff3399AA;

    --black: #232323;
    --gray: #616161;
    --gray-light: #9ca3af;
    --gray-lighter: #e5e7eb;
    --white: #ffffff;

    --green: #387d76;
    --blue: #283d93;
    --red: #ec1b2d;

    /* Autismo en Positivo Colors */
    --autismo-azul: #00A3D7;
    --autismo-rosa: #E91E8C;
    --autismo-amarillo: #F7B500;
    --autismo-verde: #7AC143;
    --autismo-morado: #8B5CF6;
    --autismo-gris: #4A4A4A;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: var(--main-sub);

    /* Modern Additions */
    --light: #f8fafc;
    --dark: #0f172a;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--main) 0%, var(--main-light) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --hero-gradient: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.4) 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-dark: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(244, 78, 45, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =============================================
   BASE STYLES
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'metropolis-semibold', sans-serif;
    font-weight: 500;
    color: var(--gray);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

h1, .h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2, .h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4, .h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5, .h5 { font-size: clamp(1rem, 2vw, 1.25rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--autismo-azul) 0%, var(--autismo-morado) 50%, var(--autismo-rosa) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   HEADER / HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-2xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.24) 100%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--main) 0%,
        var(--warning) 20%,
        var(--success) 40%,
        var(--main-sub) 60%,
        var(--blue) 80%,
        var(--secondary) 100%
    );
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =============================================
   NAVIGATION
   ============================================= */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-normal);
}

.modern-navbar.scrolled {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.modern-navbar .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-navbar .navbar-nav li {
    display: inline-block;
}

.modern-navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.modern-navbar .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.modern-navbar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .modern-navbar .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column !important;
        padding: var(--space-3xl) var(--space-lg);
        transition: right var(--transition-normal);
        gap: var(--space-md);
        z-index: 1001;
    }

    .modern-navbar .navbar-nav.active {
        right: 0;
    }

    .modern-navbar .navbar-nav li {
        display: block;
        width: 100%;
    }

    .modern-navbar .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

/* =============================================
   HERO CONTENT
   ============================================= */
.hero-brand {
    padding-top: 80px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 650px;
    width: 90%;
    height: auto;
    animation: fadeInUp 0.8s ease forwards;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta .btn {
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Hero CTA Buttons - High Specificity */
.hero-section .hero-cta .btn.btn-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
}

.hero-section .hero-cta .btn.btn-outline {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-section .hero-cta .btn.btn-outline:hover {
    background: #ffffff !important;
    color: var(--main) !important;
}

@media (max-width: 576px) {
    .hero-brand {
        padding-top: 70px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 var(--space-lg);
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Hero Event Info */
.hero-event-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
    padding: var(--space-lg) var(--space-3xl);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-event-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
}

.hero-event-item i {
    font-size: 1.5rem;
    color: var(--white);
}

.hero-event-divider {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .hero-event-info {
        flex-direction: column;
        gap: var(--space-lg);
        border-radius: var(--radius-xl);
        padding: var(--space-xl);
    }

    .hero-event-divider {
        display: none;
    }

    .hero-event-item {
        font-size: 1.05rem;
    }

    .hero-event-item i {
        font-size: 1.3rem;
    }
}

/* =============================================
   BUTTONS - Modern Design
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible !important;
    white-space: nowrap;
    text-overflow: clip !important;
    line-height: 1.5;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: inherit;
    transition: background var(--transition-normal);
}

.btn:hover::before {
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--autismo-rosa) 0%, var(--autismo-morado) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 30, 140, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(9, 45, 84, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(9, 45, 84, 0.5);
    color: var(--white);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--main) !important;
    border-color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--main);
    border: 2px solid var(--main);
}

.btn-outline-primary:hover {
    background: var(--main);
    color: var(--white);
}

.btn-xl {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.95rem;
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-lg);
}

/* =============================================
   MAIN CONTENT SECTION
   ============================================= */
.main-section {
    position: relative;
    background: var(--light);
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.main-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--light);
    border-radius: 30px 30px 0 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    color: var(--main);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: var(--space-lg) auto 0;
}

/* =============================================
   REGISTRATION FORM - Modern Card Design
   ============================================= */
.registration-container {
    background: var(--glass-bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-2xl);
}

.registration-header {
    background: linear-gradient(135deg, var(--autismo-azul) 0%, var(--autismo-morado) 50%, var(--autismo-rosa) 100%);
    padding: var(--space-xl);
    text-align: center;
    color: var(--white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.registration-header h1 {
    color: var(--white);
    margin: 0 0 var(--space-sm);
    font-size: 1.75rem;
}

.registration-header p {
    margin: 0;
    opacity: 0.9;
    color: var(--white);
}

.registration-body {
    padding: var(--space-xl);
}

.registration-body .btn {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    max-width: none !important;
    width: auto !important;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Form Group */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.form-label i {
    margin-right: var(--space-sm);
    color: var(--autismo-morado);
}

/* Form Controls - Test version */
.form-control-2 {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #1a1a2e;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control-2:focus {
    outline: none;
    border-color: #00A3D7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 163, 215, 0.15);
}

select.form-control-2 {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--light);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--autismo-azul);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 163, 215, 0.15);
}

.form-control::placeholder {
    color: var(--gray-light);
}

/* Select elements - fix for mobile/iOS/Android visibility */
select.form-control {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    -moz-text-fill-color: #1a1a2e !important;
    opacity: 1 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    background-color: #f8f9fa !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a2e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

select.form-control option {
    color: #1a1a2e !important;
    background: #ffffff !important;
}

select.form-control option:disabled {
    color: #6c757d !important;
}

select.form-control:invalid,
select.form-control option[value=""][disabled] {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
}

/* Form Error */
.form-error {
    display: block;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

/* Form Hint */
.form-hint {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

/* =============================================
   MEMBERSHIP CARDS - Selection Options
   ============================================= */
.membership-section {
    margin: var(--space-2xl) 0;
}

.membership-title {
    color: var(--autismo-rosa);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.membership-card {
    position: relative;
    background: var(--light);
    border: 3px solid var(--gray-lighter);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.membership-card:hover {
    border-color: var(--main);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.membership-card:hover::before {
    transform: scaleX(1);
}

.membership-card.selected {
    border-color: var(--main);
    background: linear-gradient(135deg, rgba(244, 78, 45, 0.05), rgba(2, 165, 182, 0.05));
}

.membership-card.selected::before {
    transform: scaleX(1);
}

.membership-card.selected::after {
    content: '\2713';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 28px;
    height: 28px;
    background: var(--main);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.membership-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
}

.membership-card.virtual .membership-icon {
    background: var(--secondary-gradient);
}

.membership-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.membership-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    text-align: left;
}

.membership-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.membership-features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

.membership-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main);
    margin-bottom: var(--space-md);
}

.membership-price small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
}

/* =============================================
   COST DISPLAY
   ============================================= */
.cost-display {
    background: linear-gradient(135deg, var(--autismo-verde) 0%, var(--autismo-azul) 100%);
    color: #ffffff !important;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin: var(--space-xl) 0;
    box-shadow: 0 0 40px rgba(122, 193, 67, 0.3);
}

.cost-display h2 {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.5rem;
}

.cost-display h2 span {
    color: #ffffff !important;
}

/* =============================================
   COUPON SECTION
   ============================================= */
.coupon-section {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.coupon-input-group {
    display: flex;
    gap: var(--space-md);
}

.coupon-input-group .form-control {
    flex: 1;
    text-transform: uppercase;
}

.coupon-input-group .btn {
    flex-shrink: 0;
}

.coupon-response {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.coupon-response.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.coupon-response.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* =============================================
   ACCORDION / COLLAPSE
   ============================================= */
.modern-accordion {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: var(--space-xl) 0;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-lighter);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: var(--light);
    padding: 0;
    margin: 0;
}

.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--autismo-morado);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.accordion-button:hover {
    background: rgba(139, 92, 246, 0.08);
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-normal);
}

.accordion-button[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.accordion-body {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray);
    line-height: 1.7;
}

/* =============================================
   WORKSHOP SELECT
   ============================================= */
.workshop-section {
    background: linear-gradient(135deg, rgba(122, 193, 67, 0.08), rgba(0, 163, 215, 0.08));
    border: 2px solid var(--autismo-verde);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.workshop-section h5 {
    color: var(--autismo-verde);
    margin-bottom: var(--space-md);
}

.workshop-section .form-control {
    border-color: var(--autismo-verde);
}

.workshop-note {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: var(--space-md);
}

/* =============================================
   FORM ACTIONS
   ============================================= */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-lighter);
}

/* =============================================
   POLICY CHECKBOX
   ============================================= */
.policy-section {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.policy-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.policy-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--autismo-rosa);
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-label a {
    color: var(--autismo-azul);
    text-decoration: underline;
}

/* =============================================
   BILLING SECTION
   ============================================= */
.billing-section {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.billing-section h5 {
    color: var(--autismo-morado);
    margin-bottom: var(--space-md);
}

.billing-section p {
    color: var(--gray);
    line-height: 1.7;
}

.billing-section a {
    color: var(--autismo-azul);
    font-weight: 600;
}

/* =============================================
   SPONSORS SECTION
   ============================================= */
.sponsors-section {
    padding: var(--space-3xl) 0;
    background: var(--light);
}

.sponsors-title {
    text-align: center;
    color: var(--main);
    margin-bottom: var(--space-xl);
    position: relative;
}

.sponsors-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
}

.sponsor-item {
    max-width: 150px;
    opacity: 0.7;
    transition: all var(--transition-normal);
    filter: grayscale(50%);
}

.sponsor-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.sponsor-item img {
    width: 100%;
    height: auto;
}

/* =============================================
   EVENT INFO SECTION
   ============================================= */
.event-info-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.event-info-header {
    background: linear-gradient(135deg, var(--main-sub), #047481);
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    color: var(--white);
}

.event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.event-info-header h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.event-info-body {
    padding: var(--space-xl) var(--space-2xl);
}

.event-section {
    margin-bottom: var(--space-xl);
}

.event-section h4 {
    color: var(--main);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.event-section h4 i {
    color: var(--main-sub);
}

.event-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-topics li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--gray-dark);
    line-height: 1.6;
}

.event-topics li i {
    color: var(--success);
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Speaker Cards */
.speaker-card {
    background: linear-gradient(135deg, rgba(2, 165, 182, 0.05), rgba(244, 78, 45, 0.03));
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--main-sub);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.speaker-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.speaker-info {
    flex: 1;
}

.speaker-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--main);
    margin-bottom: var(--space-sm);
}

.speaker-bio {
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .speaker-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-photo {
        width: 140px;
        height: 140px;
    }
}

/* Organizers Section */
.organizers-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.organizers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.organizer-logo {
    background: linear-gradient(135deg, #1e3a5f, #0f2744);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.organizer-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

/* Sponsor Section (dentro del Event Info) */
.sponsor-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.sponsor-section h4 {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
    justify-content: center;
}

.sponsor-section h4 i {
    color: var(--main);
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-link {
    display: inline-block;
    transition: all var(--transition-normal);
}

.sponsor-link:hover {
    transform: scale(1.05);
}

.sponsor-link img {
    height: 50px;
    width: auto;
}

/* Event Details Grid */
.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.event-detail-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-normal);
}

.event-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.detail-extra {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .event-info-header {
        padding: var(--space-lg);
    }

    .event-info-header h2 {
        font-size: 1.35rem;
    }

    .event-info-body {
        padding: var(--space-lg);
    }

    .event-details-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.modern-footer {
    background: var(--dark);
    color: var(--white);
    padding: 15px 0 !important;
    text-align: center;
    height: auto !important;
    margin-top: 0 !important;
    position: relative !important;
    clear: none !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-powered {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-powered a {
    color: var(--main);
    text-decoration: none;
    font-weight: 600;
}

.footer-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-sponsor span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-sponsor a {
    display: inline-flex;
    align-items: center;
}

.footer-sponsor .sponsor-logo {
    height: 35px;
    width: auto;
    transition: all var(--transition-normal);
}

.footer-sponsor .sponsor-logo:hover {
    transform: scale(1.05);
}

/* =============================================
   LOADING OVERLAY
   ============================================= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.loading-text {
    color: var(--white);
    margin-top: var(--space-lg);
    font-size: 1.1rem;
}

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

/* =============================================
   ALERTS
   ============================================= */
.modern-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.modern-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.modern-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.modern-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.modern-alert.info {
    background: rgba(2, 165, 182, 0.1);
    border: 1px solid rgba(2, 165, 182, 0.3);
    color: var(--info);
}

/* =============================================
   LOGIN SECTION
   ============================================= */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--glass-bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.login-header {
    background: var(--secondary-gradient);
    padding: var(--space-xl);
    text-align: center;
    color: var(--white);
}

.login-header h4 {
    color: var(--white);
    margin: 0;
}

.login-body {
    padding: var(--space-xl);
}

/* =============================================
   SUCCESS PAGE
   ============================================= */
.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.success-card {
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    padding: var(--space-3xl);
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-xl);
    background: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

.success-title {
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.success-message {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }

    .hero-brand {
        padding-top: 100px;
    }

    .hero-logo {
        max-width: 300px;
    }

    .registration-body {
        padding: var(--space-lg);
    }

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

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

    .coupon-input-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* =============================================
   DARK MODE SUPPORT (Optional)
   ============================================= */
@media (prefers-color-scheme: dark) {
    /* Can be enabled if needed */
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .modern-navbar,
    .hero-cta,
    .form-actions {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: var(--space-lg);
    }
}
