/* MedGrid: Earth | Hoja de estilos única (v4: interfaz clínica moderna con identidad propia)
   Idea: fondo gris azulado muy claro, tarjetas blancas con esquinas suaves y sombras profundas pero
   discretas, azul clínico como único color de acción, y verde/ámbar/rojo solo para estados.
   Solo fuentes del sistema e imágenes data: (la política CSP no permite nada externo).
   Los nombres de las clases no cambian: las vistas PHP siguen igual, solo cambia su aspecto. */

/* ---------- Variables de diseño: todo el sitio sale de aquí ---------- */
:root {
    /* Azul clínico (acción principal) */
    --azul: #0369a1;
    --azul-hover: #0378b0;
    --azul-oscuro: #0c4a6e;
    --azul-claro: #e0f2fe;
    --foco: #0ea5e9;
    --foco-anillo: rgba(14, 165, 233, 0.15);

    /* Neutros (tinta y superficies) */
    --fondo: #f8fafc;
    --fondo-2: #f1f5f9;
    --papel: #ffffff;
    --tinta: #0f172a;
    --tinta-suave: #334155;
    --gris: #64748b;
    --borde: #e2e8f0;
    --borde-fuerte: #cbd5e1;

    /* Estados: solo para avisos y etiquetas */
    --ok: #15803d;
    --ok-fondo: #f0fdf4;
    --ok-borde: #bbf7d0;
    --error: #b91c1c;
    --error-fondo: #fef2f2;
    --error-borde: #fecaca;
    --ambar: #92400e;
    --ambar-fondo: #fffbeb;
    --ambar-borde: #fde68a;
    --ambar-linea: #d97706;
    --info: #1d4ed8;
    --info-fondo: #eff6ff;
    --info-borde: #bfdbfe;

    /* Acentos de la columna izquierda del acceso y de los iconos */
    --teal: #0f766e;
    --noche: #0c2d48;

    /* Esquinas y sombras */
    --r-input: 12px;
    --r-boton: 12px;
    --r-caja: 16px;
    --r-tarjeta: 20px;
    --sombra-suave: 0 1px 2px rgb(15 23 42 / 0.04), 0 1px 3px rgb(15 23 42 / 0.06);
    --sombra-media: 0 4px 6px -1px rgb(15 23 42 / 0.06), 0 2px 4px -2px rgb(15 23 42 / 0.05);
    --sombra-alta: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --fuente: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Trazo de electrocardiograma de la columna izquierda (imagen incrustada, sin pedir nada afuera) */
    --ecg-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L40 100 Q55 82.5 70 100 L88 100 L98 112.6 L112 30 L126 131.5 L136 100 L160 100 Q185 75.5 210 100 L300 100 L340 100 Q355 82.5 370 100 L388 100 L398 112.6 L412 30 L426 131.5 L436 100 L460 100 Q485 75.5 510 100 L600 100 L640 100 Q655 82.5 670 100 L688 100 L698 112.6 L712 30 L726 131.5 L736 100 L760 100 Q785 75.5 810 100 L900 100 L940 100 Q955 82.5 970 100 L988 100 L998 112.6 L1012 30 L1026 131.5 L1036 100 L1060 100 Q1085 75.5 1110 100 L1200 100 L1240 100 Q1255 82.5 1270 100 L1288 100 L1298 112.6 L1312 30 L1326 131.5 L1336 100 L1360 100 Q1385 75.5 1410 100 L1500 100' fill='none' stroke='%237dd3fc' stroke-width='2.5' stroke-opacity='0.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* Fondo general: gris azulado casi blanco con un degradado muy sutil */
body {
    margin: 0;
    font-family: var(--fuente);
    background: linear-gradient(180deg, var(--fondo) 0%, var(--fondo-2) 100%);
    color: var(--tinta);
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.02em; color: var(--tinta); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.1rem; font-weight: 650; }
p { margin-top: 0; }
a { color: var(--azul); text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--azul-oscuro); }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }

