/* ============================================================
   Service QR — estilos base (mobile-first, sin frameworks)
   ============================================================ */

:root {
    /* Paleta de marca Yarvis: naranja + carbón */
    --azul: #ff7f00;      /* naranja principal de la marca */
    --azul-osc: #e67200;  /* naranja para hover */
    --carbon: #323232;    /* gris carbón del logo */
    --tinta: #2b2b2b;
    --gris: #64748b;
    --gris-claro: #94a3b8;
    --linea: #e2e8f0;
    --fondo: #f8fafc;
    --panel: #ffffff;
    --verde: #16a34a;
    --verde-bg: #dcfce7;
    --ambar: #d97706;
    --ambar-bg: #fef3c7;
    --rojo: #dc2626;
    --rojo-bg: #fee2e2;
    --radio: 14px;
    --sombra: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);
    --sombra-sm: 0 1px 2px rgba(15, 23, 42, .08);
    --marca: var(--azul); /* se sobrescribe en el portal con el color de la empresa */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--tinta);
    background: var(--fondo);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 18px 60px;
}

.muted { color: var(--gris); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Botones ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--azul);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s, transform .05s, box-shadow .15s;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { background: var(--azul-osc); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--tinta); border-color: var(--linea); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-outline { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn-outline:hover { background: #fff4e6; }
.btn-danger { background: var(--rojo); }
.btn-danger:hover { background: #b91c1c; }
.btn-marca { background: var(--marca); border-color: var(--marca); }

/* ---------------- Formularios ---------------- */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=url], select, textarea {
    width: 100%;
    padding: .7rem .8rem;
    border: 1px solid var(--linea);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--tinta);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, .20);
}
input[type=color] {
    width: 60px; height: 42px; padding: 4px; border: 1px solid var(--linea);
    border-radius: 10px; background: #fff; cursor: pointer;
}
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: .8rem; color: var(--gris); margin-top: .3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------------- Tarjetas / paneles ---------------- */
.card {
    background: var(--panel);
    border: 1px solid var(--linea);
    border-radius: var(--radio);
    box-shadow: var(--sombra-sm);
    padding: 22px;
    margin-bottom: 20px;
}
.card-narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.card h2:first-child { margin-top: 0; }

