/* Flonderva — hoja de estilo única para todas las páginas */

:root{
  --bg:#f5ece6;
  --bg-alt:#eaddd3;
  --bg-dark:#25304d;
  --ink:#241c19;
  --ink-2:#7d6c62;
  --ink-inv:#f5ece6;
  --ink-inv-2:#b9c2d8;
  --accent:#2f3d63;
  --accent-2:#b05a3c;
  --rail:#d9c7ba;
  --gap:24px;
  --rhythm:80px;
  --serif:Georgia,'Times New Roman',serif;
  --sans:system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}

a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;text-decoration:none}

h1,h2,h3{font-family:var(--serif);font-weight:400;margin:0}
h1{font-size:clamp(34px,5.1vw,56px);line-height:1.08;letter-spacing:-.012em}
h2{font-size:clamp(24px,2.4vw,29px);line-height:1.24;letter-spacing:-.005em}
h3{font-size:20px;line-height:1.35;font-style:italic;margin:34px 0 10px}

p{margin:0 0 20px;max-width:64ch}
p:last-child{margin-bottom:0}

.label{
  font-family:var(--sans);
  font-size:12px;
  line-height:1.5;
  letter-spacing:.15em;
  color:var(--ink-2);
}

/* ---------- rejilla ---------- */

.wrap{width:min(1240px,calc(100% - 48px));margin-inline:auto}
.grid{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap)}

/* ---------- cabecera ---------- */

.site-head{padding:26px 0 20px;background:var(--bg)}
.site-head .wrap{display:flex;flex-wrap:wrap;gap:14px 32px;align-items:baseline;justify-content:space-between}
.brand{font-family:var(--serif);font-size:21px;letter-spacing:.01em;color:var(--ink);text-decoration:none}
.brand:hover{text-decoration:underline;text-underline-offset:4px}
.site-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px 26px;margin:0;padding:0}
.site-nav a{font-size:15px;color:var(--ink);text-decoration:none;padding-bottom:2px;border-bottom:1px solid transparent}
.site-nav a:hover{border-bottom-color:var(--accent)}
.site-nav a[aria-current="page"]{border-bottom-color:var(--accent-2)}

/* ---------- hero ---------- */

.hero{padding:calc(var(--rhythm) - 16px) 0 var(--rhythm)}
.hero-title{grid-column:1/8}
.hero-intro{grid-column:9/13;align-self:start}
.hero-intro p{font-size:17px;max-width:38ch;color:var(--ink)}
.hero-kicker{display:block;margin-bottom:18px}

.axis{position:relative;height:74px;margin-top:30px;border-top:1px solid var(--accent)}
.axis span{position:absolute;top:0;width:1px;background:var(--accent)}
.axis span::after{content:"";position:absolute;left:-3px;bottom:-7px;width:7px;height:7px;background:var(--accent)}
.axis .d1{left:2px;height:66px}
.axis .d2{left:31%;height:30px}
.axis .d3{left:69%;height:48px}

/* ---------- imagen principal ---------- */

.figure-main{margin:0;padding-bottom:var(--rhythm)}
.figure-main .fig-img{grid-column:4/13;grid-row:1;width:100%}
.figure-main figcaption{grid-column:1/4;grid-row:1;align-self:end;padding-bottom:6px}

/* ---------- bandas ---------- */

