/* Variables de Diseño Profesional */
:root {
    --primary-green: #39b54a;
    --dark-green: #1b5e20;
    --bg-dark: #0a0a0a;
    --text-light: #f4f4f4;
    --text-muted: #aaaaaa;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* =========================================
   NAVBAR CON LOGO GIGANTE EN EL MEDIO
========================================= */
.navbar-center-logo {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-green);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center; /* Centra toda la barra */
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 40px; /* Separación entre los botones */
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

/* --- ESTILOS DEL LOGO GIGANTE Y CENTRADO --- */
.logo-item {
    position: relative;
    width: 150px; /* Espacio vacío que dejamos entre NOSOTROS y ACTIVIDADES */
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo-gigante {
    position: absolute; /* Lo sacamos del flujo para que no lo achique el nav */
    top: 50%; /* Lo centramos verticalmente respecto a la barra */
    left: 50%;
    transform: translate(-50%, -35%); /* Lo bajamos un poquito para que cuelgue */
    
    height: 220px; /* ACÁ DEFINÍS EL TAMAÑO: Subilo a 250px si lo querés más grande aún */
    width: auto;
    z-index: 1005; /* Siempre por encima de todo */
    
    /* Efecto de Resplandor Verde (Glow) */
    filter: drop-shadow(0px 0px 20px rgba(57, 181, 74, 0.9));
    animation: glow-respira 3s infinite alternate;
    transition: transform 0.3s ease-in-out;
}

/* Animación para que la luz verde "respire" */
@keyframes glow-respira {
    0% {
        filter: drop-shadow(0px 0px 10px rgba(57, 181, 74, 0.4));
    }
    100% {
        filter: drop-shadow(0px 10px 40px rgba(57, 181, 74, 1));
    }
}

/* Efecto al pasar el mouse por el logo */
.nav-logo-gigante:hover {
    transform: translate(-50%, -40%) scale(1.1); /* Se agranda y sube un pelín */
    cursor: pointer;
}

/* =========================================
   HERO SECTION IMPACTANTE
========================================= */
.hero {
    position: relative;
    height: 80vh; /* Ocupa el 80% de la pantalla */
    background: url('assets/fondo.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda */
    padding: 0 10%;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

/* Efecto Vidrio (Glassmorphism) */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hero-subtitle {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.text-highlight {
    color: var(--primary-green);
}

/* Botón Principal */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(57, 181, 74, 0.4);
}

/* =========================================
   TARJETAS DE INFORMACIÓN MODERNAS
========================================= */
.info-section {
    padding: 0 5%;
    margin-top: -80px; /* Superpone las tarjetas sobre el banner */
    position: relative;
    z-index: 10;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

/* Tarjeta central destacada */
.highlight-card {
    background: linear-gradient(145deg, #1e1e1e, #111);
    border: 1px solid #444;
    transform: translateY(-10px);
}

.glass-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-green);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background: rgba(57, 181, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card i {
    font-size: 2rem;
    color: var(--primary-green);
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 60px;
}

.btn-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-green);
}

/* =========================================
   ESTILOS ESPECÍFICOS DE NOSOTROS
========================================= */
.nosotros-page {
    padding-bottom: 80px;
}

.page-header {
    height: 300px;
    background: url('assets/fondo-nosotros.jpg') center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.history-box h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 2rem;
}

.history-box p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.rounded-img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--primary-green);
    box-shadow: 0 0 15px rgba(57, 181, 74, 0.3);
}

/* Grid de Misión, Visión y Valores */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.mvv-card {
    padding: 30px !important;
}

.mvv-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .glass-container {
        grid-template-columns: 1fr;
    }
    .mvv-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FOOTER PROFESIONAL
========================================= */
.main-footer {
    background: linear-gradient(to top, #000, #111);
    border-top: 2px solid var(--primary-green);
    padding: 60px 0 20px 0;
    margin-top: 50px;
    color: var(--text-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--primary-green));
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--primary-green);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    display: inline-block;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #222;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(57, 181, 74, 0.4);
}

/* Enlaces */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* Barra inferior */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dev-credit span {
    color: var(--primary-green);
    font-weight: bold;
}

/* --- ESTILOS DE AUTENTICACIÓN --- */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('assets/fondo\ login.png') center/cover no-repeat;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 80px; /* Espacio para que el logo gigante respire */
    position: relative;
    height: 100px;
}

.auth-card {
    padding: 40px !important;
}

.auth-card h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-green);
}

.full-width {
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

.toggle-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toggle-text span {
    color: var(--primary-green);
    cursor: pointer;
    font-weight: bold;
}

.hidden { display: none; }

.btn-nav-auth {
    border: 1px solid var(--primary-green);
    padding: 8px 15px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(57, 181, 74, 0.1);
}

.btn-nav-auth:hover {
    background: var(--primary-green) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(57, 181, 74, 0.5);
}

/* =========================================
   ESTILOS DE LA FOTO DE PERFIL EN EL MENÚ
========================================= */
.user-profile-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-profile-pic:hover {
    box-shadow: 0 0 15px var(--primary-green);
    transform: scale(1.05);
}

/* Menú desplegable al pasar el mouse por la foto */
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background: #1a1a1a;
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    min-width: 140px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.user-profile-nav:hover .user-dropdown {
    display: block;
}

.user-dropdown span {
    display: block;
    padding: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
    text-align: center;
    transition: background 0.3s;
}

.user-dropdown span:hover {
    background: var(--primary-green);
}

/* =========================================
   ESTILOS DEL BOTÓN DE GOOGLE
========================================= */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #444;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-google:hover {
    background: #f1f1f1;
}

