/* Flor de Sal Radiante — estilos */
:root {
  --navy: #12224d;
  --navy-deep: #0b1735;
  --gold: #e0b450;
  --gold-soft: #f1d58f;
  --kraft: #c9953c;
  --kraft-light: #e6c88a;
  --salt: #f8f6f0;
  --ink: #1c2236;
  --ink-soft: #4b5168;
  --wa: #1fa855;
  --wa-dark: #178544;
  --radius: 10px;
  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--salt);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--gold); color: var(--gold-soft); background: transparent; }
.btn-ghost:hover { background: rgba(224,180,80,.14); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); border-bottom: 1px solid rgba(224,180,80,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--gold); font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .08em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: #e9ecf6; text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--gold); }
.nav .btn { color: #fff; padding: .6rem 1.1rem; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(224,180,80,.6); color: var(--gold); border-radius: 8px; padding: .5rem .7rem; font: 700 .95rem var(--font-body); cursor: pointer; }

/* Hero */
.hero { background: var(--navy); color: #eef0f8; position: relative; overflow: hidden; }
.hero::before { /* granos de sal */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.55) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 14%, rgba(255,255,255,.4) 0 1px, transparent 1.6px),
    radial-gradient(circle at 34% 74%, rgba(255,255,255,.35) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 90% 68%, rgba(255,255,255,.5) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 55% 40%, rgba(255,255,255,.25) 0 1px, transparent 1.6px);
  background-size: 260px 260px, 310px 310px, 220px 220px, 380px 380px, 180px 180px;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #d5daec; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .95rem; color: #aab3d3; }
.hero-art { position: relative; justify-self: center; width: min(100%, 360px); }
.pouch-frame { background: var(--kraft); padding: 14px; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); outline: 2px solid var(--gold); outline-offset: 8px; transform: rotate(1.6deg); }
.pouch-frame img { border-radius: 6px; aspect-ratio: 9 / 13; object-fit: cover; object-position: 50% 42%; width: 100%; }
.badge { position: absolute; left: -18px; bottom: 34px; background: var(--gold); color: var(--navy-deep); font-family: var(--font-display); padding: .7rem 1rem; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); line-height: 1.1; }
.badge strong { display: block; font-size: 1.5rem; font-weight: 400; }
.badge span { font-family: var(--font-body); font-size: .82rem; font-weight: 700; }

/* Entrada del hero: único momento animado */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .pouch-frame { animation: settle .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes settle { from { opacity: 0; transform: translateY(24px) rotate(-3deg); } }
}

/* Beneficios (franja dorada como la etiqueta) */
.benefits { background: var(--kraft); color: var(--navy-deep); }
.benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits li { padding: 1.5rem 1.2rem; display: flex; gap: .9rem; align-items: flex-start; }
.benefits li + li { border-left: 1px solid rgba(11,23,53,.28); }
.benefits svg { width: 34px; height: 34px; flex: none; color: var(--navy-deep); }
.benefits strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.benefits small { font-size: .92rem; line-height: 1.4; display: block; margin-top: .2rem; }

