/* --- 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; }
    #imagenBanner { width: 650px !important; max-width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2); transition: transform 0.4s ease; }
    #imagenBanner:hover { transform: scale(1.03); }
    .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; /* Aumentamos la profundidad */
}

.card-grafico {
    background: rgba(11, 15, 26, 0.9);
    border: 2px solid cyan;
    border-radius: 20px;
    padding: 20px;
    width: 450px;
    /* Quitamos el transition para que el movimiento sea instantáneo al mouse */
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    will-change: transform; /* Optimiza para que no se trabe */
}

/* El brillo lo dejamos fijo para que se vea potente */
.card-grafico canvas {
    transform: translateZ(50px); /* Esto hace que el gráfico "flote" fuera de la tarjeta */
}

/* Giro en Web */
.card-grafico:hover {
    transform: rotateY(15deg) rotateX(5deg) translateZ(20px);
    border-color: cyan;
}

/* Giro en Celular (al tocar) */
@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 (WEB Y MÓVIL) --- */

.formulario input, 
.formulario textarea {
    background: rgba(15, 22, 38, 0.9) !important; /* Fondo azul oscuro profundo */
    border: 1px solid rgba(0, 255, 255, 0.2) !important; /* Borde cian sutil */
    color: #00f7ff !important; /* Texto neón al escribir */
    padding: 15px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.3s ease;
}

/* Color del texto de sugerencia (Placeholder) */
.formulario input::placeholder, 
.formulario textarea::placeholder {
    color: rgba(0, 255, 255, 0.4) !important;
}

/* Efecto cuando haces clic para escribir */
.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); /* Un pequeño levante al escribir */
}

/* Ajuste específico para que el botón no quede pegado al textarea */
.formulario .btn-azul {
    margin-top: 20px !important;
}

/* Aplicar a toda la web una base moderna */
body {
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 1px;
}

/* Los títulos deben ser los más agresivos */
h1, h2, h3, .boton-grande {
    font-family: 'Russo One', sans-serif !important;
    text-transform: uppercase; /* Todo en mayúsculas para más impacto */
    letter-spacing: 2px;
}

/* El texto de los párrafos que sea legible pero técnico */
p, label, input {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 400;
}

/* ==========================
   CÁPSULA VISITANTE ESCRITORIO
========================== */

.capsule {
    position: relative;
    width: 260px; /* Tamaño ideal para escritorio */
    margin: 15px auto 0;
}

.capsule-frame {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

#visitorCounter {
    position: absolute;
    /* Ajusta este valor (44% o 50%) dependiendo de dónde esté el "cristal" en tu imagen */
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* === ESTILOS VISUALES FALTANTES === */
    font-family: 'Orbitron', sans-serif;
    font-size: 24px; /* Tamaño más grande para computador */
    font-weight: 900;
    color: #00f3ff;
    letter-spacing: 4px;
    white-space: nowrap; /* CRUCIAL: Evita que el número se rompa en dos líneas */
    
    /* Brillo Neón */
    text-shadow: 
        0 0 8px #00f3ff, 
        0 0 15px rgba(0, 243, 255, 0.6);
        
    z-index: 10;
}

.visitor-zone {
    display: flex !important;
    flex-direction: row !important;   /* Los coloca uno al lado del otro */
    align-items: center !important;   /* Alinea el texto verticalmente con el centro de la cápsula */
    justify-content: flex-start;      /* O usa 'center' según prefieras */
    gap: 20px !important;             /* Separación entre el texto y la cápsula */
    margin-top: 25px !important;
}

.visitor-text {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 22px !important;
    color: #00eaff !important;
    white-space: nowrap !important;   /* Evita que el texto "Eres el visitante..." salte de línea */
    margin: 0 !important;
}

.capsule {
    position: relative;
    width: 240px;                     /* Tamaño ideal en escritorio */
    margin: 0 !important;             /* IMPORTANTE: Quitamos el 'auto' para que no brinque abajo */
    flex-shrink: 0;                   /* Impide que se deforme la cápsula */
}

.capsule-frame {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

#visitorCounter {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; 
    font-weight: 900;
    color: #00f3ff;
    letter-spacing: 4px;
    white-space: nowrap; 
    
    /* Brillo Neón */
    text-shadow: 
        0 0 8px #00f3ff, 
        0 0 15px rgba(0, 243, 255, 0.6);
        
    z-index: 10;
}