/* ==========================================================
   Sant Paul — Café de especialidad & Bakery
   ========================================================== */
:root {
  --espresso: #1f140e;
  --coffee: #3b2519;
  --brown: #5b3a29;
  --caramel: #c68a4e;
  --caramel-soft: #e4b988;
  --cream: #f7efe4;
  --paper: #fbf7f1;
  --green: #3f7a44;
  --green-dark: #2d5a31;
  --ink: #2a1d15;
  --muted: #7a6558;
  --line: rgba(59, 37, 25, .12);
  --wa: #25d366;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(31, 20, 14, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Evita el scroll lateral en móvil (Safari de iPhone ignora el overflow del body si no se aplica también en html) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--caramel); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-title em { font-style: italic; color: var(--caramel); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--espresso); color: #fff; padding: 12px 18px; z-index: 999; }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--caramel); --fg: var(--espresso);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font: 700 .85rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.25); transform: translateX(-101%); transition: transform .5s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn:hover::after { transform: translateX(0); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--dark { --bg: var(--espresso); --fg: var(--cream); }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover svg { transform: scale(1.1); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s, transform .5s var(--ease);
}
/* El fondo difuminado va en una capa aparte: si se pone en la propia cabecera, el menú
   móvil (position: fixed) queda encerrado dentro de ella al hacer scroll. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(31, 20, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.5);
}
.header.is-scrolled { padding: 10px 0; }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.nav-open .header { transform: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 58px; width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .logo img { height: 46px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #fff; font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; position: relative;
  transition: background .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--caramel-soft);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 10px; padding: 12px 20px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  color: #fff; background: var(--espresso);
}
.hero__bg { position: absolute; inset: -8% 0; background: url("../assets/img/hero.webp") center/cover no-repeat; will-change: transform; transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(20,12,8,.92) 0%, rgba(20,12,8,.7) 40%, rgba(20,12,8,.15) 75%), linear-gradient(0deg, rgba(20,12,8,.7), transparent 35%);
}
.hero__content { position: relative; z-index: 2; padding: 140px 0 120px; max-width: 680px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 400; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--caramel-soft); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__sub { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--cream); margin-bottom: .8em; }
.hero__text { color: rgba(247,239,228,.75); max-width: 52ch; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .fade-in { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.hero .d1 { animation-delay: .45s; } .hero .d2 { animation-delay: .6s; } .hero .d3 { animation-delay: .75s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; z-index: 2; bottom: 32px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(var(--caramel-soft), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--caramel); color: var(--espresso); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-style: italic; padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Values ---------- */
.values { background: var(--green-dark); color: var(--cream); padding: 0; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { padding: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 44px); border-right: 1px solid rgba(255,255,255,.12); transition: background .5s; }
.value:last-child { border-right: 0; }
.value:hover { background: rgba(255,255,255,.05); }
.value__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); margin-bottom: 22px; color: var(--caramel-soft); transition: transform .6s var(--ease); }
.value:hover .value__icon { transform: rotate(-12deg) scale(1.08); }
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.55rem; }
.value p { color: rgba(247,239,228,.75); margin: 0; }

/* ---------- Products ---------- */
.flavors { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head .lead { margin: 0; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 90px; }
.product {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 20px;
  background: var(--cream); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.product::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(198,138,78,.35), transparent 70%); left: -60px; top: -40px; transition: transform .8s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product:hover::before { transform: scale(1.3); }
.product__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.product__img img { max-height: 280px; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(31,20,14,.3)); transition: transform .8s var(--ease); }
.product:hover .product__img img { transform: rotate(-4deg) scale(1.05); }
.product__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--espresso); color: var(--caramel-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.product h3 { font-size: 1.7rem; }
.product p { color: var(--muted); font-size: .98rem; }
.product .btn { padding: 13px 20px; font-size: .78rem; }

.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--espresso); color: #fff; min-height: 460px; display: flex; align-items: flex-end; }
.category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,12,8,.92) 10%, rgba(20,12,8,.1) 65%); }
.category:hover img { transform: scale(1.08); }
.category__body { position: relative; z-index: 2; padding: 30px; }
.category__num { font-family: var(--f-display); font-style: italic; color: var(--caramel-soft); font-size: 1rem; }
.category h3 { font-size: 1.9rem; margin: 6px 0 10px; }
.category p { color: rgba(255,255,255,.78); margin: 0; font-size: .98rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s; }
.category:hover p, .category:focus-within p { max-height: 160px; opacity: 1; }

