/* Aplomo · estudio de abogados (demo). Tinta azul marino, papel marfil y un acento de latón, usado con medida.
   Tipografía: Newsreader (titulares editoriales, con itálicas) y Public Sans (texto). Primero el teléfono. */

:root {
  --tinta: #0e1726;
  --tinta-2: #15223a;
  --tinta-3: #22334f;
  --marfil: #f4efe5;
  --marfil-2: #ebe4d6;
  --marfil-3: #dcd2bf;
  --texto: #142036;
  --gris: #5b6273;
  --gris-claro: #a7b0c2;
  --laton: #b8925a;
  --laton-claro: #d8b77c;
  --laton-osc: #85622d;
  --linea: rgb(20 32 54 / .13);
  --linea-clara: rgb(244 239 229 / .12);
  --verde: #2f6b4f;
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --cab-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--marfil); color: var(--texto); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
.envoltura { width: min(1180px, 100% - 32px); margin-inline: auto; }
/* grano de papel muy suave */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .43 0 0 0 0 .4 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Tipos ---------- */
.antetitulo { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--laton-osc); }
.antetitulo::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.titulo-sec, .titulo-fase { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 10.5vw, 5rem); line-height: 1; letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.titulo-sec em, .titulo-fase em { font-style: italic; color: var(--laton-osc); }
.sec-bajada { margin-top: 1rem; color: var(--gris); max-width: 46ch; }
.nota { color: var(--gris); font-size: .82rem; }
.sec-cab { margin-bottom: 2.2rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 52px; padding: 0 1.5rem; border-radius: 3px; border: 0; cursor: pointer; font-weight: 600; font-size: .92rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .3s, color .25s; }
.btn:active { transform: scale(.975); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-laton { color: #10192a; background: linear-gradient(180deg, #e2c58f, #c39d61); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .12), 0 10px 26px -14px rgb(184 146 90 / .9); }
.btn-laton:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 4px rgb(216 183 124 / .2), 0 14px 30px -14px rgb(184 146 90 / 1); }
.btn-tinta { background: var(--tinta); color: var(--marfil); }
.btn-tinta:hover { background: var(--tinta-3); }
.btn-borde { color: var(--marfil); box-shadow: inset 0 0 0 1px rgb(244 239 229 / .45); background: rgb(14 23 38 / .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-borde:hover { box-shadow: inset 0 0 0 1px var(--laton-claro); color: var(--laton-claro); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .84rem; }
.btn-lg { height: 56px; padding: 0 1.8rem; font-size: .98rem; }
:focus-visible { outline: 2px solid var(--laton); outline-offset: 3px; }

/* ---------- Carga: la pluma firma ---------- */
.carga { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: .2rem; background: radial-gradient(70% 55% at 50% 45%, #182741, var(--tinta) 70%); }
.carga-firma { width: min(78vw, 360px); height: auto; overflow: visible; }
.carga-txt { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 86px; fill: var(--marfil); letter-spacing: -.01em; }
.carga-rubrica { fill: none; stroke: var(--laton-claro); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.carga-pluma { opacity: 0; }
.carga-sub { font-size: .66rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gris-claro); opacity: 0; }
html:not(.js) .carga { display: none; }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cab-h); display: flex; align-items: center; gap: 1rem; padding: 0 16px; color: var(--texto); transition: background-color .4s, color .4s, box-shadow .4s; }
.cab.sobre-oscuro { color: var(--marfil); }
.cab.solida { background: rgb(244 239 229 / .88); color: var(--texto); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.cab.solida.sobre-oscuro { background: rgb(14 23 38 / .82); color: var(--marfil); box-shadow: 0 1px 0 var(--linea-clara); }
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.marca-ico { width: 30px; height: 30px; color: var(--laton-claro); flex: none; }
.cab.solida:not(.sobre-oscuro) .marca-ico { color: var(--laton-osc); }
.marca > span { display: grid; line-height: 1; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; letter-spacing: -.01em; }
.marca small { font-family: var(--sans); font-size: .54rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .72; margin-top: .25rem; }
.cab-nav { display: none; gap: 1.8rem; margin-left: auto; }
.cab-nav a { text-decoration: none; font-weight: 500; font-size: .88rem; opacity: .78; transition: opacity .2s; }
.cab-nav a:hover { opacity: 1; }
.cab-btn { margin-left: auto; gap: 0; }
.solo-ancho { display: none; }
@media (min-width: 900px) { .cab { padding: 0 32px; } .cab-nav { display: flex; } .cab-btn { margin-left: 1.6rem; } .solo-ancho { display: inline; } }

/* ---------- Inicio ---------- */
.inicio { position: relative; height: 300vh; background: var(--tinta); color: var(--marfil); }
.inicio-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(70% 48% at 50% 62%, #1d2e4b, #13203a 45%, var(--tinta) 80%); }
.inicio-fijo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(14 23 38 / .55), transparent 26%, transparent 78%, rgb(14 23 38 / .6)); }
.escena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.escena-respaldo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; filter: saturate(.8) brightness(.7); }
.sin-3d .escena-respaldo { opacity: .55; }
.fase { position: absolute; left: 16px; right: 16px; z-index: 2; }
.fase .antetitulo { color: var(--laton-claro); }
.fase-1 { top: calc(var(--cab-h) + 1.4vh); bottom: 20px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.fase-1 .antetitulo { justify-content: center; margin-bottom: .2rem; }
.fase-1 .antetitulo::after { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.titulo { font-family: var(--serif); font-weight: 300; font-size: clamp(4.6rem, 25vw, 11rem); line-height: .95; letter-spacing: -.035em; font-variation-settings: "opsz" 72; }
.titulo .l { display: inline-block; }
.titulo .m { display: inline-block; overflow: hidden; padding: 0 .02em .06em; margin: 0 -.02em -.06em; vertical-align: bottom; }
.bajada { color: #c9d0dc; }
.fase-1 .bajada { margin: 0 auto; max-width: 30ch; font-size: .95rem; }
.acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.fase-2, .fase-3 { top: calc(var(--cab-h) + 2vh); opacity: 0; visibility: hidden; text-align: center; }
.fase-2 .antetitulo, .fase-3 .antetitulo { justify-content: center; }
.fase-2 .antetitulo::after, .fase-3 .antetitulo::after { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.titulo-fase { font-size: clamp(2.6rem, 11.5vw, 5.4rem); }
.titulo-fase em { color: var(--laton-claro); }
.fase-2 .bajada, .fase-3 .bajada { margin: .8rem auto 0; max-width: 32ch; font-size: .95rem; }
.fase-3 .btn { margin-top: 1.1rem; }
.inicio-bajar { position: absolute; left: 50%; bottom: 18px; z-index: 2; display: none; justify-items: center; gap: .4rem; transform: translateX(-50%); font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gris-claro); opacity: 0; }
.inicio-bajar i { width: 1px; height: 34px; background: linear-gradient(var(--laton-claro), transparent); animation: bajar 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes bajar { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) {
  .fase-1 { top: auto; bottom: 11vh; left: 6vw; right: auto; display: block; text-align: left; max-width: 44vw; }
  .fase-1 .antetitulo { justify-content: flex-start; }
  .fase-1 .antetitulo::after { display: none; }
  .fase-1 .bajada { margin: 1.2rem 0 0; font-size: 1.08rem; max-width: 36ch; }
  .acciones { justify-content: flex-start; margin-top: 1.6rem; }
  .fase-2, .fase-3 { --fy: -50%; top: 50%; left: 6vw; right: auto; max-width: 42vw; text-align: left; transform: translateY(-50%); }
  .fase-2 .antetitulo, .fase-3 .antetitulo { justify-content: flex-start; }
  .fase-2 .antetitulo::after, .fase-3 .antetitulo::after { display: none; }
  .fase-2 .bajada, .fase-3 .bajada { margin: 1.1rem 0 0; font-size: 1.08rem; }
  .inicio-bajar { display: grid; }
}

/* ---------- Áreas ---------- */
.areas { padding: 13vh 0 10vh; }
.areas-grid { display: grid; gap: 14px; }
.area { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: .2rem 1rem; padding: 1.3rem 1.2rem 1.2rem; border-radius: var(--r); background: #faf7f0; box-shadow: inset 0 0 0 1px var(--linea), 0 24px 40px -36px rgb(20 32 54 / .5); transition: box-shadow .4s, transform .5s var(--ease); }
.area:hover { box-shadow: inset 0 0 0 1px rgb(184 146 90 / .6), 0 30px 50px -36px rgb(20 32 54 / .6); transform: translateY(-3px); }
.area-num { position: absolute; right: 1.1rem; top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--laton-osc); }
.area-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: var(--laton-claro); }
.area-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; padding-right: 1.8rem; }
.area-d { color: var(--gris); font-size: .9rem; line-height: 1.45; }
.area-ayuda { grid-column: 1 / -1; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--linea); }
.area-ayuda p { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--laton-osc); margin-bottom: .4rem; }
.area-ayuda li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.45; margin-top: .25rem; }
.area-ayuda li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--laton); }
.area-ir { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--texto); border-bottom: 1px solid var(--laton); padding-bottom: 2px; }
.area-ir i { font-style: normal; transition: transform .35s var(--ease); }
.area-ir:hover i { transform: translateX(4px); }
.aviso-legal { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.6rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--marfil-2); color: #3d4558; font-size: .88rem; line-height: 1.5; }
.aviso-legal svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--laton-osc); stroke-width: 1.6; stroke-linecap: round; margin-top: 1px; }
@media (min-width: 700px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .areas-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } .area { padding: 1.6rem 1.5rem 1.4rem; } }