/* ---------------- Alertas ---------------- */
.alert {
    padding: .8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .92rem;
    border: 1px solid transparent;
}
.alert-success { background: var(--verde-bg); color: #14532d; border-color: #bbf7d0; }
.alert-error   { background: var(--rojo-bg); color: #7f1d1d; border-color: #fecaca; }
.alert-info    { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; }
.alert-warn    { background: var(--ambar-bg); color: #78350f; border-color: #fde68a; }

/* ---------------- Barra superior (app) ---------------- */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--linea);
    position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
    max-width: 960px; margin: 0 auto; padding: 10px 18px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--tinta); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--azul); color: #fff; font-size: .85rem; font-weight: 800;
}
.brand-name { letter-spacing: -.01em; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo-lg { height: 54px; width: auto; margin: 0 auto 18px; display: block; }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a {
    color: var(--gris); font-weight: 600; font-size: .92rem;
    padding: .4rem .7rem; border-radius: 8px;
}
.topnav a:hover { background: #f1f5f9; color: var(--tinta); text-decoration: none; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-name { font-size: .9rem; color: var(--gris); font-weight: 600; }
@media (max-width: 520px) { .user-name { display: none; } }

.app-footer {
    border-top: 1px solid var(--linea);
    color: var(--gris); font-size: .85rem;
    padding: 20px 0; text-align: center; background: #fff;
}

/* ---------------- Encabezado de página ---------------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1 { margin: 0; }

/* ---------------- Lista de vehículos ---------------- */
.veh-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .veh-grid { grid-template-columns: 1fr 1fr; } }
.veh-card {
    display: block; background: #fff; border: 1px solid var(--linea);
    border-radius: var(--radio); padding: 16px 18px; box-shadow: var(--sombra-sm);
    transition: box-shadow .15s, transform .05s; color: inherit;
}
.veh-card:hover { box-shadow: var(--sombra); text-decoration: none; transform: translateY(-1px); }
.veh-placa {
    font-weight: 800; font-size: 1.15rem; letter-spacing: .04em;
    display: inline-block; padding: .1rem .55rem; border-radius: 7px;
    background: #f1f5f9; border: 1px solid var(--linea); margin-bottom: 6px;
}
.veh-sub { color: var(--gris); font-size: .9rem; }

/* ---------------- Tabla de servicios ---------------- */
.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--linea); white-space: nowrap; }
table.data th { color: var(--gris); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.data tr:last-child td { border-bottom: none; }

/* ---------------- Chips / badges ---------------- */
.badge {
    display: inline-block; padding: .15rem .55rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; background: #f1f5f9; color: var(--gris);
}
.badge-verde { background: var(--verde-bg); color: #14532d; }
.badge-ambar { background: var(--ambar-bg); color: #78350f; }
.badge-rojo  { background: var(--rojo-bg);  color: #7f1d1d; }
.badge-tipo  { background: #eef2f7; color: #334155; font-weight: 700; }

/* ---------------- Bloque QR ---------------- */
.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; padding: 8px; }
.qr-link { word-break: break-all; font-size: .82rem; }

/* ============================================================
   LANDING (página pública de inicio)
   ============================================================ */
.landing { background: #fff; color: var(--tinta); }
.nav {
    position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--linea);
}
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px; }
.nav-links { display: none; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--gris); font-weight: 600; font-size: .93rem; }
.nav-links a:hover { color: var(--tinta); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (min-width: 820px) { .nav-links { display: flex; } }

.hero {
    max-width: 1080px; margin: 0 auto; padding: 70px 20px 40px;
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; padding: 90px 20px 60px; } }
.hero-eyebrow {
    display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
    text-transform: uppercase; color: var(--azul); background: #fff4e6;
    padding: .3rem .7rem; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.03em; margin-bottom: .5em; }
.hero p.lead { font-size: 1.15rem; color: var(--gris); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--gris-claro); }

/* Simulación del portal en el hero */
.mock {
    background: linear-gradient(160deg, #1e293b, #0f172a);
    border-radius: 26px; padding: 20px; box-shadow: 0 30px 60px -20px rgba(15,23,42,.5);
    max-width: 340px; margin: 0 auto; color: #fff;
}
.mock-screen { background: #fff; color: var(--tinta); border-radius: 16px; overflow: hidden; }
.mock-top { background: var(--azul); color: #fff; padding: 16px 18px; }
.mock-top .m-name { font-weight: 800; }
.mock-top .m-sub { font-size: .8rem; opacity: .85; }
.mock-body { padding: 16px 18px; }
.mock-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--linea); font-size: .9rem; }
.mock-row:last-child { border-bottom: none; }
.mock-row .k { color: var(--gris); }
.mock-row .v { font-weight: 700; }
.mock-next { margin-top: 12px; background: var(--verde-bg); color: #14532d; border-radius: 10px; padding: 10px 12px; font-size: .85rem; font-weight: 600; }

.section { max-width: 1080px; margin: 0 auto; padding: 60px 20px; }
.section-alt { background: var(--fondo); }
.section h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section .sub { text-align: center; color: var(--gris); max-width: 52ch; margin: 0 auto 40px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px 22px; }
.step-num {
    width: 40px; height: 40px; border-radius: 11px; background: var(--azul); color: #fff;
    display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--gris); margin: 0; font-size: .95rem; }

.features { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: #fff4e6; color: var(--azul); display: grid; place-items: center; font-size: 1.2rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { color: var(--gris); margin: 0; font-size: .93rem; }

.precio-card {
    max-width: 460px; margin: 0 auto; background: #fff; border: 2px solid var(--azul);
    border-radius: 20px; padding: 34px; text-align: center; box-shadow: var(--sombra);
}
.precio-num { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.precio-num small { font-size: 1rem; font-weight: 600; color: var(--gris); }
.precio-list { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.precio-list li { padding: .5rem 0; padding-left: 1.8rem; position: relative; color: var(--tinta); }
.precio-list li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 800; }

.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--linea); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gris); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--gris); margin: 0 0 14px; }

