/* ==========================================================================
   Health Question Architect AI — Estilos premium personalizados
   ========================================================================== */

:root {
    --brand-600: #0d9488;
    --brand-700: #0f766e;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar minimalista ---- */
.scroll-thin::-webkit-scrollbar,
#messages::-webkit-scrollbar,
#privacyModal .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
#messages::-webkit-scrollbar-track,
#privacyModal .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}
#messages::-webkit-scrollbar-thumb,
#privacyModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
#messages::-webkit-scrollbar-thumb:hover,
#privacyModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.45);
    background-clip: padding-box;
}

/* ---- Fondo: patrón de malla sutil ---- */
.bg-grid-pattern {
    background-image:
        linear-gradient(to right,  rgba(15, 118, 110, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ==========================================================================
   TARJETAS DE SUGERENCIA (pantalla de bienvenida)
   ========================================================================== */
.suggestion-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s ease,
                border-color 0.2s ease;
    text-align: left;
    cursor: pointer;
}
.suggestion-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.18),
                0 8px 10px -6px rgba(13, 148, 136, 0.10);
}
.suggestion-card:active {
    transform: translateY(0);
}

/* ==========================================================================
   BURBUJAS DE MENSAJE
   ========================================================================== */
.message {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.message-bubble {
    border-radius: 1.25rem;
    padding: 0.875rem 1.125rem;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Burbuja del usuario */
.message-user {
    flex-direction: row-reverse;
}
.message-user .message-avatar {
    background: linear-gradient(135deg, #475569, #334155);
    color: white;
}
.message-user .message-bubble {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
    border-top-right-radius: 0.4rem;
    box-shadow: 0 4px 14px -3px rgba(13, 148, 136, 0.35);
}

/* Burbuja del asistente */
.message-assistant .message-avatar {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: white;
    box-shadow: 0 4px 10px -2px rgba(13, 148, 136, 0.35);
}
.message-assistant .message-bubble {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top-left-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   CONTENIDO MARKDOWN DENTRO DE BURBUJAS
   ========================================================================== */
.message-bubble .md-content > *:first-child { margin-top: 0; }
.message-bubble .md-content > *:last-child  { margin-bottom: 0; }

.message-bubble p { margin: 0.55rem 0; }

.message-bubble h1,
.message-bubble h2,
.message-bubble h3,
.message-bubble h4 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0 0.5rem;
    color: #0f172a;
}
.message-bubble h1 { font-size: 1.25rem; }
.message-bubble h2 { font-size: 1.125rem; }
.message-bubble h3 { font-size: 1rem; }
.message-bubble h4 { font-size: 0.95rem; }

.message-bubble ul,
.message-bubble ol {
    margin: 0.55rem 0;
    padding-left: 1.4rem;
}
.message-bubble ul { list-style: disc; }
.message-bubble ol { list-style: decimal; }
.message-bubble li { margin: 0.3rem 0; }
.message-bubble li::marker { color: #0d9488; }

.message-bubble strong { font-weight: 700; color: #0f172a; }
.message-bubble em { font-style: italic; }

.message-bubble a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.message-bubble a:hover { color: #134e4a; }

.message-bubble blockquote {
    border-left: 3px solid #14b8a6;
    background: rgba(204, 251, 241, 0.4);
    padding: 0.5rem 0.9rem;
    margin: 0.7rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #115e59;
    font-style: italic;
}

.message-bubble code {
    background: rgba(15, 23, 42, 0.07);
    padding: 0.12rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    color: #0f172a;
}
.message-bubble pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 0.7rem 0;
    font-size: 0.85rem;
}
.message-bubble pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.message-bubble hr {
    border: none;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    margin: 1rem 0;
}

.message-bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.7rem 0;
    font-size: 0.875rem;
}
.message-bubble th,
.message-bubble td {
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.message-bubble th {
    background: rgba(204, 251, 241, 0.4);
    font-weight: 700;
    color: #115e59;
}

/* ==========================================================================
   INDICADOR DE ESCRITURA (tres puntos)
   ========================================================================== */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0;
}
.typing-dots span {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #0d9488;
    animation: bounceDot 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

@keyframes slideUp {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================================================
   BOTÓN MICRÓFONO — ESTADO GRABANDO
   ========================================================================== */
.mic-recording {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
    animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
    0%, 100%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50%        { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-error   { background: rgba(190, 18, 60, 0.95); }
.toast.toast-success { background: rgba(6, 95, 70, 0.95); }
.toast.toast-info    { background: rgba(15, 118, 110, 0.95); }
.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   EFECTO SHIMMER (skeleton)
   ========================================================================== */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(226, 232, 240, 0.4) 25%,
        rgba(226, 232, 240, 0.8) 50%,
        rgba(226, 232, 240, 0.4) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   ACCESIBILIDAD
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Eliminar el outline cuando el foco lo maneja ring de Tailwind */
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
    .message { gap: 0.5rem; }
    .message-avatar { width: 2rem; height: 2rem; font-size: 0.875rem; }
    .message-bubble { padding: 0.75rem 0.95rem; font-size: 0.9rem; }
}

/* Selección de texto */
::selection {
    background: rgba(13, 148, 136, 0.25);
    color: #0f172a;
}

/* ==========================================================================
   LANDING PAGE — Estilos específicos
   ========================================================================== */

/* ---- Animación reveal al scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Typing dots (mockup del chat en hero) ---- */
.typing-dot {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #0d9488;
    margin: 0 0.1rem;
    animation: bounceDot 1.3s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ---- FAQ acordeón ---- */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
}
.faq-item .faq-chevron {
    transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-question {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

/* ---- Botón flotante (FAB) ---- */
.fab-chat {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fab-chat.fab-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.fab-ping {
    animation: fabPing 2s ease-out infinite;
    z-index: -1;
}
@keyframes fabPing {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Auth: banner info error ---- */
@media (max-width: 640px) {
    .reveal { transform: translateY(16px); }
}

/* ==========================================================================
   AUTH (login/register) — Experiencia visual premium
   Paleta: teal/brand (#0d9488–#0f766e) con acentos, glassmorphism sutil,
   micro-interacciones y áreas táctiles cómodas.
   ========================================================================== */

/* ---- Tarjeta contenedora de login/register (eleva el look base) ---- */
.auth-card {
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px -12px rgba(15, 118, 110, 0.18),
        0 4px 12px -4px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.3s ease;
}

/* ---- Logo de marca en auth (círculo con gradiente) ---- */
.auth-logo {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    box-shadow:
        0 8px 20px -6px rgba(13, 148, 136, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---- Inputs premium (login/register/reset) ---- */
.auth-input {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}
.auth-input:focus {
    border-color: #14b8a6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

/* ---- Wrapper de input con icono a la derecha (toggle ojo) ---- */
.pwd-wrap {
    position: relative;
}
.pwd-wrap .pwd-input {
    /* Deja espacio para el botón del ojo a la derecha sin solaparse. */
    padding-right: 2.75rem;
}
.pwd-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: transparent;
    border: 0;
    color: #94a3b8;            /* slate-400 */
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.pwd-toggle:hover { color: #0f766e; background: rgba(13, 148, 136, 0.08); }
.pwd-toggle:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
.pwd-toggle svg { width: 1.15rem; height: 1.15rem; }

/* ---- Medidor de robustez de contraseña ---- */
.strength-meter {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}
.strength-meter .seg {
    flex: 1;
    height: 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;       /* slate-200 (vacío) */
    transition: background 0.3s ease, transform 0.3s ease;
}
/* Niveles (se aplica al meter vía data-level): 1..4 */
.strength-meter[data-level="1"] .seg:nth-child(-n+1) { background: linear-gradient(90deg, #f87171, #ef4444); }
.strength-meter[data-level="2"] .seg:nth-child(-n+2) { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.strength-meter[data-level="3"] .seg:nth-child(-n+3) { background: linear-gradient(90deg, #a3e635, #65a30d); }
.strength-meter[data-level="4"] .seg            { background: linear-gradient(90deg, #4ade80, #16a34a); }

.strength-label {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #64748b;            /* slate-500 */
    min-height: 1rem;
}
.strength-label .lvl {
    font-weight: 600;
    color: #475569;            /* slate-600 */
}
.strength-label[data-level="1"] .lvl { color: #ef4444; }
.strength-label[data-level="2"] .lvl { color: #d97706; }
.strength-label[data-level="3"] .lvl { color: #65a30d; }
.strength-label[data-level="4"] .lvl { color: #16a34a; }

/* ---- Indicador de coincidencia de contraseñas ---- */
.match-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.35rem;
    min-height: 1rem;
    transition: color 0.2s ease;
}
.match-indicator.is-ok   { color: #16a34a; }
.match-indicator.is-no   { color: #ef4444; }
.match-indicator.is-mute { color: #94a3b8; }
.match-indicator svg { width: 0.85rem; height: 0.85rem; }

/* ==========================================================================
   MODAL de recuperación de contraseña — Overlay premium
   CRÍTICO: display:none por defecto; solo visible con .is-open
   ========================================================================== */
.pwd-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;                          /* ← OCULTO por defecto */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pwd-modal-backdrop.is-open {
    display: flex;
    animation: fadeIn 0.2s ease;
}
.pwd-modal {
    width: 100%;
    max-width: 26rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 8px 24px -8px rgba(15, 118, 110, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 2rem;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Icono a la izquierda del input (email/candado) ---- */
.field-icon {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.18s ease;
}
/* Cuando el input está en foco, el icono adopta el color de marca. */
.auth-input:focus ~ .field-icon,
:focus ~ span .field-icon { color: #0d9488; }

/* ---- Botón principal de auth (gradiente + efecto al pasar) ---- */
.auth-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
}
.auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
    box-shadow: 0 12px 28px -8px rgba(13, 148, 136, 0.5);
    transform: translateY(-1px);
}
.auth-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px -4px rgba(13, 148, 136, 0.4);
}

/* ---- Botón con spinner ---- */
.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 999px;
    animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   LANDING PAGE — Optimización móvil (tráfico desde Facebook)
   La mayoría del tráfico vendrá de móvil. Estos ajustes priorizan:
   - Áreas táctiles mínimas (44-48px) para botones/enlaces (WCAG)
   - Tipografía legible sin zoom en pantallas pequeñas
   - Espaciado vertical respirado en sección densa
   - Safe areas para notch (iPhone)
   ========================================================================== */

/* Safe areas: respetar notch y barra de iOS en el FAB */
.fab-chat {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important;
}

@media (max-width: 640px) {
    /* ---- Header más compacto ---- */
    header .font-display {
        font-size: 0.875rem; /* base 16 → 14 en móvil */
    }

    /* ---- CTAs con área táctil cómoda (≥44px de alto) ---- */
    [data-launch],
    header a.inline-flex,
    header a.flex {
        min-height: 44px;
    }

    /* Botón de idioma y login con mejor target táctil */
    header .h-10 {
        height: 44px;
    }

    /* ---- Hero: tipografía legible sin zoom ---- */
    .font-display {
        letter-spacing: -0.02em;
    }

    /* ---- Trust badges del hero: apilar mejor en móvil ---- */
    section .flex-wrap.items-center.gap-x-6 {
        gap: 0.5rem 1rem;
    }

    /* ---- Secciones con menos padding vertical en móvil ---- */
    section.mx-auto {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* ---- Tarjetas de beneficio: una columna, más respiración ---- */
    .grid.gap-6.sm\:grid-cols-2.lg\:grid-cols-4 {
        gap: 0.875rem;
    }

    /* ---- Caja de precio: padding ajustado ---- */
    .max-w-lg .p-8 {
        padding: 1.75rem;
    }

    /* ---- FAQ: preguntas con área táctil amplia ---- */
    .faq-question {
        min-height: 56px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* ---- Footer: enlaces con mejor target táctil ---- */
    footer nav a {
        padding: 0.5rem 0.25rem;
        display: inline-block;
    }

    /* ---- FAB un poco más grande y separado del borde ---- */
    .fab-chat {
        width: 56px;
        height: 56px;
    }

    /* ---- Evitar zoom al hacer foco en inputs (font-size ≥16px) ---- */
    input[type="email"],
    input[type="password"],
    input[type="text"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* ---- Pantallas muy estrechas (<380px): iPhone SE / Android pequeño ---- */
@media (max-width: 380px) {
    section.mx-auto {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ---- Detectar gap (muesca) horizontal en landscape ---- */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

