/* ============================================
   Sistema Centralizado de Capacitaciones AMPYME
   Diseño UX/UI Premium - Variables dinámicas
   ============================================ */

:root {
    --color-black: #0A0A0A;
    --color-charcoal: #1A1A2E;
    --color-dark-surface: #16213E;
    --color-white: #FFFFFF;
    --color-cream: #FFF9F0;
    --color-warm-gray: #F5F0EB;
    --color-red: #C41E3A;
    --color-red-dark: #9B1B30;
    --color-red-light: #E8364F;
    --color-gold: #D4A853;
    --color-gold-light: #E8C876;
    --color-text-dark: #2D2D2D;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Colores dinámicos del evento (se sobreescriben por CSS inline) */
    --event-primary: #2563EB;
    --event-secondary: #1E40AF;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--color-cream);
    color: var(--color-text-dark);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   INDEX.PHP - HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #0F172A 40%, var(--color-black) 100%);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px 100px;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero-badge i { font-size: 1.1rem; }
.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, #F0D98C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,.5);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 2px;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.12);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 3;
}
.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   INDEX.PHP - EVENTOS SECTION
   ============================================ */
.eventos-section {
    background: var(--color-cream);
    padding: 70px 20px 80px;
}
.eventos-container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    color: var(--color-white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}
.section-title p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Eventos Grid */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

/* Evento Card */
.evento-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,.04);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}
.evento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.evento-card-header {
    position: relative;
    padding: 24px;
    color: var(--color-white);
    min-height: 110px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.evento-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    padding: 10px 18px;
    backdrop-filter: blur(4px);
    min-width: 64px;
}
.date-day {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}
.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}
.evento-card-sponsor {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    padding: 5px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
}
.evento-card-badge {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-full { background: #EF4444; color: #fff; }
.badge-past { background: rgba(0,0,0,.4); color: rgba(255,255,255,.8); }

.evento-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.evento-card-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    line-height: 1.35;
}
.evento-descripcion {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.evento-detalles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.evento-detalle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-dark);
}
.evento-detalle i {
    width: 18px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Progress bar */
.evento-progress {
    margin-top: auto;
}
.progress-bar-custom {
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}
.progress-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    display: block;
}

/* Card Footer */
.evento-card-footer {
    padding: 0 24px 24px;
}
.btn-evento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.btn-evento:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
    color: var(--color-white);
}
.btn-evento-disabled {
    background: var(--color-border) !important;
    color: var(--color-text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed;
}
.btn-evento-disabled:hover {
    transform: none;
    box-shadow: none !important;
}

/* No Eventos */
.no-eventos {
    text-align: center;
    padding: 80px 40px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.no-eventos-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.no-eventos-icon i {
    font-size: 2rem;
    color: var(--color-text-muted);
}
.no-eventos h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}
.no-eventos p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   INDEX.PHP - INFO SECTION
   ============================================ */
.info-section {
    background: var(--color-warm-gray);
    padding: 70px 20px;
}
.info-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.info-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.04);
    transition: all .3s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-charcoal), var(--color-black));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(26,26,46,.25);
}
.info-icon i {
    font-size: 1.3rem;
    color: var(--color-gold);
}
.info-card h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-charcoal);
    margin-bottom: 10px;
}
.info-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   EVENTO.PHP - BANNER
   ============================================ */
.banner-section {
    width: 100%;
    overflow: hidden;
    background: var(--color-black);
    line-height: 0;
}
.banner-mobile,
.banner-web {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
}
.banner-mobile { display: block; }
.banner-web    { display: none;  }

@media (min-width: 768px) {
    .banner-mobile { display: none !important;  }
    .banner-web    { display: block !important; }
}

/* Default gradient banner */
.banner-default {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.banner-default-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 700px;
}
.banner-default-content .banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 6px 20px;
    border-radius: 50px;
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}
.banner-default-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 12px;
}
.banner-default-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}
.banner-default-pattern {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ============================================
   EVENTO.PHP - EVENT INFO BAR
   ============================================ */
.event-info-bar {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 18px 0;
    text-align: center;
    border-bottom: 3px solid var(--color-red);
}
.event-info-bar .info-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0 20px;
}
.event-info-bar .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.event-info-bar .info-item i {
    color: var(--color-gold);
    font-size: 1rem;
}
.event-info-bar .divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.2);
}

/* ============================================
   EVENTO.PHP - SECCIÓN REGISTRO
   ============================================ */
.registro-section {
    background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-warm-gray) 50%, #EDE8E3 100%);
    padding: 60px 0 80px;
    position: relative;
}
.registro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}
.form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-charcoal);
    line-height: 1.25;
    margin-bottom: 16px;
}
.form-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.cupos-info { margin-top: 20px; }
.cupos-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Cupos Agotados */
.cupos-agotados {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.cupos-agotados i.fa-exclamation-triangle {
    font-size: 3rem;
    color: #EF4444;
    margin-bottom: 16px;
}
.cupos-agotados h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}
.cupos-agotados p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-charcoal);
    color: var(--color-white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all .3s ease;
}
.btn-volver:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,26,46,.3);
    color: var(--color-white);
}

/* ============================================
   FORMULARIO - Card Premium
   ============================================ */
.form-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,.05);
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.section-heading .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.section-heading h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

