/* Esquina: encontrar el lugar a la primera. La dirección en una placa esmaltada de calle (filete y tornillos) que vuelve
   como placa chica en cada sección; un mapa de manzanas trazado a mano. Cada sección toma un color del mapa (C07):
   manzana, calle, parque, agua, ladrillo y esmalte. Fraunces para placas y títulos, Karla para el texto, Kalam para las notas. */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Karla"; src: url(fonts/karla.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(fonts/kalam.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --manzana: #f2c96b;
  --calle: #f6efdf;
  --parque: #b9d6a3;
  --agua: #a6d6d0;
  --ladrillo: #f3b7a0;
  --esmalte: #164f45;
  --esmalte-o: #0e3a33;
  --crema: #f7f0dc;
  --tinta: #1d2a26;
  --tinta2: #3b4843;
  --tomate: #d8462b;
  --laton: #c9a24a;
  --placa: "Fraunces", Georgia, serif;
  --texto: "Karla", system-ui, sans-serif;
  --mano: "Kalam", "Comic Sans MS", cursive;
  --gut: 16px;
  --ancho: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--manzana); color: var(--tinta); font-family: var(--texto); font-size: 17px; line-height: 1.55; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--tomate); outline-offset: 3px; border-radius: 6px; }

.caja { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.s { position: relative; padding: 72px 0; }
.hero { background: var(--manzana); padding: 0 0 64px; }
.ofr { background: var(--calle); }
.hor { background: var(--parque); }
.lle { background: var(--agua); }
.con { background: var(--ladrillo); }
.cie { background: var(--esmalte); color: var(--crema); padding: 88px 0 96px; }
@media (min-width: 900px) {
  :root { --gut: 40px; }
  .s { padding: 120px 0; }
  .hero { padding: 0 0 110px; }
  .cie { padding: 130px 0 140px; }
}

/* ---------- placa esmaltada (el objeto que se repite) ---------- */
.placa { position: relative; background: var(--esmalte); color: var(--crema); border-radius: 18px; padding: 24px 32px 26px;
  box-shadow: inset 0 0 0 6px var(--esmalte), inset 0 0 0 8.5px var(--crema), inset 0 10px 18px -12px rgb(255 255 255 / .35), 0 4px 0 var(--esmalte-o), 0 24px 34px -18px rgb(29 42 38 / .6); }
.tor { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #f6e3a6, var(--laton) 55%, #8a6a22); box-shadow: 0 1px 1px rgb(0 0 0 / .35); }
.tor::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.75px; height: 1.5px; background: rgb(60 44 10 / .7); transform: rotate(38deg); }
.t1 { left: 15px; top: 15px; } .t2 { right: 15px; top: 15px; } .t3 { left: 15px; bottom: 15px; } .t4 { right: 15px; bottom: 15px; }
.t2::after { transform: rotate(-20deg); } .t3::after { transform: rotate(80deg); }
.placa-d { font-family: var(--placa); font-weight: 600; font-size: clamp(24px, 7vw, 40px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }

/* placa chica: abre cada sección */
.pl { position: relative; display: inline-block; padding: 8px 30px 9px; border-radius: 10px; background: var(--esmalte); color: var(--crema); font: 600 15px/1.2 var(--placa); letter-spacing: .01em;
  box-shadow: inset 0 0 0 3.5px var(--esmalte), inset 0 0 0 5px var(--crema), 0 2px 0 var(--esmalte-o); transform-origin: 50% -30%; }
.pl::before, .pl::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #f6e3a6, var(--laton) 60%, #8a6a22); }
.pl::before { left: 11px; } .pl::after { right: 11px; }

/* ---------- cabecera ---------- */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
.marca { text-decoration: none; font: 600 19px/1.15 var(--placa); letter-spacing: -.01em; overflow-wrap: anywhere; max-width: 70%; }
.llamar { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--tinta); border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .2s, background-color .2s; }
@media (hover: hover) { .llamar:hover { transform: translateY(-1px) rotate(-1deg); } }

/* ---------- hero ---------- */
.hero-g { display: grid; gap: 36px; padding-top: 16px; }
.nombre { font-family: var(--placa); font-weight: 600; font-size: clamp(38px, 10.5vw, 76px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.baj { margin-top: 14px; font-size: 19px; color: var(--tinta2); font-weight: 500; }
.acc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--esmalte); color: var(--crema); font: 700 17px/1.2 var(--texto); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--esmalte), inset 0 0 0 4.5px rgb(247 240 220 / .55), 0 3px 0 var(--esmalte-o); transition: transform .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px var(--esmalte), inset 0 0 0 4.5px rgb(247 240 220 / .55), 0 1px 0 var(--esmalte-o); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: inset 0 0 0 3px var(--esmalte), inset 0 0 0 4.5px rgb(247 240 220 / .55), 0 5px 0 var(--esmalte-o); } }
.enl { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (hover: hover) { .enl:hover { text-decoration-color: var(--tomate); } }
.estado { margin-top: 18px; padding-left: 20px; position: relative; color: var(--tinta2); font-size: 15px; font-weight: 500; }
.estado::before { content: ""; position: absolute; left: 1px; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--tinta2); }
.abierto .estado::before { background: var(--tomate); border-color: var(--tomate); }