/* ---------- Marca: cruz azul + nombre ---------- */
.marca { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.2rem; color: var(--azul-oscuro); letter-spacing: -0.02em; text-decoration: none; }
.marca::before {
    content: "";
    flex: none;
    width: 1.3em;
    height: 1.3em;
    margin-right: 0.55em;
    border-radius: 8px;
    background:
        linear-gradient(#fff, #fff) center / 56% 20% no-repeat,
        linear-gradient(#fff, #fff) center / 20% 56% no-repeat,
        linear-gradient(135deg, #0ea5e9, #0369a1);
    box-shadow: 0 2px 6px rgb(3 105 161 / 0.3);
}
.marca-acento { color: var(--foco); font-weight: 500; }
.marca-grande { font-size: clamp(2rem, 1.5rem + 2.2vw, 2.8rem); color: #fff; line-height: 1; letter-spacing: -0.04em; }
.marca-grande .marca-acento { color: #7dd3fc; }
.marca-grande::before { box-shadow: 0 4px 14px rgb(0 0 0 / 0.25); }

/* ---------- Formularios ---------- */
form { display: grid; gap: 1.1rem; }
label { display: grid; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--tinta-suave); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--borde);
    border-radius: var(--r-input);
    font: inherit;
    font-weight: 400;
    background: #fff;
    color: var(--tinta);
    transition: all 0.2s ease;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
select { appearance: none; padding-right: 2.6rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center; }
input:hover, select:hover, textarea:hover { border-color: var(--borde-fuerte); }
/* Al enfocar: borde azul clínico con un anillo difuminado */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--foco); box-shadow: 0 0 0 4px var(--foco-anillo); }
textarea { resize: vertical; min-height: 6.5rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--azul); width: 1.1rem; height: 1.1rem; }

/* ---------- Botones ---------- */
.boton {
    display: inline-block;
    padding: 0.95rem 1.4rem;
    border: 0;
    border-radius: var(--r-boton);
    background: var(--azul);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(3 105 161 / 0.25), 0 4px 10px -2px rgb(3 105 161 / 0.3);
    transition: all 0.2s ease;
}
/* Al pasar el cursor el azul se aclara y el botón sube un poco */
.boton:hover { background: var(--azul-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgb(3 105 161 / 0.25), 0 8px 16px -4px rgb(3 105 161 / 0.35); }
.boton:active { transform: translateY(0); box-shadow: 0 1px 2px rgb(3 105 161 / 0.3); }

.boton-secundario {
    background: #fff;
    color: var(--azul);
    border: 1px solid var(--borde-fuerte);
    padding: 0.6rem 1.1rem;
    box-shadow: var(--sombra-suave);
}
.boton-secundario:hover { background: var(--azul-claro); color: var(--azul-oscuro); border-color: #7dd3fc; box-shadow: var(--sombra-media); }
.boton-secundario:active { box-shadow: none; }

.boton-enlace { display: inline-block; text-decoration: none; margin-top: 1.2rem; }
.boton-enlace-arriba { display: inline-block; text-decoration: none; margin: 0.4rem 0 0.6rem; }
button.boton-enlace { background: none; border: 0; padding: 0; color: var(--azul); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
button.boton-enlace:hover { background: none; color: var(--azul-oscuro); transform: none; box-shadow: none; }
button.boton-enlace:active { transform: none; }

/* ---------- Avisos: tarjeta suave con un icono redondo a la izquierda ---------- */
.errores, .aviso, .aviso-grave, .recordatorio {
    position: relative;
    margin: 0 0 1.1rem;
    padding: 0.9rem 1.1rem 0.9rem 3.4rem;
    border: 1px solid;
    border-radius: 14px;
    font-size: 0.93rem;
    list-style: none;
    min-height: 3.2rem;
}
.recordatorio { margin: 1.1rem 0; font-size: 0.95rem; }
.errores::before, .aviso::before, .aviso-grave::before, .recordatorio::before {
    position: absolute;
    left: 0.9rem; top: 0.9rem;
    width: 1.6rem; height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}
.errores { background: var(--error-fondo); color: var(--error); border-color: var(--error-borde); }
.errores::before { content: "\2715"; background: var(--error); }
.errores li + li { margin-top: 0.25rem; }
.aviso, .rec-verde { background: var(--ok-fondo); color: var(--ok); border-color: var(--ok-borde); }
.aviso::before, .rec-verde::before { content: "\2713"; background: var(--ok); }
.aviso-grave, .rec-amarillo { background: var(--ambar-fondo); color: var(--ambar); border-color: var(--ambar-borde); }
.aviso-grave::before, .rec-amarillo::before { content: "!"; background: var(--ambar-linea); }
.rec-rojo { background: var(--error-fondo); color: var(--error); border-color: var(--error-borde); }
.rec-rojo::before { content: "!"; background: var(--error); }
.recordatorio strong { display: block; margin-bottom: 0.1rem; }

/* ---------- Páginas de acceso (login y registro) ---------- */
.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: linear-gradient(160deg, #f8fafc 0%, #eef4fa 55%, #e6eef7 100%);
}
/* La tarjeta principal: esquinas de 20 px y una sombra profunda y elegante */
.auth-grid {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: var(--r-tarjeta);
    overflow: hidden;
    box-shadow: var(--sombra-alta);
    background: var(--papel);
    border: 1px solid rgb(226 232 240 / 0.8);
}
/* Columna izquierda: azul profundo con un brillo suave arriba a la derecha */
.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.8rem 9.5rem;
    background:
        radial-gradient(circle at 85% 8%, rgb(56 189 248 / 0.28), transparent 45%),
        linear-gradient(165deg, #075985 0%, var(--noche) 78%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}
.hero > * { position: relative; z-index: 1; }
/* El trazo del electrocardiograma ocupa una franja propia al pie, así nunca se monta sobre el texto;
   se desvanece en los bordes y se dibuja una vez al cargar */
.hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 1.6rem;
    height: 110px;
    background: var(--ecg-hero) left center / auto 100% repeat-x;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    animation: trazo 3.2s cubic-bezier(.4, 0, .2, 1) .2s both;
}
@keyframes trazo { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lema { font-size: 1.3rem; line-height: 1.4; margin: 0; font-weight: 500; max-width: 24ch; color: #e0f2fe; }
.beneficios { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
/* Texto secundario en gris azulado suave (no blanco puro) y viñeta con una cruz pequeña */
.beneficios li { padding-left: 1.9rem; position: relative; font-size: 0.95rem; color: #b6cde0; line-height: 1.5; }
.beneficios li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.1rem; height: 1.1rem; border-radius: 6px;
    background: linear-gradient(#7dd3fc, #7dd3fc) center / 56% 16% no-repeat, linear-gradient(#7dd3fc, #7dd3fc) center / 16% 56% no-repeat, rgb(125 211 252 / 0.14); }
.zona { margin: 0; font-size: 0.85rem; color: #8fb3cf; }

.tarjeta { padding: 3.5rem 2.8rem; display: flex; flex-direction: column; justify-content: center; }
.tarjeta .marca { margin-bottom: 1.2rem; }
.tarjeta h1 { margin-bottom: 1.4rem; }
.tarjeta form .boton { margin-top: 0.4rem; }
.pie-tarjeta { margin: 1.4rem 0 0; font-size: 0.92rem; color: var(--gris); }
.pie-tarjeta + .pie-tarjeta { margin-top: 0.4rem; }
.auth-simple { width: 100%; max-width: 480px; background: var(--papel); border-radius: var(--r-tarjeta); box-shadow: var(--sombra-alta); border: 1px solid rgb(226 232 240 / 0.8); }
.auth-simple.tarjeta { padding: 2.6rem; }
.auth-simple form + form { margin-top: 0.6rem; }

/* ---------- Cabecera: barra clara con una línea fina ---------- */
.cabecera {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(255 255 255 / 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--borde);
}
.cabecera-interior { max-width: 1040px; margin: 0 auto; padding: 0.8rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.usuario { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.usuario form { display: block; }
.usuario a { font-size: 0.92rem; color: var(--tinta-suave); text-decoration: none; font-weight: 500; }
.usuario a:hover { color: var(--azul); }
.usuario-datos { display: grid; text-align: right; line-height: 1.25; font-size: 0.92rem; }
.usuario-datos small { color: var(--gris); }
.enlace-reporte { font-size: 0.88rem; font-weight: 600; text-decoration: none; padding: 0.45rem 0.9rem; border: 1px solid var(--borde-fuerte); border-radius: 999px; background: #fff; color: var(--tinta-suave); transition: all 0.2s ease; }
.cabecera .enlace-reporte:hover, .usuario .enlace-reporte:hover { background: var(--azul-claro); border-color: #7dd3fc; color: var(--azul-oscuro); }

.contenedor { max-width: 1040px; margin: 0 auto; padding: 2.4rem 1.2rem 4rem; }
.contenedor-angosto { max-width: 640px; }
.subtitulo { color: var(--gris); margin: 0 0 1.8rem; font-size: 1.05rem; }

/* ---------- Módulos del panel: tarjetas con icono ---------- */
.modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.modulo {
    display: grid;
    grid-template-columns: 4.4rem 1fr;
    column-gap: 1rem;
    padding: 0.9rem 1rem 0.9rem 0.9rem;
    background: var(--papel);
    border: 1px solid var(--borde);
    border-radius: var(--r-caja);
    text-decoration: none;
    color: var(--tinta);
    box-shadow: var(--sombra-suave);
    transition: all 0.2s ease;
}
/* El icono va en un recuadro redondeado; el color cambia de módulo en módulo */
.modulo::before {
    content: "";
    grid-row: 1 / 4;
    align-self: start;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 14px;
    background: var(--azul) center / 2rem no-repeat;
}
.modulo:nth-child(4n+2)::before { background-color: var(--teal); }
.modulo:nth-child(4n+3)::before { background-color: #b45309; }
.modulo:nth-child(4n+4)::before { background-color: var(--noche); }
.modulo h2 { margin: 0.2rem 0 0.2rem 0; }
.modulo p { margin: 0 0 0.5rem 0; color: var(--gris); font-size: 0.9rem; }
.modulo-estado { margin: 0; font-weight: 600; font-size: 0.88rem; color: var(--azul); }
a.modulo:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: #bae6fd; }
a.modulo:hover .modulo-estado { text-decoration: underline; text-underline-offset: 3px; }
.modulo-pendiente { background: transparent; border: 1px dashed var(--borde-fuerte); box-shadow: none; }
.modulo-pendiente::before { background-color: var(--borde-fuerte) !important; }
.modulo-pendiente h2, .modulo-pendiente .modulo-estado { color: var(--gris); }
a.modulo[href^='citas.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M12 13v5M9.5 15.5h5'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='bandeja.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l2-8h12l2 8v6H4z'/%3E%3Cpath d='M4 13h5l1 2h4l1-2h5'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='directorio.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z'/%3E%3Cpath d='M12 7.5v5M9.5 10h5'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='recetas.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 17V9h3a2 2 0 010 4H9m3 0l3 4'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='medicamentos.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='8' width='19' height='8' rx='4' transform='rotate%28-35 12 12%29'/%3E%3Cpath d='M9.2 7.6l5.6 8.8' /%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='farmacia.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v12H3z'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='perfil.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='tickets_atencion.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M5.6 5.6l3.9 3.9M14.5 14.5l3.9 3.9M18.4 5.6l-3.9 3.9M9.5 14.5l-3.9 3.9'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='tickets.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M12 8v5M9.5 10.5h5'/%3E%3C/g%3E%3C/svg%3E"); }
a.modulo[href^='monitoreo.php']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='13' rx='2'/%3E%3Cpath d='M6 11h3l2-4 3 7 2-3h2M9 21h6'/%3E%3C/g%3E%3C/svg%3E"); }


/* ---------- Secciones, tablas y etiquetas ---------- */
.seccion { margin: 2.4rem 0 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.8rem; }
.seccion::before { content: ""; flex: none; width: 0.4rem; height: 1.25rem; border-radius: 4px; background: linear-gradient(180deg, #0ea5e9, #0369a1); }
.seccion::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
.subseccion { margin: 1.3rem 0 0.5rem; font-size: 1rem; color: var(--gris); font-weight: 600; }
.vacio { color: var(--gris); padding: 1.1rem 1.3rem; border: 1px dashed var(--borde-fuerte); border-radius: var(--r-caja); background: rgb(255 255 255 / 0.7); }
.nota { color: var(--gris); margin-top: 2rem; font-size: 0.92rem; }
.nota-corta { margin: 0 0 0.9rem; color: var(--gris); font-size: 0.92rem; }

/* Tablas: caja blanca redondeada con encabezado gris suave */
.tabla-caja { overflow-x: auto; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--r-caja); box-shadow: var(--sombra-media); }
.tabla { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tabla th, .tabla td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--borde); white-space: nowrap; vertical-align: middle; }
.tabla th { background: var(--fondo); color: var(--gris); font-weight: 600; font-size: 0.82rem; }
.tabla tbody tr { transition: background 0.15s ease; }
.tabla tbody tr:hover td { background: #f0f9ff; }
.tabla tr:last-child td { border-bottom: 0; }
.celda-ancha { white-space: normal !important; min-width: 12rem; max-width: 26rem; }

/* Etiquetas de estado: píldoras suaves de color */
.etiqueta { display: inline-block; padding: 0.15rem 0.7rem; border: 1px solid var(--borde-fuerte); border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--fondo-2); color: var(--tinta-suave); white-space: nowrap; }
.etiqueta-agendada, .etiqueta-confirmada, .etiqueta-atendida, .etiqueta-resuelto, .etiqueta-emitida, .etiqueta-login_ok, .etiqueta-mfa_ok { background: var(--ok-fondo); color: var(--ok); border-color: var(--ok-borde); }
.etiqueta-cancelada, .etiqueta-sin_disponibilidad, .etiqueta-escalado, .etiqueta-vencida,
.etiqueta-login_fallido, .etiqueta-mfa_fallido, .etiqueta-bloqueo, .etiqueta-acceso_denegado { background: var(--error-fondo); color: var(--error); border-color: var(--error-borde); }
.etiqueta-solicitada, .etiqueta-en_gestion, .etiqueta-disponibilidad_propuesta,
.etiqueta-abierto, .etiqueta-en_atencion, .etiqueta-activa { background: var(--ambar-fondo); color: var(--ambar); border-color: var(--ambar-borde); }
.etiqueta-retirada { background: var(--info-fondo); color: var(--info); border-color: var(--info-borde); }

/* ---------- Formularios dentro del panel ---------- */
.formulario { margin: 1.2rem 0 0; padding: 1.8rem; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--r-caja); box-shadow: var(--sombra-media); }
.formulario label + label, .formulario label + button { margin-top: 0.9rem; }
.casilla { display: flex; gap: 0.65rem; align-items: center; margin: 1rem 0; font-weight: 500; }
.casilla input { width: 1.1rem; flex: none; }
.acciones { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
.linea-receta { display: grid; grid-template-columns: 1fr 110px; gap: 0.8rem; align-items: end; }

/* ---------- Horarios: casillas de agenda ---------- */
.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.6rem; }
.horario { display: block; position: relative; cursor: pointer; }
.horario input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.horario span { display: block; padding: 0.65rem 0; text-align: center; border: 1px solid var(--borde); border-radius: 10px; font-weight: 600; font-family: var(--mono); background: #fff; transition: all 0.2s ease; }
.horario:hover span { border-color: var(--foco); background: #f0f9ff; }
.horario input:checked + span { background: var(--azul); color: #fff; border-color: var(--azul); box-shadow: 0 4px 10px -2px rgb(3 105 161 / 0.4); }
.horario input:focus-visible + span { outline: 3px solid var(--foco); outline-offset: 2px; }

/* ---------- Verificación en dos pasos ---------- */
.qr { width: 220px; height: 220px; margin: 1rem auto; border: 1px solid var(--borde); border-radius: var(--r-caja); background: #fff; padding: 10px; box-shadow: var(--sombra-media); }
.qr svg { display: block; width: 100%; height: 100%; }
.clave-manual { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.08em; word-break: break-all; background: var(--azul-claro); padding: 0.65rem 0.9rem; border-radius: 10px; border: 1px dashed #7dd3fc; color: var(--azul-oscuro); }
input.codigo { font-family: var(--mono); font-size: 1.6rem; letter-spacing: 0.35em; text-align: center; }

/* ---------- Directorio y mapa ---------- */
.filtros { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; margin-bottom: 1rem; padding: 1.1rem; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--r-caja); box-shadow: var(--sombra-suave); }
.mapa { height: 440px; border: 1px solid var(--borde); border-radius: var(--r-caja); margin-bottom: 1rem; z-index: 0; box-shadow: var(--sombra-media); overflow: hidden; }

/* ---------- Monitoreo: contadores como monitor de signos vitales ---------- */
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.dato { display: flex; flex-direction: column-reverse; gap: 0.3rem; padding: 1.1rem 1.2rem; background: linear-gradient(160deg, #0f2f45, #0a2233); border: 1px solid #1e4a66; border-radius: var(--r-caja); box-shadow: var(--sombra-media); }
.dato-numero { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; line-height: 1; color: #67e8f9; text-shadow: 0 0 14px rgb(103 232 249 / 0.35); }
.dato-texto { color: #94b4cb; font-size: 0.86rem; }
.dato-login_fallido .dato-numero, .dato-bloqueo .dato-numero, .dato-mfa_fallido .dato-numero, .dato-acceso_denegado .dato-numero { color: #fda4af; text-shadow: 0 0 14px rgb(253 164 175 / 0.35); }
.dato-login_fallido, .dato-bloqueo, .dato-mfa_fallido, .dato-acceso_denegado { border-color: #7f2d3a; }

/* ---------- Tickets ---------- */
.detalle-ticket { margin: 0 0 1.5rem; }
.detalle-ticket form + form { margin-top: 1rem; }
.texto-ticket { white-space: pre-wrap; padding: 1rem 1.2rem; background: var(--papel); border: 1px solid var(--borde); border-left: 4px solid var(--azul); border-radius: 12px; }

/* ---------- Fichas de receta y reserva ---------- */
.tarjeta-receta {
    position: relative;
    overflow: hidden;
    background: var(--papel);
    border: 1px solid var(--borde);
    border-left: 5px solid var(--azul);
    border-radius: var(--r-caja);
    padding: 1.2rem 1.5rem 1.3rem;
    margin: 0 0 1.2rem;
    box-shadow: var(--sombra-media);
}
.tarjeta-receta > * { position: relative; z-index: 1; }
/* Marca de agua "Rx" en las recetas firmadas */
.tarjeta-receta:has(.firma)::after { content: "\211E"; position: absolute; right: 0.8rem; bottom: -0.6rem; font-size: 7rem; line-height: 1; color: var(--azul); opacity: 0.05; z-index: 0; pointer-events: none; }
.tarjeta-receta p { margin: 0.4rem 0; }
/* El borde izquierdo cambia de color según el estado de la ficha */
.tarjeta-receta:has(.etiqueta-cancelada), .tarjeta-receta:has(.etiqueta-vencida) { border-left-color: var(--error); }
.tarjeta-receta:has(.etiqueta-retirada) { border-left-color: var(--info); }
.tarjeta-receta:has(.etiqueta-emitida), .tarjeta-receta:has(.etiqueta-agendada), .tarjeta-receta:has(.etiqueta-confirmada) { border-left-color: #16a34a; }
.tarjeta-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.8rem; margin-bottom: 0.6rem; border-bottom: 1px dashed var(--borde-fuerte); }
/* El código va como una píldora tipo pulsera de identificación */
.tarjeta-cabecera strong { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.08em; color: #fff; background: var(--noche); padding: 0.3rem 0.9rem; border-radius: 999px; }
.reserva-activa, .tarjeta-receta.reserva-activa { border-left-color: var(--ambar-linea); background: linear-gradient(100deg, var(--ambar-fondo), var(--papel) 45%); }

/* Firma digital: sello */
.firma { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--borde); }
.firma summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; color: var(--ok); font-weight: 600; padding: 0.3rem 0.9rem 0.3rem 0.4rem; border: 1px solid var(--ok-borde); border-radius: 999px; background: var(--ok-fondo); transition: all 0.2s ease; }
.firma summary::-webkit-details-marker { display: none; }
.firma summary::before { content: "\2713"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 0.8rem; }
.firma summary:hover { background: #dcfce7; }
.firma-cuerpo { margin-top: 0.7rem; padding: 0.9rem 1.1rem; background: var(--ok-fondo); border: 1px solid var(--ok-borde); border-radius: 12px; }
.firma-datos { margin: 0.4rem 0 0; font-size: 0.9rem; }
.firma-datos dt { font-weight: 600; margin-top: 0.5rem; color: var(--tinta); }
.firma-datos dd { margin: 0; color: var(--gris); }
.firma-datos code { word-break: break-all; font-family: var(--mono); font-size: 0.8rem; background: #fff; padding: 0.1rem 0.4rem; border-radius: 6px; }

.form-reservar { display: grid; gap: 0.7rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--borde); }
.farmacias { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.farmacias legend { font-weight: 600; margin-bottom: 0.4rem; padding: 0; color: var(--tinta); }
.opcion-farmacia { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 1rem; border: 1px solid var(--borde); border-radius: 12px; cursor: pointer; background: #fff; transition: all 0.2s ease; }
.opcion-farmacia:hover { border-color: #7dd3fc; background: #f8fcff; }
.opcion-farmacia:has(input:checked) { border-color: var(--foco); background: #f0f9ff; box-shadow: 0 0 0 3px var(--foco-anillo); }
.opcion-farmacia input { margin-top: 0.25rem; flex: none; }

.fila-stock { display: flex; gap: 0.5rem; align-items: center; }
.fila-stock input { width: 6.2rem; }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 760px) {
    .auth { padding: 0.8rem; }
    .auth-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.2rem 1.6rem 7rem; }
    .hero::before { bottom: 0.8rem; height: 80px; }
    .lema { max-width: none; }
    .tarjeta { padding: 2rem 1.6rem; }
    .usuario-datos { display: none; }
    .cabecera-interior { flex-wrap: wrap; }
    .contenedor { padding-top: 1.5rem; }
    .linea-receta { grid-template-columns: 1fr; }
    .tabla th, .tabla td { padding: 0.65rem 0.8rem; }
    .modulos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ===== Interior del sitio (propuesta B: vital) ===== */
@font-face { font-family: "InstrumentSerif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DMSans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root {
  /* Paleta del interior, igual que la del acceso: verde bosque, coral y tonos suaves */
  --cobalto:#0c3b35; --cobalto-2:#082b27; --mantequilla:#ffd9cf; --lila:#e3ece8; --rosa:#ffe3da; --menta:#cfeadf; --papel:#f4f8f6; --tinta:#0e211e;
  --azul:#0f6b73; --azul-hover:#0c585f; --azul-oscuro:#0c3b35; --azul-claro:#dcefe7; --foco:#0f6b73; --foco-anillo:rgba(15,107,115,.18);
  --fondo:#f4f8f6; --fondo-2:#e9f0ed; --tinta-suave:#2b4540; --gris:#587069; --borde:#d3e0da; --borde-fuerte:#b4c8bf;
  --fuente:"DMSans",system-ui,sans-serif; --display:"InstrumentSerif",Georgia,serif;
  --ecg-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L40 100 Q55 82.5 70 100 L88 100 L98 112.6 L112 30 L126 131.5 L136 100 L160 100 Q185 75.5 210 100 L300 100 L340 100 Q355 82.5 370 100 L388 100 L398 112.6 L412 30 L426 131.5 L436 100 L460 100 Q485 75.5 510 100 L600 100 L640 100 Q655 82.5 670 100 L688 100 L698 112.6 L712 30 L726 131.5 L736 100 L760 100 Q785 75.5 810 100 L900 100 L940 100 Q955 82.5 970 100 L988 100 L998 112.6 L1012 30 L1026 131.5 L1036 100 L1060 100 Q1085 75.5 1110 100 L1200 100 L1240 100 Q1255 82.5 1270 100 L1288 100 L1298 112.6 L1312 30 L1326 131.5 L1336 100 L1360 100 Q1385 75.5 1410 100 L1500 100' fill='none' stroke='%23ffe27a' stroke-width='5' stroke-opacity='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body { background:var(--papel); font-family:var(--fuente); }
h1,h2,h3 { font-family:var(--display); font-weight:400; letter-spacing:-.01em; color:var(--tinta); }
h1 { font-size:clamp(2.2rem,1.6rem + 2vw,3.2rem); line-height:1.02; }
h2 { font-size:1.6rem; }
.marca { font-family:var(--fuente); font-weight:800; letter-spacing:-.03em; color:var(--cobalto); }
.marca-acento { color:var(--cobalto); font-weight:400; font-family:var(--display); font-size:1.15em; }
.marca::before { background:linear-gradient(#fff,#fff) center/56% 20% no-repeat,linear-gradient(#fff,#fff) center/20% 56% no-repeat,var(--cobalto); border-radius:50%; box-shadow:none; }
label { color:var(--tinta-suave); font-weight:600; font-size:.85rem; }
input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=tel],input[type=date],select,textarea { background:var(--lila); border:2px solid transparent; border-radius:18px; padding:1rem 1.2rem; }
input:hover,select:hover,textarea:hover { border-color:var(--borde-fuerte); }
input:focus,select:focus,textarea:focus { background:#fff; border-color:var(--cobalto); box-shadow:0 0 0 5px var(--foco-anillo); }
.boton { background:var(--cobalto); border-radius:999px; padding:1.05rem 2rem; font-weight:700; box-shadow:none; }
.boton:hover { background:var(--mantequilla); color:var(--tinta); transform:translateY(-2px); box-shadow:0 12px 24px -10px rgba(42,63,208,.55); }
.boton-secundario { background:#fff; color:var(--cobalto); border:2px solid var(--lila); padding:.55rem 1.2rem; box-shadow:none; }
.boton-secundario:hover { background:var(--lila); color:var(--cobalto-2); border-color:var(--lila); box-shadow:none; }
a { color:var(--cobalto); }
.errores,.aviso,.aviso-grave,.recordatorio { border:0; border-radius:18px; padding-left:3.4rem; }
.aviso,.rec-verde { background:var(--menta); color:#14583f; } .aviso::before,.rec-verde::before { background:#1f8a6a; }
.errores,.rec-rojo { background:var(--rosa); color:#8e1d3d; } .errores::before,.rec-rojo::before { background:#c8325b; }
.aviso-grave,.rec-amarillo { background:#fff3c4; color:#6b4e00; } .aviso-grave::before,.rec-amarillo::before { background:#e0a800; }
.cabecera { background:rgba(251,250,255,.9); border-bottom:0; }
.cabecera-interior { padding:1rem 1.2rem; }
.enlace-reporte { border:2px solid var(--lila); background:#fff; color:var(--cobalto); }
.contenedor { padding-top:2.6rem; }
.contenedor > h1 { font-size:clamp(2.8rem,1.8rem + 4vw,5rem); line-height:.95; }
.subtitulo { font-size:1.15rem; }
.modulos { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.1rem; }
.modulo { grid-template-columns:1fr; padding:1.7rem 1.7rem 1.5rem; min-height:14rem; border:0; border-radius:32px; box-shadow:none; background:var(--lila); align-content:end; position:relative; transition:all .25s ease; }
.modulo:nth-child(4n+2) { background:var(--mantequilla); } .modulo:nth-child(4n+3) { background:var(--rosa); } .modulo:nth-child(4n+4) { background:var(--menta); }
.modulo::before { position:absolute; top:1.4rem; left:1.7rem; width:3.4rem; height:3.4rem; border-radius:50%; background-color:var(--cobalto)!important; background-size:1.6rem; }
.modulo h2 { font-size:2rem; line-height:1; margin:0 0 .5rem; }
.modulo p { color:var(--tinta-suave); margin:0 0 .9rem; }
.modulo-estado { font-weight:700; color:var(--tinta); }
a.modulo:hover { background:var(--cobalto); color:#fff; transform:translateY(-4px); box-shadow:0 22px 40px -22px rgba(42,63,208,.8); border:0; }
a.modulo:hover h2,a.modulo:hover p,a.modulo:hover .modulo-estado { color:#fff; }
a.modulo:hover::before { background-color:var(--mantequilla)!important; }
.modulo-pendiente { background:transparent!important; border:2px dashed var(--borde-fuerte); box-shadow:none; }
.modulo-pendiente::before { background-color:var(--borde-fuerte)!important; }
.seccion { font-family:var(--display); font-size:2rem; font-weight:400; margin-top:3.2rem; }
.seccion::before { display:none; } .seccion::after { background:var(--borde); height:2px; }
.tabla-caja { border:0; border-radius:28px; background:var(--lila); box-shadow:none; padding:.4rem; }
.tabla th { background:transparent; color:var(--gris); border-bottom:0; }
.tabla td { border-bottom:0; background:#fff; }
.tabla tbody tr td:first-child { border-radius:16px 0 0 16px; } .tabla tbody tr td:last-child { border-radius:0 16px 16px 0; }
.tabla { border-collapse:separate; border-spacing:0 .4rem; }
.tabla tbody tr:hover td { background:#fff8da; }
.etiqueta { border:0; background:var(--lila); color:var(--cobalto-2); }
.etiqueta-agendada,.etiqueta-confirmada,.etiqueta-atendida,.etiqueta-resuelto,.etiqueta-emitida,.etiqueta-login_ok,.etiqueta-mfa_ok { background:var(--menta); color:#14583f; }
.etiqueta-solicitada,.etiqueta-en_gestion,.etiqueta-abierto,.etiqueta-en_atencion,.etiqueta-activa,.etiqueta-disponibilidad_propuesta { background:#fff3c4; color:#6b4e00; }
.etiqueta-cancelada,.etiqueta-vencida,.etiqueta-login_fallido,.etiqueta-bloqueo,.etiqueta-mfa_fallido,.etiqueta-acceso_denegado,.etiqueta-sin_disponibilidad,.etiqueta-escalado { background:var(--rosa); color:#8e1d3d; }
.tarjeta-receta { border:0; border-radius:28px; background:var(--lila); box-shadow:none; padding:1.5rem 1.8rem; }
.tarjeta-receta::after { color:var(--cobalto)!important; opacity:.07!important; }
.tarjeta-cabecera { border-bottom:2px dashed var(--borde-fuerte); }
.tarjeta-cabecera strong { background:var(--cobalto); }
.formulario { border:0; border-radius:32px; background:var(--lila); box-shadow:none; padding:2rem; }
.formulario input,.formulario select { background:#fff; }
.horario span { border:2px solid transparent; background:#fff; border-radius:999px; }
.horario input:checked + span { background:var(--cobalto); box-shadow:none; }
.dato { background:var(--cobalto); border:0; border-radius:28px; box-shadow:none; }
.dato-numero { font-family:var(--display); font-weight:400; font-size:3.4rem; color:var(--mantequilla); text-shadow:none; }
.dato-texto { color:#d6dcff; }
.firma summary { background:var(--menta); border:0; } .firma-cuerpo { background:#fff; border:0; }

.modulo::before { grid-row:auto; grid-column:auto; align-self:auto; min-height:0; }

/* ===== Pantallas de acceso (propuesta A: cartografía) =====
   Las variables de color y tipografía se redefinen solo dentro de .auth, así el interior del sitio no cambia. */
:root { --bosque:#0c3b35; --coral:#ff6a4d; --coral-claro:#ffd9cf; --hueso:#edf3f0; --menta-a:#c4e6d8; --topo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M74 900 L70 895 L65 888 L60 882 L55 875 L51 870 L47 865 L43 860 L39 855 L35 850 L30 844 L25 837 L20 831 L15 825 L10 820 L6 815 L2 809 M155 900 L151 895 L146 888 L141 882 L136 875 L132 870 L128 865 L124 860 L120 855 L115 849 L110 842 L105 835 L101 830 L97 825 L93 820 L89 815 L85 809 L80 803 L75 797 L70 791 L65 785 L61 779 L57 774 L52 769 L48 764 L43 759 L39 754 L34 749 L30 744 L25 739 L20 734 L15 729 L10 724 L5 719 M218 900 L214 895 L210 890 L206 885 L201 878 L196 872 L191 865 L187 860 L183 855 L179 850 L175 845 L171 839 L166 832 L161 825 L156 820 L153 815 L149 809 L145 804 L141 798 L136 792 L131 785 L126 779 L122 774 L118 769 L114 764 L110 759 L105 753 L100 747 L95 741 L90 735 L85 730 L80 724 L76 719 L71 714 L66 709 L62 704 L57 699 L52 694 L47 689 L41 684 L36 679 L31 674 L25 669 L20 664 L15 660 L10 656 L5 652 L0 647 M274 900 L269 895 L265 890 L261 885 L256 879 L251 873 L246 867 L241 861 L236 855 L232 850 L228 845 L225 840 L221 835 L216 828 L211 821 L206 815 L202 809 L198 804 L195 799 L191 794 L186 787 L181 781 L176 774 L172 769 L169 764 L165 759 L161 754 L156 747 L151 741 L146 734 L141 729 L137 724 L133 719 L129 714 L125 709 L121 704 L115 698 L110 692 L105 687 L100 682 L95 676 L90 671 L85 666 L80 661 L75 657 L70 652 L65 647 L60 643 L55 638 L49 634 L43 628 L37 623 L31 618 L25 614 L20 610 L15 606 L10 603 L4 598 M327 900 L322 895 L317 890 L312 885 L307 880 L303 875 L298 870 L294 865 L289 860 L285 855 L281 850 L276 844 L271 838 L266 831 L261 825 L257 820 L253 815 L249 809 L245 804 L241 799 L236 792 L231 785 L227 779 L223 774 L220 769 L216 764 L211 757 L206 750 L201 744 L198 739 L194 734 L190 729 L186 723 L181 716 L176 710 L171 704 L167 699 L163 694 L159 689 L155 684 L151 679 L146 673 L141 667 L136 662 L131 657 L126 651 L121 646 L115 641 L110 636 L105 632 L100 627 L95 623 L90 618 L85 613 L79 608 L72 603 L66 598 L60 594 L55 590 L50 587 L45 583 L39 578 L31 573 L25 569 L20 566 L15 562 L9 558 L1 553 M1200 870 L1195 874 L1190 877 L1185 881 L1180 885 L1173 890 L1165 895 L1160 898 M383 900 L377 895 L372 891 L367 887 L362 883 L356 878 L351 874 L346 869 L341 864 L336 859 L331 854 L326 848 L321 843 L316 837 L311 831 L306 825 L301 820 L297 815 L293 809 L289 804 L285 799 L281 794 L276 787 L271 781 L267 774 L263 769 L259 764 L256 759 L251 753 L246 746 L241 739 L238 734 L234 729 L231 724 L226 717 L221 710 L216 704 L212 699 L209 694 L205 689 L201 683 L196 677 L191 671 L186 664 L181 659 L177 654 L173 649 L168 644 L164 639 L159 634 L154 628 L149 623 L144 618 L139 613 L133 608 L128 603 L122 598 L116 593 L110 589 L105 585 L100 581 L95 577 L90 573 L83 568 L76 563 L70 559 L65 556 L60 552 L54 548 L46 543 L40 539 L35 536 L30 533 L21 528 L15 524 L10 521 L5 518 M1200 836 L1195 840 L1189 845 L1183 850 L1176 855 L1170 859 L1165 863 L1160 866 L1154 870 L1147 875 L1140 879 L1135 882 L1130 885 L1120 890 L1115 893 L1110 895 L1100 900 M450 900 L442 896 L437 893 L431 890 L423 885 L417 881 L412 878 L407 874 L401 870 L394 865 L388 860 L382 855 L377 850 L372 846 L367 841 L362 836 L356 831 L351 826 L346 821 L341 815 L336 809 L332 804 L328 799 L324 794 L320 789 L316 784 L311 779 L306 772 L301 766 L296 759 L293 754 L289 749 L286 744 L281 738 L276 731 L272 724 L268 719 L265 714 L261 709 L256 702 L251 694 L247 689 L244 684 L240 679 L236 673 L231 666 L226 659 L222 654 L218 649 L214 644 L210 639 L206 634 L201 628 L196 622 L191 617 L186 611 L181 606 L176 601 L171 596 L166 591 L161 586 L156 582 L151 578 L145 573 L139 568 L133 563 L126 558 L121 554 L115 551 L110 547 L104 543 L97 538 L90 534 L85 531 L80 528 L72 523 L65 519 L60 516 L55 513 L46 508 L40 504 L35 501 L29 498 L20 493 L15 490 L10 487 L2 483 M1200 803 L1195 807 L1190 812 L1185 816 L1180 820 L1175 825 L1168 830 L1161 835 L1155 839 L1150 843 L1145 846 L1139 850 L1131 855 L1125 858 L1120 861 L1112 865 L1105 869 L1100 871 L1092 875 L1085 878 L1079 880 L1069 884 L1064 886 L1054 889 L1049 890 L1039 893 L1033 895 L1024 897 L1014 899 L1008 900 M879 900 L869 899 L859 898 L849 896 L838 895 L833 895 L823 893 L813 892 L803 891 L793 890 L788 890 L778 889 L768 889 L758 888 L748 888 L738 887 L728 887 L718 887 L708 888 L698 888 L688 888 L678 889 L668 889 L658 890 L653 890 L643 891 L633 891 L623 892 L613 892 L603 893 L592 893 L582 893 L572 893 L562 892 L552 891 L542 890 L537 890 L527 888 L517 886 L512 885 L502 882 L494 880 L487 878 L480 875 L472 872 L467 870 L457 865 L452 862 L447 860 L439 855 L432 851 L427 847 L422 844 L416 840 L409 835 L403 830 L397 825 L392 820 L387 815 L382 810 L377 805 L372 800 L367 795 L362 789 L357 784 L353 779 L349 774 L344 769 L340 764 L336 759 L331 753 L326 746 L321 739 L318 734 L314 729 L311 724 L306 718 L301 710 L297 704 L294 699 L290 694 L286 688 L281 680 L277 674 L273 669 L270 664 L266 658 L261 651 L256 644 L253 639 L249 634 L245 628 L241 623 L236 617 L231 610 L226 604 L221 598 L216 593 L212 588 L207 583 L202 578 L197 573 L191 568 L186 563 L181 559 L176 555 L171 550 L166 547 L161 543 L154 538 L147 533 L141 529 L136 525 L131 522 L124 518 L115 513 L110 510 L105 507 L98 503 L90 499 L85 496 L79 493 L70 488 L65 485 L60 483 L50 478 L45 475 L40 472 L31 468 L25 464 L20 462 L12 458 L5 454 L0 451 M1200 770 L1195 775 L1190 780 L1185 784 L1179 789 L1174 794 L1168 799 L1161 804 L1155 809 L1150 813 L1145 817 L1140 820 L1133 825 L1125 830 L1120 833 L1115 836 L1107 840 L1100 843 L1095 846 L1086 850 L1079 853 L1074 855 L1064 859 L1059 860 L1049 864 L1044 865 L1034 868 L1026 870 L1019 871 L1009 873 L999 875 L994 875 L984 877 L974 877 L964 878 L954 878 L944 878 L934 878 L924 878 L914 877 L904 876 L894 875 L887 875 L879 874 L869 873 L859 872 L849 871 L843 870 L833 869 L823 868 L813 866 L803 865 L797 865 L788 864 L778 863 L768 862 L758 862 L748 861 L738 861 L728 861 L718 861 L708 861 L698 861 L688 861 L678 861 L668 861 L658 862 L648 862 L638 862 L628 862 L618 862 L608 862 L597 862 L587 862 L577 861 L567 861 L558 860 L552 859 L542 858 L532 856 L527 855 L517 852 L508 850 L502 848 L494 845 L487 842 L481 840 L472 835 L467 833 L461 830 L452 825 L447 821 L442 818 L437 814 L430 809 L424 804 L417 799 L412 795 L407 790 L402 785 L397 780 L392 775 L387 770 L382 764 L377 759 L373 754 L369 749 L365 744 L361 739 L356 734 L351 727 L346 720 L342 714 L339 709 L335 704 L331 698 L326 690 L322 684 L319 679 L316 674 L311 667 L306 659 L303 654 L300 649 L296 643 L291 635 L287 628 L283 623 L280 618 L276 613 L271 606 L266 599 L262 593 L258 588 L254 583 L250 578 L246 573 L241 568 L236 563 L231 557 L226 552 L221 548 L216 543 L210 538 L204 533 L197 528 L191 523 L186 520 L181 516 L176 513 L168 508 L161 503 L156 500 L151 498 L142 493 L136 489 L131 487 L123 483 L115 479 L110 477 L102 473 L95 469 L90 467 L81 463 L75 460 L70 457 L60 453 L55 450 L50 447 L40 443 L35 440 L29 437 L20 433 L15 430 L9 427 L0 422 M1200 736 L1195 741 L1190 747 L1185 752 L1180 757 L1175 762 L1170 767 L1165 771 L1160 776 L1155 780 L1149 784 L1142 789 L1135 794 L1130 798 L1125 802 L1120 805 L1112 809 L1105 814 L1100 816 L1094 820 L1085 824 L1079 826 L1071 830 L1064 832 L1058 835 L1049 838 L1043 840 L1034 842 L1024 845 L1019 846 L1009 848 L999 850 L994 850 L984 851 L974 852 L964 853 L954 853 L944 853 L934 853 L924 853 L914 852 L904 852 L894 851 L884 850 L879 850 L869 848 L859 847 L849 846 L838 845 L833 844 L823 843 L813 842 L803 841 L793 840 L788 840 L778 839 L768 838 L758 837 L748 837 L738 836 L728 836 L718 835 L708 835 L698 835 L688 835 L678 835 L668 835 L658 835 L648 835 L643 835 L633 835 L623 834 L613 834 L603 834 L592 833 L582 832 L572 831 L563 830 L557 829 L547 827 L537 825 L532 823 L522 821 L517 819 L507 815 L502 813 L493 809 L487 807 L482 804 L473 799 L467 796 L462 793 L457 789 L450 784 L443 779 L437 774 L432 770 L427 765 L422 760 L417 755 L412 750 L407 745 L402 739 L397 734 L393 729 L389 724 L385 719 L381 714 L377 707 L372 700 L367 694 L364 689 L361 684 L356 677 L351 669 L348 664 L345 659 L341 653 L336 644 L333 639 L330 634 L326 627 L321 618 L318 613 L315 608 L311 602 L306 594 L303 588 L300 583 L296 578 L291 571 L286 564 L282 558 L278 553 L274 548 L269 543 L265 538 L260 533 L255 528 L249 523 L243 518 L237 513 L231 508 L226 504 L221 501 L216 497 L209 493 L201 488 L196 485 L191 482 L182 478 L176 475 L171 472 L161 468 L156 465 L150 463 L141 458 L136 456 L127 453 L121 450 L115 447 L105 443 L100 441 L91 437 L85 435 L79 432 L70 428 L65 426 L56 422 L50 420 L45 417 L35 413 L30 410 L24 407 L15 403 L10 400 L4 397 M1200 699 L1196 704 L1192 709 L1188 714 L1184 719 L1180 724 L1175 729 L1170 735 L1165 740 L1160 745 L1155 749 L1149 754 L1143 759 L1137 764 L1131 769 L1125 774 L1120 777 L1115 780 L1108 784 L1100 789 L1095 792 L1090 795 L1081 799 L1074 802 L1069 805 L1059 809 L1054 811 L1044 814 L1039 816 L1029 819 L1024 820 L1014 822 L1004 824 L999 825 L989 827 L979 828 L969 829 L959 829 L949 829 L939 830 L929 829 L919 829 L909 829 L899 828 L889 827 L879 826 L869 825 L864 825 L854 823 L844 822 L833 821 L823 820 L818 819 L808 818 L798 817 L788 816 L778 815 L770 815 L763 814 L753 813 L743 812 L733 812 L723 811 L713 811 L703 810 L693 810 L683 810 L678 809 L668 809 L658 809 L648 808 L638 808 L628 807 L618 807 L608 806 L597 805 L592 804 L582 803 L572 801 L564 799 L557 798 L547 796 L542 794 L532 791 L527 789 L517 785 L512 783 L504 779 L497 776 L492 773 L486 769 L478 764 L472 760 L467 757 L462 753 L457 749 L452 744 L446 739 L441 734 L436 729 L431 724 L427 719 L422 713 L417 707 L412 700 L407 694 L403 689 L400 684 L397 679 L392 671 L387 664 L384 659 L381 654 L377 645 L373 639 L370 634 L367 627 L362 618 L360 613 L356 607 L352 598 L349 593 L346 587 L342 578 L339 573 L336 568 L331 559 L328 553 L325 548 L321 542 L316 535 L312 528 L308 523 L304 518 L300 513 L295 508 L290 503 L285 498 L279 493 L273 488 L266 483 L261 479 L256 476 L250 473 L241 468 L236 465 L231 462 L221 458 L216 455 L209 453 L201 449 L196 447 L186 443 L181 441 L171 438 L166 436 L156 432 L151 430 L142 427 L136 425 L127 422 L121 420 L113 417 L105 414 L99 412 L90 409 L85 407 L75 403 L70 401 L61 397 L55 395 L49 392 L40 388 L35 386 L26 382 L20 379 L15 377 L6 372 L0 369 M552 0 L560 5 L567 10 L572 13 L577 15 L587 18 L597 18 L608 16 L613 14 L620 10 L628 6 L633 3 L638 0 M1166 0 L1170 9 L1172 15 L1175 24 L1177 30 L1179 40 L1181 45 L1183 55 L1185 65 L1186 70 L1187 80 L1189 91 L1190 99 L1191 106 L1192 116 L1193 126 L1194 136 L1194 146 L1195 152 L1196 161 L1197 171 L1197 181 L1198 191 L1199 201 L1200 210 M1200 655 L1195 664 L1192 669 L1189 674 L1185 680 L1180 687 L1175 694 L1171 699 L1167 704 L1162 709 L1158 714 L1153 719 L1148 724 L1143 729 L1137 734 L1131 739 L1125 744 L1120 748 L1115 752 L1110 756 L1104 759 L1096 764 L1090 768 L1085 771 L1078 774 L1069 779 L1064 781 L1056 784 L1049 787 L1043 789 L1034 792 L1027 794 L1019 797 L1009 799 L1004 800 L994 802 L984 803 L974 804 L969 805 L959 806 L949 806 L939 806 L929 806 L919 806 L909 805 L899 805 L893 804 L884 804 L874 803 L864 802 L854 801 L844 800 L838 799 L828 798 L818 797 L808 796 L799 794 L793 794 L783 793 L773 792 L763 791 L753 790 L748 789 L738 789 L728 788 L718 787 L708 786 L698 786 L688 785 L679 784 L673 784 L663 783 L653 782 L643 782 L633 781 L623 779 L618 779 L608 777 L597 776 L589 774 L582 773 L572 771 L567 769 L557 766 L551 764 L542 761 L537 759 L527 755 L522 752 L516 749 L507 744 L502 741 L497 737 L492 734 L486 729 L479 724 L474 719 L468 714 L463 709 L459 704 L454 699 L450 694 L446 689 L442 684 L437 677 L432 669 L428 664 L425 659 L422 653 L417 644 L414 639 L411 634 L407 624 L404 618 L402 613 L397 603 L395 598 L392 589 L389 583 L387 576 L384 568 L382 562 L378 553 L376 548 L373 538 L371 533 L367 523 L365 518 L362 509 L359 503 L356 498 L351 489 L348 483 L344 478 L340 473 L336 468 L331 463 L325 458 L318 453 L311 448 L306 446 L300 442 L291 439 L286 437 L276 433 L271 431 L261 428 L256 427 L246 424 L240 422 L231 420 L221 417 L216 416 L206 414 L200 412 L191 410 L181 408 L176 406 L166 404 L160 402 L151 400 L141 397 L136 396 L126 393 L121 391 L110 388 L105 387 L95 384 L90 382 L80 378 L75 377 L65 373 L60 371 L51 367 L45 365 L39 362 L30 358 L25 356 L17 352 L10 348 L5 346 M582 105 L577 106 L567 110 L562 113 L557 117 L552 121 L547 126 L542 132 L537 138 L532 145 L528 151 L525 156 L521 161 L517 168 L513 176 L510 181 L507 186 L502 196 L500 201 L497 209 L494 216 L492 223 L490 231 L487 241 L486 246 L485 256 L484 266 L484 277 L486 287 L488 292 L492 298 L497 303 L502 307 L512 311 L522 312 L532 311 L542 309 L548 307 L557 303 L562 300 L569 297 L576 292 L582 287 L587 282 L592 277 L597 272 L602 266 L605 261 L609 256 L613 250 L617 241 L619 236 L622 226 L624 221 L626 211 L627 201 L627 191 L627 181 L626 171 L624 161 L622 156 L619 146 L617 141 L613 131 L609 126 L606 121 L602 116 L596 111 L587 106 L582 105 M457 0 L462 9 L465 15 L467 21 L470 30 L472 40 L473 45 L474 55 L474 65 L473 75 L472 85 L471 91 L469 101 L467 110 L465 116 L462 126 L461 131 L457 141 L456 146 L452 156 L450 161 L447 169 L444 176 L442 183 L439 191 L437 196 L433 206 L431 211 L427 221 L425 226 L422 234 L419 241 L417 247 L413 256 L411 261 L407 272 L405 277 L402 284 L398 292 L396 297 L392 306 L389 312 L386 317 L382 325 L377 332 L374 337 L370 342 L366 347 L361 352 L354 357 L347 362 L341 365 L336 368 L326 372 L321 373 L311 376 L304 377 L296 378 L286 380 L276 380 L266 381 L256 381 L246 381 L236 381 L226 380 L216 379 L206 379 L196 377 L191 377 L181 375 L171 374 L161 372 L156 371 L146 369 L136 367 L131 366 L121 364 L113 362 L105 360 L95 357 L90 356 L80 352 L75 351 L65 347 L60 345 L52 342 L45 339 L40 337 L30 333 L25 330 L18 327 L10 323 L5 320 M1120 0 L1125 9 L1128 15 L1130 20 L1135 30 L1136 35 L1140 45 L1141 50 L1144 60 L1146 65 L1148 75 L1150 84 L1151 91 L1153 101 L1154 111 L1155 116 L1157 126 L1158 136 L1159 146 L1160 152 L1161 161 L1162 171 L1163 181 L1164 191 L1165 196 L1166 206 L1168 216 L1169 226 L1170 231 L1172 241 L1173 251 L1175 261 L1176 266 L1178 277 L1180 287 L1181 292 L1183 302 L1185 311 L1186 317 L1188 327 L1190 334 L1192 342 L1194 352 L1195 358 L1197 367 L1199 377 M1200 595 L1197 603 L1195 610 L1192 618 L1189 623 L1185 633 L1182 639 L1180 644 L1175 652 L1171 659 L1168 664 L1164 669 L1160 675 L1155 681 L1150 688 L1145 693 L1140 699 L1135 704 L1130 709 L1125 714 L1120 718 L1115 722 L1110 726 L1105 730 L1099 734 L1092 739 L1085 744 L1079 747 L1074 749 L1065 754 L1059 757 L1054 759 L1044 763 L1039 765 L1029 769 L1024 770 L1014 773 L1009 774 L999 777 L989 779 L984 779 L974 781 L964 782 L954 782 L944 783 L934 783 L924 783 L914 783 L904 782 L894 782 L884 781 L874 780 L867 779 L859 778 L849 777 L838 776 L828 775 L822 774 L813 773 L803 772 L793 771 L783 770 L778 769 L768 768 L758 767 L748 766 L738 765 L733 764 L723 763 L713 762 L703 761 L693 760 L684 759 L678 759 L668 757 L658 756 L648 755 L643 754 L633 753 L623 751 L614 749 L608 748 L597 746 L592 744 L582 741 L576 739 L567 736 L562 734 L552 730 L547 727 L541 724 L532 719 L527 716 L522 713 L517 709 L510 704 L504 699 L499 694 L494 689 L489 684 L484 679 L480 674 L476 669 L472 663 L467 655 L463 649 L460 644 L457 638 L452 628 L450 623 L447 617 L444 608 L442 603 L439 593 L437 588 L434 578 L432 568 L431 563 L430 553 L428 543 L428 533 L427 523 L427 513 L428 503 L429 493 L431 483 L433 478 L436 468 L439 463 L442 456 L447 449 L452 443 L457 437 L462 433 L467 429 L472 425 L477 422 L485 417 L492 413 L497 410 L503 407 L512 403 L517 400 L523 397 L532 392 L537 390 L542 387 L551 382 L557 379 L562 376 L569 372 L577 367 L582 363 L587 360 L592 357 L599 352 L605 347 L612 342 L618 337 L623 332 L628 328 L633 323 L638 318 L643 312 L647 307 L652 302 L656 297 L659 292 L663 287 L668 279 L672 272 L675 266 L678 261 L682 251 L685 246 L688 238 L690 231 L693 223 L695 216 L697 206 L698 201 L700 191 L702 181 L703 171 L703 166 L704 156 L705 146 L706 136 L706 126 L707 116 L708 106 L708 101 L710 91 L711 80 L713 73 L715 65 L718 57 L720 50 L723 44 L728 35 L731 30 L734 25 L738 19 L743 13 L748 7 L753 1 M402 0 L407 8 L410 15 L412 20 L415 30 L417 35 L419 45 L421 55 L421 65 L421 75 L421 85 L420 96 L418 106 L417 115 L415 121 L413 131 L412 136 L409 146 L407 152 L404 161 L402 167 L398 176 L396 181 L392 191 L390 196 L387 204 L384 211 L381 216 L377 226 L374 231 L371 236 L367 245 L363 251 L360 256 L356 262 L351 270 L347 277 L343 282 L339 287 L334 292 L330 297 L324 302 L319 307 L312 312 L306 316 L301 319 L296 322 L288 327 L281 330 L276 332 L266 335 L260 337 L251 339 L241 341 L236 342 L226 343 L216 344 L206 344 L196 345 L186 344 L176 344 L166 343 L156 342 L151 342 L141 340 L131 339 L121 337 L115 336 L105 333 L99 332 L90 329 L81 327 L75 325 L66 322 L60 320 L53 317 L45 314 L40 312 L30 307 L25 304 L20 302 L10 297 L5 293 L0 290 M1056 0 L1061 5 L1066 10 L1070 15 L1074 21 L1079 28 L1084 35 L1087 40 L1090 46 L1094 55 L1096 60 L1100 70 L1102 75 L1105 85 L1106 91 L1109 101 L1110 106 L1112 116 L1115 126 L1116 131 L1117 141 L1119 151 L1120 156 L1122 166 L1124 176 L1125 181 L1126 191 L1128 201 L1130 209 L1131 216 L1133 226 L1135 234 L1136 241 L1139 251 L1140 256 L1142 266 L1145 277 L1146 282 L1148 292 L1150 297 L1152 307 L1155 316 L1156 322 L1159 332 L1160 337 L1163 347 L1165 353 L1167 362 L1170 372 L1171 377 L1173 387 L1175 394 L1177 402 L1179 412 L1180 417 L1182 427 L1183 437 L1185 447 L1186 453 L1187 463 L1188 473 L1188 483 L1189 493 L1189 503 L1189 513 L1188 523 L1188 533 L1186 543 L1185 553 L1184 558 L1182 568 L1180 576 L1178 583 L1175 593 L1173 598 L1170 607 L1167 613 L1165 619 L1160 628 L1157 634 L1154 639 L1150 646 L1145 654 L1141 659 L1138 664 L1134 669 L1129 674 L1125 679 L1120 684 L1115 690 L1110 694 L1104 699 L1098 704 L1092 709 L1085 714 L1079 718 L1074 721 L1069 724 L1060 729 L1054 732 L1049 735 L1039 739 L1034 741 L1026 744 L1019 746 L1010 749 L1004 751 L994 753 L988 754 L979 756 L969 757 L959 758 L949 759 L940 759 L934 759 L924 759 L914 759 L909 759 L899 759 L889 758 L879 757 L869 756 L859 755 L849 754 L844 754 L833 752 L823 751 L813 750 L807 749 L798 748 L788 747 L778 745 L769 744 L763 743 L753 742 L743 741 L733 739 L728 739 L718 737 L708 736 L698 734 L693 734 L683 732 L673 731 L664 729 L658 728 L648 726 L639 724 L633 722 L623 720 L618 718 L608 715 L603 714 L592 710 L587 708 L579 704 L572 701 L567 698 L560 694 L552 689 L547 685 L542 681 L537 677 L532 672 L527 667 L522 662 L517 656 L512 649 L508 644 L505 639 L502 634 L497 624 L495 618 L492 612 L489 603 L487 595 L485 588 L484 578 L483 568 L483 558 L483 548 L484 538 L486 528 L488 523 L491 513 L494 508 L497 501 L502 493 L505 488 L509 483 L513 478 L518 473 L523 468 L528 463 L533 458 L539 453 L545 447 L551 442 L557 438 L562 434 L567 430 L572 427 L578 422 L585 417 L592 412 L597 408 L603 404 L608 401 L613 397 L618 392 L625 387 L631 382 L637 377 L643 372 L648 367 L653 363 L658 358 L663 353 L668 348 L673 343 L678 338 L683 332 L687 327 L692 322 L696 317 L699 312 L703 307 L708 300 L713 292 L717 287 L720 282 L723 276 L728 267 L731 261 L733 256 L738 246 L740 241 L743 233 L746 226 L748 219 L751 211 L753 203 L755 196 L758 186 L759 181 L761 171 L763 161 L764 156 L766 146 L768 137 L770 131 L772 121 L773 115 L776 106 L778 97 L780 91 L783 82 L786 75 L788 70 L793 60 L796 55 L799 50 L803 44 L808 37 L813 31 L818 26 L823 20 L828 16 L833 11 L838 7 L844 3 M356 0 L359 5 L362 10 L367 19 L369 25 L372 32 L374 40 L376 50 L377 55 L379 65 L379 75 L379 85 L379 96 L377 106 L377 112 L375 121 L373 131 L371 136 L369 146 L367 152 L364 161 L362 167 L358 176 L356 181 L351 190 L349 196 L346 201 L341 210 L338 216 L335 221 L331 227 L326 234 L321 241 L317 246 L313 251 L309 256 L304 261 L299 266 L294 272 L287 277 L281 281 L276 285 L271 288 L265 292 L256 296 L251 298 L242 302 L236 304 L226 307 L221 308 L211 310 L201 312 L196 312 L186 313 L176 313 L166 314 L156 313 L146 313 L136 312 L131 311 L121 310 L110 308 L105 307 L95 304 L85 302 L80 300 L70 297 L65 295 L55 292 L50 290 L43 287 L35 283 L30 280 L23 277 L15 272 L10 269 L5 266 M954 35 L963 35 L969 36 L979 38 L987 40 L994 43 L999 45 L1007 50 L1014 55 L1019 60 L1024 65 L1029 70 L1033 75 L1037 80 L1040 85 L1044 93 L1048 101 L1051 106 L1054 113 L1057 121 L1059 126 L1063 136 L1065 141 L1068 151 L1069 156 L1072 166 L1074 173 L1077 181 L1079 191 L1081 196 L1084 206 L1086 211 L1089 221 L1090 226 L1093 236 L1095 241 L1098 251 L1100 256 L1103 266 L1105 272 L1108 282 L1110 287 L1113 297 L1115 302 L1118 312 L1120 317 L1124 327 L1125 332 L1129 342 L1130 347 L1134 357 L1135 362 L1139 372 L1140 377 L1143 387 L1145 393 L1147 402 L1150 412 L1151 417 L1153 427 L1155 434 L1156 442 L1158 453 L1160 463 L1160 468 L1161 478 L1162 488 L1162 498 L1163 508 L1162 518 L1162 528 L1161 538 L1160 544 L1158 553 L1156 563 L1155 569 L1152 578 L1150 586 L1147 593 L1145 600 L1141 608 L1139 613 L1135 621 L1130 628 L1127 634 L1124 639 L1120 644 L1115 651 L1110 657 L1105 663 L1100 668 L1095 673 L1090 678 L1085 682 L1079 686 L1074 690 L1069 694 L1061 699 L1054 703 L1049 706 L1043 709 L1034 713 L1029 715 L1020 719 L1014 721 L1005 724 L999 726 L989 728 L984 729 L974 731 L964 732 L954 734 L948 734 L939 735 L929 735 L919 735 L909 735 L899 734 L891 734 L884 734 L874 733 L864 732 L854 731 L844 730 L838 729 L828 728 L818 726 L808 725 L803 724 L793 722 L783 721 L773 719 L768 719 L758 717 L748 715 L741 714 L733 713 L723 711 L713 709 L708 708 L698 706 L689 704 L683 703 L673 700 L668 699 L658 696 L651 694 L643 691 L636 689 L628 686 L623 684 L613 679 L608 676 L603 674 L595 669 L587 664 L582 660 L577 656 L572 651 L567 646 L562 640 L557 634 L554 628 L551 623 L547 617 L544 608 L542 603 L539 593 L537 583 L537 578 L537 568 L537 561 L538 553 L541 543 L542 538 L546 528 L549 523 L552 516 L557 508 L561 503 L565 498 L569 493 L573 488 L577 483 L582 477 L587 472 L592 467 L598 463 L603 458 L609 453 L614 447 L620 442 L626 437 L632 432 L638 427 L643 423 L648 419 L653 414 L658 410 L663 405 L668 401 L673 396 L678 392 L683 387 L688 382 L693 377 L698 372 L703 367 L708 362 L713 356 L718 351 L723 345 L728 339 L733 333 L738 327 L742 322 L746 317 L750 312 L754 307 L758 300 L763 293 L767 287 L770 282 L774 277 L778 269 L782 261 L785 256 L788 250 L793 241 L795 236 L798 230 L802 221 L804 216 L808 206 L811 201 L813 194 L816 186 L818 181 L822 171 L824 166 L828 156 L830 151 L833 141 L836 136 L838 129 L842 121 L845 116 L849 108 L853 101 L856 96 L859 91 L864 85 L869 79 L874 73 L879 68 L884 63 L889 59 L894 55 L902 50 L909 47 L914 44 L924 40 L929 39 L939 36 L949 35 L954 35 M313 0 L316 5 L321 13 L325 20 L328 25 L331 34 L334 40 L336 50 L338 55 L339 65 L340 75 L341 85 L340 96 L340 106 L338 116 L336 125 L335 131 L332 141 L331 146 L327 156 L325 161 L321 170 L319 176 L316 181 L311 190 L308 196 L305 201 L301 206 L296 213 L291 220 L286 226 L281 231 L276 236 L271 241 L266 245 L261 249 L256 253 L251 256 L242 261 L236 265 L231 267 L221 271 L216 273 L206 276 L201 278 L191 280 L181 282 L176 282 L166 283 L156 284 L146 284 L136 283 L126 282 L120 282 L110 280 L100 278 L93 277 L85 275 L75 272 L70 270 L60 266 L55 264 L48 261 L40 258 L35 255 L28 251 L20 246 L15 243 L10 240 L5 236 M939 165 L949 163 L959 163 L969 166 L974 168 L980 171 L987 176 L993 181 L998 186 L1003 191 L1007 196 L1011 201 L1015 206 L1019 213 L1024 220 L1028 226 L1031 231 L1034 236 L1039 245 L1043 251 L1046 256 L1049 262 L1054 272 L1057 277 L1060 282 L1064 290 L1068 297 L1070 302 L1074 310 L1078 317 L1080 322 L1085 330 L1088 337 L1090 342 L1094 352 L1097 357 L1100 364 L1103 372 L1105 377 L1109 387 L1111 392 L1114 402 L1116 407 L1119 417 L1121 422 L1123 432 L1125 438 L1127 447 L1129 458 L1130 463 L1131 473 L1133 483 L1133 493 L1134 503 L1134 513 L1133 523 L1132 533 L1131 543 L1130 551 L1128 558 L1126 568 L1124 573 L1121 583 L1119 588 L1115 598 L1112 603 L1109 608 L1105 616 L1100 623 L1096 628 L1093 634 L1088 639 L1084 644 L1079 649 L1074 654 L1069 659 L1063 664 L1056 669 L1049 673 L1044 677 L1039 680 L1032 684 L1024 687 L1019 690 L1009 694 L1004 696 L994 699 L989 700 L979 703 L973 704 L964 705 L954 707 L944 708 L934 709 L924 709 L919 709 L910 709 L904 709 L894 708 L884 708 L874 707 L864 706 L854 705 L847 704 L838 703 L828 701 L818 700 L813 699 L803 697 L793 695 L786 694 L778 692 L768 690 L761 689 L753 687 L743 685 L738 684 L728 681 L720 679 L713 677 L703 674 L698 672 L688 669 L683 667 L674 664 L668 661 L663 659 L653 654 L648 651 L643 647 L637 644 L630 639 L624 634 L619 628 L615 623 L611 618 L607 613 L603 604 L600 598 L597 590 L596 583 L595 573 L596 563 L597 553 L599 548 L602 538 L604 533 L608 526 L612 518 L615 513 L619 508 L623 503 L628 496 L633 490 L638 484 L643 479 L648 473 L653 468 L658 463 L663 458 L668 453 L673 448 L678 443 L683 439 L688 434 L693 429 L698 424 L703 419 L708 414 L713 409 L718 405 L723 400 L728 395 L733 390 L738 384 L743 379 L748 374 L753 369 L758 364 L763 358 L768 353 L773 347 L778 342 L782 337 L787 332 L791 327 L795 322 L800 317 L804 312 L808 306 L813 300 L818 293 L823 287 L828 282 L832 277 L835 272 L839 266 L844 261 L849 254 L854 248 L858 241 L862 236 L866 231 L870 226 L874 221 L879 215 L884 209 L889 203 L894 197 L899 192 L904 187 L909 182 L914 178 L919 174 L924 171 L934 166 L939 165 M268 0 L272 5 L276 10 L281 17 L286 25 L289 30 L291 35 L295 45 L297 50 L300 60 L301 68 L302 75 L303 85 L303 96 L302 106 L301 112 L300 121 L297 131 L296 136 L292 146 L290 151 L286 160 L283 166 L281 171 L276 178 L271 186 L267 191 L263 196 L259 201 L255 206 L249 211 L244 216 L238 221 L231 226 L226 229 L221 232 L213 236 L206 240 L201 242 L191 245 L186 247 L176 249 L166 251 L161 252 L151 253 L141 253 L131 253 L121 252 L114 251 L105 250 L95 248 L88 246 L80 244 L71 241 L65 239 L59 236 L50 233 L45 230 L38 226 L30 221 L25 218 L20 214 L15 211 L10 206 L4 201 M929 286 L939 284 L949 284 L959 285 L967 287 L974 289 L980 292 L989 296 L994 300 L999 303 L1004 307 L1010 312 L1015 317 L1020 322 L1025 327 L1029 332 L1034 338 L1039 344 L1044 351 L1048 357 L1052 362 L1055 367 L1059 374 L1064 382 L1067 387 L1069 392 L1074 402 L1077 407 L1079 413 L1083 422 L1085 427 L1089 437 L1090 442 L1093 453 L1095 458 L1097 468 L1098 478 L1100 486 L1100 493 L1101 503 L1101 513 L1101 523 L1100 533 L1099 538 L1097 548 L1095 558 L1094 563 L1090 573 L1088 578 L1085 586 L1081 593 L1078 598 L1074 604 L1069 611 L1064 618 L1059 623 L1055 628 L1049 633 L1044 638 L1039 642 L1034 646 L1029 649 L1022 654 L1014 658 L1009 660 L1002 664 L994 667 L988 669 L979 672 L971 674 L964 675 L954 677 L944 678 L939 679 L929 680 L919 680 L909 680 L899 680 L889 679 L883 679 L874 678 L864 677 L854 675 L844 674 L838 673 L828 671 L818 669 L813 668 L803 666 L794 664 L788 662 L778 660 L773 658 L763 655 L758 653 L748 650 L743 648 L733 644 L728 642 L720 639 L713 635 L708 632 L702 628 L695 623 L688 618 L683 614 L678 608 L674 603 L670 598 L667 593 L663 583 L662 578 L660 568 L660 558 L662 548 L663 543 L667 533 L669 528 L673 520 L677 513 L680 508 L684 503 L688 497 L693 490 L698 484 L703 478 L707 473 L712 468 L717 463 L721 458 L726 453 L731 447 L736 442 L741 437 L746 432 L751 427 L756 422 L761 417 L766 412 L771 407 L776 402 L781 397 L787 392 L792 387 L797 382 L802 377 L808 372 L813 367 L818 362 L823 357 L828 353 L833 348 L838 344 L844 339 L849 335 L854 331 L859 326 L864 322 L871 317 L878 312 L884 307 L889 304 L894 301 L901 297 L909 293 L914 291 L924 287 L929 286 M216 0 L221 4 L226 9 L231 14 L236 19 L241 25 L244 30 L248 35 L251 41 L255 50 L257 55 L260 65 L261 70 L263 80 L263 91 L263 101 L261 111 L261 116 L258 126 L256 132 L253 141 L250 146 L246 154 L242 161 L238 166 L234 171 L230 176 L225 181 L220 186 L214 191 L208 196 L201 200 L196 203 L190 206 L181 210 L176 212 L166 215 L161 216 L151 218 L141 219 L131 220 L121 219 L110 219 L100 217 L95 216 L85 213 L79 211 L70 208 L65 206 L56 201 L50 198 L45 195 L39 191 L33 186 L27 181 L21 176 L17 171 L12 166 L8 161 L5 156 L0 148 M0 33 L5 25 L9 20 L13 15 L17 10 L23 5 L28 0 M914 367 L924 365 L934 364 L944 363 L954 365 L964 367 L969 368 L978 372 L984 375 L989 378 L995 382 L1002 387 L1007 392 L1013 397 L1017 402 L1022 407 L1026 412 L1029 417 L1034 425 L1039 432 L1042 437 L1044 443 L1049 453 L1051 458 L1054 468 L1056 473 L1058 483 L1059 491 L1060 498 L1061 508 L1061 518 L1061 528 L1059 536 L1058 543 L1055 553 L1054 558 L1050 568 L1047 573 L1044 579 L1039 586 L1034 593 L1030 598 L1025 603 L1020 608 L1014 613 L1009 617 L1004 620 L999 624 L990 628 L984 631 L978 634 L969 637 L963 639 L954 641 L944 643 L938 644 L929 645 L919 645 L909 645 L899 645 L889 644 L880 644 L874 643 L864 641 L854 640 L849 639 L838 636 L828 634 L823 632 L813 629 L808 627 L799 623 L793 621 L787 618 L778 614 L773 611 L768 608 L762 603 L755 598 L750 593 L746 588 L742 583 L738 577 L734 568 L733 563 L732 553 L732 543 L733 538 L736 528 L738 523 L743 513 L745 508 L748 503 L753 495 L758 488 L762 483 L766 478 L771 473 L775 468 L779 463 L784 458 L789 453 L794 447 L799 442 L804 437 L810 432 L815 427 L821 422 L827 417 L833 412 L838 408 L844 404 L849 401 L854 397 L861 392 L868 387 L874 384 L879 381 L887 377 L894 374 L899 372 L909 368 L914 367 M90 9 L100 7 L110 6 L121 5 L131 6 L141 8 L150 10 L156 12 L163 15 L171 19 L176 22 L181 25 L187 30 L192 35 L197 40 L201 45 L206 53 L209 60 L212 65 L214 75 L216 85 L216 91 L216 98 L215 106 L213 116 L211 121 L206 131 L204 136 L200 141 L196 147 L191 152 L186 157 L181 161 L173 166 L166 170 L161 172 L151 176 L146 177 L136 179 L126 180 L115 179 L105 178 L95 176 L90 175 L80 171 L75 169 L70 166 L62 161 L56 156 L50 151 L45 146 L41 141 L37 136 L34 131 L30 122 L27 116 L25 107 L24 101 L23 91 L24 80 L25 73 L27 65 L30 58 L34 50 L37 45 L41 40 L45 35 L50 30 L56 25 L64 20 L70 16 L75 14 L85 10 L90 9 M919 442 L929 442 L939 442 L944 443 L954 446 L959 448 L967 453 L974 457 L979 462 L984 467 L988 473 L991 478 L994 483 L998 493 L1000 498 L1002 508 L1003 518 L1002 528 L1000 538 L998 543 L994 552 L990 558 L986 563 L982 568 L977 573 L970 578 L964 582 L959 585 L951 588 L944 591 L934 593 L929 594 L919 595 L909 595 L899 595 L889 594 L884 593 L874 590 L867 588 L859 585 L854 582 L846 578 L839 573 L833 568 L829 563 L825 558 L823 553 L820 543 L819 533 L821 523 L823 516 L827 508 L830 503 L833 498 L838 491 L844 485 L849 480 L854 475 L859 471 L864 467 L869 463 L877 458 L884 454 L889 451 L898 447 L904 446 L914 443 L919 442' fill='none' stroke='%237fd1b9' stroke-opacity='.35' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.auth {
    --tinta:#0e211e; --tinta-suave:#2b4540; --gris:#587069; --borde:#c9d8d2; --borde-fuerte:#a9bdb5;
    --azul:#0f6b73; --azul-hover:#0c585f; --foco:#ff6a4d; --foco-anillo:rgba(255,106,77,.22);
    --fuente:"InstrumentSans",system-ui,sans-serif; --display:"Bricolage",system-ui,sans-serif;
}
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

@font-face { font-family: "InstrumentSans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

.auth { background:var(--hueso); font-family:var(--fuente); }
.auth h1, .auth h2, .auth h3, .auth .marca { font-family:var(--display); }
.auth h1 { font-weight:750; letter-spacing:-.035em; }
/* ---------- acceso: sin tarjeta, dos mitades a pantalla completa ---------- */
.auth { padding:0; background:var(--hueso); display:block; }
.auth-grid { max-width:none; min-height:100vh; border-radius:0; box-shadow:none; border:0; background:var(--hueso); grid-template-columns:1.15fr 1fr; overflow:visible; }
.hero { padding:4.5rem 4rem; background:var(--topo) center/cover, var(--bosque); justify-content:space-between; gap:2rem; }
.hero::before { display:none; }
.hero .marca-grande { font-size:1.6rem; }
.lema { font-family:var(--display); font-size:clamp(2.4rem,1.4rem + 3vw,4rem); line-height:1.02; letter-spacing:-.04em; font-weight:700; max-width:13ch; color:#fff; margin-top:auto; }
.beneficios { gap:.7rem; max-width:34rem; }
.beneficios li { color:#b9d9cd; padding-left:1.6rem; font-size:1rem; }
.beneficios li::before { width:.6rem; height:.6rem; top:.55em; border-radius:50%; background:var(--coral); }
.zona { color:#7fd1b9; font-size:.8rem; letter-spacing:.04em; border-top:1px solid rgba(127,209,185,.35); padding-top:1rem; }
.zona::after { content:"  ·  8.98° N, 79.52° O"; color:#7fd1b9; opacity:.7; }
.tarjeta { padding:4.5rem clamp(2rem,6vw,5.5rem); justify-content:center; max-width:34rem; }
.tarjeta h1 { font-size:clamp(2rem,1.4rem + 2vw,2.9rem); margin-bottom:2rem; }
/* campos: solo línea inferior, sin cajas */
.auth input[type=text], .auth input[type=email], .auth input[type=password], .auth input[type=number], .auth input[type=search], .auth input[type=tel], .auth input[type=date], .auth select, .auth textarea {
  background:transparent; border:0; border-bottom:2px solid var(--borde-fuerte); border-radius:0; padding:.7rem 0 .6rem; box-shadow:none; font-size:1.05rem; }
.auth input:focus, .auth select:focus, .auth textarea:focus { border-bottom-color:var(--tinta); box-shadow:none; background:transparent; }
.auth input:hover, .auth select:hover, .auth textarea:hover { border-bottom-color:var(--tinta-suave); }
.auth label { font-size:.82rem; font-weight:600; color:var(--gris); letter-spacing:.01em; }
.auth .boton { background:var(--coral); color:var(--tinta); border-radius:999px; padding:1rem 2rem; font-weight:700; box-shadow:none; letter-spacing:-.01em; }
.auth .boton:hover { background:#ff7f65; color:var(--tinta); transform:translateY(-2px); box-shadow:0 10px 24px -8px rgba(255,106,77,.7); }
.auth .boton-secundario { background:transparent; color:var(--tinta); border:1.5px solid var(--tinta); box-shadow:none; padding:.55rem 1.2rem; }
.auth .boton-secundario:hover { background:var(--tinta); color:#fff; border-color:var(--tinta); box-shadow:none; }
.auth a { color:var(--mar); }
.auth .errores, .auth .aviso, .auth .aviso-grave, .auth .recordatorio { border-radius:0; border-width:0 0 0 4px; background:#fff; padding-left:1.1rem; }
.auth .errores::before, .auth .aviso::before, .auth .aviso-grave::before, .auth .recordatorio::before { display:none; }
.auth .aviso, .auth .rec-verde { border-color:#1f8a6a; color:#14583f; }
.auth .errores, .auth .rec-rojo { border-color:#d6402a; color:#8e2616; }
.auth .aviso-grave, .auth .rec-amarillo { border-color:var(--coral); color:#8a3a26; background:var(--coral-claro); }

/* Páginas de acceso de una sola columna (registro y verificación): tarjeta centrada sobre el fondo hueso */
.auth { display:grid; place-items:stretch; }
.auth-simple { margin:auto; width:100%; max-width:30rem; background:#fff; border:0; border-radius:28px; box-shadow:none; }
.auth-simple.tarjeta, .auth-simple .tarjeta { padding:2.6rem clamp(1.6rem,5vw,2.6rem); max-width:none; }
.auth:has(.auth-simple) { padding:1.5rem; }

/* ===== Estados: texto pequeño con una línea de color debajo (sin cuadritos) ===== */
.etiqueta { padding:.1rem 0 .15rem; border:0; border-bottom:2px solid currentColor; border-radius:0; background:none; font-size:.78rem; letter-spacing:.05em; text-transform:uppercase; font-weight:700; color:var(--tinta-suave); }
.etiqueta-agendada, .etiqueta-confirmada, .etiqueta-atendida, .etiqueta-resuelto, .etiqueta-emitida, .etiqueta-login_ok, .etiqueta-mfa_ok { background:none; color:#1f8a6a; }
.etiqueta-cancelada, .etiqueta-sin_disponibilidad, .etiqueta-escalado, .etiqueta-vencida,
.etiqueta-login_fallido, .etiqueta-mfa_fallido, .etiqueta-bloqueo, .etiqueta-acceso_denegado { background:none; color:#c8325b; }
.etiqueta-solicitada, .etiqueta-en_gestion, .etiqueta-disponibilidad_propuesta,
.etiqueta-abierto, .etiqueta-en_atencion, .etiqueta-activa { background:none; color:#b07d00; }
.etiqueta-retirada { background:none; color:#0f6b73; }

/* Marca de las pantallas de acceso: cruz oscura sobre coral */
.auth .marca::before { background:linear-gradient(var(--bosque),var(--bosque)) center/56% 20% no-repeat,linear-gradient(var(--bosque),var(--bosque)) center/20% 56% no-repeat,var(--coral); box-shadow:none; }

/* Ajustes finales del acceso: nombre de la marca y avisos con barra lateral */
.auth .marca { color: var(--bosque); }
.auth .marca-acento { color: var(--coral); font-family: var(--display); font-weight: 500; font-size: 1em; }
.hero .marca-grande { color: #fff; }
.hero .marca-grande .marca-acento { color: #7fd1b9; }
.auth .errores, .auth .aviso, .auth .aviso-grave, .auth .recordatorio { border-style: solid; border-top: 0; border-right: 0; border-bottom: 0; }
.auth-simple .errores, .auth-simple .aviso, .auth-simple .recordatorio { background: var(--hueso); }
.auth-simple .aviso-grave, .auth-simple .rec-amarillo { background: var(--coral-claro); }


/* ===== Coherencia entre acceso e interior ===== */
/* Marca igual en todo el sitio: círculo coral con cruz oscura */
.marca::before { background: linear-gradient(var(--bosque),var(--bosque)) center/56% 20% no-repeat, linear-gradient(var(--bosque),var(--bosque)) center/20% 56% no-repeat, var(--coral); box-shadow: none; }
.marca { color: var(--bosque); }
.marca-acento { color: var(--coral); }
body:not(.auth) a { color: var(--azul); }
body:not(.auth) .boton { background: var(--coral); color: var(--tinta); }
body:not(.auth) .boton:hover { background: #ff7f65; color: var(--tinta); box-shadow: 0 12px 24px -10px rgba(255,106,77,.65); }
body:not(.auth) .boton-secundario { background: #fff; color: var(--bosque); border: 2px solid var(--borde); }
body:not(.auth) .boton-secundario:hover { background: var(--lila); color: var(--bosque); border-color: var(--lila); box-shadow: none; transform: none; }
.enlace-reporte { color: var(--bosque); border-color: var(--borde); }
.dato-numero { color: var(--coral); }
.dato-texto { color: #b9d9cd; }
.horario input:checked + span { background: var(--bosque); }
body:not(.auth) .errores, body:not(.auth) .rec-rojo { background: #fde3dd; color: #8e2616; }

/* Módulos del panel: icono más pequeño, con su propio color y separado del título */
.modulo { padding: 5.4rem 1.6rem 1.5rem; min-height: 15rem; }
.modulo::before { top: 1.4rem; left: 1.6rem; width: 3rem; height: 3rem; background-size: 1.35rem; }
.modulo:nth-child(4n+1)::before { background-color: var(--bosque) !important; }
.modulo:nth-child(4n+2)::before { background-color: #c2412a !important; }
.modulo:nth-child(4n+3)::before { background-color: #0f6b73 !important; }
.modulo:nth-child(4n+4)::before { background-color: #8a5a00 !important; }
.modulo:nth-child(4n+1) { background: var(--menta); }
.modulo:nth-child(4n+2) { background: var(--mantequilla); }
.modulo:nth-child(4n+3) { background: var(--lila); }
.modulo:nth-child(4n+4) { background: #f6e8c3; }
a.modulo:hover { background: var(--bosque); }
a.modulo:hover::before { background-color: var(--coral) !important; }
.modulo h2 { margin-bottom: .4rem; }

/* Módulo pendiente: icono atenuado */
.modulo-pendiente::before, .modulo:nth-child(n).modulo-pendiente::before { background-color: var(--borde-fuerte) !important; }


/* ===== Ajustes para celular (2026-11-15) =====
   Solo se agregan reglas para pantallas angostas; no cambia nada en computadora. */
@media (max-width: 600px) {
    html { -webkit-text-size-adjust: 100%; }
    body { overflow-x: hidden; }
    /* 16 px evita que el iPhone amplíe la pantalla al tocar un campo */
    input, select, textarea { font-size: 16px; }
    /* Botones y enlaces fáciles de tocar con el dedo */
    .boton, .boton-secundario, button { min-height: 44px; }
    .cabecera-interior { padding: 0.7rem 1rem; }
    .contenedor { padding-left: 1rem; padding-right: 1rem; }
    /* Tablas: se deslizan de lado dentro de su caja, sin ensanchar la página */
    .tabla-caja { max-width: 100%; -webkit-overflow-scrolling: touch; }
    .mapa { height: 300px; }
    img { max-width: 100%; height: auto; }
    pre, code { overflow-wrap: anywhere; }
}

/* El acceso se apilaba mal en celular: una regla posterior volvía a poner dos columnas */
@media (max-width: 760px) {
    .auth-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero { padding: 2.2rem 1.4rem 5rem; }
    .lema { max-width: none; }
}