.cta-final { text-align: center; background: linear-gradient(160deg, var(--azul), var(--azul-osc)); color: #fff; border-radius: 22px; padding: 50px 24px; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.85); max-width: 46ch; margin: 0 auto 24px; }
.cta-final .btn { background: #fff; color: var(--azul); }
.cta-final .btn:hover { background: #f1f5f9; }

.landing-foot { border-top: 1px solid var(--linea); color: var(--gris); text-align: center; padding: 30px 20px; font-size: .88rem; }

/* ============================================================
   PORTAL PÚBLICO DEL CLIENTE (usa --marca de la empresa)
   ============================================================ */
.portal { background: var(--fondo); min-height: 100vh; }
.portal-head { background: var(--marca); color: #fff; padding: 26px 18px 30px; }
.portal-head-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.portal-logo { width: 60px; height: 60px; border-radius: 12px; background: #fff; object-fit: contain; padding: 6px; flex: 0 0 auto; }
.portal-logo-fallback { width: 60px; height: 60px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex: 0 0 auto; }
.portal-taller { font-weight: 800; font-size: 1.25rem; }
.portal-taller-sub { opacity: .9; font-size: .9rem; }
.portal-body { max-width: 560px; margin: -18px auto 0; padding: 0 14px 50px; }
.portal-card { background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 20px; margin-bottom: 16px; border: 1px solid var(--linea); }
.portal-placa { font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--gris); }
.info-row .v { font-weight: 600; text-align: right; }
.proximo {
    background: #fff4e6; /* respaldo si el navegador no soporta color-mix */
    background: color-mix(in srgb, var(--marca) 10%, #fff);
    border: 1px solid #ffe0b3;
    border: 1px solid color-mix(in srgb, var(--marca) 35%, #fff);
    border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 16px;
}
.proximo .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--marca); font-weight: 700; }
.proximo .val { font-size: 1.6rem; font-weight: 800; margin-top: 2px; }
.hist-item { border-left: 3px solid var(--marca); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.hist-fecha { font-weight: 700; }
.hist-detalle { color: var(--gris); font-size: .9rem; }
.portal-contacto a { color: var(--marca); font-weight: 600; }
.portal-foot { text-align: center; color: var(--gris-claro); font-size: .8rem; padding: 20px; }

.wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.wa-btn:hover { background: #1eb959; text-decoration: none; }

/* Chips de tipo en el historial del portal */
.hist-tipos { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }

/* Consulta por placa (página pública del taller) y redes sociales */
.consulta-form { display: flex; gap: 8px; flex-wrap: wrap; }
.consulta-form input[type=text] { flex: 1; min-width: 160px; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.red-link { display: inline-flex; align-items: center; padding: .4rem .85rem; border: 1px solid var(--linea); border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--marca); background: #fff; }
.red-link:hover { border-color: var(--marca); text-decoration: none; }

/* ---------------- Seguimiento de clientes ---------------- */
.seg-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.seg-stat { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; text-align: center; box-shadow: var(--sombra-sm); }
.seg-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.seg-lbl { color: var(--gris); font-size: .85rem; font-weight: 600; }
.seg-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ---------------- Sub-secciones de formulario ---------------- */
.form-sub { font-size: 1rem; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--linea); }

/* Checklist de filtros */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 620px) { .check-grid { grid-template-columns: repeat(4, 1fr); } }
.check-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; background: #fff; }
.check-item input { width: auto; accent-color: var(--azul); }
.check-item:hover { border-color: var(--azul); }
.check-item:has(input:checked) { border-color: var(--azul); background: #fff4e6; }

/* Selección de tipos de mantenimiento y secciones por tipo */
.check-tipos { margin-bottom: 6px; }
.tipo-seccion { border-left: 3px solid var(--azul); padding-left: 14px; margin: 4px 0 10px; }
.tipo-seccion[hidden] { display: none; }
.tipo-seccion .form-sub:first-child { margin-top: 14px; }

/* Revisiones en el formulario */
.rev-area { margin-bottom: 14px; }
.rev-area-tit { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--gris); margin-bottom: 6px; }
.rev-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linea); }
.rev-row:last-child { border-bottom: none; }
.rev-label { flex: 1; font-weight: 600; font-size: .92rem; }
.rev-select { width: auto; min-width: 165px; padding: .45rem .6rem; }
@media (max-width: 480px) { .rev-row { flex-wrap: wrap; } .rev-select { width: 100%; min-width: 0; } }

/* Revisiones en el portal del cliente */
.rev-area-portal { margin-bottom: 14px; }
.rev-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; }
.rev-line.rev-ok { background: var(--verde-bg); }
.rev-line.rev-atencion { background: var(--ambar-bg); }
.rev-ico { font-weight: 800; }
.rev-line.rev-ok .rev-ico { color: var(--verde); }
.rev-line.rev-atencion .rev-ico { color: var(--ambar); }
.rev-txt { flex: 1; font-weight: 600; }
.rev-est { font-size: .8rem; color: var(--gris); }

/* Foto del vehículo (foto propia subida o silueta genérica local) */
.veh-foto { background: linear-gradient(160deg, #f8fafc, #eceff3); border-radius: 12px; text-align: center; overflow: hidden; }
.veh-foto img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.veh-foto.es-silueta { padding: 14px; }               /* silueta: con margen, sin recorte */
.veh-foto.tiene-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; } /* foto real: llena el marco */
.veh-foto-portal { margin-bottom: 14px; border: 1px solid var(--linea); }

/* Menú colapsable de "Otras revisiones" */
.rev-collapse { border: 1px solid var(--linea); border-radius: 10px; margin: 6px 0 18px; overflow: hidden; }
.rev-collapse > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; background: #f8fafc; user-select: none; }
.rev-collapse > summary::-webkit-details-marker { display: none; }
.rev-collapse > summary::after { content: "▸"; float: right; color: var(--gris); transition: transform .15s; }
.rev-collapse[open] > summary::after { transform: rotate(90deg); }
.rev-collapse-body { padding: 4px 14px 12px; }

/* ---------------- Ventana emergente (modal) ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; }
.modal[hidden] { display: none; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.modal-panel {
    position: relative; margin: auto; background: var(--fondo);
    width: 100%; height: 100%; display: flex; flex-direction: column;
    overflow: hidden; box-shadow: var(--sombra);
}
@media (min-width: 720px) {
    .modal-panel { width: 100%; max-width: 820px; height: auto; max-height: 92vh; margin: 3vh auto; border-radius: var(--radio); }
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--linea); background: #fff;
    position: sticky; top: 0; z-index: 1;
}
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-close {
    background: transparent; border: none; font-size: 1.25rem; line-height: 1;
    cursor: pointer; color: var(--gris); padding: 6px 10px; border-radius: 8px;
}
.modal-close:hover { background: #f1f5f9; color: var(--tinta); }
.modal-body { padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.modal-abierto { overflow: hidden; }

/* ---------------- Impresión del QR ---------------- */
@media print {
    body * { visibility: hidden; }
    .print-area, .print-area * { visibility: visible; }
    .print-area { position: absolute; inset: 0; margin: 0 auto; padding: 30px; text-align: center; }
    .no-print { display: none !important; }
}
