/* ===== VARIABLES ===== */
:root {
    --dark-blue: #0a1628;
    --dark-blue-light: #0f2744;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --neon-green: #39ff14;
    --neon-green-dark: #32cd32;
    --white: #ffffff;
    --gray: #6b7280;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND ===== */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.95)),
        url("./stadium-bg.png") center/cover;
    z-index: -1;
}
.seo-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HERO SECTION ===== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra horizontalmente */
    min-height: 80vh;
    gap: 2rem;
    text-align: center;
    padding: 2rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* CR7 Logo */
.cr7-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    background: linear-gradient(180deg, var(--silver-light), var(--silver), #808080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(192, 192, 192, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(192, 192, 192, 0.6)); }
}

/* Title */
.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, var(--gold-light), var(--gold), #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--silver);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

/* Goal Counter */
.goal-counter-container {
    margin: 2rem 0;
}

.goal-counter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10rem;
    line-height: 1;
    background: linear-gradient(180deg, var(--silver-light), var(--silver), #808080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.goals-label {
    font-size: 1.5rem;
    color: var(--silver);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: -1rem;
}

/* Goals to Go */
.goals-to-go {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 3rem;
    background: rgba(57, 255, 20, 0.1);
    border: 2px solid var(--neon-green);
    border-radius: 1rem;
    box-shadow: 
        0 0 20px rgba(57, 255, 20, 0.3),
        inset 0 0 20px rgba(57, 255, 20, 0.1);
}

.goals-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.goals-text {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--neon-green);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}

.progress-label {
    text-align: center;
    color: var(--silver);
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.progress-bar {
    position: relative;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green-dark), var(--neon-green), var(--neon-green-dark));
    border-radius: 9999px;
    transition: width 2s ease-out;
    position: relative;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-glow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--gold);
    transition: left 2s ease-out;
    left: 0;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ronaldo-img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.8), rgba(10, 22, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.875rem;
    color: var(--silver);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-value.gold {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.stat-subtitle {
    font-size: 0.875rem;
    color: var(--gray);
}

.image-card .stat-image {
    margin: 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-card .stat-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .stat-image img {
    transform: scale(1.05);
}

/* ===== CHAT ===== */
.chat-section {
    width: 100%;
    max-width: 500px; /* más pequeño que el contenedor principal */
    margin: 2rem auto; /* centrado horizontal y espacio arriba/abajo */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.chat-title {
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}

.chat-box {
    height: 200px; /* menos altura para móviles */
    max-height: 250px; /* evita que crezca demasiado */
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.chat-box p {
    margin-bottom: 0.4rem;
    word-wrap: break-word; /* evita que textos largos rompan la caja */
}

.chat-inputs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap; /* para que los inputs se acomoden en móviles */
}

.chat-inputs input {
    flex: 1 1 100%; /* ocupa toda la línea en móvil */
    padding: 0.5rem;
    border-radius: 0.3rem;
    border: none;
    box-sizing: border-box;
}

.chat-inputs button {
    padding: 0.5rem 1rem;
    background: var(--gold);
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: bold;
    flex: 1 1 auto; /* botón se adapta */
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-text {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    color: var(--silver);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--silver);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .ronaldo-img {
        max-height: 400px;
    }
    
    .goal-counter {
        font-size: 7rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cr7-logo {
        font-size: 3rem;
    }
    
    .goal-counter {
        font-size: 5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .goals-number {
        font-size: 3rem;
    }
    
    .hero-image {
        display: none;
    }
}

@media (min-width: 480px) {
    .chat-inputs input {
        flex: 2; /* input ocupa más espacio en tablets/desktop */
    }

    .chat-inputs button {
        flex: 1; /* botón proporcional al input */
    }
}

@media (max-width: 400px) {
    .chat-section {
        padding: 0.5rem;
        margin: 1rem auto;
    }

    .chat-box {
        height: 180px;
    }

    .chat-title {
        font-size: 1rem;
    }
}