/* Producto y pedido */
.order { background: var(--salt); }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery figure { margin: 0; background: var(--kraft); padding: 10px; border-radius: 12px; }
.gallery img { border-radius: 6px; aspect-ratio: 9 / 14; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--navy-deep); padding: .5rem .2rem 0; font-weight: 700; }
.panel { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); outline: 1px solid var(--gold); outline-offset: -8px; }
.price { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: .2rem 0 1.2rem; }
.price .now { font-family: var(--font-display); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.price .was { color: var(--ink-soft); text-decoration: line-through; font-size: 1.15rem; }
.price .unit { color: var(--ink-soft); font-size: .95rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .98rem; padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
select, input[type="text"], input[type="email"] {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  border: 1.5px solid #b9bfd2; border-radius: 8px; background: #fff;
}
select:focus, input:focus { border-color: var(--navy); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; text-align: center; padding: .75rem .6rem; border: 1.5px solid #b9bfd2; border-radius: 8px; font-weight: 700; cursor: pointer; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--gold-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pay-hint { background: #f3efe2; border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 0 8px 8px 0; font-size: .96rem; margin: 0 0 1.3rem; }
.panel .btn { width: 100%; }
.fine { font-size: .88rem; color: var(--ink-soft); margin: .9rem 0 0; }

/* Historia / cosecha */
.story { background: var(--navy); color: #e8ebf6; }
.story h2 { color: #fff; }
.story .intro { color: #cdd3ea; font-size: 1.12rem; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 3.4rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; background: var(--navy); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: -1.5rem; height: 1px; background: rgba(224,180,80,.5); }
.steps li:last-child::after { display: none; }
.steps h3 { color: var(--gold-soft); font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { font-size: .98rem; color: #cdd3ea; }
.quote { margin: 3rem 0 0; padding-left: 1.3rem; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--gold-soft); max-width: 30ch; line-height: 1.3; }

/* Qué es / uso */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.use-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.use-list li { padding: .65rem 0 .65rem 1.9rem; border-bottom: 1px solid #ddd8c6; position: relative; }
.use-list li::before { content: ""; position: absolute; left: .2rem; top: 1.15rem; width: .6rem; height: .6rem; background: var(--gold); transform: rotate(45deg); }
.note { background: #fff; border: 1px solid #d9d4c2; border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; color: var(--ink-soft); }

/* Cómo pedir */
.how { background: #efe9d8; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.how-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; border-top: 5px solid var(--gold); }
.how-card h3 { color: var(--navy); }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.pay { background: var(--navy); color: #e8ebf6; border-radius: var(--radius); padding: 1.5rem; outline: 1px solid var(--gold); outline-offset: -7px; }
.pay h3 { color: var(--gold-soft); margin-bottom: .4rem; }
.pay p { margin: 0; font-size: .98rem; }

/* FAQ */
.faq details { border-bottom: 1px solid #d9d4c2; }
.faq summary { cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; font-family: var(--font-display); font-size: 1.2rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.6rem; color: var(--kraft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--ink-soft); }
.faq-wrap { max-width: 780px; }

/* Newsletter */
.news { background: var(--kraft); color: var(--navy-deep); }
.news-box { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.news h2 { color: var(--navy-deep); }
.news form { display: grid; gap: .8rem; }
.news input[type="text"], .news input[type="email"] { border-color: var(--navy-deep); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.consent input { margin-top: .3rem; accent-color: var(--navy); width: 1.1rem; height: 1.1rem; flex: none; }
.consent a { color: var(--navy-deep); }
.form-msg { min-height: 1.4em; font-weight: 700; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Contacto + pie */
.contact { background: var(--navy-deep); color: #dfe3f2; }
.contact h2 { color: #fff; }
.contact a { color: var(--gold-soft); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.contact dt { color: var(--gold); font-weight: 700; }
.contact dd { margin: 0; }
.site-footer { background: #070e22; color: #98a1c2; font-size: .9rem; padding: 1.6rem 0 5.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.site-footer a { color: #c5cbe3; }

/* Barra de WhatsApp en móvil */
.wa-bar { display: none; }

/* Páginas simples (gracias, privacidad, 404) */
.simple { min-height: 60vh; padding: 4rem 0; }
.simple h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); }
.simple h2 { font-size: 1.4rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner, .order-grid, .two-col, .news-box, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 280px); }
  .benefits ul { grid-template-columns: 1fr 1fr; }
  .benefits li:nth-child(3) { border-left: 0; }
  .benefits li:nth-child(n+3) { border-top: 1px solid rgba(11,23,53,.28); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .how-grid, .pay-methods { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); border-bottom: 1px solid rgba(224,180,80,.35); padding: .5rem 1.25rem 1.2rem; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: .8rem; border: 0; }
  .wa-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(11,23,53,.96); border-top: 1px solid rgba(224,180,80,.5); }
  .wa-bar .btn { width: 100%; }
}
@media (max-width: 520px) {
  .benefits ul { grid-template-columns: 1fr; }
  .benefits li + li { border-left: 0; border-top: 1px solid rgba(11,23,53,.28); }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .badge { left: -6px; }
}

/* Redes sociales */
.social { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.btn-soc { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600; text-decoration: none; color: inherit; background: transparent; }
.btn-soc svg { width: 1.2rem; height: 1.2rem; }
.btn-soc:hover { background: rgba(200,150,60,.15); }
.contact-cta { display: flex; flex-direction: column; align-items: flex-start; }
.nav-social { display: inline-flex; gap: .5rem; align-items: center; }
.nav-social a { display: inline-flex; color: inherit; opacity: .85; }
.nav-social a:hover { opacity: 1; color: #e0b34f; }
.nav-social svg { width: 1.35rem; height: 1.35rem; }
.foot-social a { color: inherit; }
.nav-social a { color: #f4efe1; opacity: .9; }
.site-header .nav-social a:hover { color: #e0b34f; opacity: 1; }
.contact a.btn-wa, .contact a.btn-wa:hover { color: #fff; text-decoration: none; }

/* Fotos de las salinas */
.salinas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.2rem 0 0; }
.salinas figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1.5px solid rgba(224,180,80,.55); background: var(--navy-deep, #0b1735); }
.salinas img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.salinas figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem; font-family: var(--font-display); font-size: 1.1rem; color: #fff; background: linear-gradient(to top, rgba(8,14,34,.82), rgba(8,14,34,0)); }
@media (max-width: 760px) {
  .salinas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; margin-right: calc(-1 * var(--gutter, 1.25rem)); padding-right: var(--gutter, 1.25rem); -webkit-overflow-scrolling: touch; }
  .salinas figure { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Fotos de apoyo */
.photo-band { margin: 0; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(200,150,60,.55); }
.photo-band img { display: block; width: 100%; object-fit: cover; }
.band-uso, .band-agentes { margin-bottom: 2.4rem; }
.band-uso img { aspect-ratio: 21 / 9; object-position: 50% 62%; }
.band-agentes img { aspect-ratio: 21 / 8; object-position: 50% 48%; }
.band-mesa { margin-top: 1.6rem; }
.band-mesa img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .band-uso img, .band-agentes img { aspect-ratio: 4 / 3; } }
