@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

/* ---------- Landing: la pagina es una entrada de diccionario, como el logo ---------- */
body.is-landing {
  --paper: #F7EDE6;
  --paper-deep: #EFDFD6;
  --ink-l: #15110F;
  --wine: #561B2D;
  --wine-deep: #3D121F;
  --dim: #6F625B;
  background: var(--paper);
  color: var(--ink-l);
}
body.is-landing.sheet-open { overflow: hidden; }

#app.is-landing { max-width: none; margin: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; min-height: 0; }
#landing-root { overflow-x: clip; }

.l-section { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vw, 112px) 20px 0; }

/* Botones */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--wine); background: var(--wine); color: #fff;
  cursor: pointer; text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.l-btn:hover { background: var(--wine-deep); }
.l-btn:active { transform: scale(.97); }
.l-btn-big { font-size: 16px; padding: 17px 30px; }
.l-btn-ghost { background: transparent; color: var(--ink-l); border-color: rgba(21,17,15,.25); }
.l-btn-ghost:hover { background: rgba(21,17,15,.06); }
.l-btn-wa { background: #1F8F55; border-color: #1F8F55; }
.l-btn-wa:hover { background: #18784a; }
.l-link { color: var(--wine); font-weight: 600; font-size: 15px; text-underline-offset: 4px; }
.l-btn:focus-visible, .glass-card:focus-visible, .chip:focus-visible, .promo-bar:focus-visible, .rail-nav button:focus-visible, .faq summary:focus-visible, .sticky-cta:focus-visible {
  outline: 2px solid var(--wine); outline-offset: 3px;
}

/* Promo del mes: tarjeta de vidrio bajo los videos */
.promo-zone { position: relative; display: flex; justify-content: center; margin-top: clamp(22px, 4vw, 36px); }
.promo-zone .orb { animation-duration: 14s; }
.promo-orb-a { width: 220px; height: 220px; background: #3A3634; left: 22%; top: -40px; }
.promo-orb-b { width: 200px; height: 200px; background: #8C8681; right: 22%; top: -10px; animation-delay: -7s; }
.promo-glass {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; width: min(100%, 460px); text-align: left; cursor: pointer;
  padding: 18px 22px 16px; border-radius: 26px; color: var(--ink-l); font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 40px -26px rgba(21,17,15,.5);
}
.promo-glass:hover { background: rgba(255,255,255,.6); }
.promo-glass:active { transform: scale(.98); }
.promo-glass:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.promo-tag { font-family: 'Newsreader', serif; font-style: italic; font-size: 16px; color: var(--wine); }
.promo-name { font-family: 'Gloock', serif; font-size: 22px; line-height: 1.15; }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(21,17,15,.14); font-size: 14px; }
.promo-foot strong { font-size: 18px; }
.promo-go { font-weight: 600; color: var(--wine); }

/* Portada */
.hero { max-width: 980px; margin: 0 auto; padding: clamp(44px, 6vw, 64px) 20px clamp(36px, 6vw, 72px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { display: block; width: min(72vw, 360px); height: auto; animation: logo-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; animation: logo-in 1s .35s cubic-bezier(.2,.7,.2,1) both; }
.hero-place { font-family: 'Newsreader', serif; font-style: italic; font-size: 17px; color: var(--dim); }

.hero-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.6vw, 16px); margin-top: clamp(28px, 5vw, 48px); }
.reel {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: var(--paper-deep);
  animation: reel-in 1s cubic-bezier(.2,.7,.2,1) both;
}
.reel-1 { object-position: 50% 22%; animation-delay: .25s; }
.reel-3 { object-position: 50% 38%; animation-delay: .4s; }
.reel-2 { object-position: 50% 78%; animation-delay: .55s; }
@keyframes reel-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* Cinta de texto: mini, de vidrio, al final de la pagina */
.ticker {
  position: relative; z-index: 1; width: min(100%, 520px); margin: 30px auto 0; overflow: hidden; padding: 9px 0; border-radius: 999px;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 30px -22px rgba(21,17,15,.5);
}
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: 'Gloock', serif; font-size: 16px; line-height: 1; padding: 0 12px; color: var(--ink-l); }
.ticker-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--wine); flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
.foot-orb { width: 260px; height: 160px; background: #55504C; left: 50%; bottom: 90px; margin-left: -130px; opacity: .4; }

/* Encabezado tipo diccionario */
.entry { margin-bottom: clamp(24px, 4vw, 40px); max-width: 640px; }
.entry-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.entry-word { margin: 0; font-family: 'Gloock', serif; font-weight: 400; font-size: clamp(30px, 4.2vw, 40px); line-height: 1.08; letter-spacing: -0.01em; overflow: hidden; padding-bottom: .08em; }
.entry-word span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.75,.2,1); }
.entry-pos { font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(16px, 2vw, 19px); color: var(--dim); opacity: 0; transition: opacity .6s .45s ease; }
.entry-rule { height: 1.5px; background: var(--ink-l); margin: 10px 0 14px; transform: scaleX(0); transform-origin: left; transition: transform 1s .25s cubic-bezier(.6,0,.2,1); }
.entry-def { margin: 0; font-family: 'Newsreader', serif; font-size: clamp(17px, 2vw, 19px); line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .7s .6s ease, transform .7s .6s ease; }
.entry.is-in .entry-word span { transform: none; }
.entry.is-in .entry-pos { opacity: 1; }
.entry.is-in .entry-rule { transform: scaleX(1); }
.entry.is-in .entry-def { opacity: 1; transform: none; }

