/* ==========================================================
   ALVORA - ESTILOS MAESTROS (Simbiosis Gemini&Pablo)
   Versión 1000X1000 - Blindada para Seguridad y Belleza
========================================================== */

/* Regla de oro: Reseteo y Escala */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Evita el cuadro azul al tocar en móvil */
}

:root {
    --color-fondo: #FDFBF7; 
    --color-primario: #5D4037; 
    --color-acento: #D4AF37; 
    --color-blanco: #FFFFFF;
    --color-seguridad: #4caf50; /* Verde Confianza */
    --color-error: #c0392b;     /* Rojo Amores/Salir */
    
    --gradiente-dorado: linear-gradient(135deg, #E6C258 0%, #D4AF37 100%);
    --gradiente-oscuro: linear-gradient(to top, #4A2E2B, #5D4037);
    
    --sombra-suave: 0 8px 25px rgba(93, 64, 55, 0.08);
    --sombra-boton: 0 12px 25px rgba(212, 175, 55, 0.35);
    --sombra-premium: 0 10px 30px rgba(0,0,0,0.12);
}

body {
    background: radial-gradient(circle at top, #FFFFFF, var(--color-fondo));
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-primario);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Contenedor Maestro */
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   COMPONENTES DE NAVEGACIÓN Y SEGURIDAD
========================================================== */

/* Barra Verde: Círculo de Confianza */
.barra-seguridad, .barra-seguridad-main, .barra-seguridad-bienvenida {
    transition: all 0.3s ease;
    text-decoration: none;
}

.barra-seguridad:active, .barra-seguridad-main:active {
    background-color: #c8e6c9 !important;
    transform: translateX(-50%) scale(0.98) !important;
}

/* Nav Bar Superior */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1.5px solid rgba(93, 64, 55, 0.08);
    margin-bottom: 25px;
}

/* ==========================================================
   EL MOTOR DE GRABACIÓN (Barra Marrón)
========================================================== */
.record-bar {
    z-index: 1000; /* Siempre por encima de todo */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-salir-grabacion {
    transition: background 0.2s;
}

.btn-salir-grabacion:active {
    background: rgba(255,255,255,0.3) !important;
}

/* ==========================================================
   TARJETAS DE IA Y RECUERDOS
========================================================== */
.card-recuerdo {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo para las citas de la IA */
.card-recuerdo p {
    font-style: italic;
    color: #5D4037;
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
    padding: 0 10px;
}

/* ==========================================================
   BOTONES Y ACCIONES
========================================================= */
.btn-main {
    background: var(--gradiente-dorado);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--sombra-boton);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.btn-main:active {
    transform: scale(0.88) translateY(5px);
}

/* Animación Ondas de Grabación (Rojo ALVORA) */
@keyframes pulso-ondas {
    0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); }
    70% { box-shadow: 0 0 0 40px rgba(192, 57, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

.grabando {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    animation: pulso-ondas 1.2s infinite !important;
}

/* Tipografía */
h1, h2 { font-weight: 800; letter-spacing: -0.5px; color: var(--color-primario); }
p { font-size: 1.1rem; font-weight: 500; }