.band{padding:var(--rhythm) 0}
.band-alt{background:var(--bg-alt)}
.band-dark{background:var(--bg-dark);color:var(--ink-inv)}
.band-dark h2,.band-dark h3{color:var(--ink-inv)}
.band-dark .label{color:var(--ink-inv-2)}
.band-dark .sec-head::before{background:var(--accent-2)}
.band-dark a{color:#cfd8ee}
.band-dark a:focus-visible{outline-color:#cfd8ee}

.sec-head{grid-column:1/4}
.sec-head::before{content:"";display:block;width:8px;height:8px;background:var(--accent-2);margin-bottom:20px}
.sec-num{display:block;margin-bottom:10px;color:var(--accent-2);font-size:12px;letter-spacing:.15em}
.band-dark .sec-num{color:var(--ink-inv-2)}
.sec-body{grid-column:4/11;padding-top:3px}

/* ---------- listas ---------- */

.check{list-style:none;margin:0 0 20px;padding:0;max-width:64ch}
.check li{position:relative;padding-left:22px;margin-bottom:9px}
.check li::before{content:"";position:absolute;left:0;top:11px;width:6px;height:6px;background:var(--accent)}
.band-dark .check li::before{background:var(--accent-2)}
.check li:last-child{margin-bottom:0}

.plain{margin:0 0 20px;padding-left:20px;max-width:64ch}
.plain li{margin-bottom:8px}

/* ---------- sección oscura con imagen de detalle ---------- */

.detail-media{grid-column:2/6;margin:0}
.detail-media img{width:100%}
.detail-media figcaption{margin-top:12px;font-size:12px;line-height:1.6;letter-spacing:.02em;color:var(--ink-inv-2);max-width:34ch}
.detail-text{grid-column:7/13}
.detail-text p{max-width:56ch}
.detail-head{grid-column:1/13;margin-bottom:42px}
.detail-head h2{max-width:20ch}
.detail-head .sec-num{display:block;margin-bottom:10px}
.detail-head::before{content:"";display:block;width:8px;height:8px;background:var(--accent-2);margin-bottom:20px}

/* ---------- páginas interiores ---------- */

.page-head{padding:calc(var(--rhythm) - 20px) 0 46px}
.page-head h1{grid-column:1/9;font-size:clamp(30px,4vw,44px)}
.page-head .page-lead{grid-column:1/9;margin-top:24px}
.page-head .page-lead p{max-width:60ch}
.page-head .hero-kicker{grid-column:1/13;margin-bottom:16px}

.axis-page{position:relative;height:0;border-top:1px solid var(--accent);grid-column:1/9;margin-top:30px}

.two-axis{padding:0 0 var(--rhythm);position:relative}
.two-axis .rail{display:none}
.ax-h{grid-column:1/4;padding-top:38px}
.ax-t{grid-column:5/12;padding-top:38px;padding-left:34px;border-left:1px solid var(--rail)}
.ax-t p,.ax-t .check,.ax-t .plain{max-width:62ch}

/* ---------- pie ---------- */

.site-foot{background:var(--bg-dark);color:var(--ink-inv);padding:54px 0 46px;margin-top:0}
.foot-top{display:flex;flex-wrap:wrap;gap:10px 32px;align-items:baseline;justify-content:space-between}
.foot-name{font-family:var(--serif);font-size:26px;line-height:1.2}
.foot-mail{font-size:16px}
.site-foot a{color:var(--ink-inv);text-decoration:underline;text-underline-offset:3px}
.site-foot a:hover{color:#fff}
.site-foot a:focus-visible{outline:2px solid var(--ink-inv);outline-offset:3px}
.foot-rule{height:1px;background:rgba(245,236,230,.28);margin:24px 0 22px}
.foot-links{list-style:none;display:flex;flex-wrap:wrap;gap:10px 28px;margin:0 0 20px;padding:0;font-size:15px}
.foot-note{max-width:62ch;font-size:14px;line-height:1.7;color:var(--ink-inv-2);margin:0}

/* ---------- adaptación ---------- */

@media (max-width:1040px){
  .hero-title{grid-column:1/9}
  .hero-intro{grid-column:1/9;margin-top:34px}
  .hero-intro p{max-width:60ch}
  .figure-main .fig-img{grid-column:3/13}
  .figure-main figcaption{grid-column:1/3}
  .sec-head{grid-column:1/4}
  .sec-body{grid-column:4/13}
  .detail-media{grid-column:1/6}
  .detail-text{grid-column:7/13}
  .ax-t{grid-column:5/13}
  .page-head h1,.page-head .page-lead,.axis-page{grid-column:1/11}
}

@media (max-width:820px){
  :root{--rhythm:56px;--gap:18px}
  .sec-head{grid-column:1/13}
  .sec-head::before{margin-bottom:14px}
  .sec-body{grid-column:1/13;padding-top:18px}
  .detail-head{margin-bottom:30px}
  .detail-media{grid-column:1/13;max-width:420px}
  .detail-text{grid-column:1/13;margin-top:34px}
  .figure-main .fig-img{grid-column:1/13}
  .figure-main figcaption{grid-column:1/13;grid-row:2;padding-top:12px;align-self:start}
  .ax-h{grid-column:1/13;padding-top:34px}
  .ax-t{grid-column:1/13;padding-top:12px;padding-left:0;border-left:0}
  .page-head h1,.page-head .page-lead,.axis-page,.page-head .hero-kicker{grid-column:1/13}
}

@media (max-width:560px){
  :root{--rhythm:48px}
  .wrap{width:calc(100% - 36px)}
  body{font-size:16.5px}
  .axis{height:56px;margin-top:24px}
  .axis .d1{height:50px}
  .axis .d2{height:24px}
  .axis .d3{height:36px}
  .foot-top{flex-direction:column;align-items:flex-start}
  .site-nav ul{gap:8px 20px}
}
