/* Nutri Be · estilos de la web (paleta suave) */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Questrial"; src: url("../fonts/questrial-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --burdeos: #8e1838;
  --burdeos-hover: #6e1029;
  --texto: #3B2A20;        /* café oscuro */
  --texto-2: #5A3E2E;      /* café medio */
  --tostado: #8A6450;      /* café tostado: palabra destacada, firma, iconos */
  --nota: #6B5A52;         /* café grisáceo */
  --fondo: #FAF6F0;        /* blanco roto */
  --arena: #F1E9DE;
  --rosa: #F6ECE9;         /* rosa muy pálido */
  --beige: #E9DDD0;
  --linea: #E6DBCF;
  --borde-form: #D9CBBE;
  --tarjeta: #FFFFFF;
  --max: 1200px;
  --radio: 24px;
  --titulos: "Fraunces", Georgia, serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Questrial", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--burdeos); }
a:hover { color: var(--burdeos-hover); }
:focus-visible { outline: 3px solid var(--tostado); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--burdeos); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipos */
.eyebrow { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burdeos); }
.display { font-family: var(--titulos); font-size: clamp(42px, 6vw, 82px); line-height: 1.03; color: var(--burdeos); letter-spacing: -0.01em; }
.display em { font-style: normal; color: var(--tostado); }
.h2 { font-family: var(--titulos); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; color: var(--burdeos); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.35; color: var(--texto); }
.lead { font-size: 20px; color: var(--texto-2); max-width: 600px; }
.firma { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--tostado); }
.muted { color: var(--texto-2); }
.small { font-size: 14px; color: var(--nota); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-family: var(--sans); font-size: 17px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--burdeos); transition: background .15s, color .15s; }
.btn-primary { background: var(--burdeos); color: #fff; }
.btn-primary:hover { background: var(--burdeos-hover); border-color: var(--burdeos-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--burdeos); }
.btn-ghost:hover { background: var(--rosa); color: var(--burdeos); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--linea); background: var(--fondo); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; max-width: var(--max); margin: 0 auto; }
.logo { font-family: var(--titulos); font-weight: 700; font-size: 30px; color: var(--burdeos); text-decoration: none; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--burdeos); color: var(--burdeos); border-radius: 999px; min-height: 44px; padding: 0 18px; font-family: var(--sans); font-size: 15px; cursor: pointer; }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 12px; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { display: inline-flex; margin-top: 8px; }
}

/* Secciones */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > .grow { flex: 999 1 480px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }

/* Hero */
.hero { padding: 80px 0 96px; }
.foto { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 240px 240px 24px 24px; background: var(--beige); display: flex; align-items: center; justify-content: center; color: var(--texto-2); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; overflow: hidden; margin: 0 auto; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-redonda { border-radius: 50%; aspect-ratio: 1 / 1; max-width: 400px; }

/* Temas */
.temas { background: var(--arena); }
.temas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.tema-num { font-family: var(--titulos); font-weight: 700; font-size: 40px; color: var(--burdeos); line-height: 1; margin-bottom: 12px; }
.tema h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin-bottom: 8px; }
.tema p { color: var(--texto-2); font-size: 16px; }

/* Tarjetas de guías */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { background: var(--tarjeta); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--linea); }
.card-cover { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; font-family: var(--titulos); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--burdeos); }
.cover-arena { background: var(--arena); }
.cover-rosa { background: var(--rosa); }
.cover-beige { background: var(--beige); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-tag { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burdeos); }
.card-body p { font-size: 16px; color: var(--texto-2); }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-2); background: var(--arena); padding: 6px 12px; border-radius: 999px; }

/* Destacada */
.featured { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 32px; overflow: hidden; display: flex; flex-wrap: wrap; }
.featured-art { flex: 1 1 380px; min-height: 420px; background: var(--arena); display: flex; align-items: center; justify-content: center; padding: 48px; }
.book { width: 250px; aspect-ratio: 3 / 4; background: var(--burdeos); border-radius: 6px 16px 16px 6px; box-shadow: 16px 16px 0 var(--linea); display: flex; flex-direction: column; justify-content: space-between; padding: 26px; }
.book strong { font-family: var(--titulos); font-weight: 700; font-size: 28px; line-height: 1.08; color: #fff; }
.book span { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--rosa); }
.featured-body { flex: 999 1 460px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checks svg { flex: none; margin-top: 4px; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.filter { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--burdeos); background: transparent; color: var(--burdeos); font-family: var(--sans); font-size: 16px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--burdeos); color: #fff; }

/* Bloques suaves */
.panel { border-radius: 32px; padding: 56px; }
.panel-rosa { background: var(--rosa); }
.panel-arena { background: var(--arena); }
@media (max-width: 640px) { .panel { padding: 32px 24px; } .featured-body { padding: 28px; } section { padding: 64px 0; } }
.pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pasos li { display: flex; gap: 16px; align-items: center; }
.paso-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--burdeos); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--titulos); font-weight: 700; font-size: 19px; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 620px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.input { flex: 999 1 260px; min-width: 0; min-height: 54px; border: 1.5px solid var(--borde-form); border-radius: 999px; padding: 0 22px; font-family: var(--sans); font-size: 17px; background: #fff; color: var(--texto); }
.input:focus { border-color: var(--burdeos); outline: none; box-shadow: 0 0 0 3px rgba(142, 24, 56, 0.15); }
.form-row .btn { flex: 1 1 170px; min-height: 54px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--texto-2); text-align: left; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--burdeos); }
.form-msg { font-size: 15px; min-height: 1.5em; }
.form-msg.ok { color: #2f6b3a; }
.form-msg.error { color: var(--burdeos); }
.center { text-align: center; align-items: center; }
.center .form { margin: 0 auto; }

/* Pie */
.site-footer { background: var(--arena); border-top: 1px solid var(--linea); color: var(--texto-2); font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding: 52px 24px 28px; max-width: var(--max); margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--texto-2); }
.footer-note { max-width: var(--max); margin: 0 auto; padding: 0 24px 36px; font-size: 13px; color: var(--nota); }

/* Páginas legales */
.legal { max-width: 780px; }
.legal h1 { font-family: var(--titulos); font-size: clamp(34px, 5vw, 52px); color: var(--burdeos); margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 36px 0 10px; color: var(--texto); }
.legal p, .legal li { color: var(--texto-2); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--linea); padding: 10px 8px; vertical-align: top; }
.aviso-borrador { background: var(--rosa); border-radius: 16px; padding: 16px 20px; font-size: 15px; margin-bottom: 28px; }

/* Portadas reales de los libros */
.card-cover.has-book { padding: 22px; }
.card-cover.has-book img { height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 10px 24px rgba(59, 42, 32, 0.18); }
.book-img { width: 260px; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 16px 16px 0 var(--linea), 0 14px 30px rgba(59, 42, 32, 0.16); }
