/* Centro Esotérico Naturista Cruz de Motupe — estilos base */
:root {
  --ink: #1C2A21;
  --green: #24452F;
  --green-2: #2F5A3D;
  --sand: #F3EDE2;
  --sand-2: #E9E0CF;
  --line: #D9CDB8;
  --marigold: #E3A21A;
  --clay: #8A3F25;
  --muted: #4A5A4F;
  --white: #FFFFFF;
  --radius-lg: 22px;
  --radius-md: 14px;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--clay); text-underline-offset: 3px; }
a:hover { color: #5E2A18; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--sand); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Barra superior */
.topbar { background: var(--ink); color: var(--sand); font-size: .875rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.topbar a { color: var(--sand); }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: var(--sand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; }
.brand-sub { font-size: .8rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.menu-mobile { display: none; }
.menu-mobile summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile nav { position: absolute; right: 24px; left: 24px; margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 18px; display: flex; flex-direction: column; z-index: 20; }
.menu-mobile nav a { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--sand-2); font-weight: 500; }
.menu-mobile nav a:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-mobile { display: block; }
  .site-header .wrap { position: relative; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: #F0B53A; color: var(--ink); }
.btn-dark { background: var(--green); color: var(--sand); }
.btn-dark:hover { background: var(--green-2); color: var(--sand); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ink { background: var(--ink); color: var(--sand); }
.btn-ink:hover { background: #2C3D31; color: var(--sand); }

/* Portada */
.hero { background: var(--green); color: var(--sand); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero-place { color: var(--marigold); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 15ch; }
.hero-lead { font-size: 1.15rem; color: #DCE5DD; max-width: 34rem; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { color: var(--marigold); }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 280px; }
}

/* Secciones */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.section-head h2, .section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.section-intro { color: var(--muted); max-width: 40rem; margin-top: 10px; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 150px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--green); color: var(--ink); }
.cat-name { font-family: var(--serif); font-size: 1.3rem; }
.cat-desc { font-size: .95rem; color: var(--muted); }

/* Productos */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.product-art { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--green); background: var(--sand-2); }
.product-art svg { width: 38%; height: auto; }
.product-art.is-esoterico { background: #2A3B30; color: var(--marigold); }
.product-art.is-natural { background: #E4E9DC; }
.product-art.is-seguro { background: #F1E1C2; color: var(--clay); }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex-grow: 1; }
.product h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.product-note { font-size: .92rem; color: var(--muted); }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-weight: 700; font-size: 1.15rem; }
.add { background: var(--green); color: var(--sand); border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; }
.add:hover { background: var(--green-2); }
.add.is-added { background: var(--marigold); color: var(--ink); }

.shop-group { scroll-margin-top: 24px; }
.shop-group + .shop-group { margin-top: 64px; }
.shop-group h2 { margin-bottom: 8px; }
.shop-group .section-intro { margin-bottom: 26px; }
.shop-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.shop-jump a { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--white); min-height: 44px; display: inline-flex; align-items: center; }
.shop-jump a:hover { border-color: var(--green); }

/* Kits */
.kits { background: var(--ink); color: var(--sand); border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.kits h2 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); }
.kits p { color: #CFD8D1; margin-top: 14px; }
.kit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kit { background: var(--green); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.kit h3 { font-size: 1.25rem; }
.kit p { margin: 0; font-size: .93rem; }
.kit a { color: var(--marigold); font-weight: 600; margin-top: 6px; }
@media (max-width: 860px) {
  .kits { grid-template-columns: 1fr; padding: 32px 24px; }
  .kit-list { grid-template-columns: 1fr; }
}

/* Historia */
.story { background: var(--sand-2); }
.story .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.story-mark { aspect-ratio: 1; max-width: 360px; width: 100%; border-radius: 50%; background: var(--green); color: var(--marigold); display: flex; align-items: center; justify-content: center; }
.story-mark svg { width: 46%; }
.story-text { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: 1fr; } .story-mark { max-width: 220px; } }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.steps li { counter-increment: paso; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(paso); font-family: var(--serif); font-size: 2.2rem; color: var(--clay); line-height: 1; }
.steps strong { font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Mayoristas */
.wholesale { background: var(--marigold); }
.wholesale .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.wholesale h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.wholesale p { margin-top: 6px; }

/* Páginas de texto */
.page-head { background: var(--green); color: var(--sand); }
.page-head .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { color: #DCE5DD; margin-top: 12px; max-width: 40rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }

/* Pie */
.site-footer { background: var(--ink); color: #CFD8D1; font-size: .95rem; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 28px; }
.site-footer h2 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--sand); margin-bottom: 10px; }
.site-footer .foot-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--sand); margin-bottom: 10px; }
.site-footer a { color: #CFD8D1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-legal { border-top: 1px solid #34463A; }
.foot-legal .wrap { display: block; padding-top: 18px; padding-bottom: 32px; font-size: .85rem; color: #AEBBB2; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Carrito */
.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--sand); border: 0; border-radius: 999px; padding: 14px 20px; min-height: 52px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(28, 42, 33, .25); }
.cart-fab[hidden] { display: none; }
.cart-count { background: var(--marigold); color: var(--ink); border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; padding: 0 7px; }
dialog.cart { width: min(480px, 100% - 24px); max-height: calc(100% - 24px); border: 0; border-radius: var(--radius-lg); padding: 0; color: var(--ink); background: var(--white); }
dialog.cart::backdrop { background: rgba(28, 42, 33, .55); }
.cart-inner { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.cart-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-top h2 { font-size: 1.6rem; }
.cart-close { background: transparent; border: 1.5px solid var(--line); border-radius: 999px; min-width: 44px; min-height: 44px; font: inherit; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--sand-2); }
.cart-item-name { font-weight: 600; }
.cart-item-price { color: var(--muted); font-size: .92rem; }
.qty { display: inline-flex; align-items: center; gap: 4px; grid-row: span 2; align-self: center; }
.qty button { min-width: 40px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; }
.cart-empty { color: var(--muted); }
.cart-note { font-size: .88rem; color: var(--muted); }

/* Utilidades */
.section.tight-top { padding-top: 0; }
.mb { margin-bottom: 28px; }
.shop-jump-top { margin: 0 0 48px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
a.add { text-decoration: none; display: inline-flex; align-items: center; color: var(--sand); }
a.add:hover { color: var(--sand); }
.nav a.btn-dark { color: var(--sand); padding: 10px 20px; }

/* v2: fotos, confianza, ficha de producto, preguntas */
.product-art { position: relative; overflow: hidden; }
.product-art img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-art img.is-missing { display: none; }
.product-link { color: var(--ink); text-decoration: none; }
.product-link:hover { color: var(--clay); text-decoration: underline; }
.product-link::after { content: ""; }

.section-trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.trust li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--marigold); }
.trust strong { font-size: 1rem; }
.trust span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

.pdp-section { padding-top: 24px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pdp-media .product-art { border-radius: var(--radius-lg); }
.pdp-media .product-art svg { width: 30%; }
.pdp-info { display: flex; flex-direction: column; gap: 14px; }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.pdp-price { font-size: 1.6rem; font-weight: 700; }
.pdp-lead { color: var(--muted); font-size: 1.1rem; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; }
.pdp-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; }
.pdp-box h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pdp-box ul { margin: 0; padding-left: 20px; }
.pdp-box p + p { margin-top: 10px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }

.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--sand); }
.kits-cta { margin-top: 20px; }
.more { margin-top: 20px; }
.inline-products { margin: 24px 0; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style-position: inside; min-height: 44px; }
.faq details[open] summary { border-bottom: 1px solid var(--sand-2); }
.faq details p { padding: 14px 20px 18px; margin: 0; }

.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 30; background: #1F7A4D; color: #FFFFFF; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 14px 20px; min-height: 52px; display: inline-flex; align-items: center; box-shadow: 0 6px 18px rgba(28, 42, 33, .25); }
.wa-float:hover { background: #18633E; color: #FFFFFF; }
