/* San Miguel en Ley — hoja de estilos del sitio público */
:root {
  --ink: #16202e;
  --ink-2: #223044;
  --ink-soft: #3a475a;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --white: #fffdf9;
  --gold: #b08d57;
  --gold-2: #c9a56a;
  --gold-ink: #8a6a3a;
  --line: #e2dacb;
  --muted: #6b7382;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(22, 32, 46, .35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-wrap: break-word; margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; margin-top: 2.5rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; font-family: var(--sans); }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -12px rgba(176, 141, 87, .8); }
.btn-gold:hover { background: var(--gold-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.brand-text small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--gold); transition: width .25s; }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(201, 165, 106, .18), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-visual { position: relative; }
.portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-emblem { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; color: var(--gold-2); background: linear-gradient(160deg, var(--ink-2), var(--ink)); position: relative; }
.portrait-emblem::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 165, 106, .35); border-radius: 190px 190px 8px 8px; }
.emblem { width: 44%; height: auto; color: var(--gold-2); }
.portrait-emblem span { font-family: var(--serif); font-size: 1.6rem; color: #f3ead9; letter-spacing: .02em; }
.hero-badge { position: absolute; left: -24px; bottom: 32px; background: var(--white); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 3px solid var(--gold); }
.hero-badge strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.hero-badge span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Cifras */
.stats { background: var(--ink); color: #f3ead9; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 2.2rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold-2); line-height: 1.1; }
.stat span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* Secciones */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-soft { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #eee6d8; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .kicker { color: var(--gold-2); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.section-ink .section-head p:not(.kicker) { color: #c4c9d2; }

/* Tarjetas de producto */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.6rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card.is-featured { border-top: 3px solid var(--gold); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.6rem 1.6rem 1rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.chip { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.chip-gold { background: rgba(176, 141, 87, .15); color: var(--gold-ink); }
.card h3 { font-size: 1.65rem; margin-bottom: .3rem; }
.card h3 a { text-decoration: none; }
.card-tagline { color: var(--muted); font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.checks li { position: relative; padding-left: 1.6rem; font-size: .92rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .55rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transform-origin: left; translate: 2px 2px; }
.checks-lg li { font-size: 1.02rem; padding-block: .35rem; border-bottom: 1px dashed var(--line); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.6rem 1.4rem; border-top: 1px solid var(--line); }
.price strong { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.price small { color: var(--muted); font-size: .78rem; }

/* Áreas */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.2rem; }
.area { display: flex; flex-direction: column; padding: 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); text-decoration: none; transition: background .3s, border-color .3s, transform .3s; min-height: 250px; }
.area:hover { background: var(--ink-2); border-color: var(--gold); transform: translateY(-4px); }
.area-num { font-family: var(--serif); font-size: 1rem; color: var(--gold-2); margin-bottom: auto; }
.area h3 { margin-top: 2rem; font-size: 1.8rem; }
.area p { color: #b9bfc9; font-size: .95rem; }
.area-link { font-weight: 700; font-size: .85rem; color: var(--gold-2); }

/* Quién soy */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.quote-block { background: var(--ink); color: #f3ead9; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow); }
.quote-block .emblem { width: 64px; margin-bottom: 1.6rem; }
.quote-block blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; font-style: italic; }
.about-copy p { color: var(--ink-soft); }
.signature { font-family: var(--serif); font-size: 1.6rem; color: var(--ink) !important; margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.signature small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.steps span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold-2); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-soft); margin: .8rem 0 0; }

/* Contacto / formulario */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: 1rem; }
.contact-list span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.contact-list a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-grid > *, .hero-grid > *, .about-grid > *, .product-hero > *, .product-body > * { min-width: 0; }
.lead-form { background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 1rem; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.consent input { margin-top: .25rem; accent-color: var(--gold); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: .9rem 0 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-status.error { color: #a3322e; }
.form-status.ok { color: #2f6b45; }

/* Páginas internas */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filters a { text-decoration: none; font-weight: 600; font-size: .88rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); transition: all .2s; }
.filters a:hover { border-color: var(--gold); }
.filters a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { font-size: 1.1rem; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-ink); text-decoration: none; }
.product-hero { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: end; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.buy-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.buy-price { font-family: var(--serif); font-size: 2.2rem; line-height: 1.05; }
.buy-note { color: var(--muted); font-size: .88rem; margin-top: -.4rem; margin-bottom: .6rem; }
.product-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
.prose h2 { font-size: 2rem; margin-top: 1.2em; }
.prose h2:first-child, .product-img + h2 { margin-top: 0; }
.product-img { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.includes { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; align-self: start; }
.includes h2 { font-size: 1.8rem; }
.cta-band { background: var(--paper-2); padding: 4rem 0; text-align: center; }
.cta-inner p { color: var(--muted); max-width: 52ch; margin-inline: auto; margin-bottom: 1.6rem; }

/* Pie */
.site-footer { background: #0f1722; color: #b9bfc9; padding: 4rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.brand-light { color: #fff; }
.brand-light small { color: #8d95a3; }
.footer-lead { margin-top: 1rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .8rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); z-index: 60; transform: scale(0); transition: transform .3s; }
.wa-float.visible { transform: scale(1); }
.wa-float svg { width: 30px; height: 30px; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid, .product-hero, .product-body { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; width: 100%; margin-inline: auto; }
  .hero-badge { left: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 16px 1.6rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s; }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .brand-text strong { font-size: 1.2rem; }
  .brand-text small { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 1.4rem; }
  .field-row { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .grid-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