/* ---------- Agenda tu consulta ---------- */
.consulta { padding: 12vh 0 12vh; background: var(--tinta); color: var(--marfil); }
.consulta .antetitulo { color: var(--laton-claro); }
.consulta .titulo-sec em { color: var(--laton-claro); }
.consulta .sec-bajada { color: var(--gris-claro); }
.consulta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.consulta-grid > * { min-width: 0; }
.consulta-cab { margin-bottom: 1rem; }
.agenda { position: relative; padding: 14px; border-radius: var(--r); background: var(--marfil); color: var(--texto); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .85); scroll-margin-top: calc(var(--cab-h) + 8px); }
.agenda::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgb(184 146 90 / .35); border-radius: 3px; pointer-events: none; }
.a-progreso { display: grid; gap: 8px; margin-bottom: 10px; }
.a-contador { font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--laton-osc); padding-left: 2px; }
.a-etapas { display: flex; justify-content: space-between; gap: 4px; }
.a-etapas button { display: flex; align-items: center; gap: .32rem; padding: 2px; background: none; border: 0; color: #8a8f9b; font-weight: 600; font-size: .76rem; white-space: nowrap; cursor: default; transition: color .3s; }
.a-etapas span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(20 32 54 / .2); font-size: .7rem; flex: none; transition: background-color .3s, color .3s, box-shadow .3s; }
.a-etapas .hecha button { color: var(--texto); cursor: pointer; }
.a-etapas .hecha span { background: var(--tinta); color: var(--laton-claro); box-shadow: none; }
.a-etapas .actual button { color: var(--texto); }
.a-etapas .actual span { box-shadow: inset 0 0 0 1.5px var(--laton); color: var(--laton-osc); }
.a-barra { height: 2px; background: rgb(20 32 54 / .08); overflow: hidden; }
.a-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--laton-osc), var(--laton)); transition: width .8s var(--ease); }
.a-vista { overflow: hidden; margin: 0 -14px; transition: height .6s var(--ease); }
.a-pista { display: flex; align-items: flex-start; transition: transform .7s var(--ease); }
.a-paso { flex: 0 0 100%; min-width: 0; padding: 4px 14px; }
.a-titulo { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; outline: none; }
.a-areas { display: grid; gap: 6px; }
.a-op { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; border: 0; border-radius: 4px; cursor: pointer; background: #fbf8f2; color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .25s, box-shadow .25s, color .25s, transform .2s; }
.a-op:hover { box-shadow: inset 0 0 0 1px var(--laton); }
.a-op:active { transform: scale(.985); }
.a-op-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--marfil-2); color: var(--laton-osc); transition: background-color .25s, color .25s; }
.a-op-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.a-op b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.a-op small { display: block; color: var(--gris); font-size: .78rem; line-height: 1.3; }
.a-op[aria-checked="true"] { background: var(--tinta); color: var(--marfil); box-shadow: inset 0 0 0 1px var(--tinta); }
.a-op[aria-checked="true"] small { color: var(--gris-claro); }
.a-op[aria-checked="true"] .a-op-ico { background: var(--laton-claro); color: var(--tinta); }
.a-campo { display: grid; gap: 6px; font-size: .86rem; color: var(--gris); }
.a-campo textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px 14px; border: 0; border-radius: 4px; background: #fffdf8; color: var(--texto); line-height: 1.5; box-shadow: inset 0 0 0 1px rgb(20 32 54 / .2);
  background-image: repeating-linear-gradient(180deg, transparent 0 23px, rgb(184 146 90 / .16) 23px 24px); background-position: 0 11px; background-attachment: local; }
