:root{
  --paper:#F8F6F1;
  --ink:#2B2B2B;
  --muted:#5A5A5A;
  --aurea-gold:#C6A24A;
  --aurea-gold-soft: rgba(198,162,74,.30);
  --panel:rgba(255,255,255,.92);
  --shadow:0 16px 45px rgba(0,0,0,.10);
  --shadow2:0 10px 30px rgba(0,0,0,.08);
  --radius:22px;
  --border:1.75px solid var(--aurea-gold-soft);
}
*{box-sizing:border-box}
html,body{height:100%}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background:
    linear-gradient(rgba(248,246,241,0.90), rgba(248,246,241,0.90)),
    url("./familia-aurea-bg-1920w.webp") center/cover no-repeat fixed;
  background-color:var(--paper);
}
a{color:inherit}
img{max-width:100%; height:auto}
p, li, label, summary, .small, .fa-hint, .figure-caption, .book-download-note{overflow-wrap:break-word}
a:not(.btn){overflow-wrap:anywhere}
.container{max-width:980px; margin:0 auto; padding:clamp(28px,6vw,56px) clamp(16px,4vw,18px) clamp(56px,10vw,84px)}
/* Vertical rhythm: premium spacing between blocks */
.container > section + section{margin-top:clamp(22px,5vw,34px)}

