/* =========================================================
   By Diana Barragán — Botanical Spa Luxury
   Diseño y desarrollo: CREATIVO PUBLICIDAD
   ========================================================= */
:root {
  --ivory: #fbf6ee;
  --cream: #f6eee2;
  --sand: #ead9c1;
  --beige: #dcc3a0;
  --olive: #4a6420;
  --olive-dark: #33470f;
  --olive-soft: #7d9b45;
  --ink: #2f2719;
  --ink-soft: #5b4f3c;
  --gold: #b8955a;
  --line: rgba(74, 60, 34, .16);
  --white-glass: rgba(255, 252, 246, .78);
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-script: 'Great Vibes', 'Brush Script MT', cursive;
  --f-body: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(92, 70, 33, .14);
  --shadow-sm: 0 6px 20px rgba(92, 70, 33, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--ivory);
  font: 400 17px/1.6 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--olive); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Ambiente (hojas + luz) ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.leaf-branch { position: absolute; width: 300px; height: 300px; opacity: .9; filter: blur(.3px) drop-shadow(0 8px 10px rgba(60, 80, 20, .15)); transform-origin: 0 0; animation: sway 7s ease-in-out infinite; }
.lb-tl { left: -40px; top: -30px; }
.lb-bl { left: -70px; bottom: -110px; transform: rotate(-70deg); filter: blur(2px); opacity: .55; animation-delay: -2s; transform-origin: 0 100%; }
.lb-br { right: -90px; bottom: -120px; transform: scaleX(-1) rotate(-60deg); filter: blur(2.5px); opacity: .5; animation-delay: -4s; transform-origin: 100% 100%; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 3.5deg; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(250, 243, 233, .86); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(120, 95, 50, .10);
  transition: box-shadow .3s var(--ease), background .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(80, 60, 25, .10); background: rgba(250, 243, 233, .95); }
