/* ==========================================================================
   OTI Fútbol Base - Sistema Oficial & Portal de Autogestión
   Identidad Visual Oficial: ROJO Y BLANCO (Red & White Athletic Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Teko:wght@600;700&display=swap');

:root {
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    
    /* OTI Brand Colors: Rojo y Blanco */
    --primary: #dc2626; /* Rojo Atlético */
    --primary-hover: #b91c1c; /* Rojo Oscuro */
    --primary-light: #fef2f2;
    --primary-glow: rgba(220, 38, 38, 0.2);
    
    --secondary: #0f172a; /* Carbón Noche para máxima legibilidad de texto */
    --red-brand: #dc2626;
    --red-dark: #991b1b;
    --red-light: #fff1f2;
    
    --accent-gold: #d97706;
    --accent-gold-light: #fef3c7;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #fee2e2;
    --border-hover: #fca5a5;
    --border-glow: rgba(220, 38, 38, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-display: 'Teko', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(220, 38, 38, 0.04);
    --shadow-md: 0 10px 25px rgba(220, 38, 38, 0.08);
    --shadow-lg: 0 20px 40px rgba(220, 38, 38, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.font-display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Badges & Pills */
.badge-aval {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--red-light);
    border: 1px solid #fca5a5;
    color: var(--primary-hover);
    padding: 0.55rem 1.35rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--primary-light);
    border: 1px solid #fca5a5;
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Step Indicator Pills */
.step-indicator {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.step-pill {
    padding: 0.5rem 1.25rem;
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Buttons (Rojo & Blanco) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: #ffffff;
    border: 2px solid #fee2e2;
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--red-light);
    border-color: var(--primary);
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #34e775, #15a090);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header Global, Topbar & Navbar Oficial OTI (Estilo Élite)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

/* Topbar Superior Slim */
.topbar {
    background: #090e1a;
    color: #e2e8f0;
    font-size: 0.8rem;
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
    overflow: hidden;
}

.topbar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-legal {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.topbar-sep {
    color: #475569;
    font-size: 0.75rem;
}

.topbar-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition);
}

.topbar-wa:hover {
    background: #25d366;
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-link {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    transition: var(--transition);
}

.topbar-link:hover {
    color: #ffffff;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-socials a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    transition: var(--transition);
}

.topbar-socials a:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-1px);
}

/* Navbar Principal */
.navbar {
    position: relative;
    width: 100%;
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid #fee2e2;
}

.navbar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Marca / Escudo Oficial */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 48px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.2));
    transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.06);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.68rem;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Enlaces y Acciones */
.nav-content-wrap {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(0.35rem, 0.8vw, 1rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover {
    color: var(--primary);
    background: #fef2f2;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 800;
    background: #fee2e2;
}

.nav-link-featured {
    color: var(--primary);
    font-weight: 800;
}

.badge-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseDot 1.8s infinite;
}

/* Botones de Acción en Navbar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-nav-portal {
    background: #f8fafc;
    color: var(--secondary);
    border: 1.5px solid #cbd5e1;
    padding: 0.42rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-portal:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-nav-cta {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    padding: 0.45rem 1.05rem;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
    text-decoration: none;
}

.btn-nav-cta:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.38);
}

.nav-toggle {
    display: none;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    color: var(--secondary);
    font-size: 1.35rem;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--primary);
}

/* Elementos del cajón móvil (ocultos en escritorio) */
.mobile-drawer-header, .mobile-drawer-actions {
    display: none;
}

/* Backdrop para móvil */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section (Rojo & Blanco) */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    background: radial-gradient(circle at 90% 10%, rgba(220, 38, 38, 0.06) 0%, transparent 50%),
                linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, transparent 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

/* Hero Visual Showcase */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-card-featured {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #fee2e2;
    box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.15), 0 0 0 1px rgba(239, 68, 68, 0.05);
    padding: 2.25rem 2rem;
    position: relative;
    max-width: 440px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.22);
}

.hero-logo-wrapper {
    position: relative;
    margin: 0 auto 1.25rem auto;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(254, 226, 226, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-logo-img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(220, 38, 38, 0.22));
    animation: floatHeroLogo 4s ease-in-out infinite alternate;
}

@keyframes floatHeroLogo {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-6px) scale(1.03); }
}

.hero-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.85rem;
}

.hero-season-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.45rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hero-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}

.hero-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.hero-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    background: #fdf2f2;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.h-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-card-btn-wrap {
    margin-top: 0.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 900;
    margin: 1rem 0;
    color: var(--secondary);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid #fee2e2;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Feature & Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--secondary);
}

/* Institutional Aval Banner */
.aval-banner {
    background: #ffffff;
    border: 2px solid #fca5a5;
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.aval-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--primary);
}

.aval-icon {
    width: 84px;
    height: 84px;
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.aval-info h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.aval-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 2px solid #fee2e2;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tournament Spotlight */
.tournament-card {
    background: #ffffff;
    border: 2px solid #fee2e2;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-lg);
}

.tournament-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}