.hero{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:clamp(30px,7vw,48px) clamp(18px,5vw,30px) clamp(28px,6vw,40px);
  background:var(--panel);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:var(--border);
  backdrop-filter:blur(8px);
}
.hero-bg{
  background:
    radial-gradient(circle at 50% 32%, rgba(198,162,74,0.14), transparent 60%),
    linear-gradient(rgba(255,255,255,0.70), rgba(255,255,255,0.74)),
    url("./familia-aurea-hero-clarity.webp") center/cover no-repeat;
}
.logo{ width:64px; height:64px; margin-bottom:12px; }
.brand{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:clamp(2.45rem, 10.6vw, 3.375rem); line-height:1.05; margin:0;
  text-wrap:balance;
  font-weight:500; letter-spacing:.3px;
  color:var(--aurea-gold);
}
.tag{
  margin:8px 0 14px;
  text-transform:uppercase;
  letter-spacing:clamp(.14em,.8vw,.22em);
  font-size:clamp(11px,2.7vw,12px);
  text-wrap:balance;
  color:#6A6A6A;
}
.lead{max-width:780px; font-size:clamp(16px,4.8vw,18px); line-height:1.65; color:var(--muted); margin:0 0 12px; text-wrap:pretty}
.small{font-size:13px; color:#6A6A6A; line-height:1.6}
.grid{display:grid; grid-template-columns:1fr; gap:clamp(18px,5vw,30px); margin-top:22px}
.grid-thirds{display:grid; grid-template-columns:1fr; gap:18px; margin-top:18px}
@media (min-width: 760px){ .grid{grid-template-columns:1fr 1fr} }
.card{
  background:rgba(255,255,255,0.90);
  border-radius:var(--radius);
  border:var(--border);
  box-shadow:var(--shadow2);
  padding:clamp(18px,4.8vw,24px);
  backdrop-filter:blur(7px);
}
.card.featured{
  background:rgba(255,255,255,0.96);
  border:var(--border);
  box-shadow:0 26px 70px rgba(0,0,0,.12);
}
.card.subtle{ background:rgba(255,255,255,0.86); }
.card h2{margin:0 0 10px; font-family: ui-serif, Georgia, serif; font-size:clamp(1.25rem,5.5vw,1.375rem); text-wrap:balance;}
.card h3{margin:0 0 8px; font-size:clamp(1rem,4.4vw,1.05rem); text-wrap:balance;}
.card p{margin:0 0 12px; color:var(--muted); line-height:1.65}
.actions{display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:10px; align-items:center}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:650;
  border:1px solid var(--aurea-gold-soft);
  background:linear-gradient(180deg, rgba(198,162,74,.92), rgba(168,124,38,.92));
  color:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.10);
  line-height:1.35;
  text-align:center;
  text-wrap:balance;
}
.btn:hover{filter:brightness(.98)}
.btn.secondary{
  background:rgba(255,255,255,.80);
  color:var(--ink);
}
nav.top{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  margin:16px 0 0;
}
nav.top a{
  text-decoration:none; font-weight:650; font-size:13px;
  padding:8px 10px; border-radius:12px;
  min-height:44px;
  display:flex; align-items:center; justify-content:center;
  line-height:1.25;
  text-wrap:balance;
  border:var(--border);
  background:rgba(255,255,255,0.70);
}
nav.top a:hover{background:rgba(255,255,255,0.82); border-color:var(--aurea-gold-soft)}
.footer{text-align:center; margin-top:18px; padding:12px 0; color:var(--aurea-gold); font-size:13px;}
.footer a{color:var(--aurea-gold); text-decoration:none}
.footer a:hover{opacity:.92; text-decoration:underline}
details.box{
  margin-top:10px; border:var(--border);
  border-radius:16px; padding:12px 14px;
  background:rgba(255,255,255,.70);
}
details.box summary{cursor:pointer; font-weight:700; color:#3A3A3A}
.box{
  margin-top:10px; border:var(--border);
  border-radius:16px; padding:12px 14px;
  background:rgba(255,255,255,.70);
}
.sep{
  width:min(120px,42%);
  height:1px;
  margin:10px auto 12px;
  border:0;
  background:linear-gradient(90deg, transparent, rgba(198,162,74,.55), transparent);
}
.quote{
  margin:0 0 10px;
  font-family:ui-serif, Georgia, serif;
  font-size:clamp(1.08rem,4.8vw,1.3rem);
  line-height:1.55;
  color:#3E3A33;
  text-wrap:balance;
}
.signature{
  margin:0 0 6px;
  font-size:15px;
  line-height:1.55;
  color:#6A6A6A;
}
.notice{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:16px;
  border:var(--border);
  background:rgba(255,255,255,.88);
  color:#3A3A3A;
  line-height:1.55;
}
.notice.ok{background:rgba(241,248,241,.96)}
.notice.err{background:rgba(252,243,240,.96)}

/* Forms */
.fa-card{max-width: 620px; margin: 0 auto;}
form{width:100%}
.field{margin:12px 0}
label{display:block; font-weight:700; font-size:13px; margin-bottom:6px; color:#3A3A3A}
input[type="text"], input[type="email"], input[type="date"], input[type="time"], textarea, select{
  width:100%;
  padding:11px 12px;
  font:inherit;
  font-size:16px;
  border-radius:14px;
  border:1.5px solid var(--aurea-gold-soft);
  background:rgba(255,255,255,.92);
  color:var(--ink);
  outline:none;
}
textarea{resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color:var(--aurea-gold-soft);
  box-shadow:0 0 0 3px rgba(198,162,74,.10);
}
.fa-hint{font-size:12px; color:#6A6A6A; line-height:1.45; margin-top:6px}
.fa-grid2{display:grid; grid-template-columns:1fr; gap:12px}
@media (min-width: 720px){ .fa-grid2{grid-template-columns:1fr 1fr} }
.toggle{width:auto; transform: translateY(2px); margin-right:10px}
.consent label{font-weight:600; display:flex; gap:10px; align-items:flex-start}
.hp{position:absolute; left:-9999px; opacity:0}

/* --- Accessibility & polish --- */
.skip-link{
  position:absolute;
  left:-9999px;
  top:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.96);
  border: var(--border);
  border-radius:12px;
  box-shadow: var(--shadow2);
  z-index: 9999;
  text-decoration:none;
}
.skip-link:focus{ left:12px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--aurea-gold);
  outline-offset: 3px;
  border-radius: 10px;
}


.wrap{margin-top:30px}
.image-inline{display:block; width:100%; max-width:460px; border-radius:18px; border:var(--border); box-shadow:var(--shadow2); margin:10px auto 0}
.image-inline.small{max-width:320px}
.figure-caption{font-size:12px; color:#6A6A6A; text-align:center; margin-top:8px}
.source-note{display:block; margin-top:5px; font-size:11px; color:#8A7A55; line-height:1.5}
.figure-caption a, .source-note a{color:#8A7A55; text-decoration:none; border-bottom:1px solid rgba(138,122,85,.25)}
.figure-caption a:hover, .source-note a:hover{text-decoration:none; border-bottom-color:rgba(138,122,85,.55)}
.list-clean{margin:0; padding-left:18px; color:var(--muted); line-height:1.7}
.list-clean li{margin:0 0 8px}
.quote-mark{font-family:ui-serif, Georgia, serif; color:var(--aurea-gold); font-size:22px; margin:0 0 10px}
.inline-meta{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.inline-meta .tag{margin:0}
.footer .meta-link{display:inline-block; margin-left:8px}
@media (min-width:760px){
  .grid-thirds{grid-template-columns:repeat(2,1fr); gap:24px;}
  .grid-thirds .card{margin-top:0}
}
@media (min-width:1080px){
  .grid-thirds{grid-template-columns:repeat(3,1fr); gap:26px;}
}


.hero-visual{
  display:block;
  width:100%;
  height:auto;
  border-radius:20px;
  border:var(--border);
  box-shadow:var(--shadow2);
  margin:0 auto 18px;
}
.hero-visual.wide{max-width:880px; aspect-ratio:16/7; object-fit:cover;}
.hero-visual.medium{max-width:820px; aspect-ratio:16/8; object-fit:cover;}
.visual-card{padding:18px 18px 14px;}
.visual-card .figure-caption{margin-bottom:0}
nav.top a[aria-current="page"]{
  background:linear-gradient(180deg, rgba(198,162,74,.96), rgba(168,124,38,.96));
  color:#fff;
  border-color:var(--aurea-gold-soft);
  box-shadow:0 10px 18px rgba(0,0,0,.10);
}
nav.top a[aria-current="page"]:hover{filter:brightness(.98)}
@media (min-width:760px){
  .section-loose{margin-top:26px !important;}
}


.book-cover{
  display:block;
  width:100%;
  max-width:380px;
  height:auto;
  margin:0 auto 18px;
  border-radius:20px;
  border:var(--border);
  box-shadow:var(--shadow2);
}
.book-download-note{max-width:720px; margin:0 auto; text-align:center}

@media (max-width:760px){
  body{
    background:
      linear-gradient(rgba(248,246,241,0.94), rgba(248,246,241,0.94)),
      url("./familia-aurea-bg-1920w.webp") center top/cover no-repeat;
    background-attachment:scroll;
  }
  nav.top{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
    width:100%;
  }
  .actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .actions .btn,
  .actions button.btn{
    width:100%;
  }
  .hero .actions{max-width:460px;}
  .footer{font-size:12px; line-height:1.7; padding-bottom:calc(16px + env(safe-area-inset-bottom));}
}

@media (max-width: 520px){
  .container{padding-left:14px; padding-right:14px;}
  .hero{padding-left:16px; padding-right:16px;}
  .card{border-radius:20px;}
  .book-cover{max-width:300px;}
}


/* point-5-navigation-context */
.page-trail{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 18px;
  padding:10px 14px;
  border-radius:14px;
  border:var(--border);
  background:rgba(255,255,255,.74);
  box-shadow:var(--shadow2);
  font-size:13px;
  color:#6A6A6A;
}
.page-trail a{
  text-decoration:none;
  color:#5A5A5A;
}
.page-trail a:hover{text-decoration:underline; text-underline-offset:3px}
.page-trail .trail-sep{color:#9B8A63; font-size:12px}
.page-trail .trail-current{font-weight:700; color:#3E3A33}
nav.top a.nav-parent{
  background:rgba(198,162,74,.14);
  border-color:var(--aurea-gold-soft);
  box-shadow:0 6px 14px rgba(0,0,0,.06);
}
nav.top a.nav-parent:hover{background:rgba(198,162,74,.18)}
.footer a[aria-current="page"]{
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
}
@media (max-width:760px){
  .page-trail{font-size:12px; padding:10px 12px;}
}