/* Aparicion de bloques: llegan desenfocados y se aclaran, uno tras otro */
[data-reveal]:not(.entry) { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(12px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.2,1), filter .9s ease; transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in:not(.entry) { opacity: 1; transform: none; filter: blur(0); }

/* Servicios: tarjetas de vidrio sobre manchas de color */
.services { max-width: none; padding-left: 0; padding-right: 0; }
.services > .entry, .services > .glass-grid { position: relative; z-index: 1; max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.services > .entry { max-width: 1080px; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; animation: drift 16s ease-in-out infinite alternate; }
.orb-a { width: 380px; height: 380px; background: #3A3634; left: 6%; top: 34%; }
.orb-b { width: 320px; height: 320px; background: #8C8681; right: 8%; top: 22%; animation-delay: -6s; }
.orb-c { width: 300px; height: 300px; background: #15110F; left: 44%; bottom: -6%; opacity: .38; animation-delay: -11s; }
@keyframes drift { from { transform: translate(-30px, -18px) scale(1); } to { transform: translate(40px, 26px) scale(1.14); } }

.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding-bottom: 24px; }
.glass-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 210px; text-align: left; cursor: pointer;
  padding: 22px 22px 18px; border-radius: 28px; color: var(--ink-l); font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 40px -26px rgba(21,17,15,.5);
}
.glass-card:hover { background: rgba(255,255,255,.6); }
.glass-card:active { transform: scale(.98); }
.glass-name { font-family: 'Gloock', serif; font-size: 26px; line-height: 1.05; }
.glass-list { font-size: 14px; line-height: 1.5; color: #4A3F3A; flex: 1; }
.glass-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; padding-top: 12px; border-top: 1px solid rgba(21,17,15,.14); }
.glass-foot strong { font-size: 17px; }

/* Carruseles */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(21,17,15,.22); background: transparent; color: var(--ink-l); cursor: pointer; }
.chip.is-on { background: var(--ink-l); color: var(--paper); border-color: var(--ink-l); }
.rail-wrap { margin: 0 -20px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(72vw, 320px); margin: 0; scroll-snap-align: start; }
.shot img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; background: var(--paper-deep); }
.shot figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; font-family: 'Newsreader', serif; font-size: 16px; }
.shot-cat { font-style: italic; color: var(--dim); white-space: nowrap; }
.rail-empty { flex: 1; padding: 44px 20px; text-align: center; font-family: 'Newsreader', serif; font-style: italic; font-size: 19px; color: var(--dim); border: 1.5px dashed rgba(21,17,15,.22); border-radius: 22px; }
.rail-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.swipe-hint { display: inline-flex; align-items: center; gap: 10px; font-family: 'Newsreader', serif; font-style: italic; font-size: 18px; color: var(--dim); }
.swipe-arrow { width: 44px; height: 1.5px; background: currentColor; position: relative; animation: swipe 1.6s ease-in-out infinite; }
.swipe-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
@keyframes swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(21,17,15,.25); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-l); }
.rail-nav button:hover { background: var(--ink-l); color: var(--paper); }

/* Contadores */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.counter-num { display: block; font-family: 'Gloock', serif; font-size: clamp(54px, 9vw, 92px); line-height: 1; color: var(--wine); font-variant-numeric: tabular-nums; }
.counter-label { font-family: 'Newsreader', serif; font-style: italic; font-size: 19px; color: var(--dim); }

