/* MOFT Visítanos. Page layer on top of home.css (the shared site base: header, footer, buttons, page head, cards,
   tags, photo placeholders). Layout only: every colour, size, space and radius is a --moft-* token or a home.css variable.
   Solid colours only: states swap solid fills and text. */

.vis-sec{padding-block:var(--moft-space-5)}

/* ---------- Map + Dónde estamos ---------- */
.where{display:grid;gap:var(--moft-space-5)}
.where__map{position:relative;overflow:hidden;border-radius:var(--moft-radius-card);border:3px solid var(--moft-cacao);background:var(--moft-galleta)}
.where__ph{aspect-ratio:4/3;justify-content:center;align-items:center;border-radius:0;padding:var(--moft-space-5)}
.where__load{display:grid;justify-items:center;gap:var(--moft-space-3);text-align:center}
.where__note{font-size:var(--moft-size-small);font-weight:var(--moft-weight-medium);letter-spacing:.05em;text-transform:none;color:var(--moft-text-brand-on-light)}
/* The loaded map fills the same box (visitanos.js swaps the placeholder for the iframe) */
.where__frame,.map__frame{display:block;width:100%;aspect-ratio:4/3;border:0}

.where__side{display:grid;gap:var(--moft-space-4);align-content:center;justify-items:start}
.where__card{display:grid;gap:var(--moft-space-4);width:100%;padding:var(--moft-space-5)}
.where__addr{display:grid;gap:2px;font-style:normal}
.where__city{font-size:var(--moft-size-body);line-height:1.5}
.where__take{display:flex;flex-wrap:wrap;align-items:center;gap:var(--moft-space-2) var(--moft-space-3);padding-top:var(--moft-space-4);border-top:2px dotted var(--moft-chocolate-light)}

/* Live status: the same two looks as the day's board in Mostrador.
   Open = Chocolate fill, Crema text, Salty Caramel dot (as "Disponible"). Closed = dashed Chocolate outline (as "Agotado"). */
.now{justify-self:start;display:inline-flex;align-items:center;gap:var(--moft-space-2);padding:6px 14px 6px 10px;border:2px solid var(--moft-chocolate);border-radius:var(--moft-radius-pill);font-size:var(--moft-size-small);font-weight:900;letter-spacing:.04em;line-height:1.2;color:var(--moft-chocolate)}
.now[hidden]{display:none}
.now i{flex:none;width:10px;height:10px;border-radius:50%;border:2px solid var(--moft-chocolate)}
.now--open{background:var(--moft-chocolate);color:var(--moft-crema)}
.now--open i{background:var(--moft-salty-caramel);border-color:var(--moft-salty-caramel)}
.now--closed{border-style:dashed}

/* ---------- Horario · Cómo llegar · Contacto ---------- */
.trio{display:grid;gap:var(--moft-space-7)}
.trio__col{display:grid;gap:var(--moft-space-4);align-content:start}
.trio__foot{margin-top:calc(-1 * var(--moft-space-1))}

/* Week table on a Whipped Cream card; a dotted rule between days (as the Catálogo variables).
   Today: the kit's other button pair, Salty Caramel fill with Tiramisu text, and a "Hoy" word after the day. */
.hours-card{padding:var(--moft-space-2) var(--moft-space-3)}
.hours{width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.hours th,.hours td{padding:var(--moft-space-3) var(--moft-space-3);border-bottom:2px dotted var(--moft-chocolate-light);text-align:left;vertical-align:baseline}
.hours tr:last-child>*{border-bottom:0}
.hours th{font-family:var(--font-display);font-weight:700;font-variation-settings:"SOFT" 100,"WONK" 0;font-synthesis:none;font-size:var(--moft-size-body);letter-spacing:.03em;color:var(--moft-text-on-light);white-space:nowrap}
.hours td{text-align:left;font-size:var(--moft-size-small);font-weight:var(--moft-weight-medium);letter-spacing:.04em;color:var(--moft-text-brand-on-light)}
.hours td span{display:block}
.hours .is-closed td{font-weight:900}
.hours .is-today>*{background:var(--moft-salty-caramel);color:var(--moft-tiramisu);border-bottom-color:transparent}
.hours .is-today th{border-radius:var(--moft-radius-small) 0 0 var(--moft-radius-small)}
.hours .is-today td{border-radius:0 var(--moft-radius-small) var(--moft-radius-small) 0;font-weight:900}
/* the row above today loses its rule too, so the highlight sits clean */
.hours tr:has(+ .is-today)>*{border-bottom-color:transparent}
.hours__today{margin-left:var(--moft-space-2);font-family:var(--moft-font);font-size:var(--moft-size-label);font-weight:900;letter-spacing:.1em;text-transform:uppercase}

/* Routes: a letter in a circle (the Mostrador layer numbers: Chocolate fill, Crema text, hard pill shadow) and a dotted
   path linking each start to the next, like the Encarga tu tarta steps on phones */
.routes{display:grid;gap:0}
.route{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:var(--moft-space-4);padding-bottom:var(--moft-space-5)}
.route:last-child{padding-bottom:0}
.route:not(:last-child)::before{content:"";position:absolute;left:19px;top:48px;bottom:var(--moft-space-2);border-left:3px dotted var(--moft-chocolate-light)}
.route__n{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--moft-radius-pill);background:var(--moft-chocolate);color:var(--moft-crema);box-shadow:var(--sh-pill) var(--moft-chocolate-deep);font-family:var(--font-display);font-weight:900;font-variation-settings:"SOFT" 100,"WONK" 0;font-size:20px;line-height:1}
.route__body{display:grid;gap:var(--moft-space-1);justify-items:start;padding-top:6px}
.route__t{font-family:var(--font-display);font-weight:700;font-variation-settings:"SOFT" 100,"WONK" 0;font-synthesis:none;font-size:var(--moft-size-h3);line-height:1.25;letter-spacing:.03em}
.route__txt{font-size:15px;line-height:1.5}

