@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bg: #efe7dd;
  --paper: #fbf7f2;
  --kraft: #d6ccc1;
  --ink: #4a3829;
  --text: #54473c;
  --soft: #6d5f53;
  --gold: #ad8a5f;
  --gold-2: #c3a985;
  --line: #d6ccc1;
  --ok: #3f7d4f;
  --serif: 'DM Serif Display', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg) url('/img/patron-cafe.webp?v=4') repeat center top;
  background-size: 1400px;
  color: var(--text);
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--soft); }
.small { font-size: .88rem; }
.center { text-align: center; }
.gold { color: var(--gold); }

/* barra superior */
.top { position: sticky; top: 0; z-index: 10; background: rgba(239, 231, 221, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.top-logo img { width: 40px; height: 40px; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--soft); padding: 6px 12px; border-radius: 999px; }
.top-nav a:hover { color: var(--ink); }
.top-nav a.on { background: var(--ink); color: var(--bg); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; padding: 13px 22px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; border: 1.5px solid var(--ink); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

/* portada */
.hero { text-align: center; padding: 40px 0 44px; background: radial-gradient(ellipse at 50% 30%, rgba(251, 247, 242, .85) 0%, rgba(251, 247, 242, .35) 35%, rgba(239, 231, 221, 0) 60%); border-bottom: 1px solid var(--line); }
.hero-in { max-width: 720px; margin: 0 auto; }
.hero-logo { width: min(300px, 70%); height: auto; display: block; margin: 0 auto 18px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--gold); margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin-bottom: 22px; }
.hero-lead { font-size: 1.1rem; color: var(--soft); max-width: 560px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta.left { justify-content: flex-start; margin: 22px 0 14px; }

/* categorías de la portada */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; min-height: 150px; padding: 18px 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.1; box-shadow: 0 2px 10px rgba(74, 56, 41, .06); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(74, 56, 41, .12); }
.cat-card img { height: 80px; width: auto; }
.cat-card img.photo { height: 84px; border-radius: 12px; }
.cat-card svg { width: 72px; height: 80px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* este mes (carrusel) */
.month { padding-top: 8px; }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.month-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
.car-nav { display: flex; gap: 8px; }
.car-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.car-btn:hover { background: var(--ink); color: var(--bg); }
.car { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; outline: none; }
.car::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: grid; grid-template-columns: 1.4fr 1fr; min-height: 270px; border-radius: 24px; overflow: hidden; background: var(--ink); color: #efe7dd; }
.slide-txt { padding: 30px 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.slide-tag { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin-bottom: 12px; }
.slide h3 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 6px; }
.slide-date { font-weight: 700; color: var(--gold-2); margin: 0 0 8px; }
.slide p { margin: 0 0 14px; max-width: 46ch; }
.slide .btn { background: #efe7dd; color: var(--ink); border-color: #efe7dd; padding: 10px 18px; }
.slide-media { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); }
/* v7.8.2: el espacio de la foto mide siempre 4:3 (como mínimo); la foto lo llena y ya no decide la altura de la ficha */
.slide-media.has-photo { position: relative; display: block; min-width: 0; }
.slide-media.has-photo::before { content: ''; display: block; padding-top: 75%; }
.slide-ico { width: 46%; max-width: 150px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.slide-ico .f, .nook svg .f { fill: currentColor; stroke: none; }
.slide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-photo.completa { object-fit: contain; padding: 18px; }
.slide.t-taller { background: var(--gold); color: #fff; }
.slide.t-taller .slide-date { color: var(--ink); }
.slide.t-taller .slide-tag { background: rgba(74, 56, 41, .18); }
.slide.t-evento { background: #e3d6c5; color: var(--text); }
.slide.t-evento h3 { color: var(--ink); }
.slide.t-evento .slide-date { color: var(--gold); }
.slide.t-evento .slide-tag { background: rgba(74, 56, 41, .1); color: var(--ink); }
.slide.t-evento .slide-media { color: var(--ink); background: rgba(255, 255, 255, .3); }
.slide.t-evento .btn, .slide.t-taller .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: var(--gold-2); opacity: .5; cursor: pointer; transition: width .2s; }
.dots button.on { width: 26px; opacity: 1; background: var(--ink); }

/* un rincón para */
.nooks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.nook { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; text-align: center; }
.nook svg { width: 58px; height: 58px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--gold); margin-bottom: 8px; }
.nook h3 { font-size: 1.4rem; margin-bottom: 6px; }
.nook p { margin: 0; color: var(--soft); font-size: .93rem; }

/* portada con foto */
.hero.has-photo { position: relative; color: #fff; background: linear-gradient(180deg, rgba(40, 28, 18, .55) 0%, rgba(40, 28, 18, .35) 45%, rgba(239, 231, 221, 0) 72%, var(--bg) 100%), var(--foto) center 35% / cover no-repeat; padding-top: 90px; border-bottom: 0; }
.hero.has-photo .hero-logo { content: url('/img/isologo-blanco.svg'); filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .35)); }
.hero.has-photo h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.hero.has-photo .hero-kicker { color: #f3e7d6; }
.hero.has-photo .cats { margin-top: 70px; }

/* reseñas */
.reviews { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.rating-num { font-family: var(--serif); font-size: 3rem; color: var(--ink); line-height: 1; }
.stars { color: var(--gold); font-size: 1.5rem; letter-spacing: .1em; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 26px; }
.quote { margin: 0; background: var(--bg); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink); }
.quote figcaption { font-weight: 700; color: var(--gold); font-size: .92rem; }
.quote figcaption::before { content: "★★★★★  "; letter-spacing: .05em; }

/* galería */
.grid-ig { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.grid-ig a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--kraft); }
.grid-ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-ig a:hover img { transform: scale(1.04); }

/* botón fijo "Cómo llegar" (solo celular) */
.fab { display: none; }

/* secciones */
.sec { padding: 64px 0; }
.sec-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.sec-title h2 { font-size: clamp(2rem, 4.5vw, 2.7rem); text-align: center; }
.rule { flex: 1; height: 1.5px; background: var(--gold); position: relative; }
.rule::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; background: var(--gold); transform: translateY(-50%) rotate(45deg); }
.rule.l::after { left: 0; }
.rule.r::after { right: 0; }
.lead { text-align: center; max-width: 680px; margin: 0 auto 30px; color: var(--soft); font-size: 1.05rem; }

/* menú */
.chips { position: sticky; top: 61px; z-index: 5; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 10px; background: rgba(239, 231, 221, .92); backdrop-filter: blur(6px); }
.chips a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--soft); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.chips a b { font-family: var(--serif); font-weight: 400; margin-right: 6px; color: var(--gold); }
.chips a:hover { border-color: var(--gold); color: var(--ink); }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; margin-bottom: 22px; box-shadow: 0 2px 12px rgba(74, 56, 41, .05); }
.cat > h3 { font-size: 1.9rem; text-align: center; margin-bottom: 14px; }
.items.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.item { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.item .n { font-family: var(--serif); color: var(--ink); font-size: 1.3rem; line-height: 1.15; }
.item .p { font-family: var(--serif); color: var(--ink); font-size: 1.3rem; white-space: nowrap; text-align: right; }
.item .p i, .frappe-price i { font-style: normal; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: .7rem; color: var(--gold); letter-spacing: .05em; margin: 0 2px 0 8px; }
.item .d { grid-column: 1 / -1; color: var(--soft); font-size: .92rem; margin-top: 2px; }
.item.ico { grid-template-columns: 52px 1fr auto; }
.item.ico img { grid-row: span 2; width: auto; max-height: 52px; justify-self: center; align-self: center; }
.item.ico .d { grid-column: 2 / -1; }
.note { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 10px 16px; border: 1.5px dashed var(--gold-2); border-radius: 14px; font-size: .95rem; }
.note .tag { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.note b { color: var(--ink); }
.center-note { justify-content: center; }
.center-note img { height: 38px; width: auto; }
.frappe { display: flex; align-items: center; gap: 18px; margin: 30px 0 4px; padding-top: 22px; border-top: 1.5px solid var(--gold-2); }
.frappe img { height: 70px; width: auto; }
.frappe h4 { font-size: 1.6rem; }
.frappe p { margin: 2px 0; }
.frappe-price { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.frappe-price i { margin-left: 0; }
.sub { font-size: 1.5rem; text-align: center; margin: 30px 0 6px; }
.food { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.food-card { text-align: center; }
.food-card img { height: 120px; width: auto; display: block; margin: 0 auto 6px; }
.food-card h4 { font-size: 1.7rem; }
.food-card .muted { font-size: .93rem; margin: 6px auto 12px; max-width: 380px; }
.opts { list-style: none; padding: 0; margin: 0; text-align: left; }
.opts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.opts li span { font-family: var(--serif); color: var(--ink); font-size: 1.15rem; }
.opts li b { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.2rem; }
.extras { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 18px; }
.extras img { height: 54px; width: auto; }
.extras h4 { font-size: 1.4rem; }
.extras p { margin: 4px 0 0; }
.extras b { color: var(--ink); }

/* especialidad */
.step-title { text-align: center; font-size: 1.5rem; margin: 10px 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 1rem; }
.beans { display: grid; grid-template-columns: 1fr 110px 1fr; gap: 26px; align-items: center; margin-bottom: 40px; }
.bean-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 8px; }
.bean h4, .bean .p { font-size: 1.6rem; font-family: var(--serif); color: var(--ink); }
.bean p { margin: 4px 0; color: var(--soft); }
.bean .origin { color: var(--ink); font-weight: 700; font-size: .92rem; }
.emb { width: 70px; justify-self: center; }
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 22px; }
.method { text-align: center; }
.method > img { height: 110px; width: auto; display: block; margin: 0 auto 10px; }
.method h4 { font-size: 1.35rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.method .flag { width: auto; height: 16px; border-radius: 2px; }
.method p { color: var(--soft); font-size: .92rem; margin: 6px 0 0; }

/* lealtad */
.loyal { background: var(--ink); color: #efe7dd; }
.loyal-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.loyal h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.loyal b { color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--gold-2); margin: 0 0 10px; }
.soft { color: rgba(239, 231, 221, .7); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: var(--paper); border-radius: 22px; padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: rotate(-2deg); }
.s { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--gold-2); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.s.on { background: var(--ink); border: 0; }
.s.on img { width: 62%; height: auto; }
.s.gift { border: 3px solid var(--gold); background: #f3e7d6; font-size: .62rem; letter-spacing: .04em; color: var(--ink); }

/* visítanos */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.visit-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.addr { margin: 0 0 10px; }
.tel { font-weight: 700; text-decoration: none; }
.visit-card .btn { margin-top: 4px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hours tr.today th { font-weight: 700; color: var(--ink); }
.hours tr.today th::before { content: "● "; color: var(--gold); }
.open-now { margin: 12px 0 0; font-weight: 700; }
.open-now.is-open { color: var(--ok); }
.open-now.is-closed { color: var(--soft); }
.social { list-style: none; padding: 0; margin: 0; }
.social li + li { margin-top: 10px; }
.social a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.social svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; flex: none; }
.social svg .dot, .social svg .fill { fill: var(--ink); stroke: none; }

/* pie */
.foot { background: var(--ink); color: rgba(239, 231, 221, .8); text-align: center; padding: 40px 20px; }
.foot img { width: 180px; height: auto; }
.foot p { margin: 8px 0; }
.foot a { color: #efe7dd; }

/* celular */
@media (max-width: 820px) {
  body { background-size: 900px; }
  .top-logo span { display: none; }
  .top-nav a { padding: 6px 9px; font-size: .88rem; }
  .items.cols, .food, .visit, .loyal-in { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { min-height: 120px; font-size: 1.1rem; }
  .cat-card img { height: 60px; } .cat-card img.photo { height: 64px; } .cat-card svg { height: 60px; }
  .nooks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nook { padding: 18px 12px; }
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-media { display: none; }
  .slide-txt { padding: 24px 22px; }
  .quotes { grid-template-columns: 1fr; }
  .grid-ig { grid-template-columns: 1fr 1fr; }
  .hero.has-photo { padding-top: 60px; }
  .hero.has-photo .cats { margin-top: 40px; }
  .fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(40, 28, 18, .35); transform: translateY(120px); transition: transform .25s; }
  .fab.show { transform: none; }
  .fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .foot { padding-bottom: 90px; }
  .methods { grid-template-columns: 1fr 1fr; }
  .beans { grid-template-columns: 1fr; }
  .emb { display: none; }
  .cat { padding: 22px 18px; border-radius: 18px; }
  .sec { padding: 48px 0; }
  .stamps { transform: none; max-width: 420px; }
  .hero { padding: 40px 20px 52px; }
  .chips { top: 57px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -20px 10px; padding: 10px 20px; scrollbar-width: none; }
  .chips a { white-space: nowrap; }
}
@media (max-width: 400px) {
  .top-nav a { padding: 5px 7px; font-size: .82rem; }
  .item .n, .item .p { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