.a-campo textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--laton), 0 0 0 4px rgb(184 146 90 / .16); }
.a-caso-pie { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-top: 8px; }
.a-privacidad { display: flex; gap: .5rem; font-size: .8rem; line-height: 1.4; color: var(--gris); }
.a-privacidad svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--laton-osc); stroke-width: 1.6; margin-top: 1px; }
.a-cuenta { flex: none; font-size: .78rem; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.a-cuenta.cerca { color: #9a4a2a; }
.a-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.a-modo { display: flex; align-items: center; gap: 8px; padding: 9px 10px; text-align: left; border: 0; border-radius: 4px; cursor: pointer; background: #fbf8f2; color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .25s, box-shadow .25s, color .25s; }
.a-modo svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--laton-osc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.a-modo b { display: block; font-size: .9rem; line-height: 1.2; }
.a-modo small { display: block; font-size: .72rem; line-height: 1.25; color: var(--gris); }
.a-modo:hover { box-shadow: inset 0 0 0 1px var(--laton); }
.a-modo[aria-checked="true"] { background: var(--tinta); color: var(--marfil); }
.a-modo[aria-checked="true"] svg { stroke: var(--laton-claro); }
.a-modo[aria-checked="true"] small { color: var(--gris-claro); }
.a-modos.falta .a-modo { box-shadow: inset 0 0 0 1.5px #b0623f; }
.a-sub { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--laton-osc); margin-bottom: 6px; }
.a-sub span { letter-spacing: .06em; text-transform: none; font-weight: 500; color: var(--gris); font-size: .74rem; }
.a-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.a-dia { display: grid; justify-items: center; padding: 6px 0 4px; border: 0; border-radius: 4px; cursor: pointer; background: #fbf8f2; color: var(--texto); line-height: 1.15; box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .25s, color .25s, box-shadow .25s; }
.a-dia small { font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.a-dia b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.a-dia em { font-style: normal; font-size: .52rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); min-height: 1.15em; }
.a-dia:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--laton); }
.a-dia[aria-checked="true"] { background: var(--tinta); color: var(--marfil); box-shadow: none; }
.a-dia[aria-checked="true"] small, .a-dia[aria-checked="true"] em { color: var(--laton-claro); }
.a-dia:disabled { cursor: not-allowed; opacity: .45; background: transparent; }
.a-grupo + .a-grupo { margin-top: 8px; }
.a-grupo > p { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.a-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.a-hora { height: 36px; border: 0; border-radius: 4px; cursor: pointer; background: #fffdf8; color: var(--texto); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgb(20 32 54 / .22); transition: background-color .25s, color .25s, box-shadow .25s; }
.a-hora:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--laton); }
.a-hora:disabled { cursor: not-allowed; color: rgb(20 32 54 / .3); text-decoration: line-through; background: transparent; box-shadow: inset 0 0 0 1px rgb(20 32 54 / .07); }
.a-hora[aria-pressed="true"] { background: var(--tinta); color: var(--laton-claro); box-shadow: none; }
.a-vacio { padding: .9rem 1rem; border-radius: 4px; background: var(--marfil-2); color: var(--gris); font-size: .9rem; }
.a-aviso { margin-top: 8px; color: #9a4a2a; font-size: .84rem; }
.a-aviso[hidden] { display: none; }
.a-resumen { border-top: 1px solid var(--linea); }
.a-resumen div { display: grid; grid-template-columns: 5.6rem 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgb(20 32 54 / .16); }
.a-resumen dt { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.a-resumen dd { font-weight: 500; font-size: .93rem; line-height: 1.35; min-width: 0; }
.a-resumen dd small { display: block; color: var(--gris); font-size: .78rem; }
.a-resumen .a-caso-txt { font-family: var(--serif); font-style: italic; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-cambiar { background: none; border: 0; padding: 0; cursor: pointer; font-size: .74rem; font-weight: 600; color: var(--laton-osc); text-decoration: underline; text-underline-offset: 3px; }
.a-nombre { display: grid; gap: 5px; margin-top: 12px; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); }
.a-nombre input { height: 48px; padding: 0 14px; border: 0; border-radius: 4px; background: #fffdf8; box-shadow: inset 0 0 0 1px rgb(20 32 54 / .22); color: var(--texto); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.a-nombre input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--laton), 0 0 0 4px rgb(184 146 90 / .16); }
.a-nombre.error input { box-shadow: inset 0 0 0 1.5px #b0623f; }
.a-error { margin-top: 6px; color: #9a4a2a; font-size: .84rem; }
.a-error[hidden] { display: none; }
.a-enviar { width: 100%; margin-top: 12px; }
.a-nota { margin-top: 8px; color: var(--gris); font-size: .8rem; text-align: center; }
.a-pie { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linea); }
.a-atras { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: var(--marfil-2); color: var(--texto); transition: opacity .3s, background-color .25s; }
.a-atras:hover { background: var(--marfil-3); }
.a-atras svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-atras.oculto, .a-siguiente.oculto { opacity: 0; pointer-events: none; visibility: hidden; }
.a-total { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.3; color: var(--gris); }
.a-total b { color: var(--texto); font-weight: 600; }
.a-total strong { color: var(--texto); }
.a-total small { font-size: .74rem; }
.a-siguiente:disabled { opacity: .3; cursor: not-allowed; }
@media (min-width: 560px) { .a-slots { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) {
  .agenda { padding: 24px; }
  .agenda::before { inset: 7px; }
  .a-vista { margin: 0 -24px; }
  .a-paso { padding: 4px 24px; }
  .a-etapas button { font-size: .86rem; gap: .45rem; }
  .a-titulo { font-size: 2.2rem; margin-bottom: 14px; }
  .a-areas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .a-op { padding: 12px 14px; }
  .a-dias { gap: 7px; }
  .a-dia { padding: 9px 0 6px; }
}

/* ¿Qué documentos llevo? */
.docs { position: relative; padding: 18px 16px 16px; border-radius: var(--r); background: var(--tinta-2); color: var(--marfil); box-shadow: inset 0 0 0 1px var(--linea-clara); }
.docs-etiqueta { display: inline-block; padding: 3px 9px; border-radius: 2px; background: rgb(216 183 124 / .14); color: var(--laton-claro); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.docs-titulo { margin-top: .6rem; font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.05; letter-spacing: -.01em; }
.docs-area { margin-top: .35rem; color: var(--gris-claro); font-size: .88rem; }
.docs-area b { color: var(--marfil); font-weight: 600; }
.docs-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 10px; padding: 0 16px; }
.docs-tabs::-webkit-scrollbar { display: none; }
.docs-tab { flex: none; height: 32px; padding: 0 .8rem; border: 0; border-radius: 99px; cursor: pointer; background: rgb(244 239 229 / .06); color: var(--gris-claro); font-size: .78rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--linea-clara); transition: background-color .25s, color .25s; }
.docs-tab[aria-selected="true"] { background: var(--laton-claro); color: var(--tinta); box-shadow: none; }
.docs-lista { display: grid; gap: 6px; }
.doc { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 4px; cursor: pointer; text-align: left; background: rgb(244 239 229 / .04); color: var(--marfil); box-shadow: inset 0 0 0 1px var(--linea-clara); transition: background-color .3s, box-shadow .3s; }
.doc:hover { box-shadow: inset 0 0 0 1px rgb(216 183 124 / .5); }
.doc-caja { width: 26px; height: 26px; overflow: visible; }
.doc-caja rect { fill: none; stroke: rgb(244 239 229 / .4); stroke-width: 1.4; transition: fill .3s, stroke .3s; }
.doc-caja path { fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.doc b { display: block; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.doc small { display: block; color: var(--gris-claro); font-size: .76rem; line-height: 1.3; }
.doc-tag { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--laton-claro); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease); }
.doc[aria-pressed="true"] { background: rgb(216 183 124 / .1); box-shadow: inset 0 0 0 1px rgb(216 183 124 / .45); }
.doc[aria-pressed="true"] .doc-caja rect { fill: var(--laton-claro); stroke: var(--laton-claro); }
.doc[aria-pressed="true"] .doc-caja path { stroke-dashoffset: 0; }
.doc[aria-pressed="true"] .doc-tag { opacity: 1; transform: none; }
html:not(.js) .doc[aria-pressed="true"] .doc-caja path, .sin-anim .doc-caja path { transition: stroke-dashoffset .4s; }
.docs-vacio { padding: 1rem; border-radius: 4px; background: rgb(244 239 229 / .04); color: var(--gris-claro); font-size: .9rem; text-align: center; }
.docs-pie { display: grid; gap: 6px; margin-top: 12px; }
.docs-pie p { font-size: .78rem; font-weight: 600; color: var(--gris-claro); }
.docs-barra { height: 3px; border-radius: 3px; background: rgb(244 239 229 / .08); overflow: hidden; }
.docs-barra i { display: block; height: 100%; width: 0; background: var(--laton-claro); transition: width .7s var(--ease); }
.docs-nota { margin-top: 10px; color: var(--gris-claro); font-size: .78rem; line-height: 1.45; }
@media (min-width: 900px) {
  .consulta-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
  .consulta-cab { grid-column: 1 / -1; margin-bottom: 1rem; }
  .docs { position: sticky; top: calc(var(--cab-h) + 24px); padding: 26px 24px 22px; }
  .docs-tabs { margin-inline: -24px; padding: 0 24px; flex-wrap: wrap; overflow: visible; }
}

/* ---------- Cómo trabajamos ---------- */
.trabajo { padding: 13vh 0; }
.trabajo-grid { display: grid; gap: 1rem; }
.trabajo-foto { display: none; }
.linea { position: relative; display: grid; gap: 2.2rem; padding-left: 46px; }
.linea-guia { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--linea); }
.linea-guia i { position: absolute; inset: 0; background: linear-gradient(var(--laton), var(--laton-osc)); transform-origin: top; transform: scaleY(0); }
.lp { position: relative; }
.lp-nodo { position: absolute; left: -40px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--marfil); box-shadow: inset 0 0 0 1.5px var(--marfil-3); transition: box-shadow .5s var(--ease), background-color .5s; }
.lp-nodo::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--laton); transform: scale(0); transition: transform .5s var(--ease); }
.lp.activo .lp-nodo { box-shadow: inset 0 0 0 1.5px var(--laton), 0 0 0 6px rgb(184 146 90 / .14); }
.lp.activo .lp-nodo::after { transform: scale(1); }
.lp-num { font-family: var(--serif); font-style: italic; color: var(--laton-osc); font-size: 1rem; line-height: 1; }
.lp h3 { margin-top: .35rem; font-family: var(--serif); font-weight: 500; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.01em; }
.lp p:last-child { margin-top: .4rem; color: var(--gris); max-width: 44ch; }
@media (min-width: 900px) {
  .trabajo-grid { grid-template-columns: 1fr 1.1fr; gap: 6rem; align-items: start; }
  .trabajo-cab { position: sticky; top: calc(var(--cab-h) + 6vh); }
  .trabajo-foto { display: block; margin-top: 2rem; overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 2; }
  .trabajo-foto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) sepia(.08); }
  .linea { gap: 3rem; padding-top: 1rem; }
  .lp h3 { font-size: 2rem; }
}