/* ---------- About ---------- */
.about { background: var(--espresso); color: var(--cream); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__visual { position: relative; aspect-ratio: 4/5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; }
.about__visual img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.about__badge {
  position: absolute; right: -10px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--caramel); color: var(--espresso); display: grid; place-items: center; text-align: center;
  font-family: var(--f-display); font-style: italic; font-size: 1.05rem; line-height: 1.15; padding: 20px;
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.about__badge-wrap { position: relative; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }
.about .section-title { color: #fff; }
.about p { color: rgba(247,239,228,.75); font-size: 1.1rem; }
.about__quote { font-family: var(--f-display); font-size: 1.35rem; font-style: italic; color: var(--caramel-soft); border-left: 2px solid var(--caramel); padding-left: 20px; margin-top: 28px; }

/* ---------- Moments ---------- */
.moments { background: var(--cream); }
.moments__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.moment {
  background: var(--paper); border-radius: var(--radius); padding: 34px 28px 30px; position: relative; overflow: hidden;
  border: 1px solid var(--line); transition: transform .6s var(--ease), background .5s, color .5s;
}
.moment:hover { transform: translateY(-8px); background: var(--brown); color: var(--cream); }
.moment:hover p { color: rgba(247,239,228,.8); }
.moment__num { font-family: var(--f-display); font-size: 4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--caramel); margin-bottom: 26px; display: block; }
.moment h3 { font-size: 1.45rem; }
.moment p { color: var(--muted); margin: 0; font-size: .98rem; transition: color .5s; }

/* ---------- Favorites ---------- */
.favorites { background: var(--paper); }
.favorites__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fav { perspective: 1200px; }
.fav__card { position: relative; aspect-ratio: 3/4; transform-style: preserve-3d; transition: transform .9s var(--ease); cursor: pointer; }
.fav.is-flipped .fav__card { transform: rotateY(180deg); }
.fav__face { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fav__front { background: var(--espresso); }
.fav__front img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fav:hover .fav__front img { transform: scale(1.06); }
.fav__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,12,8,.85), transparent 50%); }
.fav__label { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.fav__label h3 { font-size: 1.4rem; margin: 0; }
.fav__plus { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--caramel); color: var(--espresso); display: grid; place-items: center; font-size: 1.4rem; border: 0; cursor: pointer; transition: transform .4s var(--ease); }
.fav:hover .fav__plus { transform: rotate(90deg); }
.fav__back { transform: rotateY(180deg); background: var(--green-dark); color: var(--cream); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.fav__back h3 { font-size: 1.7rem; color: #fff; }
.fav__back p { color: rgba(247,239,228,.85); }
.fav__back small { margin-top: auto; opacity: .6; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Reviews ---------- */
.reviews { background: var(--brown); color: var(--cream); overflow: hidden; }
.reviews .section-title { color: #fff; }
.reviews .lead { color: rgba(247,239,228,.7); }
.reviews__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 60px 0 50px; }
.review { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; transition: transform .6s var(--ease), background .5s; }
.review:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.review__stars { color: var(--caramel-soft); letter-spacing: 4px; margin-bottom: 18px; }
.review blockquote { margin: 0 0 24px; font-size: 1.02rem; color: rgba(247,239,228,.88); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--caramel); color: var(--espresso); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.2rem; }

/* ---------- Instagram ---------- */
.insta { background: var(--cream); }
.insta__box {
  border-radius: 32px; padding: clamp(40px, 7vw, 90px); text-align: center; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(rgba(31,20,14,.35), rgba(31,20,14,.55)), url("../assets/img/fondo.webp") center/cover;
}
.insta__box .section-title { color: #fff; max-width: 18ch; margin-inline: auto; }
.insta__box .lead { color: rgba(247,239,228,.8); }
.insta__box .btn { margin-top: 14px; }

/* ---------- Event ---------- */
.event { background: var(--espresso); color: var(--cream); }
.event__card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; overflow: hidden; background: linear-gradient(135deg, #2c1c13, #1a110b); border: 1px solid rgba(255,255,255,.08); }
.event__info { padding: clamp(36px, 5vw, 64px); }
.event__date { display: inline-flex; gap: 10px; align-items: center; background: rgba(198,138,78,.15); color: var(--caramel-soft); padding: 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.event__info h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: .2em; }
.event__subtitle { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--caramel-soft); margin-bottom: 1.2em; }
.event__info h3 { font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,239,228,.6); margin: 30px 0 14px; }
.event__list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.event__list li::before { content: "✦"; color: var(--caramel); }
.event__side { background: var(--caramel); color: var(--espresso); padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; overflow: hidden; }
.event__side::before { content: "☕"; position: absolute; font-size: 18rem; right: -40px; bottom: -70px; opacity: .1; transform: rotate(-15deg); }
.event__price { font-family: var(--f-display); font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; margin-bottom: 10px; }
.event__price small { font-size: .3em; font-family: var(--f-body); letter-spacing: .15em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.event__status { margin-top: 26px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--espresso); color: var(--cream); width: 100%; }
.event__status strong { display: block; color: var(--caramel-soft); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.event__status span { font-family: var(--f-display); font-size: 1.5rem; font-style: italic; }

/* ---------- Visit / Contact ---------- */
.visit { background: var(--paper); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.info-list { display: grid; gap: 16px; margin: 30px 0; }
.info-item { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius-sm); background: var(--cream); transition: transform .5s var(--ease); }
.info-item:hover { transform: translateX(6px); }
.info-item__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--espresso); color: var(--caramel-soft); display: grid; place-items: center; }
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 { font-family: var(--f-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.info-item p, .info-item a { margin: 0; font-size: 1.02rem; }
.info-item a:hover { color: var(--caramel); }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--cream); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: sepia(.25) saturate(.9); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: #140d09; color: rgba(247,239,228,.7); padding: 90px 0 30px; position: relative; overflow: hidden; }
.footer__big { font-family: var(--f-display); font-size: clamp(4rem, 16vw, 13rem); line-height: .9; color: rgba(247,239,228,.05); white-space: nowrap; position: absolute; bottom: 40px; left: 50%; translate: -50% 0; pointer-events: none; font-style: italic; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.footer__logo img { height: 70px; width: auto; margin-bottom: 18px; }
.footer h4 { font-family: var(--f-body); color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--caramel-soft); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--caramel); border-color: var(--caramel); color: var(--espresso); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { position: relative; margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .88rem; }
.footer__bottom img { height: 26px; width: auto; opacity: .7; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .4s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes pulse { to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Producto informativo ---------- */
.product__note { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--brown); font-weight: 700; font-size: .88rem; }
.product__note svg { width: 18px; height: 18px; color: var(--caramel); }

/* ---------- Club Sant Paul ---------- */
.club { background: radial-gradient(120% 90% at 100% 0%, #6b4430 0%, var(--coffee) 40%, var(--espresso) 100%); color: var(--cream); overflow: hidden; }
.club .section-title { color: #fff; }
.club .lead { color: rgba(247,239,228,.75); }
.club__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.club__steps { list-style: none; padding: 0; margin: 34px 0 26px; display: grid; gap: 18px; }
.club__steps li { display: flex; gap: 16px; align-items: flex-start; }
.club__steps span { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--caramel); color: var(--espresso); font-family: var(--f-display); font-size: 1.25rem; }
.club__steps strong { display: block; color: #fff; font-size: 1.08rem; }
.club__steps p { margin: 2px 0 0; color: rgba(247,239,228,.65); font-size: .95rem; }
.club__perks { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.club__perks li { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.club__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost-dark { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(247,239,228,.35); }
.club__visual { position: relative; display: grid; place-items: center; }
.club__visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(198,138,78,.35), transparent 65%); }
.phone { position: relative; width: 280px; aspect-ratio: 9 / 19; border-radius: 42px; padding: 12px; background: #0e0906; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 2px #3a2a20; animation: float 7s ease-in-out infinite; }
.phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 20px; background: #0e0906; z-index: 2; }
.phone__screen { height: 100%; border-radius: 32px; background: var(--paper); color: var(--ink); padding: 52px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; }
.phone__hello small { display: block; font-size: .7rem; color: var(--muted); }
.phone__hello strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; }
.phone__card { border-radius: 20px; padding: 16px; color: var(--cream); background: radial-gradient(120% 140% at 100% 0%, #6b4430, var(--coffee) 45%, var(--espresso)); text-align: center; }
.phone__card small { font-size: .6rem; letter-spacing: .14em; color: var(--caramel-soft); font-weight: 700; }
.phone__ring { position: relative; width: 104px; height: 104px; margin: 10px auto; }
.phone__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.phone__ring circle { fill: none; stroke-width: 10; stroke: rgba(255,255,255,.12); }
.phone__ring circle + circle { stroke: var(--caramel); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.8s var(--ease) .4s; }
.is-visible .phone__ring circle + circle { stroke-dashoffset: 52; }
.phone__ring b { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; line-height: 1; color: #fff; }
.phone__ring i { font-style: normal; font-family: var(--f-body); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,239,228,.6); margin-top: 3px; }
.phone__card p { font-size: .72rem; margin: 0; color: rgba(247,239,228,.8); }
.phone__row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: .72rem; border: 1px solid var(--line); }
.phone__row b { color: #2f7a3a; }
.phone__row b.neg { color: #b83a2e; }
.phone__tab { margin-top: auto; height: 46px; border-radius: 16px; background: var(--espresso); display: flex; align-items: center; justify-content: space-around; }
.phone__tab i { width: 16px; height: 16px; border-radius: 5px; background: rgba(247,239,228,.3); }
.phone__tab i.scan { width: 38px; height: 38px; border-radius: 50%; margin-top: -22px; background: var(--caramel); box-shadow: 0 0 0 4px var(--paper); }
.club__badge { position: absolute; right: 4%; top: 18%; padding: 12px 18px; border-radius: 16px; background: var(--caramel); color: var(--espresso); font-weight: 700; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite reverse; }

/* ---------- Botón flotante de la app ---------- */
.app-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; background: var(--caramel); color: var(--espresso); font-weight: 700; font-size: .9rem;
  box-shadow: 0 14px 30px -10px rgba(198,138,78,.7); transition: transform .4s var(--ease);
}
.app-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--caramel); animation: pulse 2.6s ease-out infinite; z-index: -1; }
.app-float svg { width: 20px; height: 20px; }
.app-float:hover { transform: translateY(-3px); }

/* ---------- Cookies (consentimiento) ---------- */
.cc { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(30px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.cc.is-open { opacity: 1; transform: none; }
.cc__box { pointer-events: auto; width: min(760px, 100%); background: var(--espresso); color: var(--cream); border-radius: 22px; padding: 22px 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.cc__title { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 6px; color: #fff; }
.cc__text { font-size: .92rem; color: rgba(247,239,228,.8); margin: 0; }
.cc__text a { color: var(--caramel-soft); text-decoration: underline; }
.cc__settings { display: grid; gap: 10px; margin-top: 16px; }
.cc__settings[hidden] { display: none; }
.cc__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); cursor: pointer; }
.cc__opt strong { display: block; color: #fff; font-size: .95rem; }
.cc__opt small { color: rgba(247,239,228,.65); font-size: .8rem; }
.cc__opt input { width: 22px; height: 22px; accent-color: var(--caramel); flex: none; }
.cc__opt.is-locked { cursor: default; opacity: .8; }
.cc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: flex-end; }
.cc__btn { flex: 1 1 150px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(247,239,228,.35); background: transparent; color: var(--cream); font: 700 .88rem var(--f-body); cursor: pointer; transition: background .2s, border-color .2s; }
.cc__btn:hover { border-color: var(--caramel-soft); }
.cc__btn--primary { background: var(--caramel); border-color: var(--caramel); color: var(--espresso); }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.cookie-link:hover { color: var(--caramel-soft); }

/* Mapa bloqueado hasta aceptar contenido de terceros */
[data-consent-box] { position: relative; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(rgba(247,239,228,.92), rgba(247,239,228,.92)), url("../assets/img/hero.webp") center/cover; color: var(--ink); }
.map-consent p { max-width: 34ch; margin: 0 auto 14px; font-size: .95rem; color: var(--muted); }
[data-consent-box].is-consented .map-consent { display: none; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.2em 0 .6em; }
.legal h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.legal p, .legal li { color: #4b3a30; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal ol { list-style: decimal; padding-left: 1.3em; margin: 0 0 1em; }
.legal ul ul { list-style: circle; margin: .4em 0 0; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--brown); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--cream); font-weight: 700; }
.legal .table-wrap { overflow-x: auto; }
.legal .todo { background: #fff1dc; color: #8a5a12; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--espresso); color: #fff; padding: 180px 0 90px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/hero.webp") center/cover; opacity: .25; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 400; }
.breadcrumbs { display: flex; gap: 10px; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--caramel-soft); margin-bottom: 16px; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal--scale { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.is-visible .split-word > span, .split-word.is-visible > span { transform: none; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--caramel); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .moments__grid, .favorites__grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 90px 24px calc(30px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--espresso); clip-path: circle(0 at calc(100% - 40px) 40px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  /* Centrado vertical que, si no cabe todo, permite hacer scroll sin cortar el primer enlace */
  .nav > :first-child { margin-top: auto; }
  .nav > :last-child { margin-bottom: auto; }
  .nav a { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; padding: 9px 18px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .5s var(--ease); }
  .nav a:not(.btn)::after { bottom: 3px; }
  .nav .btn { font-family: var(--f-body); font-size: .85rem; margin: 18px 0 0; padding: 12px 26px; }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav-open .nav a { opacity: 1; transform: none; }
  .nav-open .nav a:nth-child(2) { transition-delay: .04s; } .nav-open .nav a:nth-child(3) { transition-delay: .08s; }
  .nav-open .nav a:nth-child(4) { transition-delay: .12s; } .nav-open .nav a:nth-child(5) { transition-delay: .16s; }
  .nav-open .nav a:nth-child(6) { transition-delay: .2s; } .nav-open .nav a:nth-child(7) { transition-delay: .24s; }
  .nav-open .nav a:nth-child(8) { transition-delay: .28s; } .nav-open .nav a:nth-child(9) { transition-delay: .32s; }
  .nav-open .app-float, .nav-open .cc { opacity: 0; pointer-events: none; }
  /* En móvil las animaciones laterales entran desde abajo (desde los lados ensanchaban la página) */
  .reveal--left, .reveal--right { transform: translateY(40px); }
  .club__grid { grid-template-columns: 1fr; }
  .club__badge { right: 2%; }
  .values__grid, .reviews__track, .about__grid, .event__card, .visit__grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .category { min-height: 380px; }
  .category p { max-height: none; opacity: 1; }
  .about__badge-wrap { max-width: 460px; }
  .about__badge { width: 120px; height: 120px; font-size: .9rem; right: -6px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .categories .category:last-child { grid-column: 1 / -1; }
  .reviews__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 10px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .reviews__track::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 85%; scroll-snap-align: center; }
}
@media (max-width: 600px) {
  .product { grid-template-columns: 1fr; text-align: center; }
  .product__img img { max-height: 220px; }
  .moments__grid, .favorites__grid, .footer__grid, .categories { grid-template-columns: 1fr; }
  .categories .category:last-child { grid-column: auto; }
  .logo img { height: 48px; }
  .scroll-cue { display: none; }
  .app-float { right: 14px; bottom: 14px; padding: 13px 16px; }
  .club__actions .btn { width: 100%; justify-content: center; }
  .phone { width: 240px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