.btn-google img {
    width: 20px;
}

/* Línea separadora "O también" */
.separator {
    margin: 25px 0 10px 0;
    position: relative;
    text-align: center;
}

.separator span {
    background: #1a1a1a; /* Mismo color de fondo de la tarjeta */
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 0;
}

/* --- ESTILOS DE JUEGOS --- */
.games-section {
    margin-top: 80px;
    text-align: center;
}

.game-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--primary-green);
    box-shadow: 0 0 30px rgba(57, 181, 74, 0.2);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.option-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

#game-feedback {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.correct { background: rgba(57, 181, 74, 0.3); color: #fff; border: 1px solid var(--primary-green); }
.incorrect { background: rgba(255, 0, 0, 0.3); color: #fff; border: 1px solid #ff4d4d; }

.level-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn-level {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    color: white;
}

.btn-level.facil { background: #39b54a; }
.btn-level.medio { background: #f1c40f; color: #000; }
.btn-level.dificil { background: #e74c3c; }

.btn-level:hover { transform: scale(1.1); filter: brightness(1.2); }

.question-title {
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 20px;
    color: var(--text-light);
}
/* --- NAV DE JUEGOS ESTILO GAMER --- */
.games-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: -1px; /* Para que se pegue al contenedor de abajo */
    padding: 0 10px;
}

.game-nav-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    padding: 12px 25px;
    color: var(--text-muted);
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-nav-btn i {
    font-size: 1.1rem;
}

.game-nav-btn:hover {
    color: var(--text-light);
    background: rgba(57, 181, 74, 0.1);
}

.game-nav-btn.active {
    background: var(--bg-dark);
    border-color: var(--primary-green);
    color: var(--primary-green);
    box-shadow: 0 -5px 15px rgba(57, 181, 74, 0.2);
    position: relative;
    z-index: 2;
}

.game-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Ajuste para que el contenedor encaje con el nav */
.game-container {
    border-top: 1px solid var(--primary-green) !important;
}
/* --- TABLA DE RANKING --- */
.ranking-section {
    margin-top: 60px;
    padding-bottom: 100px;
}

.ranking-card {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px !important;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-light);
}

.ranking-table th {
    text-align: left;
    color: var(--primary-green);
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    padding: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.ranking-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Resaltar el Top 3 */
.ranking-table tr:nth-child(1) td:first-child { color: gold; font-weight: bold; font-size: 1.2rem; }
.ranking-table tr:nth-child(2) td:first-child { color: #C0C0C0; font-weight: bold; }
.ranking-table tr:nth-child(3) td:first-child { color: #CD7F32; font-weight: bold; }

.ranking-table tr:hover {
    background: rgba(57, 181, 74, 0.05);
}

/* --- ESTILOS JUEGO BUSCAR OBJETOS --- */
#hidden-object-game {
    text-align: center;
}

.image-wrapper {
    position: relative; /* Importante para posicionar los objetos clickeables */
    display: inline-block;
    margin-bottom: 20px;
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    overflow: hidden; /* Para que nada sobresalga */
}

#game-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.object-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.object-grid li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.object-grid li i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.object-grid li.found {
    color: var(--text-light);
    background: rgba(57, 181, 74, 0.2);
    border-color: var(--primary-green);
    text-decoration: line-through; /* Tacha el objeto encontrado */
}

/* Estilos para las áreas clickeables sobre la imagen (se añadirán con JS) */
.clickable-object {
    position: absolute;
    /* width, height, top, left se definirán en JS para cada objeto */
    cursor: pointer;
    background: rgba(255, 255, 255, 0); /* Invisible al principio */
    /* border: 1px solid red; /* Descomenta esto para depurar las posiciones */
    z-index: 10;
}

.clickable-object.found {
    background: rgba(57, 181, 74, 0.3); /* Resalta el objeto encontrado */
    border: 2px solid var(--primary-green);
    border-radius: 50%; /* O forma cuadrada según el objeto */
}

#game-status {
    margin-top: 30px;
    padding: 20px;
    background: rgba(57, 181, 74, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
}

#game-status p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- JUEGO DE OBJETOS ESCONDIDOS --- */
.hidden-objects-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
}

.main-game-img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--primary-green);
}

/* Áreas invisibles para cliquear */
.hidden-area {
    position: absolute;
    cursor: pointer;
    background: rgba(255, 255, 255, 0); /* Invisible */
    transition: background 0.3s;
    border-radius: 50%;
}

/* Cuando encuentran el objeto, le ponemos un círculo verde */
.hidden-area.found {
    background: rgba(57, 181, 74, 0.3);
    border: 2px solid var(--primary-green);
    pointer-events: none; /* Ya no se puede cliquear */
}

