/* ========================================
   BOLÃO MUNDIAL 2026 - ESTILO FIFA
   Inspirado no design oficial da FIFA
======================================== */

/* === IMPORTAR FUENTES === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === VARIABLES CSS === */
:root {
    /* Paleta FIFA Official */
    --fifa-primary: #1a237e;          /* Azul FIFA oficial */
    --fifa-secondary: #ff6b35;        /* Naranja vibrante */
    --fifa-gold: #ffd700;             /* Dorado Copa del Mundo */
    --fifa-teal: #00acc1;             /* Turquesa FIFA */
    --fifa-red: #e53935;              /* Rojo FIFA */
    --fifa-green: #43a047;            /* Verde FIFA */
    
    /* Neutrales */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark: #212121;
    --color-gray-900: #263238;
    --color-gray-800: #37474f;
    --color-gray-700: #455a64;
    --color-gray-600: #546e7a;
    --color-gray-500: #607d8b;
    --color-gray-400: #78909c;
    --color-gray-300: #90a4ae;
    --color-gray-200: #b0bec5;
    --color-gray-100: #cfd8dc;
    --color-gray-50: #eceff1;
    
    /* Fondos */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-50);
    --bg-dark: var(--fifa-primary);
    --bg-accent: var(--fifa-secondary);
    
    /* Gradientes FIFA */
    --gradient-primary: linear-gradient(135deg, var(--fifa-primary) 0%, #3949ab 100%);
    --gradient-secondary: linear-gradient(135deg, var(--fifa-secondary) 0%, #ff8a65 100%);
    --gradient-gold: linear-gradient(135deg, var(--fifa-gold) 0%, #ffab00 100%);
    --gradient-hero: linear-gradient(135deg, var(--fifa-primary) 0%, var(--fifa-teal) 100%);
    
    /* Sombras minimalistas */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    
    /* Bordes */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transiciones */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.3s ease;
}

/* === RESET Y BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin: 0 0 1rem 0;
}

h1 { 
    font-size: 3rem; 
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 { 
    font-size: 2.25rem; 
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 { 
    font-size: 1.875rem; 
    font-weight: 600;
}

h4 { 
    font-size: 1.5rem; 
    font-weight: 600;
}

h5 { 
    font-size: 1.25rem; 
    font-weight: 600;
}

h6 { 
    font-size: 1rem; 
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
    color: var(--color-gray-700);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-600);
}

.text-muted {
    color: var(--color-gray-500) !important;
}

/* === NAVBAR === */
.navbar {
    background: var(--color-white) !important;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--fifa-primary) !important;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.025em;
}

.navbar-brand:hover {
    color: var(--fifa-teal) !important;
    transform: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-gray-700) !important;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--fifa-primary) !important;
    background-color: var(--color-gray-50) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === HERO SECTION === */
.hero-section {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #006699; 
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* === CONTENEDORES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

.bg-white {
    background-color: var(--color-white) !important;
}

/* === CARDS === */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--fifa-primary) !important;
    color: var(--color-white) !important;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
    background: var(--color-white);
    color: var(--color-dark);
}

.card-title {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--color-gray-700);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Cards con bordes de colores */
.border-success .card-header {
    background: var(--fifa-green) !important;
}

.border-warning .card-header {
    background: var(--fifa-gold) !important;
    color: var(--color-dark) !important;
}

.border-info .card-header {
    background: var(--fifa-teal) !important;
}

/* === BUTTONS === */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Botón Success */
.btn-success {
    background: var(--fifa-green);
    border-color: var(--fifa-green);
    color: var(--color-white);
}

