/* --- ESTILOS PARA WEB (Pantallas grandes) --- */
@media (min-width: 769px) {
    .banner { display: flex; align-items: center; justify-content: center; gap: 80px; padding: 0 10%; }
    .banner-texto { flex: 1; max-width: 600px; }
    .banner-texto h1 { font-size: 64px; line-height: 1.1; }
    .banner-imagen { flex: 1; display: flex; justify-content: center; }
    
    /* CORREGIDO: Se quitó el width: 650px !important para evitar que agrande la imagen */
    #imagenBanner { 
        max-width: 100%; 
        height: auto; 
        border-radius: 12px; 
        transition: transform 0.4s ease; 
    }
    
    .formulario { max-width: 500px !important; margin: 100px auto !important; background: rgba(255, 255, 255, 0.03); padding: 40px !important; border-radius: 20px; border: 1px solid rgba(0, 255, 255, 0.1); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); }
}

.contenedor-3d-graficos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 50px;
    perspective: 2000px;
}

.card-grafico {
    background: rgba(11, 15, 26, 0.9);
    border: 2px solid cyan;
    border-radius: 20px;
    padding: 20px;
    width: 450px;
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    will-change: transform;
}

.card-grafico canvas {
    transform: translateZ(50px);
}

.card-grafico:hover {
    transform: rotateY(15deg) rotateX(5deg) translateZ(20px);
    border-color: cyan;
}

@media (max-width: 768px) {
    .card-grafico:active {
        transform: rotateY(-15deg) scale(0.95);
    }
}

/* --- BOTONES NEÓN --- */
.formulario .btn-azul:hover, .btn-azul:hover {
    background: cyan !important;
    color: #111 !important;
    box-shadow: 0 0 20px cyan, 0 0 40px cyan, 0 0 60px cyan !important;
}

/* --- ESTILO DARK PARA EL FORMULARIO --- */
.formulario input, 
.formulario textarea {
    background: rgba(15, 22, 38, 0.9) !important;
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    color: #00f7ff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.3s ease;
}

.formulario input::placeholder, 
.formulario textarea::placeholder {
    color: rgba(0, 255, 255, 0.4) !important;
}

.formulario input:focus, 
.formulario textarea:focus {
    background: rgba(20, 30, 50, 1) !important;
    border-color: cyan !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

.formulario .btn-azul {
    margin-top: 20px !important;
}

/* FUENTES BASE */
body {
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 1px;
}

h1, h2, h3, .boton-grande {
    font-family: 'Russo One', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p, label, input {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 400;
}

/* --- CÁPSULA VISITANTE --- */
.visitor-zone {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 20px !important;
    margin-top: 25px !important;
}

.visitor-text {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 22px !important;
    color: #00eaff !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.capsule {
    position: relative;
    width: 240px;
    margin: 0 !important;
    flex-shrink: 0;
}

.capsule-frame {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

#visitorCounter {
    position: absolute;
    top: 50%; 
    left: 54% !important;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 36px !important; /* <-- Ajustado a 26px para que no explote la cápsula */
    font-weight: 900;
    color: #00f3ff;
    letter-spacing: 4px;
    white-space: nowrap; 
    text-shadow: 0 0 8px #00f3ff, 0 0 15px rgba(0, 243, 255, 0.6);
    z-index: 10;
}
/* <-- Aquí había una llave "}" extra que borré, era la que causaba todo el problema */

/* =========================================================
   REGLA ÚNICA PARA BIENVENIDA Y CARRUSEL (TAMAÑO COMPACTO)
   ========================================================= */
.caja-foto-ordenada {
    width: 90% !important;
    max-width: 480px !important;
    margin: 15px auto !important;
    border: 1px solid rgba(0, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: block !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2) !important;
}

.caja-foto-ordenada img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}
/* Contenedor flotante superior derecho para Web */
.language-floating-container {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 99999;
}

.lang-globe-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    color: #00ffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.lang-globe-btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 15px #00ffff;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid #00ffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
    min-width: 130px;
}

.lang-dropdown.active {
    display: flex;
    flex-direction: column;
}

.lang-dropdown button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-dropdown button:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}