/* Reseñas */
.review { flex: 0 0 min(82vw, 380px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 26px 24px 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(21,17,15,.1); }
.review-text { margin: 0; font-family: 'Newsreader', serif; font-size: 20px; line-height: 1.45; }
.review footer { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(21,17,15,.14); }
.review-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; }
.review-meta { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--dim); }
.review-form { margin-top: 26px; max-width: 620px; padding: 24px; border-radius: 22px; background: var(--paper-deep); }
.review-form h3 { margin: 0 0 14px; font-family: 'Gloock', serif; font-weight: 400; font-size: 26px; }
.review-form label { display: block; margin-bottom: 12px; }
.review-form label > span { display: block; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: #4A3F3A; }
.review-form input, .review-form select, .review-form textarea { border-color: rgba(21,17,15,.18); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-thanks { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.45; }

/* Sobre Mar */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 72px); align-items: center; }
.about-photo { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26px; box-shadow: 0 30px 50px -30px rgba(21,17,15,.5); }
.about-text { margin: 0 0 14px; font-family: 'Newsreader', serif; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; max-width: 34em; }

/* Como funciona */
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(21,17,15,.1); }
.step-n { display: block; font-family: 'Gloock', serif; font-size: 52px; line-height: 1; color: var(--wine); margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.5; color: #4A3F3A; }
.steps-note { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--wine); background: var(--paper-deep); border-radius: 0 14px 14px 0; font-family: 'Newsreader', serif; font-size: 18px; line-height: 1.45; max-width: 640px; }

/* Instagram */
.ig-box { display: flex; justify-content: center; }
.ig-box .instagram-media { margin: 0 !important; border: 0; padding: 0; width: 100%; max-width: 540px; }
.ig-fallback { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 40px 20px; border-radius: 22px; background: #fff; border: 1px solid rgba(21,17,15,.1); color: var(--ink-l); text-decoration: none; font-family: 'Inter', sans-serif; font-size: 15px; }
.ig-handle { font-family: 'Gloock', serif; font-size: 32px; }

/* Ubicacion y contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-block { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(21,17,15,.1); }
.contact-block h3 { margin: 0; font-family: 'Gloock', serif; font-weight: 400; font-size: 26px; }
.contact-block p { margin: 0; font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.55; }
.contact-small { color: var(--dim); }

/* Preguntas y politicas */
.faq { max-width: 760px; border-top: 1.5px solid var(--ink-l); }
.faq details { border-bottom: 1px solid rgba(21,17,15,.2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-family: 'Newsreader', serif; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Inter', sans-serif; font-size: 22px; line-height: 1; color: var(--wine); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 60ch; font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; color: #4A3F3A; }
.policies { max-width: 760px; margin-top: 30px; padding: 24px; border-radius: 22px; background: var(--paper-deep); }
.policies h3 { margin: 0 0 10px; font-family: 'Gloock', serif; font-weight: 400; font-size: 24px; }
.policies ul { margin: 0; padding-left: 20px; font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; }

.l-footer { text-align: center; padding: clamp(56px, 9vw, 104px) 20px 120px; }
.l-footer { position: relative; display: flex; flex-direction: column; align-items: center; }
.l-footer img, .l-footer p { position: relative; z-index: 1; }
.l-footer img { width: min(52vw, 200px); margin-bottom: 10px; }
.l-footer p { margin: 0; font-family: 'Newsreader', serif; font-style: italic; color: var(--dim); }

/* Boton fijo en el telefono */
.sticky-cta {
  display: none; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  padding: 17px; border: 0; border-radius: 999px; background: var(--wine); color: #fff; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; box-shadow: 0 16px 34px -12px rgba(21,17,15,.75);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta.is-on { transform: none; }
body.sheet-open .sticky-cta { transform: translateY(140%); }

/* Hoja de reserva */
.sheet-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(21,17,15,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in .25s ease both; }
.sheet { width: 100%; max-width: 560px; max-height: min(92vh, 860px); display: flex; flex-direction: column; background: #FBF8F5; border-radius: 26px; overflow: hidden; animation: sheet-in .4s cubic-bezier(.2,.8,.2,1) both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #E7DFD9; font-family: 'Gloock', serif; font-size: 22px; background: #fff; }
.sheet-head button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F3F0EC; cursor: pointer; font-size: 15px; }
.sheet-body { padding: 20px; overflow-y: auto; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }

@media (max-width: 760px) {
  .reel { border-radius: 10px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .steps, .contact-grid { grid-template-columns: 1fr; }
  .review-fields { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .sticky-cta { display: block; }
  .sheet-overlay { padding: 0; align-items: flex-end; }
  .sheet { max-width: none; max-height: 94vh; border-radius: 26px 26px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-actions, .reel, .ticker-track, .orb, .swipe-arrow, .sheet, .sheet-overlay { animation: none; }
  [data-reveal], .entry-word span, .entry-pos, .entry-rule, .entry-def { transition: none; }
}