.objects-to-find {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.obj-tag {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.obj-tag.found {
    background: var(--primary-green);
    color: white;
    text-decoration: line-through;
}

/* Ajuste para que el área de clic sea más justa */
.hidden-area {
    border-radius: 5px; /* Menos circular, más preciso */
}

/* Efecto sutil al encontrar en Maestro */
.hidden-area.found {
    background: rgba(57, 181, 74, 0.6);
    box-shadow: 0 0 10px #39b54a;
}

/* --- TIRO AL BLANCO --- */
#game-canvas {
    background: radial-gradient(circle, #1a2a1a 0%, #0d0d0d 100%);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    cursor: crosshair;
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

.game-ui-overlay {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    font-family: 'Oswald', sans-serif;
    color: var(--primary-green);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px !important;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.user-info-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-container {
    position: relative;
}

#user-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--primary-green);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-stats-grid {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-family: 'Oswald', sans-serif;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.badge-item {
    text-align: center;
    opacity: 0.3; /* Bloqueado por defecto */
    transition: 0.3s;
}

.badge-item i {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

.badge-item span { font-size: 0.7rem; }

@media (max-width: 768px) {
    .panel-grid { grid-template-columns: 1fr; }
}

/* --- ADMIN PANEL --- */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px !important;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

#search-user {
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-edit {
    background: transparent;
    color: #f1c40f;
    border: 1px solid #f1c40f;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal Simple */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content { width: 90%; max-width: 400px; padding: 30px !important; }

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* --- LAYOUT SOCIAL REDESIGN --- */
.social-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Muro grande, chat chico */
    gap: 20px;
    padding: 140px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
}

/* MURO PRINCIPAL */
.publicar-estado {
    padding: 20px !important;
    margin-bottom: 20px;
}
.publicar-estado textarea {
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 10px;
    margin: 10px 0;
    resize: none;
}
.post-actions {
    display: flex;
    justify-content: space-between;
}
.post-card {
    margin-bottom: 20px;
    padding: 20px !important;
    animation: fadeIn 0.5s ease;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.post-mood {
    background: rgba(57, 181, 74, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* CHAT LATERAL */
.chat-lateral {
    display: flex;
    flex-direction: column;
    height: 75vh;
    padding: 15px !important;
    position: sticky;
    top: 140px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}
.chat-bubble-mini {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 10px;
}
.chat-input-mini {
    display: flex;
    gap: 5px;
}
.chat-input-mini input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 5px 12px;
    color: white;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .social-layout { grid-template-columns: 1fr; }
    .chat-lateral { display: none; } /* Ocultar chat en móviles */
}

/* --- RED SOCIAL ELOHIM: LAYOUT PROFESIONAL --- */
.social-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* Muro ancho, Chat fino */
    gap: 25px;
    padding: 140px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* MURO (ESTILO FACEBOOK) */
.publicar-estado {
    padding: 25px !important;
    margin-bottom: 25px;
    border: 1px solid rgba(57, 181, 74, 0.3);
}

.publicar-estado textarea {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 15px;
    font-size: 1rem;
    resize: none;
    margin: 15px 0;
}

.post-card {
    padding: 20px !important;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

/* CHAT LATERAL */
.chat-lateral {
    height: 70vh;
    display: flex;
    flex-direction: column;
    padding: 15px !important;
    position: sticky;
    top: 140px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* BURBUJAS Y ICONOS */
.chat-bubble-mini {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
}

.chat-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-green);
    object-fit: cover;
}

/* LA TILDE AZUL (META STYLE) */
.verified-badge {
    color: #0095f6 !important; /* AZUL META */
    font-size: 0.85rem !important;
    margin-right: 5px;
    cursor: help;
    background: none !important; /* Quitamos cualquier fondo verde previo */
    width: auto !important;
    height: auto !important;
}

/* BOTONES DE ACCIÓN */
.btn-send-clean {
    background: transparent;
    border: none;
    color: var(--primary-green);
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-moderador-mini {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.5;
}

.btn-moderador-mini:hover { opacity: 1; }

@media (max-width: 900px) {
    .social-layout { grid-template-columns: 1fr; }
    .chat-lateral { display: none; }
}

/* --- MEJORAS FINALES ZONA SOCIAL --- */

/* Tilde Verificado Azul Meta */
.verified-badge {
    color: #0095f6 !important;
    font-size: 0.8rem !important;
    margin-right: 5px;
    cursor: help;
    background: transparent !important; /* Asegura que no tenga fondo verde */
}

/* Botón de enviar transparente */
#btn-send-chat {
    background: transparent !important;
    border: none;
    color: var(--primary-green);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selector de ánimo estilo Píldora */
.custom-select-wrapper select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: white;
    padding: 8px 15px;
    outline: none;
    cursor: pointer;
}

/* Chat prolijo con foto */
.chat-bubble-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 5px;
}

.chat-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--primary-green);
    object-fit: cover;
}

/* Botón moderador sutil */
.btn-moderador {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.btn-moderador:hover { opacity: 1; transform: scale(1.1); }

/* Tilde Azul Meta */
.verified-badge {
    color: #0095f6 !important;
    font-size: 0.85rem !important;
    margin-right: 5px;
    cursor: help;
}

/* Efecto para los mensajes del Bot */
.chat-bubble-mini img[src*="flaticon"] {
    border-color: #0095f6; /* Borde azul para el oficial */
    box-shadow: 0 0 10px rgba(0, 149, 246, 0.4);
}

/* --- CORRECCIONES CRÍTICAS --- */

/* La Tilde Meta (Forzada Azul) */
.verified-badge {
    color: #0095f6 !important;
    background: transparent !important;
    border: none !important;
    font-size: 0.85rem !important;
    margin-right: 6px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

/* Evitar que el post ocupe toda la pantalla */
.post-card {
    max-height: 400px; /* Evita que crezca infinitamente */
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.post-body {
    padding-top: 10px;
    overflow-y: auto; /* Si el texto es muy largo, permite scroll interno */
}

/* Estilo para la Misión del Bot */
.mision-especial {
    border: 2px solid #0095f6 !important;
    background: rgba(0, 149, 246, 0.05) !important;
}

.mision-tag {
    background: #0095f6;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* Alineación de nombre y tilde */
.user-name-wrapper, .chat-user-name {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Botón enviar limpio */
#btn-send-chat {
    background: transparent !important;
    color: var(--primary-green) !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- FIX TOTAL VRN SYSTEM --- */

/* Tilde Azul Meta con Brillo */
.verified-badge {
    color: #0095f6 !important;
    font-size: 0.8rem !important;
    margin-right: 5px !important;
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 0 2px rgba(0, 149, 246, 0.5));
    cursor: help;
}

/* Limitar tamaño de publicaciones y evitar desbordes */
.post-card {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 15px !important;
    border: 1px solid var(--glass-border);
    max-height: 500px; /* Evita que crezca infinito */
    overflow: hidden;
}

/* CONTROL DE IMÁGENES DENTRO DE POSTS (El fix para el logo G gigante) */
.post-text img, .post-body img {
    max-width: 100%;
    max-height: 250px; /* Tamaño máximo de imagen en post */
    object-fit: contain;
    border-radius: 10px;
    margin-top: 10px;
}

/* Estilo de Misión del Bot */
.mision-card-pro {
    border: 2px solid #0095f6 !important;
    background: rgba(0, 149, 246, 0.05) !important;
}

.badge-mision {
    background: #0095f6;
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

/* Botones de borrar sutiles */
.btn-moderador {
    background: transparent !important;
    border: none !important;
    color: #ff4d4d !important;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px !important;
    box-shadow: none !important;
}

.btn-moderador:hover {
    transform: scale(1.2);
    color: #ff0000 !important;
}

.btn-moderador {
    background: transparent !important;
    border: none !important;
    color: #ff4d4d !important;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px !important;
    box-shadow: none !important;
}

.btn-moderador:hover { transform: scale(1.1); color: #ff0000 !important; }

/* --- AJUSTES FINALES ZONA SOCIAL --- */

/* Tacho de basura más chico y sutil */
.btn-moderador {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.3) !important; /* Gris traslúcido */
    cursor: pointer;
    font-size: 0.75rem !important; /* Más pequeño */
    padding: 4px !important;
    transition: 0.3s;
    box-shadow: none !important;
}

.btn-moderador:hover {
    color: #ff4d4d !important; /* Rojo al pasar el mouse */
    transform: scale(1.2);
}

/* Evitar que las publicaciones o imágenes sean gigantes */
.post-card {
    max-height: 500px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.post-body img {
    max-width: 100%;
    max-height: 250px; /* Altura máxima para imágenes */
    object-fit: contain;
    border-radius: 8px;
}

/* Estilo para la advertencia roja de Alex */
.alex-warning {
    border-left: 3px solid #ff4d4d !important;
    background: rgba(255, 77, 77, 0.1) !important;
}

.admin-task-creator textarea {
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 10px;
    margin-top: 5px;
    resize: none;
}

.form-row-admin {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-top: 15px;
}

.form-row-admin .form-group {
    flex: 1;
}

/* Badge de rol en la tabla */
.badge-rol {
    background: rgba(57, 181, 74, 0.2);
    color: var(--primary-green);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
}

.form-row-admin {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.form-row-admin .form-group {
    flex: 1;
}

.form-group input[type="date"], 
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Estilo para que el input file no se vea feo */
input[type="file"]::file-selector-button {
    background: var(--primary-green);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    margin-right: 10px;
}

/* --- ESTILOS DE TAREAS --- */
.tareas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tarea-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px !important;
    border: 1px solid rgba(57, 181, 74, 0.3);
    transition: 0.3s;
}

.tarea-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.tarea-card h4 {
    color: var(--primary-green);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tarea-card p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.tarea-meta {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-highlight);
}

.tarea-actions {
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

.btn-download {
    display: inline-block;
    background: rgba(0, 149, 246, 0.2);
    color: #0095f6;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-download:hover {
    background: #0095f6;
    color: white;
}

.tareas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.input-file-mini {
    font-size: 0.75rem;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 5px;
    width: 100%;
    margin-bottom: 8px;
}

.btn-primary-mini {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-primary-mini:disabled {
    background: #666;
    cursor: not-allowed;
}

/* =========================================
   ESTILOS DE LA ZONA SOCIAL - VRN SYSTEM
========================================= */

:root {
    --dark-bg: #0b110c; /* Fondo oscuro tipo App */
    --primary-green: #39b54a; /* Verde Elohim */
    --glass-card: #151e16; /* Fondo de las tarjetas oscuro */
}

body.social-body {
    background-color: var(--dark-bg) !important;
    color: #ffffff !important;
}

body.social-body .glass-card {
    background-color: var(--glass-card) !important;
    border: 1px solid rgba(57, 181, 74, 0.1) !important;
    color: #fff !important;
}

.social-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .social-layout {
        grid-template-columns: 1fr;
    }
    .chat-lateral {
        order: -1;
        margin-bottom: 20px;
    }
}

@keyframes palpitar {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

.fuego-animado {
    animation: palpitar 1.5s infinite ease-in-out;
    display: inline-block;
}

.stories-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 0;
    margin-bottom: 25px;
    scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }

.story-circle {
    min-width: 70px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
    padding: 3px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.story-circle:hover { transform: scale(1.05); }
.story-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.story-label {
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}

.publicar-estado {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    background-color: var(--glass-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-input-area {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar-mini {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

#input-post {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    resize: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
}
#input-post::placeholder { color: #666; }

.post-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-icon {
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-icon:hover { color: var(--primary-green); }
.action-icon span { font-size: 0.9rem; font-family: 'Roboto', sans-serif; }

#estado-animo {
    background: transparent;
    border: none;
    color: #888;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
}
#estado-animo option { background: var(--dark-bg); color: #fff; }

.post-card {
    background-color: var(--glass-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.post-header .author-info h4 { margin: 0; font-size: 1.1rem; color: #fff; }
.post-header .author-info p { margin: 0; font-size: 0.8rem; color: #888; }

.post-content { margin-bottom: 15px; line-height: 1.5; font-size: 1.05rem; color: #ddd; }
.post-image img { width: 100%; border-radius: 10px; margin-top: 10px; }

.post-interaction {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}
.interact-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.interact-btn:hover { color: var(--primary-green); }

.chat-lateral {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   ZONA SOCIAL - DISEÑO APP MÓVIL VRN
========================================= */
:root {
    --bg-dark: #0b110c;
    --card-bg: #151e16;
    --card-border: #233324;
    --primary-green: #89b071;
    --text-main: #ffffff;
    --text-muted: #8a9c8d;
    --fab-gradient: linear-gradient(135deg, #a8d58d, #6b8e23);
}

body.social-app-body {
    background-color: #000;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    margin: 0;
}

.app-container {
    width: 100%;
    max-width: 480px; /* Ancho de un celular grande */
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px; /* Espacio para el menú de abajo */
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* HEADER Y TABS */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 20px 10px 20px;
    background: rgba(11, 17, 12, 0.9); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
}
.header-logo { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-icon { font-size: 1.2rem; cursor: pointer; position: relative; }
.notification-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: #e74c3c; border-radius: 50%; }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary-green); object-fit: cover; }

.top-tabs { display: flex; justify-content: space-around; padding: 10px 20px; border-bottom: 1px solid var(--card-border); margin-bottom: 15px; }
.top-tab { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.top-tab.active { color: var(--primary-green); background: rgba(137, 176, 113, 0.1); padding: 5px 12px; border-radius: 15px; }

/* FEED Y FOGATA */
.feed-container { padding: 0 15px; }

.fogata-widget {
    background: var(--card-bg); border: 1px solid #ff8c00; border-radius: 15px;
    padding: 15px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px;
}
.fuego-animado { font-size: 2.5rem; animation: palpitar 1.5s infinite ease-in-out; }
@keyframes palpitar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.fogata-info h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: #ff8c00; font-family: 'Oswald'; }
.fogata-info p { margin: 0 0 8px 0; font-size: 0.8rem; color: #aaa; }
.fogata-bar-bg { width: 100%; height: 6px; background: #111; border-radius: 5px; border: 1px solid #333; }
.fogata-bar-fill { height: 100%; width: 0%; border-radius: 5px; transition: 0.8s; }

.alerta-silencio { background: rgba(231, 76, 60, 0.1); border: 1px solid #e74c3c; color: #e74c3c; padding: 15px; border-radius: 15px; text-align: center; margin-bottom: 20px; }

/* =========================================
   POST CARD Y FEED (Muro)
========================================= */
.post-card { 
    background: var(--card-bg); 
    border: 1px solid var(--card-border); 
    border-radius: 20px; 
    padding: 15px; 
    margin-bottom: 20px; 
}

.post-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 12px; 
}

/* --- El Perfil achicado y ordenado --- */
.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--card-border);
}

.post-meta h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.post-meta p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Texto e Imagen de la publicación --- */
.post-text {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.post-image {
    width: 100%;
    max-height: 350px; /* Límite de altura para que no ocupe toda la pantalla */
    object-fit: cover; /* Mantiene la proporción sin deformarse */
    object-position: center;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Barra de Likes (Footer) --- */
.post-footer {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--card-border);
    padding-top: 12px;
}

.post-footer-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.post-footer-action.liked {
    color: #e74c3c; /* Color rojo para el corazón de Me Gusta */
}
.post-footer-action.liked i {
    color: #e74c3c;
}

/* CHAT GLOBAL */
.chat-container { display: flex; flex-direction: column; height: calc(100vh - 160px); }
.chat-header-title { padding: 10px 20px; border-bottom: 1px solid var(--card-border); }
.chat-header-title h4 { color: var(--primary-green); margin: 0; }
.chat-header-title p { font-size: 0.8rem; color: var(--text-muted); margin: 5px 0 0 0; }
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 15px; }
.chat-input-area { display: flex; gap: 10px; padding: 15px; background: var(--card-bg); border-top: 1px solid var(--card-border); }
#input-chat { flex-grow: 1; padding: 12px 15px; border-radius: 20px; border: none; background: #222; color: #fff; outline: none; }
#btn-send-chat { background: var(--primary-green); color: #000; border: none; border-radius: 50%; width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; cursor: pointer; }

/* BOTTOM NAV Y FAB */
.bottom-nav { position: fixed; bottom: 0; width: 100%; max-width: 480px; height: 70px; background: rgba(21, 30, 22, 0.95); backdrop-filter: blur(15px); border-top: 1px solid var(--card-border); display: flex; justify-content: space-around; align-items: center; z-index: 1000; }
.nav-item { color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.7rem; cursor: pointer; flex: 1; text-decoration: none; }
.nav-item.active { color: var(--primary-green); }
.fab-wrapper { position: relative; flex: 1; display: flex; justify-content: center; }
.fab-button { position: absolute; top: -35px; width: 60px; height: 60px; border-radius: 50%; background: var(--fab-gradient); display: flex; justify-content: center; align-items: center; font-size: 2rem; color: #111; border: 4px solid var(--bg-dark); cursor: pointer; z-index: 1001; transition: 0.3s; }

/* MODAL DE PUBLICACIÓN */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: none; justify-content: center; align-items: flex-end; }
.modal-overlay.active { display: flex; }
.modal-content { width: 100%; max-width: 480px; background: var(--card-bg); border-radius: 20px 20px 0 0; padding: 20px; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.modal-header button { background: none; border: none; color: var(--primary-green); font-weight: bold; cursor: pointer; }
#input-post { width: 100%; background: transparent; border: none; color: #fff; font-size: 1.1rem; resize: none; outline: none; min-height: 100px; font-family: 'Roboto', sans-serif; }
.modal-tools { display: flex; gap: 20px; border-top: 1px solid var(--card-border); padding-top: 15px; }
.tool-btn { display: flex; align-items: center; gap: 5px; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; }
.tool-btn select { background: transparent; border: none; color: var(--text-muted); outline: none; }
.tool-btn select option { background: var(--bg-dark); }
.btn-publicar-modal { width: 100%; background: var(--fab-gradient); border: none; padding: 12px; border-radius: 10px; color: #000; font-weight: bold; margin-top: 15px; cursor: pointer; }

/* MENÚ DEL FAB */
.fab-menu { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) scale(0.9); width: 250px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 10px; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 999; }
.fab-menu.active { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.fab-menu-item { padding: 12px; color: #fff; display: flex; gap: 10px; align-items: center; cursor: pointer; border-radius: 8px; }
.fab-menu-item:hover { background: rgba(255,255,255,0.05); }
.fab-menu-item i { color: var(--primary-green); }

/* =========================================
   BUSCADOR, NOTIFICACIONES Y COMENTARIOS
========================================= */
.header-logo img { width: 32px; height: 32px; object-fit: contain; }

/* Menú de Notificaciones */
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.notif-item i { color: var(--primary-green); margin-top: 3px; }
.notif-item p { margin: 0; font-size: 0.85rem; color: #ddd; line-height: 1.3; }
.notif-item span { display: block; font-size: 0.7rem; color: #888; margin-top: 4px; }



.comment-item { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid #333; }
.comment-content { background: rgba(255, 255, 255, 0.05); padding: 8px 12px; border-radius: 0 15px 15px 15px; font-size: 0.85rem; width: 100%; }
.comment-content strong { color: var(--primary-green); display: block; margin-bottom: 3px; }

.comment-input-area { display: flex; gap: 10px; margin-top: 15px; align-items: center; }
.comment-input-area input { flex-grow: 1; background: #222; border: 1px solid #333; padding: 10px 15px; border-radius: 20px; color: #fff; outline: none; font-size: 0.85rem;}
.comment-input-area button { background: var(--primary-green); border: none; width: 38px; height: 38px; border-radius: 50%; color: #000; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s;}
.comment-input-area button:hover { transform: scale(1.1); }

/* =========================================
   BUSCADOR, NOTIFICACIONES Y COMENTARIOS (FIXED)
========================================= */

/* Logo más grande y alineado */
.header-logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: #fff; text-decoration: none; }
.header-logo img { width: 45px !important; height: 45px !important; object-fit: contain; }

/* Nuevo panel de Notificaciones */
.notif-dropdown {
    position: absolute;
    top: 75px;
    right: 15px;
    width: 280px;
    background: #111a12; /* Fondo oscuro y sólido */
    border: 1px solid var(--primary-green);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 2000;
    display: none; /* Oculto por defecto */
}
.notif-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.notif-item:last-child { border-bottom: none; }
.notif-item i { color: var(--primary-green); margin-top: 3px; font-size: 1.1rem; }
.notif-item p { margin: 0; font-size: 0.9rem; color: #ddd; line-height: 1.4; }
.notif-item span { display: block; font-size: 0.75rem; color: #888; margin-top: 4px; }



.comment-item { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.comment-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 1px solid var(--card-border); flex-shrink: 0; /* Evita que la foto se aplaste */ }
.comment-content { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 10px 14px; 
    border-radius: 0 15px 15px 15px; 
    font-size: 0.9rem; 
    width: 100%; 
    color: #eee;
    word-wrap: break-word; /* Evita que textos largos rompan la burbuja */
}
.comment-content strong { color: var(--primary-green); display: block; margin-bottom: 4px; font-size: 0.95rem; }

/* Caja para escribir el comentario */
.comment-input-area { display: flex; gap: 10px; margin-top: 15px; align-items: center; background: #0b110c; padding: 6px 10px; border-radius: 25px; border: 1px solid var(--card-border); }
.comment-input-area input { flex-grow: 1; background: transparent; border: none; color: #fff; outline: none; font-size: 0.9rem; padding: 5px; }
.comment-input-area button { background: var(--primary-green); border: none; width: 35px; height: 35px; border-radius: 50%; color: #000; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; flex-shrink: 0; }
.comment-input-area button:hover { transform: scale(1.1); }

/* ============================================================
   SECCIÓN DE COMENTARIOS - VRN SYSTEM ARREGLO DE FLUJO
============================================================ */

/* 1. Contenedor Principal de Comentarios:
   Usamos Flexbox en columna para que los comentarios se apilen
   naturalmente. Eliminamos márgenes negativos y alturas fijas. */
.comments-section {
    margin-top: 15px;
    border-top: 1px solid var(--card-border);
    padding-top: 15px;
    display: none; /* JS controla esto */
    flex-direction: column;
    gap: 12px; /* Espaciado automático y limpio entre comentarios */
}

/* Estado activo controlado por JS */
.comments-section.active {
    display: flex; /* Cambiamos a Flex cuando está activo */
    animation: fadeIn 0.3s;
}

/* 2. Item Individual de Comentario:
   Aseguramos que no tenga márgenes negativos que causen superposición.
   Alineación Flex para foto y texto al lado. */
.comment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0; /* VRN FIX: Importante limpiar márgenes aquí */
    padding: 0;
}

/* 3. Avatar en Comentarios:
   Mismo tamaño que en el diseño de referencia.
   Importante: flex-shrink 0 para que no se deforme. */
.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--card-border);
    flex-shrink: 0; /* VRN FIX: No se aplasta */
    margin-top: 2px;
}

/* 4. Burbuja de Contenido del Comentario:
   VRN FIX: Usamos altura automática y word-wrap.
   Eliminamos márgenes negativos.
   Sección para asegurar que el feed no se rompa por textos largos. */
.comment-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    color: #eee;
    width: 100%;
    
    /* VRN FIXES CRÍTICOS PARA FLUJO */
    height: auto;               /* Altura automática basada en el texto */
    margin: 0;                  /* Limpiar márgenes negativos */
    overflow-wrap: break-word;   /* Rompe palabras largas para que no se salga de la burbuja */
    word-wrap: break-word;       /* Compatibilidad */
    box-sizing: border-box;       /* Padding no afecta el ancho total */
}

/* Nombre del autor dentro del comentario */
.comment-content strong {
    color: var(--primary-green);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

/* 5. Caja de Entrada de Comentario:
   VRN FIX: Alineación propia dentro del flujo flex.
   Mismo diseño de referencia. */
.comment-input-area {
    display: flex;
    gap: 10px;
    margin-top: 10px; /* Separación del último comentario */
    align-items: center;
    background: #0b110c;
    padding: 6px 10px;
    border-radius: 25px;
    border: 1px solid var(--card-border);
    width: 100%;
    box-sizing: border-box;
    order: 99; /* Asegura que siempre vaya al final de la lista flex */
}

/* Input y Botón de la caja */
.comment-input-area input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    padding: 5px;
}

.comment-input-area button {
    background: var(--primary-green);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.comment-input-area button:hover { transform: scale(1.1); }


/* ============================================================
   REPARACIÓN EXTRA: PANEL DE NOTIFICACIONES Y LOGO
============================================================ */

/* VRN FIX: Logo más grande como en el diseño de referencia */
.header-logo img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
}

/* VRN FIX: Panel de notificaciones sólido y bien posicionado */
.notif-dropdown {
    position: absolute;
    top: 75px;
    right: 15px;
    width: 280px;
    background: #0b110c; /* VRN FIX: Fondo sólido para no transparentar */
    border: 1px solid var(--primary-green);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
}
.notif-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* --- ESTILO INSIGNIA DE LIDER CON IMAGEN --- */
.insignia-lider-img {
    width: 22px; 
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 5px;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
    animation: palpitarInsignia 2s infinite ease-in-out;
}

@keyframes palpitarInsignia {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2) drop-shadow(0 0 6px gold); }
}

/* --- ESTILOS PÁGINA DE LOGROS --- */
.logros-view-container { padding: 20px; padding-top: 85px; padding-bottom: 100px; }

.logros-stats-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-green);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
}

.stat-item span { display: block; font-size: 1.5rem; font-weight: bold; color: var(--primary-green); text-align: center;}
.stat-item p { font-size: 0.75rem; color: #888; margin: 0; }

.logros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.logro-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    transition: 0.3s;
}

.logro-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%); /* GRIS POR DEFECTO */
    opacity: 0.2;
    transition: 0.5s all;
}

.logro-item p { font-size: 0.7rem; color: #666; margin-top: 8px; font-weight: 500; }

/* CUANDO SE DESBLOQUEA */
.logro-item.unlocked {
    background: rgba(137, 176, 113, 0.08);
    border: 1px solid var(--primary-green);
}

.logro-item.unlocked .logro-img {
    filter: grayscale(0%) drop-shadow(0 0 8px gold);
    opacity: 1;
    transform: scale(1.1);
}

.logro-item.unlocked p { color: #fff; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- INSIGNIAS EN EL PERFIL --- */
.profile-badges-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.profile-badge-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
    transition: 0.3s;
}

.profile-badge-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px gold);
}

/* --- ESTILOS DE LOGROS --- */
.logros-view-container { padding: 20px; padding-top: 85px; padding-bottom: 100px; }

.logros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.logro-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px 5px;
    text-align: center;
    transition: 0.3s;
}

.logro-icon-wrapper { position: relative; margin-bottom: 8px; }

.logro-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: 0.5s ease;
}

/* Estado Bloqueado: Gris y opaco */
.logro-item.locked .logro-img {
    filter: grayscale(100%);
    opacity: 0.2;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Estado Desbloqueado: Color y Brillo */
.logro-item.unlocked {
    background: rgba(137, 176, 113, 0.1);
    border: 1px solid var(--primary-green);
    box-shadow: 0 0 15px rgba(137, 176, 113, 0.1);
}

.logro-item.unlocked .logro-img {
    filter: grayscale(0%) drop-shadow(0 0 8px gold);
    opacity: 1;
    transform: scale(1.1);
}

.logro-item p { font-size: 0.65rem; color: #777; margin: 0; font-weight: 500; }
.logro-item.unlocked p { color: #fff; }

/* --- ANIMACIONES PARA RECLAMO DE INSIGNIA --- */
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes floatMedalla {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 15px gold) brightness(1); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 25px gold) brightness(1.2); }
}

/* Estilo para el botón de reclamo al pasar el mouse */
#btn-reclamar-racha:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Estilo para el botón de cierre al pasar el mouse */
#btn-cerrar-modal-racha:hover {
    color: #fff;
    transform: rotate(90deg);
}

.option-btn.correct {
    background-color: #39b54a !important;
    color: white !important;
    border-color: #39b54a !important;
}

.option-btn.wrong {
    background-color: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
}

/* Feedback visual del Conquistador */
.option-btn.correct {
    background-color: #39b54a !important; /* Verde */
    color: white !important;
    border-color: #2e7d32 !important;
    transform: scale(1.05);
}

.option-btn.wrong {
    background-color: #e74c3c !important; /* Rojo */
    color: white !important;
    border-color: #c0392b !important;
}

/* Para que los cambios se vean suaves */
.option-btn {
    transition: all 0.3s ease;
}

/* --- SECCIÓN INSCRIPCIÓN --- */
.enrollment-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.enroll-container {
    display: flex;
    gap: 40px;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.enroll-text {
    flex: 1;
    min-width: 300px;
}

.enroll-requirements {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.enroll-requirements li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 1.1rem;
}

.enroll-requirements i {
    color: var(--primary-green, #39b54a);
    margin-right: 10px;
}

.enroll-form {
    flex: 1.2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.enroll-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.enroll-form input:focus {
    border-color: #39b54a;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(57, 181, 74, 0.3);
}

@media (max-width: 768px) {
    .form-row { flex-direction: column; }
    .enroll-container { padding: 25px; }
}


/* =========================================
   CHATBOT LÍDER GUÍA (IA) - VRN SYSTEM
   ========================================= */

#lider-guia-container {
    position: fixed;
    bottom: 30px; /* Margen más alto para que la animación no lo saque de la pantalla */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* El círculo del bot */
.guia-personaje {
    width: 75px;
    height: 75px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: flotarGuia 3s infinite ease-in-out;
    
    /* Efecto de círculo de vidrio sin fondo negro */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Fondo casi transparente */
    backdrop-filter: blur(5px);
    border: 3px solid var(--primary-green);
    box-shadow: 0 0 20px rgba(57, 181, 74, 0.5);
    
    /* Centrado de imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Corta cualquier borde cuadrado de la imagen */
}

.guia-personaje:hover { 
    transform: scale(1.1); 
    box-shadow: 0 0 30px rgba(57, 181, 74, 0.8);
}

.guia-personaje img { 
    width: 90%; /* Un poquito más chico que el contenedor para que respire */
    height: 90%; 
    object-fit: contain; 
}

/* Animación de flotado corregida (solo va hacia arriba para no salirse de la pantalla) */
@keyframes flotarGuia {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =========================================
   VENTANA DE CHAT IA (Estilos)
   ========================================= */
.chat-ia-window {
    width: 320px;
    height: 450px;
    background: rgba(10, 15, 10, 0.95);
    border: 1px solid var(--primary-green);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(57, 181, 74, 0.3);
    position: absolute;
    bottom: 90px;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
    transform: scale(1);
    opacity: 1;
}

.chat-ia-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chat-ia-header {
    background: var(--primary-green);
    color: #000;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

.chat-ia-header button {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-ia-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-ia {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 2px;
}

.msg-user {
    align-self: flex-end;
    background: var(--primary-green);
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.chat-ia-footer {
    display: flex;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-ia-footer input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px;
    border-radius: 20px;
    color: #fff;
    outline: none;
}

.chat-ia-footer button {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 1.2rem;
    padding: 0 10px;
    cursor: pointer;
}

/* =========================================
   INTRO ANIMADA VRN SYSTEM - ESTILOS ACTUALIZADOS
   ========================================= */

.vrn-intro-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(5, 8, 5, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
    overflow-y: auto; /* Por si la pantalla del celu es muy chiquita */
}

.vrn-intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.vrn-intro-logo {
    width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(57, 181, 74, 0.8));
    animation: flyInVRN 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flyInVRN {
    0% { transform: translateX(-150vw) rotate(-30deg) scale(0.5); opacity: 0; }
    70% { transform: translateX(20px) rotate(10deg) scale(1.1); opacity: 1; }
    100% { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
}

/* CAJA MÁS ANCHA Y ADAPTABLE */
.vrn-intro-box {
    background: rgba(20, 25, 20, 0.8);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px; /* Más ancha para que entre bien la explicación */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
    animation: dropInBoxVRN 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.5s; 
}

@keyframes dropInBoxVRN {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* LA NUEVA GRILLA DE EXPLICACIÓN */
.vrn-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    text-align: left;
    margin-bottom: 20px;
}

.vrn-feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.vrn-feature-item:hover {
    background: rgba(57, 181, 74, 0.1);
    border-color: rgba(57, 181, 74, 0.3);
}

.vrn-feature-icon {
    font-size: 2rem;
    color: var(--primary-green);
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.vrn-feature-item h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.vrn-feature-item p {
    margin: 0;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.4;
}

.vrn-hide-completely {
    display: none !important;
}

/* Ajustes para celulares chicos */
@media screen and (max-width: 600px) {
    .vrn-intro-box { padding: 25px; }
    .vrn-features-grid { grid-template-columns: 1fr; gap: 15px; }
    .vrn-intro-logo { width: 120px; }
    .vrn-feature-icon { width: 40px; height: 40px; font-size: 1.5rem; }
}