.hero-a { position: relative; padding-bottom: 8px; }
.nota { font-family: var(--mano); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--tinta); }
.nota-h { position: relative; display: inline-block; margin: 0 0 6px 8px; transform: rotate(-3deg); }
.garabato { position: absolute; left: 100%; top: 40%; width: 58px; height: 44px; margin-left: 4px; fill: none; stroke: var(--tinta); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.marco { position: relative; overflow: hidden; border-radius: 26px; background: var(--crema); box-shadow: inset 0 0 0 7px var(--esmalte), inset 0 0 0 9.5px var(--crema), 0 3px 0 var(--esmalte-o); }
.marco .mapa { display: block; width: 100%; height: auto; }
.marco::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 7px var(--esmalte), inset 0 0 0 9.5px var(--crema); pointer-events: none; }
.marco-h { aspect-ratio: 600 / 340; }
.marco-h .mapa { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.08); }
.placa-h { width: calc(100% - 24px); margin: -42px 0 0 12px; transform: rotate(-2deg); }
.pt .onda { transform-box: fill-box; transform-origin: center; opacity: .25; }

@media (min-width: 900px) {
  .hero-g { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 56px; padding-top: 40px; }
  .baj { font-size: 21px; }
  .nota-h { position: absolute; z-index: 2; left: -36px; top: -54px; font-size: 32px; margin: 0; }
  .placa-h { width: 74%; margin: -78px 0 0 -28px; }
  .placa-h .placa-d { font-size: clamp(34px, 3.6vw, 50px); }
}