/* Contact rows: label on the left, the value (a link) on the right; the same dotted rule as the week table */
.contact{display:grid;border-top:2px dotted var(--moft-chocolate-light)}
.contact__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--moft-space-1) var(--moft-space-4);min-height:56px;padding-block:var(--moft-space-1);border-bottom:2px dotted var(--moft-chocolate-light)}
.contact__k{font-family:var(--font-display);font-weight:700;font-variation-settings:"SOFT" 100,"WONK" 0;font-synthesis:none;font-size:var(--moft-size-body);letter-spacing:.03em}
.contact__v{display:inline-flex;align-items:center;min-height:44px;font-size:var(--moft-size-small);font-weight:900;letter-spacing:.05em;color:var(--moft-text-brand-on-light);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;font-variant-numeric:tabular-nums}
.contact__v:hover{color:var(--moft-accent-text-on-light)}
.contact__cta{display:grid;gap:var(--moft-space-4);justify-items:start;margin-top:var(--moft-space-2)}
/* The accent line role (Fraunces italic 600, WONK 1), as the closing line in Mostrador */
.contact__lead{max-width:34ch;font-family:var(--font-display);font-style:italic;font-weight:600;font-variation-settings:"SOFT" 100,"WONK" 1;font-size:19px;line-height:1.4;color:var(--moft-text-brand-on-light)}

/* ---------- Tablet ---------- */
@media (min-width:768px){
  .vis-sec{padding-block:var(--moft-space-6)}
  .trio{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--moft-space-7) var(--moft-space-6)}
  .trio__col:last-child{grid-column:1/-1}
  .contact__cta{grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-items:start}
}

/* ---------- Desktop: map left, card right; then three columns ---------- */
@media (min-width:1024px){
  .where{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:var(--moft-space-7);align-items:stretch}
  .where__ph,.where__frame,.map__frame{aspect-ratio:auto;height:100%;min-height:440px}
  .trio{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--moft-space-7)}
  .trio__col:last-child{grid-column:auto}
  .contact__cta{grid-template-columns:none}
}

/* the contact card stands alone now: centred, not stretched */
.vis-sec .wrap>.nl-card{width:100%}
/* wide card: title and intro share one row on top, then the form fills the width: four short fields on the left, a tall message box on the right */
@media (min-width:1024px){
  .vis-sec .wrap>.nl-card .nl-card__head{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);column-gap:var(--moft-space-7);align-items:end}
  .vis-sec .wrap>.nl-card .nl-card__kicker{grid-column:1}
  .vis-sec .wrap>.nl-card .nl-card__t{grid-column:1}
  .vis-sec .wrap>.nl-card .nl-card__lead{grid-column:2;grid-row:1/span 2;max-width:56ch}
  .vis-sec .wrap>.nl-card .nl-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--moft-space-6);row-gap:var(--moft-space-4);align-items:start}
  .vis-sec .wrap>.nl-card .nl-row{display:contents}
  .vis-sec .wrap>.nl-card .nl-row .nl-field{grid-column:1}
  .vis-sec .wrap>.nl-card .nl-form>.nl-field{grid-column:2;grid-row:1/span 4;grid-template-rows:auto 1fr auto;height:100%}
  .vis-sec .wrap>.nl-card .nl-form>.nl-field textarea.nl-input{height:100%;min-height:200px}
  .vis-sec .wrap>.nl-card .nl-form>:not(.nl-field):not(.nl-row){grid-column:1/-1}
}