.tournament-content {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

/* Modal & Form Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border: 2px solid #fee2e2;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--red-light);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Form Controls */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-main);
}

.form-control {
    background: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23dc2626'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

/* Ticket Card */
.ticket-card {
    background: var(--red-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.ticket-code {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary);
    letter-spacing: 4px;
}

/* Footer & Componentes Ampliados */

.btn-sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
}

.btn-outline-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-outline-sm:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Page Hero para páginas internas */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #450a0a 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.page-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-hero-title span {
    color: #ef4444;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 750px;
}

.breadcrumb-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.breadcrumb-nav a {
    color: #f87171;
}

/* Tabs Interactivas */
.tabs-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #fee2e2;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #fee2e2;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-bottom: 3px solid transparent;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: #ffffff;
}

.tab-btn.active {
    color: var(--primary);
    background: #ffffff;
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 2.5rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tabla de Puntuación Integral OTI (Metodología Festival & Pre-competencia) */
.scoring-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.scoring-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.scoring-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

.scoring-table tr:hover td {
    background: #fef2f2;
}

.score-badge-game {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-weight: 800;
}

.score-badge-proto {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-weight: 800;
}

.score-badge-act {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-weight: 800;
}

.score-badge-total {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
}

/* Grid de Torneos OTI */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tournament-box {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.tournament-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.tournament-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #fca5a5;
}

.tournament-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: #fef2f2;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.tournament-name {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.tournament-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.tournament-details {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tournament-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

/* Sección de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    border-color: #fca5a5;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #fef2f2;
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fee2e2;
}

/* Contacto & Sedes */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid #fee2e2;
    box-shadow: var(--shadow-sm);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fef2f2;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    border: 1px solid #fecaca;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #fee2e2;
    box-shadow: var(--shadow-sm);
    height: 380px;
    background: #e2e8f0;
}

/* Preguntas Frecuentes / Acordeón */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: #fca5a5;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Modales Ampliados */
.modal-card-sm {
    max-width: 440px;
    padding: 2.5rem 2rem;
}

.modal-icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem auto;
}

.bg-light-red {
    background: #fef2f2;
}

.modal-header-custom {
    margin-bottom: 1.75rem;
}

.modal-title-custom {
    font-size: 2rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.step-subheading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #fee2e2;
}

.form-nav-buttons {
    display: flex;
    margin-top: 2rem;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.sponsor-promo-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sponsor-q-box {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.success-icon-badge {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: #059669;
    border: 2px solid #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.25rem auto;
}

.modal-actions-wrap {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer Oficial */
.footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 5rem 0 2rem 0;
    margin-top: 5rem;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.footer-brand .brand-title {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.footer-aval-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 700;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ef4444;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact-item i {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: #ffffff;
    font-weight: 600;
}

.footer-social-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
    transition: var(--transition);
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn-title {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.social-btn-user {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.facebook-btn:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-legal {
    font-size: 0.78rem;
    margin-top: 0.5rem;
    color: #94a3b8;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.floating-tooltip {
    position: absolute;
    right: 70px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.floating-whatsapp:hover .floating-tooltip {
    opacity: 1;
    transform: translateX(-5px);
}

/* Responsividad General */
/* Responsividad General */
@media (max-width: 1180px) {
    .nav-toggle {
        display: inline-flex;
    }
    .btn-nav-portal .portal-text {
        display: none;
    }
    .btn-nav-portal {
        padding: 0.42rem 0.65rem;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -340px;
        width: min(320px, 85vw);
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1.5rem 1.25rem;
        gap: 0.35rem;
        box-shadow: -8px 0 35px rgba(0, 0, 0, 0.15);
        z-index: 1060;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
        border-bottom: 2px solid #fee2e2;
    }
    .drawer-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .drawer-title {
        font-family: var(--font-heading);
        font-size: 1.3rem;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
    }
    .drawer-subtitle {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 700;
    }
    .drawer-close {
        background: #f1f5f9;
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--secondary);
        font-size: 1.15rem;
        cursor: pointer;
        transition: var(--transition);
    }
    .drawer-close:hover {
        background: #fee2e2;
        color: var(--primary);
    }
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        color: var(--secondary);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-link:hover, .nav-link.active {
        background: #fee2e2;
        color: var(--primary);
    }
    .mobile-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e2e8f0;
    }
    .mobile-drawer-actions .btn {
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .topbar-legal strong {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-grid, .tournament-card, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-bg-image {
        width: 100%;
        opacity: 0.15;
    }
    .aval-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .aval-icon {
        margin: 0 auto;
    }
    .tournaments-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
    .d-none-tablet {
        display: none !important;
    }
    .page-hero-title {
        font-size: 2.2rem;
    }
    .brand-title {
        font-size: 1.25rem;
    }
    .brand-subtitle {
        display: none;
    }
    .brand-logo {
        height: 42px;
    }
    .topbar-inner {
        justify-content: center;
    }
    .topbar-left {
        display: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        min-width: 140px;
        padding: 1rem;
        font-size: 0.9rem;
    }
    .tab-content {
        padding: 1.5rem 1rem;
    }
}

