:root {
    --yt-red: #ff0000;
    --yt-red-dark: #cc0000;
    --accent-cyan: #3cffd0;
    --bg-dark: #0f0f0f;
    --bg-light: #f2f2f2;
    --text-dark: #ffffff;
    --text-light: #0f0f0f;
    --figma-text-dark: #f2f2f2;
    --figma-text-light: #0f0f0f;
    --border-light: #d1d1d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Archivo", sans-serif;
}

body {
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body.light-theme {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.section-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--yt-red);
    color: white;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: var(--yt-red-dark);
}

.btn-outline-figma {
    background-color: transparent;
    border: 2px solid var(--yt-red);
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dark-theme .btn-outline-figma {
    color: var(--figma-text-dark);
}
.light-theme .btn-outline-figma {
    color: var(--figma-text-light);
}

.btn-outline-figma:hover {
    background-color: rgba(255, 0, 0, 0.05);
    border-color: var(--yt-red-dark);
    transform: translateY(-2px);
}

/* Colores Dinámicos */
.dark-theme .persona-name,
.dark-theme .metric-number {
    color: var(--accent-cyan) !important;
}

.light-theme .persona-name,
.light-theme .metric-number {
    color: var(--yt-red) !important;
}

/* Fix Contraste Profile labels */
.light-theme .profile-label {
    color: var(--yt-red) !important;
}
.dark-theme .profile-label {
    color: white !important;
}

/* Cards visibility */
.light-theme .stats-card,
.light-theme .stats-card-centered {
    border: 1px solid var(--border-light) !important;
    background: white;
}

.dark-theme .stats-card,
.dark-theme .stats-card-centered {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-number {
    font-weight: 700;
    letter-spacing: -0.05em;
}

.instruction-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.key-cap {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* --- AJUSTE DE TAMAÑO DE IMAGEN (Solo para el contenido, no para botones) --- */
/* Reducimos solo los contenedores de las secciones de contenido */
.section-page .aspect-video,
.section-page .aspect-square {
    max-width: 80% !important;
    margin-left: auto;
    margin-right: auto;
}

/* Forzamos que la imagen dentro del contenedor ocupe el 100% de ese contenedor */
.section-page .aspect-video img,
.section-page .aspect-square img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* PROTECCIÓN TOTAL: Esto asegura que las banderas del botón nunca se alteren */
#lang-flag-container img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}
@media (min-width: 768px) {
    /* 1. Hacemos que las imágenes ocupen más ancho y reducimos el gap */
    #section-2 .grid-cols-3 {
        grid-template-columns: repeat(4, 1fr) !important; /* Ahora caben las 4 en línea */
        gap: 12px !important; /* Espacio reducido entre ellas */
        max-width: 95% !important; /* Expandimos el contenedor hacia los lados */
    }

    /* 2. Quitamos el límite del 80% solo para estas imágenes específicas */
    #section-2 .aspect-square {
        max-width: 100% !important;
    }
}
