/* --- 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;
}