/* ---------- Preguntas ---------- */
.preguntas { padding: 12vh 0; background: var(--marfil-2); }
.faq { border-top: 1px solid var(--linea); }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-item h3 { font: inherit; }
.faq-item button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--texto); }
.faq-item button i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .3s, transform .5s var(--ease); }
.faq-item button i::before, .faq-item button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--laton-osc); transition: transform .5s var(--ease); }
.faq-item button i::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] i { background: var(--tinta); transform: rotate(180deg); }
.faq-item button[aria-expanded="true"] i::before, .faq-item button[aria-expanded="true"] i::after { background: var(--laton-claro); }
.faq-item button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 2.6rem 1.3rem 0; color: #3d4558; max-width: 60ch; }
.faq-item.abierta .faq-panel { grid-template-rows: 1fr; }
@media (min-width: 900px) { .preguntas-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: start; } .faq-item button { font-size: 1.6rem; } }

/* ---------- La oficina ---------- */
.oficina { padding-bottom: 12vh; }
.oficina-fotos { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 8px; padding: 8px; background: var(--tinta); }
.of { position: relative; overflow: hidden; border-radius: 3px; }
.of img { width: 100%; height: 100%; object-fit: cover; }
.of-1 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.of-2 { aspect-ratio: 4 / 3.4; }
.of-3 { aspect-ratio: 4 / 3.4; }
.of figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 2px; background: rgb(14 23 38 / .72); color: var(--marfil); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.visita-grid { display: grid; gap: 2.4rem; margin-top: 3.2rem; }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.datos li { padding-top: .8rem; border-top: 1px solid var(--linea); }
.datos b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.datos span { color: var(--gris); font-size: .84rem; }
.estado { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; padding: .45rem .95rem; border-radius: 99px; background: rgb(47 107 79 / .12); color: var(--verde); font-size: .88rem; }
.estado.cerrado { background: rgb(20 32 54 / .07); color: var(--gris); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
.estado:not(.cerrado) .punto { animation: latido 2.4s ease-out infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgb(47 107 79 / .45); } 80%, 100% { box-shadow: 0 0 0 9px rgb(47 107 79 / 0); } }
.horario div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .2rem; border-bottom: 1px solid var(--linea); transition: background-color .3s; }
.horario div.hoy { background: rgb(184 146 90 / .12); }
.horario div.hoy dt::after { content: "hoy"; margin-left: .5rem; padding: 1px 6px; border-radius: 2px; background: var(--tinta); color: var(--laton-claro); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; vertical-align: 2px; }
.horario dt { color: var(--gris); }
.horario dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.direccion { margin-top: 1.2rem; }
.direccion span { color: var(--gris); font-size: .8rem; }
.mapa { display: block; width: 100%; height: auto; margin-top: 1.2rem; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--linea); }
.mapa-calles path { fill: none; stroke: #fbf8f2; stroke-width: 9; }
.mapa-parque { fill: #d5dcc8; }
.mapa-avenida { fill: none; stroke: #e3cfa6; stroke-width: 13; stroke-linecap: round; }
.mapa-pin path { fill: var(--tinta); }
@media (min-width: 900px) {
  .oficina-fotos { grid-template-columns: 1.55fr 1fr; grid-template-rows: 310px 310px; padding: 10px; gap: 10px; }
  .of-1 { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .of-2 { grid-column: 2; grid-row: 1; aspect-ratio: auto; }
  .of-3 { grid-column: 2; grid-row: 2; aspect-ratio: auto; }
  .of-3 img { object-position: 50% 62%; }
  .visita-grid { grid-template-columns: 1.15fr 1fr; gap: 5rem; margin-top: 5rem; }
}

/* ---------- Pie ---------- */
.pie { padding: 4rem 0 7rem; background: var(--tinta); color: var(--marfil); }
.pie-marca { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 26vw, 13rem); line-height: .85; letter-spacing: -.035em; color: #22324e; }
.pie-legal { margin-top: 1.4rem; padding-left: .9rem; border-left: 2px solid var(--laton); color: #d5dae4; font-size: .9rem; max-width: 64ch; }
.pie-aviso { margin-top: 1rem; color: var(--gris-claro); font-size: .82rem; max-width: 72ch; }
.pie-firma { margin-top: .8rem; font-size: .9rem; color: var(--gris-claro); }
.pie-firma a { color: var(--laton-claro); font-weight: 600; }
@media (min-width: 900px) { .pie { padding-bottom: 4rem; } }

/* ---------- Barra fija (teléfono) ---------- */
.barra-agenda { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin-inline: auto;
  padding: 8px 8px 8px 16px; border-radius: var(--r); background: rgb(14 23 38 / .95); color: var(--marfil); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(216 183 124 / .25), 0 20px 50px -14px rgb(0 0 0 / .7); transform: translateY(160%); transition: transform .55s var(--ease); }
.barra-agenda.visible { transform: none; }
.barra-agenda p { display: grid; line-height: 1.2; min-width: 0; }
.barra-agenda b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.barra-agenda span { color: var(--gris-claro); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-agenda span.abierto::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: #5fbf8f; vertical-align: 1px; }
@media (min-width: 900px) { .barra-agenda { display: none; } }

/* ---------- Panel de vista previa ---------- */
.panel { width: min(500px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--r); background: var(--marfil); color: var(--texto); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9); }
.panel::backdrop { background: rgb(14 23 38 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.panel-in { position: relative; padding: 1.5rem 1.4rem 1.4rem; display: grid; gap: .9rem; }
.panel .antetitulo { margin-bottom: -.4rem; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.02; letter-spacing: -.01em; padding-right: 2.6rem; }
.cerrar { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(20 32 54 / .07); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wa-chat { padding: .9rem; border-radius: 10px; background: #0b141a; }
.wa-burbuja { margin-left: auto; max-width: 94%; padding: .65rem .85rem 1.2rem; border-radius: 10px 10px 2px 10px; background: #005c4b; color: #e9edef; font-size: .84rem; line-height: 1.45; white-space: pre-line; position: relative; }
.wa-burbuja::after { content: "✓✓"; position: absolute; right: 8px; bottom: 4px; font-size: .65rem; color: #53bdeb; }
.demo-cta { padding-top: 1rem; border-top: 1px solid var(--linea); display: grid; gap: .7rem; }
.demo-cta p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inicio { height: auto; }
  .inicio-fijo { position: relative; }
  .inicio-bajar i, .estado .punto { animation: none; }
  .a-pista, .a-vista, .faq-panel, .barra-agenda { transition: none; }
  .doc-caja path { transition: stroke-dashoffset .01s; }
}