.btn-success:hover {
    background: #388e3c;
    border-color: #388e3c;
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Botón Warning */
.btn-warning {
    background: var(--fifa-gold);
    border-color: var(--fifa-gold);
    color: var(--color-dark);
}

.btn-warning:hover {
    background: #ffb300;
    border-color: #ffb300;
    color: var(--color-dark);
    transform: translateY(-1px);
}

/* Botón Primary */
.btn-primary {
    background: var(--fifa-primary);
    border-color: var(--fifa-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #303f9f;
    border-color: #303f9f;
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Botones Outline */
.btn-outline-success {
    background: transparent;
    border-color: var(--fifa-green);
    color: var(--fifa-green);
}

.btn-outline-success:hover {
    background: var(--fifa-green);
    border-color: var(--fifa-green);
    color: var(--color-white);
}

.btn-outline-light {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--fifa-primary);
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--color-gray-400);
    color: var(--color-gray-700);
}

.btn-outline-secondary:hover {
    background: var(--color-gray-400);
    border-color: var(--color-gray-400);
    color: var(--color-white);
}

/* === FORMS === */
.form-control {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-dark);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--fifa-primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    outline: none;
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

.form-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-text {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

/* === TABLES === */
.table {
    background: var(--color-white);
    color: var(--color-dark);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0;
}

.table thead {
    background: var(--fifa-primary);
}

.table thead th {
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.table tbody td {
    padding: 1rem 0.75rem;
    border-color: var(--color-gray-200);
    color: var(--color-dark);
    vertical-align: middle;
    font-weight: 500;
    text-align: center;
}

.table-hover tbody tr:hover {
    background: var(--color-gray-50);
}

.table-warning {
    background: rgba(255, 215, 0, 0.1);
}

.table-responsive {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

/* === BADGES === */
.badge {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.fs-6 {
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
}

.bg-primary {
    background: var(--fifa-primary) !important;
}

.bg-success {
    background: #cbcbcb;
}

.bg-warning {
    background: var(--fifa-gold) !important;
    color: var(--color-dark) !important;
}

.bg-info {
    background: var(--fifa-teal) !important;
}

.bg-danger {
    background: var(--fifa-red) !important;
}

.bg-dark {
    background: var(--color-gray-800) !important;
}

/* === ALERTS === */
.alert {
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.alert-success {
    background: #e8f5e8;
    border-color: var(--fifa-green);
    color: #2e7d32;
}

.alert-danger {
    background: #ffebee;
    border-color: var(--fifa-red);
    color: #c62828;
}

.alert-warning {
    background: #fffde7;
    border-color: var(--fifa-gold);
    color: #f57f17;
}

.alert-info {
    background: #e0f2f1;
    border-color: var(--fifa-teal);
    color: #00695c;
}

/* === UTILITIES === */
.text-dark {
    color: var(--color-dark) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-success {
    color: var(--fifa-green) !important;
}

.text-warning {
    color: #f57f17 !important;
}

.text-info {
    color: var(--fifa-teal) !important;
}

.text-danger {
    color: var(--fifa-red) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

/* === SHADOWS === */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* === FOOTER === */
footer {
    background: var(--color-gray-900) !important;
    color: var(--color-white) !important;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

footer p {
    color: var(--color-white) !important;
    margin-bottom: 0.5rem;
}

footer .text-muted {
    color: var(--color-gray-400) !important;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem !important;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
}

/* Mobile Small */
@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .form-control-lg {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.625rem 0.375rem;
        font-size: 0.8125rem;
    }
    
    .badge {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
}

/* === ANIMACIONES SUTILES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Aplicar animaciones sutiles */
.card {
    animation: fadeInUp 0.4s ease-out;
}

.hero-section .container {
    animation: fadeIn 0.6s ease-out;
}

/* === ESTADOS FOCUS === */
*:focus {
    outline: none;
}

.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
        page-break-inside: avoid;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === LOADING STATES === */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s ease infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === CUSTOM UTILITIES === */
.text-fifa-primary {
    color: var(--fifa-primary) !important;
}

.text-fifa-secondary {
    color: var(--fifa-secondary) !important;
}

.text-fifa-gold {
    color: var(--fifa-gold) !important;
}

.bg-fifa-primary {
    background: var(--fifa-primary) !important;
}

.bg-fifa-secondary {
    background: var(--fifa-secondary) !important;
}

.bg-fifa-gold {
    background: var(--fifa-gold) !important;
}

/* === FIN DEL CSS === */
