/* ---------------------------------------------------------
   ESTILOS GENERALES — TEQUIERO.COM
   Versión Ruta D (frontend funcional, sin backend)
--------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body.fondo-tequiero {
    background: radial-gradient(circle at center, #0a0f1a, #05070c);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------------------------------------------------------
   FORMULARIOS (login / register)
--------------------------------------------------------- */

.contenedor-formulario {
    width: 90%;
    max-width: 420px;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.titulo {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.subtitulo {
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.8;
}

.formulario label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.formulario input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-tequiero {
    width: 100%;
    padding: 14px;
    background: #4bb8ff;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-tequiero:hover {
    background: #82d4ff;
}

.texto-secundario {
    text-align: center;
    margin-top: 15px;
    opacity: 0.8;
}

.link {
    color: #4bb8ff;
    text-decoration: none;
}

.mensaje-error {
    background: rgba(255,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

/* ---------------------------------------------------------
   DASHBOARD
--------------------------------------------------------- */

.header-dashboard {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-contenido {
    margin-top: 90px;
    width: 90%;
    max-width: 900px;
    display: grid;
    gap: 20px;
}

.tarjeta {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.valor-coherencia {
    font-size: 42px;
    margin-top: 10px;
}

.lista-miembros {
    max-height: 300px;
    overflow-y: auto;
}

.lista-miembros::-webkit-scrollbar {
    width: 6px;
}

.lista-miembros::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* ---------------------------------------------------------
   SESIÓN TEQUIERO — 5 FASES
--------------------------------------------------------- */

.fase {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

#fase1 { display: flex; }

/* Títulos */
.titulo-fase {
    font-size: 48px;
    margin-bottom: 10px;
}

.texto-fase {
    font-size: 20px;
    opacity: 0.8;
}

/* ---------------------------------------------------------
   ANIMACIONES CCE (simples pero funcionales)
--------------------------------------------------------- */

.cce {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    opacity: 0.15;
    animation: respirar 6s ease-in-out infinite;
}

@keyframes respirar {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.08); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.15; }
}

/* Variantes */
.fondo { background: radial-gradient(circle, #4bb8ff, transparent); }
.geometria { background: radial-gradient(circle, #ff7bff, transparent); }
.canal { background: radial-gradient(circle, #ffe066, transparent); }
.luz { background: radial-gradient(circle, #a0ff9d, transparent); }
.integracion { background: radial-gradient(circle, #ffffff, transparent); }

/* Resultado final */
.resultado {
    margin-top: 40px;
    font-size: 20px;
}

#coherencia-final {
    font-size: 48px;
    margin-top: 10px;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 600px) {
    .titulo-fase {
        font-size: 36px;
    }
    .cce {
        width: 200px;
        height: 200px;
    }
}