/* Labels */
.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.field-label .required {
    color: var(--color-red);
    margin-left: 2px;
}

/* Inputs & Selects */
.field-input,
.field-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background: var(--color-cream);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all .25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.field-input::placeholder {
    color: #B0B0B0;
}
.field-input:focus,
.field-select:focus {
    border-color: var(--event-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

/* Select arrow */
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    font-size: 0.85rem;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-cream);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}
.radio-option:hover {
    border-color: var(--event-primary);
    background: #F0F7FF;
}
.radio-option input[type="radio"] {
    accent-color: var(--event-primary);
    width: 16px;
    height: 16px;
}
.radio-option input[type="radio"]:checked ~ span {
    color: var(--event-primary);
    font-weight: 600;
}

/* Checkboxes */
.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--color-cream);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all .25s ease;
    cursor: pointer;
}
.checkbox-card:hover {
    border-color: var(--color-gold);
    background: #FFFDF7;
}
.checkbox-card input[type="checkbox"] {
    accent-color: var(--event-primary);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.checkbox-card .label-title {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}
.checkbox-card .label-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    line-height: 1.5;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: var(--color-border);
    margin: 32px 0;
}

/* ============================================
   SOCIAL MEDIA TOGGLES
   ============================================ */
.social-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social-toggle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform .2s ease;
}
.social-toggle-label:hover {
    transform: scale(1.06);
}
.social-toggle-input { display: none; }

.social-toggle-slider {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--color-cream);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    margin-bottom: 6px;
}
.social-toggle-knob {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.social-toggle-knob i {
    font-size: 22px;
    color: #C0C0C0 !important;
    transition: all .3s ease;
}

.social-toggle-input:checked + .social-toggle-slider {
    background: #EFF6FF !important;
    border-color: var(--event-primary) !important;
    box-shadow: 0 4px 16px rgba(37,99,235,.25) !important;
}
.social-toggle-input:checked + .social-toggle-slider .social-toggle-knob {
    background: var(--color-white) !important;
    transform: scale(.92) !important;
}
.social-toggle-input:checked + .social-toggle-slider .social-toggle-knob i {
    color: var(--event-primary) !important;
    transform: scale(1.1) !important;
}

.social-toggle-text {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #B0B0B0;
    text-align: center;
    transition: all .3s ease;
}
.social-toggle-input:checked ~ .social-toggle-text {
    color: var(--event-primary);
}

.social-field { transition: all .3s ease; overflow: hidden; }
.social-field.hidden { opacity: 0; max-height: 0; pointer-events: none; }
.social-field:not(.hidden) { opacity: 1; max-height: 60px; }

/* ============================================
   SUBMIT BUTTON - Premium CTA
   ============================================ */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--event-primary) 0%, var(--event-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .35s ease;
    box-shadow: 0 8px 25px rgba(37,99,235,.35);
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    pointer-events: none;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37,99,235,.45);
    filter: brightness(1.08);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(37,99,235,.3);
}

/* Back link */
.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all .25s ease;
    padding: 8px 0;
}
.btn-back-link:hover {
    color: var(--event-primary);
    gap: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255,255,255,.7);
    padding: 36px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 12px;
}
.footer-brand i {
    color: var(--color-gold);
    font-size: 1.2rem;
}
.site-footer a {
    color: var(--color-gold);
    text-decoration: none;
}
.site-footer .sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    padding: 6px 18px;
    border-radius: 50px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: rgba(255,255,255,.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.animate-fade-up { animation: fadeInUp .7s ease-out both; }
.animate-fade    { animation: fadeIn .6s ease-out both; }

/* Loading state */
.loading { position: relative; pointer-events: none; opacity: .7; }
.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 22px; height: 22px;
    border: 3px solid var(--color-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin {
    to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    /* Hero */
    .hero-section { min-height: 420px; padding: 60px 16px 80px; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 0.95rem; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stat-number { font-size: 1.5rem; }
    .hero-stat-divider { display: none; }

    /* Eventos grid */
    .eventos-grid { grid-template-columns: 1fr; gap: 24px; }
    .section-title h2 { font-size: 1.7rem; }
    .eventos-section { padding: 48px 16px 60px; }

    /* Info */
    .info-container { grid-template-columns: 1fr; gap: 16px; }
    .info-section { padding: 48px 16px; }

    /* Banner */
    .banner-default { min-height: 260px; }
    .banner-default-content h1 { font-size: 1.8rem; }
    .banner-default-content p { font-size: 0.9rem; }

    /* Event info bar */
    .event-info-bar .info-items { flex-direction: column; gap: 8px; }
    .event-info-bar .divider { display: none; }

    /* Form */
    .form-header h2 { font-size: 1.6rem; }
    .form-header p { font-size: 0.92rem; }
    .form-card { padding: 24px 18px; border-radius: var(--radius-lg); }
    .section-heading h3 { font-size: 1.1rem; }
    .radio-group { flex-direction: column; gap: 8px; }
    .registro-section { padding: 36px 0 50px; }

    /* Social toggles mobile: 2x2 grid */
    .form-card [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-section h1 { font-size: 2.5rem; }
    .eventos-grid { grid-template-columns: repeat(2, 1fr); }
    .info-container { grid-template-columns: repeat(3, 1fr); }
    .form-header h2 { font-size: 2rem; }
    .form-card { padding: 32px 28px; }
}
