/* src/styles.css 
  Estilos globales para los portales públicos de registro - JNJ Monterrey 2026 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Paleta de colores oficial de la Jornada */
    --color-primary: #005896;
    --color-primary-hover: #1d71b8;
    --color-secondary: #b80e5c;
    --color-accent: #a3e635; /* Neon Lime de la marca */
    
    /* Fondos y textos (Modo claro para el público) */
    --color-bg: #f8fafc; /* Slate 50 */
    --color-surface: #ffffff;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */

    /* =========================================
       PALETAS DE COLORES POR MÓDULO (JNJ 2026)
       ========================================= */
    --mod-obispos: #701A42;
    --mod-clero: #4C1D95;
    --mod-voluntarios: #EA580C;
    --mod-prensa: #0284C7;
    --mod-festival: #E11D48;
    --mod-vida-consagrada: #059669;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía de iconos limpia */
.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; 
}

/* Scrollbar estilizado y discreto */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   CLASES DE FORMULARIO MAESTRAS
   ========================================= */

/* Glassmorphism para contenedores de registro */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-radius: 1rem;
}

/* Inputs, Selects y Textareas */
.form-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    background-color: #fcfcfc;
    color: var(--text-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 88, 150, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Arrow nativa para los select */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* =========================================
   BOTONES
   ========================================= */

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease, box-shadow 0.2s ease;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(0, 88, 150, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================
   ANIMACIONES
   ========================================= */

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner genérico para envíos */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    display: none;
}
.btn-primary.loading .spinner { display: inline-block; margin-right: 8px; }
.btn-primary.loading .btn-text { opacity: 0.8; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
   LIQUID GLASS & BACKGROUND ANIMATIONS (Compartido)
   ========================================= */
.font-display { font-family: 'Montserrat', sans-serif; }

.liquid-shape { 
    position: fixed; 
    z-index: -1; 
    filter: blur(80px); 
    opacity: 0.5; 
    border-radius: 50%; 
    animation: float 20s infinite alternate ease-in-out; 
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(0.9); }
}

.glass { 
    background: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
}
.glass-dark { 
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(24px); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
}

.hover-lift { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px) scale(1.01); }

/* Liquid Glass Component Base CSS */
.glass-card { position: relative; overflow: hidden; }
.glass-filter { position: absolute; inset: 0; z-index: 1; backdrop-filter: blur(8px); pointer-events: none; }
.glass-overlay { position: absolute; inset: 0; z-index: 2; background: rgba(255, 255, 255, 0.3); pointer-events: none; }
.glass-specular { position: absolute; inset: 0; z-index: 3; box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.7); pointer-events: none; transition: background 0.1s ease; }
.glass-content { position: relative; z-index: 4; height: 100%; width: 100%; }

/* Clases de Utilidad de Color */
.text-jnj-gold { color: #D4AF37; } 
.bg-jnj-gold { background-color: #D4AF37; }