.header-inner { height: 100%; width: min(1320px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.brand { display: block; height: calc(var(--header-h) - 12px); }
.brand img { height: 100%; width: auto; }
.header-divider { width: 1px; height: 46px; background: var(--line); }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.6vw, 46px); align-items: center; }
.main-nav a { text-decoration: none; font: 500 21px/1 var(--f-display); color: var(--ink); padding: 8px 0; position: relative; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--olive); transform: scaleX(0); transition: transform .35s var(--ease); border-radius: 2px; }
.main-nav a:hover { color: var(--olive); }
.main-nav a[aria-current="page"] { color: var(--olive-dark); font-weight: 700; }
.main-nav a[aria-current="page"]::after, .main-nav a:hover::after { transform: scaleX(1); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.has-sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 12px); left: -16px; min-width: 240px; background: #fffaf2; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { font: 500 16px/1.2 var(--f-body); padding: 10px 12px; display: block; border-radius: 8px; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 46px; height: 46px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(74, 100, 32, .08); }
.icon-btn svg { width: 27px; height: 27px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .snd-on { display: none; }
.icon-btn[aria-pressed="true"] .snd-on { display: block; stroke: var(--olive); }
.icon-btn[aria-pressed="true"] .snd-off { display: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--olive); color: #fff; font: 600 12px/21px var(--f-body); text-align: center; transition: transform .3s var(--ease); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; flex-direction: column; gap: 5px; }
.menu-btn span { width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); display: block; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 0; text-decoration: none; font: 500 18px/1.1 var(--f-display); font-weight: 600; letter-spacing: .2px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; position: relative; overflow: hidden; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, #5d7a2a, var(--olive-dark)); color: #fff; box-shadow: 0 10px 26px rgba(51, 71, 15, .30), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(51, 71, 15, .38); }
.btn-primary:disabled, .btn-wa:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border: 1.5px solid var(--olive); color: var(--olive-dark); background: transparent; }
.btn-ghost:hover { background: var(--olive); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #fff; font-family: var(--f-body); font-weight: 600; font-size: 16px; box-shadow: 0 10px 24px rgba(37, 211, 102, .30); }
.btn-wa:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn .wa-ico, .wa-ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.btn-wa:hover .wa-ico { transform: none; }
.btn.full { width: 100%; }
.btn .ripple-fx { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: btnripple .6s ease-out; pointer-events: none; }
@keyframes btnripple { to { transform: scale(4); opacity: 0; } }

main { position: relative; z-index: 1; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.eyebrow { font: 500 13px/1 var(--f-body); letter-spacing: .42em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
.eyebrow.center { text-align: center; }

/* ---------- Títulos ---------- */
.section-title { text-align: center; font: 600 clamp(34px, 3.6vw, 52px)/1.1 var(--f-display); margin: 0 0 10px; color: #2b2314; display: flex; align-items: center; justify-content: center; gap: 20px; }
.section-title span { display: inline-block; }
.section-title:not(.plain)::before, .section-title:not(.plain)::after { content: ''; width: clamp(40px, 8vw, 110px); height: 12px; background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 12'%3E%3Cpath d='M2 8C30 2 70 2 108 6' fill='none' stroke='%234a6420' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.section-title:not(.plain)::after { transform: scaleX(-1); }
.section-title.left { justify-content: flex-start; text-align: left; }
.section-sub { text-align: center; padding-inline: 20px; margin: 0 0 34px; color: var(--ink-soft); letter-spacing: .06em; font-size: 15px; }
.lead { font: 500 21px/1.45 var(--f-display); color: #3d3423; }

/* ---------- Catálogo ---------- */
.catalog { padding: 70px 0 90px; background: linear-gradient(180deg, transparent, rgba(234, 217, 193, .35) 30%, rgba(234, 217, 193, .35) 70%, transparent); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 38px; }
.chip { border: 1px solid var(--line); background: rgba(255, 252, 246, .85); padding: 11px 22px; min-height: 44px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: .25s var(--ease); }
.chip:hover { border-color: var(--olive); color: var(--olive); }
.chip.is-active { background: var(--olive); border-color: var(--olive); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.card { background: #fffcf6; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); animation: cardIn .6s var(--ease) both; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card-photo { all: unset; cursor: pointer; display: block; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--sand); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .9s var(--ease); }
.card:hover .card-photo img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { margin: 0; font: 600 24px/1.15 var(--f-display); }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font: 600 22px/1 var(--f-display); color: var(--olive-dark); margin-top: auto; padding-top: 10px; }
.card-price small { font: 400 13px var(--f-body); color: var(--ink-soft); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.card-actions .btn { min-height: 44px; padding: 10px 12px; font-size: 15px; gap: 8px; }
.card-actions .btn svg { width: 18px; height: 18px; }
.card-actions .btn-add { background: var(--olive); color: #fff; font-family: var(--f-body); font-weight: 600; }
.card-actions .btn-add:hover { background: var(--olive-dark); }
.card-actions .btn-wa { font-size: 14px; box-shadow: none; }
.cat-note { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 30px 0 0; }

/* ---------- Rutinas ---------- */
.routines { padding: 90px 0; }
.routines-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.routines-photo { margin: 0; border-radius: 240px 240px 22px 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; position: relative; background: #efe4d3; isolation: isolate; }
.routines-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Fotos de la rutina: todas apiladas en el arco; solo la activa se ve (fundido + leve acercamiento) */
.routines .routines-photo img.rt-foto { position: absolute; inset: 0; opacity: 0; scale: 1.04; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), scale 6s ease-out, transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.routines .routines-photo img.rt-foto.is-on { opacity: 1; scale: 1; z-index: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 20px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 12px 6px; margin-right: 18px; min-height: 44px; font: 600 20px var(--f-display); color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--olive-dark); border-color: var(--olive); }
.steps { list-style: none; counter-reset: s; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; display: block; min-height: 76px; padding: 20px 24px 20px 90px; animation: cardIn .5s var(--ease) both;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf5ea 100%); border: 1px solid rgba(184, 149, 90, .30); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 24px -18px rgba(92, 70, 33, .45); transition: border-color .4s, box-shadow .4s, translate .4s; }
.steps li:hover { border-color: rgba(184, 149, 90, .6); translate: 0 -1px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 16px 30px -18px rgba(92, 70, 33, .5); }
/* Medallón del número: verde oliva con volumen, anillo marfil y filo dorado. Números 1–4 con cifras de caja alta (lining-nums):
   Playfair trae por defecto cifras antiguas que bajan de la línea y por eso se veían descentradas; el padding inferior de 4px compensa la caja de la fuente. */
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 48px; height: 48px; box-sizing: border-box; padding: 0 0 4px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 600 20px/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; color: #f4e6c4;
  background: radial-gradient(circle at 32% 26%, #7a9642 0%, #4a6420 52%, #2f420d 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 3px #fffaf0, 0 0 0 4px rgba(184, 149, 90, .8), 0 8px 16px -6px rgba(51, 71, 15, .5), inset 0 1px 1px rgba(255, 255, 255, .28), inset 0 -2px 4px rgba(0, 0, 0, .18); }
.steps b { font-weight: 600; color: var(--olive-dark); }

/* ---------- Nosotros ---------- */
.about { padding: 90px 0; background: linear-gradient(180deg, transparent, #f3e7d6 40%, #f3e7d6 60%, transparent); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.about-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; max-height: 560px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Nosotros: escena spa a sangre (texto a la izquierda sobre la pared, jabones en el pedestal a la derecha) */
.about-spa { position: relative; overflow: hidden; background: #eecaab; aspect-ratio: 1594 / 987; max-height: none; display: flex; align-items: center; padding: 80px 0; }
.about-escena { position: absolute; inset: 0; }
.about-escena picture { display: contents; }
.about-escena .ae-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-escena img { object-fit: cover; object-position: 50% 50%; will-change: transform; }
.about-spa .wrap { position: relative; z-index: 1; flex: none; width: auto; margin: 0 0 0 18vw; }
.about-spa .about-grid { display: block; }
.about-spa .about-copy { max-width: min(500px, 30vw); }
@media (min-width: 821px) { .about-spa #about-title { font-size: clamp(30px, 2.9vw, 54px); } }
.about-spa .about-copy p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.seals li { cursor: default; user-select: none; }
.seals { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-spa .seals { justify-content: center; }
.seals li { padding: 9px 18px; border-radius: 999px; background: #fffaf2; border: 1px solid rgba(74, 100, 32, .25); color: var(--olive-dark); font-size: 15px; font-weight: 500; }

/* ---------- Blog ---------- */
.blog { padding: 90px 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.post { background: #fffcf6; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post > img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-tag { margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.post h3 { margin: 0; font: 600 25px/1.15 var(--f-display); }
.post-body p:not(.post-tag) { margin: 0; color: var(--ink-soft); font-size: 15px; }
.link-btn { margin-top: auto; padding: 12px 0 0; border: 0; background: none; align-self: flex-start; font-weight: 600; color: var(--olive-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; min-height: 44px; }
.post-full h2 { font: 600 clamp(28px, 3vw, 38px)/1.15 var(--f-display); margin: 6px 0 16px; }
.post-full p, .post-full li { color: #3d3423; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 18px; }
.compare > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fbf5ec; }
.compare .good { background: #eef2e3; border-color: rgba(74, 100, 32, .3); }
.compare h3 { margin: 0 0 8px; font: 600 21px var(--f-display); }
.compare ul, .guide { padding-left: 20px; margin: 0; }
.guide li { margin-bottom: 8px; }

/* ---------- Contacto ---------- */
.contact { padding: 90px 0 110px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--ink-soft); }
.contact-list a { font-weight: 500; text-decoration: none; color: var(--olive-dark); }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: #fffcf6; padding: clamp(22px, 3vw, 34px); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .8); }
.contact-form h3 { margin: 0 0 14px; font: 600 28px var(--f-display); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea, #srInput { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #d9c9b1; border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, #srInput:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(74, 100, 32, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 4px 0 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--olive); flex: none; margin-top: 1px; }
.form-msg { min-height: 1.2em; margin: 0 0 10px; color: #b3261e; font-size: 14px; }
.form-msg.ok { color: var(--olive-dark); }
.form-help { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: #ece0cd; padding: 40px 0 16px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; }
.footer-brand img { width: 112px; }
.footer-brand p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.redes { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 10px; }
.redes a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--olive-dark); transition: background .25s, color .25s, transform .25s; }
.redes a:hover, .redes a:focus-visible { background: var(--olive-dark); color: #fff; transform: translateY(-2px); }
.redes svg { width: 18px; height: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.footer-nav a, .footer-legal a { text-decoration: none; font: 500 19px var(--f-display); padding: 6px 0; display: inline-block; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--olive); }
.footer-legal { display: grid; justify-items: end; gap: 2px; font-size: 14px; color: var(--ink-soft); }
.footer-legal a { font: 400 15px var(--f-body); color: var(--ink); }
/* WhatsApp en el pie: número visible con ícono en el verde oficial de WhatsApp */
.footer-legal a.footer-wa { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 4px; font: 600 16px var(--f-body); color: var(--ink); letter-spacing: .01em; }
.footer-wa-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--whatsapp); color: #fff; box-shadow: 0 4px 10px rgba(37, 211, 102, .32); transition: transform .25s var(--ease); }
.footer-wa-ico svg { width: 17px; height: 17px; }
.footer-legal a.footer-wa:hover { color: var(--olive-dark); }
.footer-legal a.footer-wa:hover .footer-wa-ico { transform: scale(1.08); background: var(--whatsapp-dark); }
.credit { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; width: fit-content; padding: 10px 16px; text-decoration: none; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.credit img { width: 96px; height: auto; }
.credit:hover { color: var(--ink); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37, 211, 102, .42); transition: transform .3s var(--ease); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--olive-dark); color: #fff; padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow); font-size: 15px; transition: .35s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(43, 35, 20, .45); backdrop-filter: blur(4px); }
.modal { width: min(980px, calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 24px; background: var(--ivory); padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 80px rgba(40, 30, 10, .35); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 28px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 3; }
.modal-close.static { position: static; box-shadow: none; background: transparent; }
.modal-close:hover { background: #fff; color: var(--olive); }
.modal-search { width: min(620px, calc(100% - 28px)); }
.modal-search h2 { margin: 0 0 16px; font: 600 32px var(--f-display); }
.sr-results { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.sr-results button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 8px; border: 1px solid var(--line); background: #fffcf6; border-radius: 12px; }
.sr-results button:hover { border-color: var(--olive); }
.sr-results img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.sr-results span { flex: 1; font: 600 20px var(--f-display); }
.sr-results em { font-style: normal; color: var(--olive); }

.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 44px); }
.pd-main { border-radius: 18px; overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button { flex: none; width: 66px; height: 66px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; }
.pd-thumbs button[aria-current="true"] { border-color: var(--olive); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h2 { margin: 4px 0 6px; font: 600 clamp(30px, 3.2vw, 42px)/1.05 var(--f-display); padding-right: 40px; }
.pd-price { font: 600 30px var(--f-display); color: var(--olive-dark); margin: 6px 0 12px; }
.pd-info h3 { font: 600 19px var(--f-display); margin: 16px 0 6px; }
.pd-info ul { margin: 0; padding-left: 20px; color: #3d3423; }
.pd-info li { margin-bottom: 4px; }
.pd-meta { font-size: 14px; color: var(--ink-soft); margin: 10px 0 0; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.variants label { position: relative; }
.variants input { position: absolute; opacity: 0; inset: 0; }
.variants span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.variants input:checked + span { border-color: var(--olive); background: var(--olive); color: #fff; }
.variants input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; border-radius: 50%; }
.qty button:hover { color: var(--olive); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.pd-buy .btn-primary { flex: 1; min-width: 190px; }
.pd-buy .btn-wa { width: 100%; }

/* Carrito (panel lateral) */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); background: var(--ivory); display: none; flex-direction: column; box-shadow: -20px 0 60px rgba(40, 30, 10, .25); }
.drawer[open] { display: flex; animation: drawerIn .4s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 600 30px var(--f-display); }
.drawer-body { flex: 1; overflow: auto; padding: 14px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fffaf2; }
.sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum strong { font: 600 26px var(--f-display); color: var(--olive-dark); }
.sum.small { font-size: 14px; color: var(--ink-soft); }
.line { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.line h3 { margin: 0; font: 600 19px/1.15 var(--f-display); }
.line small { color: var(--ink-soft); display: block; }
.line-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.line .qty button { width: 36px; height: 36px; }
.line-del { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; font-size: 13px; min-height: 36px; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-soft); }
.empty .btn { margin-top: 14px; }

/* Checkout */
.modal-checkout h2 { margin: 0 0 18px; font: 600 34px var(--f-display); }
.co-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.co-summary { background: #fffcf6; border: 1px solid var(--line); border-radius: 18px; padding: 20px; align-self: start; display: grid; gap: 10px; }
.co-summary h3 { margin: 0; font: 600 22px var(--f-display); }
.co-line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.pay-methods { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.pay-methods legend { font-weight: 600; margin-bottom: 6px; }
.pay-opt { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--olive); box-shadow: 0 0 0 2px rgba(74, 100, 32, .15); }
.pay-opt.is-disabled { opacity: .6; cursor: not-allowed; }
.pay-opt input { accent-color: var(--olive); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--ink-soft); font-size: 13px; line-height: 1.35; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { font-size: 19px; }
  .header-inner { gap: 20px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .menu-btn { display: flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #faf3e9; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(40, 30, 10, .12); padding: 12px 24px 24px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a { font-size: 24px; padding: 14px 0; width: 100%; }
  .main-nav a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 12px; }
  .chev { display: none; }
  .btn-open .menu-btn span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .btn-open .menu-btn span:nth-child(2) { opacity: 0; }
  .btn-open .menu-btn span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .routines-grid, .about-grid, .contact-grid, .co-grid, .pd { grid-template-columns: 1fr; }
  .routines-photo { max-width: 440px; margin-inline: auto; width: 100%; }
  .about-photo { max-height: 420px; aspect-ratio: 4 / 3.4; }
  .about.about-spa { display: flex; flex-direction: column-reverse; min-height: 0; aspect-ratio: auto; padding: 60px 0 0; }
  .about-escena { position: relative; width: 100%; height: auto; inset: auto; aspect-ratio: 900 / 1263; margin-top: -28vw; z-index: 0; }
  .about-escena img { object-position: 50% 100%; }
  .about-spa .wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
  .about-spa .about-copy { max-width: none; }
  .about-spa .about-copy p { hyphens: auto; -webkit-hyphens: auto; }
  .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-legal { justify-items: center; }
  .site-footer { padding-bottom: 92px; } /* que el botón flotante de WhatsApp no tape el crédito */
  .footer-brand img { margin-inline: auto; }
  .redes { justify-content: center; }
}
@media (max-width: 640px) {
  .steps li { min-height: 68px; padding: 16px 16px 16px 74px; }
  .steps li::before { left: 16px; width: 42px; height: 42px; font-size: 18px; padding-bottom: 3px; }
  body { font-size: 16px; }
  .header-inner { width: calc(100% - 24px); }
  .icon-btn { width: 44px; height: 44px; }
  .header-actions { gap: 0; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .posts { grid-template-columns: 1fr; }
  .section-title { gap: 10px; }
  .section-title:not(.plain)::before, .section-title:not(.plain)::after { width: 28px; }
  .modal { padding: 22px 18px; border-radius: 20px; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .leaf-branch { width: 190px; height: 190px; }
  .routines, .about, .blog, .contact, .catalog { padding-block: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .drops { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.card-photo.contain, .pd-main.contain { background: #fff; }
.card-photo.contain img, .pd-main.contain img { object-fit: contain; padding: 10px; }
@media (max-width: 640px) { .eyebrow { letter-spacing: .28em; } }

/* Nosotros – celular: una sola pantalla, texto integrado sobre la foto vertical (medidas según la muestra aprobada) */
@media (max-width: 640px) {
  .about.about-spa { display: block; position: relative; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 560px; padding: 0; overflow: hidden; background: #f3dcc4; container-type: size; }
  .about-spa .about-escena { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; height: 100%; }
  .about-spa .about-escena img { object-position: 50% 100%; }
  .about-spa .wrap { position: relative; z-index: 1; height: 100%; width: auto; margin: 0; padding: 0 11cqw 0 12cqw; }
  .about-spa .about-copy { max-width: none; padding-top: 10.6cqh; }
  .about-spa .eyebrow { display: flex; align-items: center; gap: 4cqw; font-size: clamp(10.5px, 1.55cqh, 13px); letter-spacing: .3em; color: #6e4f2c; margin: 0 0 1.8cqh; }
  .about-spa .eyebrow::after { content: ''; flex: 0 0 18cqw; height: 1px; background: rgba(150, 110, 60, .45); }
  .about-spa #about-title { display: block; font-size: min(3.75cqh, 8cqw); line-height: 1.1; margin: 0 0 2.6cqh; color: #2b2314; }
  .about-spa .esencia-l2 { display: block; }
  .about-spa .about-copy p:not(.eyebrow), .about-spa .about-copy p.lead { font: 400 max(12.5px, min(1.72cqh, 3.55cqw))/1.34 var(--f-display); color: #3a2c1c; text-align: left; hyphens: manual; -webkit-hyphens: manual; margin: 0 0 1.4cqh; }
  .about-spa .seals { display: grid; grid-template-columns: repeat(2, 30cqw); justify-content: start; gap: .8cqh 3.2cqw; margin: 1.8cqh 0 0; }
  .about-spa .seals li { text-align: center; white-space: nowrap; font-size: max(11.5px, min(1.6cqh, 3.4cqw)); font-weight: 500; padding: .55cqh 0; background: rgba(255, 250, 240, .7); border: 1px solid rgba(110, 140, 60, .45); color: #3f5a1a; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .about-spa.esencia-anim .about-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .about-spa.esencia-anim.en-vista .about-copy > * { opacity: 1; transform: none; }
  .about-spa.esencia-anim.en-vista .about-copy > :nth-child(2) { transition-delay: .12s; }
  .about-spa.esencia-anim.en-vista .about-copy > :nth-child(3) { transition-delay: .22s; }
  .about-spa.esencia-anim.en-vista .about-copy > :nth-child(4) { transition-delay: .34s; }
  .about-spa.esencia-anim.en-vista .about-copy > :nth-child(5) { transition-delay: .46s; }
  .about-spa.esencia-anim.en-vista .about-copy > :nth-child(6) { transition-delay: .58s; }
}

/* Nosotros – escritorio: foto horizontal a todo lo ancho, alto = pantalla visible bajo el menú, texto a la izquierda (48%) */
@media (min-width: 821px) {
  .about.about-spa { aspect-ratio: auto; height: auto; min-height: max(calc(100vh - var(--hdr-real, var(--header-h))), 50vw, 600px); min-height: max(calc(100dvh - var(--hdr-real, var(--header-h))), 50vw, 600px); padding: clamp(60px, 13vh, 150px) 0 clamp(40px, 6vh, 80px); overflow: visible; background: #f1d9bf; display: flex; align-items: flex-start; }
  .about-spa .about-escena { overflow: hidden; }
  .about-spa .about-escena img { object-fit: cover; object-position: 100% 100%; }
  .about-spa .wrap { margin: 0 0 0 12vw; width: 39vw; max-width: 900px; }
  .about-spa .about-copy { max-width: none; }
  .about-spa .eyebrow { font-size: clamp(12px, 1vw, 18px); margin: 0 0 clamp(16px, 2.6vh, 30px); }
  .about-spa #about-title { display: block; text-align: left; font-size: clamp(40px, min(4.3vw, 8vh), 86px); line-height: 1.02; margin: 0 0 clamp(18px, 3.2vh, 36px); }
  .about-spa .esencia-l2 { display: block; }
  .about-spa .about-copy p:not(.eyebrow) { font-size: clamp(15px, min(1.3vw, 2.4vh), 24px); line-height: 1.38; margin: 0 0 clamp(12px, 1.8vh, 22px); }
  .about-spa .about-copy p.lead { font-size: clamp(17px, min(1.6vw, 2.9vh), 29px); line-height: 1.34; }
  .about-spa .seals { margin-top: clamp(18px, 2.8vh, 32px); display: flex; flex-wrap: nowrap; justify-content: space-between; gap: clamp(6px, .5vw, 10px); }
  .about-spa .seals li { flex: 0 1 auto; white-space: nowrap; font-size: clamp(11.5px, .85vw, 17px); font-weight: 500; letter-spacing: .01em; line-height: 1; padding: .62em .88em; border-radius: 999px; background: rgba(226, 198, 168, .42); border: 1px solid rgba(150, 108, 66, .38); color: #4a3520; box-shadow: inset 0 1px 0 rgba(255, 246, 234, .55), 0 1px 3px rgba(110, 72, 34, .10); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}
@media (min-width: 821px) and (max-width: 1299px) {
  .about-spa .seals { flex-wrap: wrap; justify-content: center; }
  .about-spa .seals li { flex: 0 0 calc((100% - 2 * clamp(6px, .5vw, 10px)) / 3); text-align: center; }
}
/* El fundido de las fotos de Rutinas se mantiene aunque el equipo pida "reducir movimiento" (solo cambia la opacidad, sin acercamiento) */
@media (prefers-reduced-motion: reduce) {
  .routines .routines-photo img.rt-foto { transition: opacity 1.1s ease !important; scale: 1 !important; }
}