/* ---------- títulos ---------- */
.enc { max-width: 780px; }
.h2 { margin-top: 22px; font-family: var(--placa); font-weight: 600; font-size: clamp(34px, 9vw, 66px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.h2 em { font-style: normal; text-decoration: underline wavy var(--tomate); text-decoration-thickness: 3px; text-underline-offset: .16em; text-decoration-skip-ink: none; }
h3 { font-family: var(--texto); font-weight: 700; font-size: 19px; line-height: 1.25; }

/* ---------- lo que ofrecemos: leyenda del mapa ---------- */
.ofr-l { display: grid; gap: 28px; margin-top: 44px; }
.it { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--manzana); box-shadow: inset 0 0 0 2px var(--tinta), 4px 4px 0 var(--ladrillo); }
.ic svg { width: 40px; height: 40px; fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.it:nth-child(2) .ic { background: var(--parque); box-shadow: inset 0 0 0 2px var(--tinta), 4px 4px 0 var(--agua); }
.it:nth-child(3) .ic { background: var(--agua); box-shadow: inset 0 0 0 2px var(--tinta), 4px 4px 0 var(--manzana); }
.it:nth-child(4) .ic { background: var(--ladrillo); box-shadow: inset 0 0 0 2px var(--tinta), 4px 4px 0 var(--parque); }
.it p { margin-top: 6px; color: var(--tinta2); }
@media (min-width: 700px) { .ofr-l { grid-template-columns: repeat(2, 1fr); column-gap: 48px; row-gap: 40px; } }
@media (min-width: 1100px) {
  .ofr-l { grid-template-columns: repeat(4, 1fr); column-gap: 32px; margin-top: 64px; }
  .it { grid-template-columns: 1fr; gap: 20px; }
  .ic { width: 76px; height: 76px; } .ic svg { width: 46px; height: 46px; }
}
@media (hover: hover) { .it:hover .ic { transform: rotate(-6deg); } .ic { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); } }

/* ---------- horario ---------- */
.hor-g { display: grid; gap: 40px; }
.rotulo { display: inline-grid; margin-top: 28px; padding: 10px 22px 11px; border-radius: 10px; font: 600 20px/1.2 var(--placa); background: var(--esmalte); color: var(--crema); box-shadow: inset 0 0 0 3.5px var(--esmalte), inset 0 0 0 5px var(--crema), 0 2px 0 var(--esmalte-o); transform: rotate(-2deg); }
.rotulo > span { grid-area: 1 / 1; }
.rotulo .r-c { visibility: hidden; }
.cerrado .rotulo { background: #6d6a5c; box-shadow: inset 0 0 0 3.5px #6d6a5c, inset 0 0 0 5px var(--crema), 0 2px 0 #4a483e; }
.cerrado .rotulo .r-a { visibility: hidden; }
.cerrado .rotulo .r-c { visibility: visible; }
.filas { border-top: 2px dashed rgb(29 42 38 / .45); }
.fila { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding: 20px 0; border-bottom: 2px dashed rgb(29 42 38 / .45); font-size: 19px; }
.fila .fd { font-weight: 700; }
.fila .fh { font-family: var(--placa); font-size: 24px; font-variant-numeric: tabular-nums; text-align: right; }
.fila .hoy { grid-column: 1 / -1; display: none; width: fit-content; margin-top: 4px; font-family: var(--mano); font-size: 21px; color: #a3301a; transform: rotate(-2deg); }
.fila.es-hoy .hoy { display: block; }
.estado-g { font-size: 17px; color: var(--tinta); }
@media (min-width: 900px) {
  .hor-g { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .fila { font-size: 21px; padding: 26px 0; }
  .fila .fh { font-size: 30px; }
}

/* ---------- cómo llegar: el mapa ---------- */
.lle-g { display: grid; gap: 32px; margin-top: 44px; }
.marco-l .mapa { aspect-ratio: 600 / 420; }
.ruta circle { fill: var(--tomate); }
.aqui { font-family: var(--mano); font-size: 36px; fill: var(--tinta); }
.lle-d { display: grid; justify-items: start; gap: 18px; }
.placa-l { transform: rotate(-1.5deg); max-width: 100%; }
.lle-x { color: var(--tinta2); font-size: 18px; max-width: 34ch; }
@media (min-width: 900px) {
  .lle-g { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 56px; margin-top: 64px; }
}

/* ---------- contacto ---------- */
.con-g { display: grid; gap: 44px; }
.con-x { margin-top: 28px; color: var(--tinta2); max-width: 40ch; font-size: 18px; }
.rot { margin-top: 30px; font-size: 15px; font-weight: 700; }
.num { display: inline-block; margin-top: 2px; font: 600 clamp(36px, 10.5vw, 58px)/1.1 var(--placa); letter-spacing: -.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .num:hover { text-decoration: underline wavy var(--tomate) 3px; text-underline-offset: .15em; } }
.con-f { padding: 28px 22px 30px; border-radius: 20px; background: var(--crema); box-shadow: inset 0 0 0 5px var(--crema), inset 0 0 0 6.5px var(--esmalte), 0 3px 0 rgb(29 42 38 / .25); }
.f-t { font-family: var(--placa); font-weight: 600; font-size: 24px; }
form { display: grid; gap: 18px; margin-top: 20px; }
.cp { display: grid; gap: 6px; }
label { font-weight: 700; font-size: 15px; }
input, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--tinta); border-radius: 10px; background: #fffaf0; color: var(--tinta); font: 400 17px/1.4 var(--texto); }
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--manzana); }
.ay, .priv { color: var(--tinta2); font-size: 14px; }
.err { color: #a32613; font-size: 14px; font-weight: 700; }
.err:empty { display: none; }
form .btn { justify-self: start; }
.ok { margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--parque); }
@media (min-width: 900px) {
  .con-g { grid-template-columns: 1fr 470px; align-items: start; gap: 80px; }
  .con-f { padding: 38px 38px 42px; }
}

/* ---------- cierre: la placa grande ---------- */
.cie-g { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.nota-c { color: var(--crema); font-size: clamp(34px, 9vw, 56px); transform: rotate(-3deg); }
.placa-c { width: min(100%, 900px); margin-top: 22px; padding: 34px 44px 36px; background: var(--crema); color: var(--esmalte); transform: rotate(-1deg);
  box-shadow: inset 0 0 0 7px var(--crema), inset 0 0 0 10px var(--esmalte), inset 0 10px 18px -12px rgb(255 255 255 / .6), 0 5px 0 #c9bf9f, 0 30px 44px -20px rgb(0 0 0 / .6); }
.placa-n { font-family: var(--placa); font-weight: 600; font-size: clamp(36px, 9.6vw, 104px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.placa-s { margin-top: 12px; font-weight: 600; font-size: clamp(16px, 4.4vw, 22px); color: #2f5e55; overflow-wrap: anywhere; text-wrap: balance; }
.cie-x { margin-top: 36px; font-size: 18px; color: rgb(247 240 220 / .86); max-width: 36ch; }
.num-c { margin-top: 16px; color: var(--crema); }
.cie-g .acc { justify-content: center; }
.btn-c { background: var(--crema); color: var(--esmalte); box-shadow: inset 0 0 0 3px var(--crema), inset 0 0 0 4.5px rgb(22 79 69 / .5), 0 3px 0 #c9bf9f; }
@media (hover: hover) { .btn-c:hover { box-shadow: inset 0 0 0 3px var(--crema), inset 0 0 0 4.5px rgb(22 79 69 / .5), 0 5px 0 #c9bf9f; } }
.cie .estado { color: rgb(247 240 220 / .86); margin-top: 26px; }
.cie .estado::before { border-color: rgb(247 240 220 / .86); }
.cie :focus-visible { outline-color: var(--manzana); }

/* ---------- pie ---------- */
.pie { background: var(--esmalte-o); color: rgb(247 240 220 / .86); padding: 30px 0 38px; font-size: 15px; }
.pie-g { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; }
.pie-n { font: 600 18px/1.2 var(--placa); color: var(--crema); overflow-wrap: anywhere; }
.arriba { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- movimiento ---------- */
/* La placa del hero se asienta al cargar (caída con giro); solo transform: la dirección se lee desde el inicio */
@media (prefers-reduced-motion: no-preference) {
  .placa-h { animation: asienta 1.1s cubic-bezier(.3, 1.5, .55, 1) .15s both; }
  .pt .onda { animation: onda 2.4s ease-out infinite; }
}
@keyframes asienta { from { transform: translateY(-26px) rotate(-7deg); } to { transform: rotate(-2deg); } }
@keyframes onda { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.1); opacity: 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .e { animation: entra linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    .pl { animation: cuelga linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .marco-h .mapa { animation: deriva linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes entra { from { opacity: 0; transform: translateY(24px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
@keyframes cuelga { from { transform: rotate(-9deg); } 60% { transform: rotate(3deg); } to { transform: none; } }
@keyframes deriva { from { transform: scale(1.08); } to { transform: scale(1.08) translate(-3%, -6%); } }
.pre { opacity: 0; transform: translateY(24px) rotate(-1.2deg); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.pre.ver { opacity: 1; transform: none; }

/* El camino de puntos hasta la puerta: los puntos aparecen uno a uno cuando el mapa entra */
.js .ruta circle { opacity: 0; }
.js .ruta.anda circle { animation: paso .35s ease-out both; animation-delay: calc(var(--i) * 90ms); }
@keyframes paso { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.ruta circle { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ruta circle { opacity: 1; }
}
