/* Self-hosted fonts (latin subset: covers Spanish). Variable files, so one file per family/style. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/fraunces.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/montserrat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --petrol: #0b4f5c;
  --petrol-d: #073640;
  --petrol-dd: #04242b;
  --green: #1fa67a;
  --green-d: #0d7a58;
  --green-l: #40d3a0;
  --cream: #f7f5ef;
  --sand: #ece8dc;
  --ink: #0c2a31;
  --muted: #4d6b72;
  --line: rgba(11, 79, 92, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --mx: 50%; --my: 50%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*,*::before,*::after { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,svg,canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul,ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
em { font-style: italic; color: var(--green); }
::selection { background: var(--green-l); color: var(--petrol-dd); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities & background
   ============================================================= */
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--petrol); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
#aura { opacity: 0; transition: opacity 1.4s ease; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main,.footer { position: relative; z-index: 1; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--petrol), var(--green-l)); }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; top: .9rem; left: 50%; transform: translateX(-50%); z-index: 70;
  width: min(1180px, 100% - 1.5rem); display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .6rem .55rem 1.7rem; border-radius: 999px;
  background: rgba(247, 245, 239, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 8px 30px -12px rgba(7, 54, 64, .25);
  transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled { background: rgba(247, 245, 239, .88); }
.brand { display: flex; align-items: center; gap: .6rem; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a { padding: .5rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a:hover,.nav-links a.is-active { color: var(--petrol); background: rgba(11, 79, 92, .07); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--petrol); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; transition: background .35s, color .35s, box-shadow .35s, border-color .35s, transform .25s var(--ease-out);
}
.btn-primary { background: var(--petrol); color: #fff; box-shadow: 0 14px 30px -12px rgba(11, 79, 92, .65); }
.btn-primary:hover { background: var(--green); box-shadow: 0 16px 36px -10px rgba(31, 166, 122, .7); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-d); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.kicker.center { justify-content: center; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.center .kicker,.section-head.center .kicker { justify-content: center; }
.section { position: relative; padding: clamp(2rem, 4.5vw, 3.5rem) 0 clamp(5rem, 11vw, 9rem); }
.section-head h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.section-head.center { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* Cards with mouse-following glow */
.glow { position: relative; overflow: hidden; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(64, 211, 160, .28), transparent 60%);
}
.glow:hover::before { opacity: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.settled { transition: transform .2s ease-out, opacity .3s, background .4s, border-color .4s, box-shadow .4s; transition-delay: 0s; }

/* =============================================================
   6. Sections
   ============================================================= */
/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 7.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-title { display: flex; align-items: center; font-size: clamp(3.4rem, 8.4vw, 7rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; margin: 0 0 1.6rem; color: var(--petrol-d); }
.hero-title .line { display: block; overflow: hidden; padding: .16em 0 .1em; margin-top: -.16em; }
.hero-title .word { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); }
.hero-title .line:nth-child(2) .word { transition-delay: .08s; }
.is-ready .hero-title .word { transform: none; }
.hero-title em { font-weight: 400; background: linear-gradient(100deg, var(--petrol), var(--green) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.roles li { font-size: .88rem; font-weight: 600; padding: .45rem .95rem; border-radius: 999px; background: var(--petrol); color: #fff; }
.roles li:nth-child(2) { background: var(--green-d); }
.roles li:nth-child(3) { background: var(--petrol-d); }
.hero-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.35; max-width: 30ch; color: var(--ink); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-copy > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.is-ready .hero-copy > * { opacity: 1; transform: none; }
.is-ready .hero-copy > :nth-child(2) { transition-delay: .15s; }
.is-ready .hero-copy > :nth-child(3) { transition-delay: .25s; }
.is-ready .hero-copy > :nth-child(4) { transition-delay: .35s; }
.hero-copy > .hero-brand { opacity: 1; transform: none; }
.hero-brand { width: fit-content; max-width: 100%; }

.hero-visual { position: relative; }
.home-card {
  position: relative; border-radius: 40px; padding: clamp(1.2rem, 3vw, 2.4rem); aspect-ratio: 1.08;
  background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35));
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 40px 80px -30px rgba(7, 54, 64, .35), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; overflow: hidden;
  transition: transform .2s ease-out;
}
.home-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(64, 211, 160, .4), transparent 65%); filter: blur(30px); z-index: 0; left: calc(var(--mx) - 35%); top: calc(var(--my) - 35%); }
.home-svg { position: relative; z-index: 1; width: 100%; }
.roof { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pulse { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .roof,.is-in .pulse { animation: draw 2.2s var(--ease-out) .5s forwards; } .is-in .pulse { animation-duration: 2.6s; animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse-dot { offset-path: path("M96 250 H142 Q154 212 167 250 H179 L185 262 L196 120 L208 292 L213 250 H227 Q251 180 275 250 H324"); opacity: 0; }
.is-in .pulse-dot { animation: run 4.5s linear infinite 3.5s; }
@keyframes run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
  
/* Story */
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story-aside { position: sticky; top: 7rem; }
.story-body { display: grid; gap: 1.6rem; font-size: 1.1rem; color: #254249; }
.story-body .lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--ink); }
.story-body mark { background: linear-gradient(transparent 62%, rgba(64, 211, 160, .5) 62%); color: inherit; font-style: italic; padding: 0 .1em; }
.story-end { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4; color: var(--petrol); }
.story-end::before { content: ""; display: block; width: 70px; height: 3px; border-radius: 3px; margin-bottom: 1.3rem; background: linear-gradient(90deg, var(--petrol), var(--green-l)); }

/* Today */
.today { background: linear-gradient(180deg, transparent, rgba(236, 232, 220, .75) 20%, rgba(236, 232, 220, .75) 80%, transparent); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; perspective: 1000px; }
.pillar { padding: 2.2rem 2rem 2.4rem; border-radius: 28px; background: rgba(255, 255, 255, .78); border: 1px solid #fff; box-shadow: 0 24px 50px -28px rgba(7, 54, 64, .35); min-height: 320px; display: flex; flex-direction: column; transition: transform .5s var(--ease-out); }
.pillar-ico { width: 64px; height: 64px; margin: 0 0 1.6rem; display: grid; place-items: center; border-radius: 20px; background: var(--petrol); color: var(--green-l); transition: transform .5s var(--ease-out); }
.pillar-ico svg { width: 34px; }
.pillar:hover { transform: translateY(-5px); }
.pillar:hover .pillar-ico { transform: rotate(-8deg) scale(1.08); }
.pillar h3 { font-size: 1.7rem; margin-bottom: .7rem; color: var(--petrol-d); }
.pillar p { color: var(--muted); }

/* Dark sections */
.dark { background: radial-gradient(1200px 700px at 80% -10%, #0e6b78 0%, transparent 60%), linear-gradient(170deg, var(--petrol-d), var(--petrol-dd)); color: #e6f3f1; overflow: hidden; }
.dark h2,.dark h3 { color: #fff; }
.dark em { color: var(--green-l); }
.dark .kicker { color: var(--green-l); }
.dark .spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 30%), rgba(64, 211, 160, .16), transparent 65%); }
.dark .wrap { position: relative; }

/* Timeline */
.timeline { position: relative; max-width: 900px; margin-inline: auto; padding: .5rem 0; }
.timeline::before,.timeline::after { content: ""; position: absolute; left: 6.2rem; top: 0; bottom: 0; width: 2px; }
.timeline::before { background: rgba(255, 255, 255, .12); }
.timeline::after { background: linear-gradient(var(--green-l), var(--green)); transform-origin: top; transform: scaleY(var(--tl, 0)); box-shadow: 0 0 16px rgba(64, 211, 160, .6); }
.tl-item { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0; align-items: start; padding: 1.2rem 0; position: relative; }
.tl-year { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--green-l); padding-right: 1.6rem; text-align: right; line-height: 1.2; }
.tl-item::before { content: ""; position: absolute; left: calc(6.2rem - 7px); top: 1.75rem; width: 16px; height: 16px; border-radius: 50%; background: var(--petrol-dd); border: 2px solid var(--green-l); z-index: 2; transition: background .5s, box-shadow .5s; }
.tl-item.is-in::before { background: var(--green-l); box-shadow: 0 0 0 7px rgba(64, 211, 160, .18); }
.tl-card { margin-left: 2.2rem; padding: 1.5rem 1.7rem; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.tl-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.tl-card p { color: #b7d3d1; font-size: 1rem; }

/* Strip */
.strip-sec { padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; border-block: 1px solid var(--line); }
.strip li { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .5rem; position: relative; }
.strip li + li { border-left: 1px solid var(--line); }
.strip-k { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--green); }
.strip strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; color: var(--petrol-d); }

/* Manifiesto */
.manifesto { padding: clamp(3rem, 7vw, 5rem) 0 clamp(6rem, 14vw, 11rem); }
.manifesto blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 6.2vw, 4.8rem); line-height: 1.08; letter-spacing: -.025em; color: #fff; margin: .5rem 0 2.6rem; text-wrap: balance; }
.purpose { max-width: 56ch; margin-inline: auto; padding: 1.4rem 1.8rem; border-radius: 22px; background: rgba(4, 36, 43, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); color: #e3f1ef; font-size: 1.08rem; }
.purpose strong { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-l); margin-bottom: .4rem; }

/* Allies */
.ally-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ally { padding: 2rem 1.8rem; border-radius: 24px; background: rgba(255, 255, 255, .75); border: 1px solid #fff; box-shadow: 0 20px 40px -28px rgba(7, 54, 64, .35); min-height: 190px; transition: transform .5s var(--ease-out); }
.ally:hover { transform: translateY(-6px); }
.ally h3 { font-size: 1.4rem; margin: 0 0 .5rem; color: var(--petrol-d); }
.ally p { color: var(--muted); font-size: .98rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.c-card { display: flex; flex-direction: column; gap: .7rem; padding: 2.2rem 2rem; border-radius: 28px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); min-height: 290px; transition: transform .5s var(--ease-out); }
.c-card:hover { transform: translateY(-5px); }
.c-tag { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--green-l); }
.c-card strong { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; color: #fff; margin-top: .3rem; }
.c-card small { font-size: 1rem; color: #b7d3d1; }
.c-go { margin-top: auto; display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--petrol-dd); background: var(--green-l); align-self: flex-start; padding: .7rem 1.3rem; border-radius: 999px; transition: gap .3s var(--ease-out), background .35s, box-shadow .35s; }
.c-go:hover { background: #fff; color: var(--petrol-dd); box-shadow: 0 16px 36px -12px rgba(255, 255, 255, .35); }
.c-go i { font-style: normal; }
.urgent { margin: 2.4rem auto 0; max-width: 62ch; text-align: center; font-size: .92rem; color: #8fb3b3; }

/* Footer */
.footer { background: var(--petrol-dd); color: #8fb3b3; padding: 2rem 0; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand follow top" "info info info"; gap: 1.4rem 2rem; align-items: center; }
.foot-brand { grid-area: brand; justify-self: start; }
.foot .follow-foot { grid-area: follow; padding-bottom: 0; }
.foot-top { grid-area: top; justify-self: end; }
.foot-info { grid-area: info; text-align: center; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer a:hover { color: var(--green-l); }

/* =============================================================
   7. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 1rem auto 0; width: 100%; }
     .story-grid { grid-template-columns: 1fr; }
  .story-aside { position: static; }
  .pillars,.ally-grid,.contact-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav-links { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .8rem; border-radius: 26px; background: rgba(247, 245, 239, .96); backdrop-filter: blur(18px); box-shadow: 0 24px 50px -20px rgba(7, 54, 64, .4); opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .4s var(--ease-out), visibility .3s; }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: .9rem 1rem; font-size: 1rem; }
  .hero { padding-top: 6.5rem; align-items: flex-start; }
  .hero-title { font-size: clamp(2.4rem, 11.2vw, 4.4rem); }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
    .pillars,.ally-grid,.contact-grid { grid-template-columns: 1fr; }
  .pillar,.c-card { min-height: 0; }
  .timeline::before,.timeline::after { left: 7px; }
  .tl-item { grid-template-columns: 1fr; padding: 1rem 0 1rem 2rem; }
  .tl-item::before { left: 0; top: 1.5rem; }
  .tl-year { text-align: left; padding: 0; font-size: 1.7rem; }
  .tl-card { margin: .4rem 0 0; }
}

/* =============================================================
   8. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    .pulse-dot { display: none; }
}

/* Brand assets */
.hexbg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(4, 36, 43, .94) 0%, rgba(4, 36, 43, .82) 45%, rgba(4, 36, 43, .35) 100%), linear-gradient(180deg, var(--petrol-d) 0%, transparent 22%, transparent 78%, var(--petrol-dd) 100%), url("assets/hex-salud.webp") center / cover no-repeat; opacity: 1; }
.manifesto .wrap { z-index: 1; }
.footer { padding: 2.6rem 0; }
.foot-brand { display: flex; align-items: center; gap: 1rem; }
.foot-brand small { display: block; margin-top: .25rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-l); }
.foot-info { color: #8fb3b3; }
@media (max-width: 767px) { .foot { flex-direction: column; text-align: center; gap: 1.2rem; } }

/* Mascot (line-only,recoloured with the palette via mask) */
.ink { display: block; background: linear-gradient(165deg, var(--petrol), var(--green)); -webkit-mask: url("assets/icono.png") center / contain no-repeat; mask: url("assets/icono.png") center / contain no-repeat; aspect-ratio: 512 / 890; }
.title-icon { height: 1.77em; margin-right: .2em; flex: none; align-self: center; margin-top: -.1em; }
.dark .ink,.footer .ink { background: linear-gradient(165deg, var(--green), var(--green-l)); }
.title-icon { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease-out) .15s, transform .8s var(--ease-out) .15s; }
.is-ready .title-icon { opacity: 1; transform: none; }
.hero-title .word { font-family: "Montserrat", var(--sans); font-weight: 500; text-transform: uppercase; font-size: .9em; letter-spacing: .02em; line-height: 1.02; }
.hero-title em { font-style: normal; font-weight: 500; }
.hero-slogan { width: 0; min-width: 100%; margin: -1rem 0 2.3rem; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(.9rem, 2vw, 1.5rem); font-weight: 400; text-align: center; color: var(--green); white-space: nowrap; overflow: visible; }
.hero-slogan span { display: inline-block; }
@media (max-width: 767px) { .hero-slogan { font-size: clamp(.72rem, 3.4vw, 1rem); } }
@media (max-width: 767px) { .hero-slogan { margin-top: -.7rem; } }

/* Logo lockup (icon + DOCTOR / BERMEO,no slogan) */
.logo { --fs: 21px; display: inline-flex; align-items: center; gap: .32em; font-size: var(--fs); line-height: 1; }
.logo-icon { height: 1.78em; flex: none; }
.logo-text { display: flex; flex-direction: column; font-family: "Montserrat", var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.logo-text span:first-child { color: var(--petrol-d); }
.logo-text span:last-child { background: linear-gradient(100deg, var(--petrol), var(--green) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-lg { --fs: 24px; }
.footer .logo-text span:first-child { color: #fff; }
.footer .logo-text span:last-child { background: linear-gradient(100deg, var(--green), var(--green-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-brand { display: inline-flex; }
@media (max-width: 767px) { .logo { --fs: 17px; } .logo-lg { --fs: 22px; } }

/* Portrait (hero) */
.portrait { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.portrait-photo { position: relative; width: 88%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; z-index: 2; background: linear-gradient(160deg, var(--petrol), var(--petrol-dd)); border: 6px solid #fff; box-shadow: 0 0 0 2px rgba(11, 79, 92, .12), 0 40px 70px -28px rgba(7, 54, 64, .6), inset 0 0 0 1px rgba(11, 79, 92, .1); }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transform: scale(1.04); }
.portrait-orbit { position: absolute; inset: 0; border-radius: 50%; z-index: 1; background: conic-gradient(from 210deg, var(--petrol), var(--green-l), var(--green), var(--petrol)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: spin 18s linear infinite; }
.portrait::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0; background: radial-gradient(circle, rgba(64, 211, 160, .45), transparent 66%); filter: blur(22px); }
@keyframes spin { to { transform: rotate(360deg); } }
/* House card now lives under the story heading */
.story .home-card { max-width: 360px; }
@media (max-width: 959px) { .story .home-card { margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .portrait-orbit { animation: none; } }
.pillar-cta { margin-top: 0; padding-top: 1.4rem; align-self: flex-start; font-weight: 700; font-size: .95rem; color: var(--petrol); display: inline-flex; gap: .5rem; transition: gap .3s var(--ease-out), color .3s; }
.pillar-cta .cta-l { display: inline-flex; align-items: center; gap: .5rem; }
.pillar-cta svg { width: 1.3rem; height: 1.3rem; flex: none; }
.pillar-cta:hover { gap: .9rem; color: var(--green); }
.nav-links a { white-space: nowrap; }
@media (max-width: 1023px) {
  .burger { display: block; }
  .burger span { transition: none; }
  .nav-links { display: none; position: absolute; top: calc(100% + .5rem); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .8rem; border-radius: 26px; background: rgba(247, 245, 239, .96); backdrop-filter: blur(18px); box-shadow: 0 24px 50px -20px rgba(7, 54, 64, .4); opacity: 1; visibility: visible; transform: none; transition: none; pointer-events: auto; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .9rem 1rem; font-size: 1rem; }
}

/* Social icons */
.social { display: flex; gap: .7rem; }
.soc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--petrol); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: 0 10px 22px -14px rgba(7, 54, 64, .5); transition: transform .35s var(--ease-out), background .35s, color .35s, border-color .35s; }
.soc-i { width: 21px; height: 21px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.soc:hover { transform: translateY(-4px); background: linear-gradient(145deg, var(--petrol), var(--green)); color: #fff; border-color: transparent; }
.follow { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 1.6rem; }
.follow-label { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-d); }
.social-hero { justify-content: center; }
.social-card { margin-top: auto; padding-top: 1.4rem; justify-content: center; }
.social-card .soc { width: 40px; height: 40px; }
.social-card .soc-i { width: 18px; height: 18px; }
.social-foot { justify-content: center; padding-bottom: 1.6rem; }
.footer .soc { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--green-l); box-shadow: none; }
.footer .soc:hover { background: var(--green-l); color: var(--petrol-dd); }

.nav-right { display: contents; }
.nav-contact { display: none; }
.nav-cta-m { display: none; }
@media (max-width: 1023px) {
  .nav-cta-m { display: inline-flex; margin-inline: auto; padding: .6rem 1.05rem; border-radius: 999px; background: var(--petrol); color: #fff; font-size: .88rem; font-weight: 700; white-space: nowrap; transition: background .3s; }
  .nav-cta-m:hover { background: var(--green); }
}
@media (max-width: 359px) { .nav-cta-m { padding: .5rem .8rem; font-size: .8rem; } }
.strip-t { margin-top: .2rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--muted); line-height: 1.4; }

/* Experiencia */
.xp-sec { padding-top: clamp(1rem, 2vw, 1.5rem); }
.xp-sec .section-head.center { margin-bottom: 1.6rem; }

/* Submenu "Mi camino" */
.nav-item { position: relative; }
.nav-sub-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .3s, background .3s; white-space: nowrap; }
.nav-sub-btn svg { width: 10px; height: 7px; transition: transform .25s; }
.nav-sub-btn:hover,.nav-sub-btn.is-active,.nav-item.is-open .nav-sub-btn { color: var(--petrol); background: rgba(11, 79, 92, .07); }
.nav-item.is-open .nav-sub-btn svg { transform: rotate(180deg); }
.sub-menu { display: none; position: absolute; top: calc(100% + .9rem); left: 50%; transform: translateX(-50%); min-width: 170px; padding: .45rem; border-radius: 18px; flex-direction: column; background: rgba(247, 245, 239, .97); backdrop-filter: blur(18px); box-shadow: 0 24px 50px -20px rgba(7, 54, 64, .45); border: 1px solid rgba(255, 255, 255, .8); }
.nav-item.is-open .sub-menu { display: flex; }
.sub-menu a { border-radius: 12px !important; }
@media (max-width: 1023px) {
  .nav-item { display: flex; flex-direction: column; }
  .nav-sub-btn { padding: .9rem 1rem; font-size: 1rem; justify-content: space-between; width: 100%; }
  .sub-menu { position: static; transform: none; min-width: 0; padding: 0 0 .3rem 1rem; background: none; box-shadow: none; border: 0; backdrop-filter: none; }
}
.follow-foot { margin-top: 0; padding-bottom: 1.6rem; }
.follow-foot .social-foot { padding-bottom: 0; }
.footer .follow-label { color: var(--green-l); }

.c-mail { font-size: .9rem; font-weight: 600; color: var(--green-l); letter-spacing: .01em; word-break: break-all; }

/* On PC the mail cards show the address instead of the "Escribir" button; phones keep the button */
@media (hover: hover) and (pointer: fine) { .c-card[data-contact] .c-go { display: none; } .c-card[data-contact] { min-height: 0; } }

.c-card { user-select: text; -webkit-user-select: text; cursor: text; }
.c-card a.c-go { cursor: pointer; }

/* Desktop nav: logo | links centred in the bar | CTA */
@media (min-width: 1024px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: 1.7rem .8rem; }
  .brand { grid-column: 1; justify-self: start; }
  .nav-links { grid-column: 2; grid-row: 1; justify-self: center; }
  .nav-right { display: flex; align-items: center; gap: .3rem; grid-column: 3; grid-row: 1; justify-self: end; }
  .nav-links a[href="#contacto"] { display: none; }
  .nav-contact { display: inline-flex; padding: .5rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s, background .3s; }
  .nav-contact:hover,.nav-contact.is-active { color: var(--petrol); background: rgba(11, 79, 92, .07); }
  .nav-cta-m { display: inline-flex; margin: 0; padding: .6rem 1.15rem; border-radius: 999px; background: var(--petrol); color: #fff; font-size: .9rem; font-weight: 700; white-space: nowrap; transition: background .3s; }
  .nav-cta-m:hover { background: var(--green); }
}
/* Footer on phones: one centred column */
@media (max-width: 767px) {
  .foot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.3rem; }
  .foot-brand,.foot-top { justify-self: auto; }
  .foot-top { order: 5; }
  .foot-info { order: 4; width: 100%; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 767px) { .c-go { align-self: center; } }
@media (max-width: 767px) { .ally { display: flex; flex-direction: column; justify-content: center; text-align: center; } }
@media (max-width: 767px) { .pillar { align-items: center; text-align: center; } .pillar-cta { align-self: center; } }

/* Phones: skip the full-screen grain layer (costly while scrolling) */
@media (hover: none) { .grain { display: none; } }

/* Experiencia en tres áreas */
.xp-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.xp-group { padding: 2rem 1.8rem; border-radius: 24px; background: rgba(255, 255, 255, .78); border: 1px solid #fff; box-shadow: 0 18px 36px -26px rgba(7, 54, 64, .4); text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .5s var(--ease-out); }
.xp-group:hover { transform: translateY(-5px); }
.xp-group h3 { font-size: 1.5rem; color: var(--petrol-d); margin-bottom: .4rem; }
.xp-group p { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.xp-list { width: 100%; display: grid; gap: .7rem; text-align: left; }
.xp-list li { position: relative; padding-left: 2rem; color: var(--petrol); font-size: .97rem; font-weight: 600; line-height: 1.4; }
.xp-list li::before { content: ""; position: absolute; left: 0; top: .05em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(31, 166, 122, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fa67a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }
@media (max-width: 959px) { .xp-groups { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Privacy policy page */
.foot-info a { text-decoration: underline; text-underline-offset: 3px; }
.legal-top { position: sticky; top: 0; z-index: 10; background: rgba(247, 245, 239, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.legal-top-in { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.legal-back { font-weight: 600; font-size: .92rem; color: var(--petrol); }
.legal-back:hover { color: var(--green); }
.legal { max-width: 780px; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--petrol-d); margin-bottom: .6rem; }
.legal-meta { color: var(--muted); margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.35rem; color: var(--petrol-d); margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: #254249; }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .45rem; margin-top: .6rem; }
.legal a { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }
@media (max-width: 959px) { .xp-group p { min-height: 0; } }

/* "Sitio en construcción" pages */
.soon { min-height: calc(100svh - 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 0; }
.soon-icon { height: 110px; margin-bottom: 1.6rem; }
.soon .kicker { justify-content: center; }
.soon h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--petrol-d); margin-bottom: .8rem; }
.soon-text { color: var(--muted); max-width: 40ch; margin-bottom: 2rem; font-size: 1.08rem; }
.foot-legal { display: block; margin-top: .35rem; font-size: .88rem; }
@media (max-width: 767px) { .hero-brand { margin-inline: auto; } }
@media (max-width: 767px) { .hero-quote { text-align: center; margin-inline: auto; } .hero-actions { justify-content: center; } }

/* =============================================================
   Blog (public) + Panel
   ============================================================= */
.ico { width: 1.15em; height: 1.15em; flex: none; }
.blog-nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.blog-nav a, .blog-nav button { padding: .45rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--petrol); }
.blog-nav a:hover { background: rgba(11, 79, 92, .07); }
.blog-nav .legal-back { padding: 0; margin-right: .9rem; border-radius: 0; font-size: .92rem; }
.blog-nav .legal-back:hover { background: none; color: var(--green); }
.blog-nav .blog-cta { background: var(--petrol); color: #fff; }
.blog-nav .blog-cta:hover { background: var(--green); }
.inline { display: inline; }

.blog-index { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.blog-index h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.blog-lead { color: var(--muted); margin-top: 1rem; }
.blog-empty { text-align: center; color: var(--muted); padding: 2rem 0; display: grid; justify-items: center; gap: 1rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 22px 44px -28px rgba(7, 54, 64, .45); transition: transform .5s var(--ease-out); }
.post-card:hover { transform: translateY(-5px); }
.post-card-media { aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--petrol), var(--petrol-dd)); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: grid; place-items: center; height: 100%; }
.post-card-ph .ink { height: 60%; background: linear-gradient(165deg, var(--green), var(--green-l)); }
.post-card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card-date { font-size: .8rem; color: var(--green); font-weight: 700; }
.post-card h3 { font-size: 1.35rem; color: var(--petrol-d); }
.post-card-ex { color: var(--muted); font-size: .95rem; }
.post-stats { display: flex; gap: 1rem; margin-top: auto; padding-top: .6rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.post-stats li { display: inline-flex; align-items: center; gap: .35rem; }

.post { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
.post-wrap { max-width: 780px; }
.post-back { font-weight: 700; color: var(--green); font-size: .92rem; }
.post-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); color: var(--petrol-d); margin: .8rem 0; }
.post-meta { color: var(--muted); }
.post-cover { margin: 2rem 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -32px rgba(7, 54, 64, .55); }
.post-cover img { width: 100%; height: auto; }
.post-body { font-size: 1.12rem; line-height: 1.8; color: #213f46; display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.post-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2.6rem 0 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--petrol); font-weight: 700; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.act b { font-weight: 800; color: var(--petrol-d); }
.act:hover { border-color: var(--petrol); }
.act-static:hover { border-color: var(--line); }
.act-like.is-on { background: #fdecef; border-color: #f4b6c2; color: #c2334d; }
.act-like.is-on .ico { fill: currentColor; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; }
.share-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--petrol-d); }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btns a, .share-btns button { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(11, 79, 92, .07); color: var(--petrol); font-weight: 700; font-size: .88rem; }
.share-btns a:hover, .share-btns button:hover { background: var(--petrol); color: #fff; }
.comments { margin-top: 3rem; }
.comments h2 { font-size: 1.8rem; color: var(--petrol-d); margin-bottom: 1.2rem; }
.comment-form, .p-form { display: grid; gap: 1rem; }
.comment-form label, .p-form label { display: grid; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--petrol-d); }
.comment-form input, .comment-form textarea, .p-form input, .p-form textarea, .p-sort select { font: inherit; font-weight: 500; color: var(--ink); padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; width: 100%; }
.comment-form textarea, .p-form textarea { resize: vertical; line-height: 1.6; }
.comment-form input:focus, .comment-form textarea:focus, .p-form input:focus, .p-form textarea:focus { outline: 2px solid var(--green-l); border-color: transparent; }
.comment-form .btn, .p-form .btn { justify-self: start; }
.p-form .btn, .p-post-actions .btn { padding: .6rem 1.4rem; font-size: .92rem; box-shadow: 0 8px 18px -10px rgba(11, 79, 92, .6); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-note { font-size: .85rem; color: var(--muted); }
.comment-note a { text-decoration: underline; }
.form-msg { font-weight: 700; color: var(--green); min-height: 1.2em; }
.comment-list { display: grid; gap: 1rem; margin-top: 2rem; }
.comment-list li { padding: 1.1rem 1.3rem; border-radius: 18px; background: rgba(255, 255, 255, .8); border: 1px solid #fff; }
.c-head { font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.c-head strong { color: var(--petrol-d); }
.c-body { display: grid; gap: .6rem; color: #213f46; }
.comment-empty { color: var(--muted); margin-top: 1.4rem; }

/* Panel */
.p-badge { margin-left: .6rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(31, 166, 122, .14); color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.p-auth { min-height: calc(100svh - 160px); display: grid; place-items: center; padding: 3rem 0; }
.p-auth-card { width: min(100%, 440px); padding: 2.4rem 2rem; border-radius: 28px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: 0 40px 80px -40px rgba(7, 54, 64, .5); display: grid; gap: 1rem; }
.p-auth-icon { height: 70px; justify-self: center; }
.p-auth-card h1 { text-align: center; font-size: 1.9rem; color: var(--petrol-d); }
.p-auth-card .btn { justify-self: stretch; justify-content: center; }
.p-help { color: var(--muted); font-size: .95rem; }
.p-qr { width: 220px; margin: 0 auto; padding: .6rem; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.p-qr svg { width: 100%; height: auto; }
.p-secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; text-align: center; color: var(--petrol-d); background: rgba(11, 79, 92, .06); padding: .7rem; border-radius: 12px; word-break: break-all; }
.p-flash { padding: .8rem 1rem; border-radius: 14px; background: rgba(31, 166, 122, .12); color: var(--petrol-d); font-weight: 600; }
.p-link { color: var(--petrol); font-weight: 700; text-decoration: underline; }
.p-cancel { justify-items: center; }
.p-main { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); display: grid; gap: 2rem; }
.p-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--petrol-d); }
.p-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.p-card { display: flex; flex-direction: column; gap: .8rem; padding: 2rem; border-radius: 28px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 24px 50px -30px rgba(7, 54, 64, .45); transition: transform .5s var(--ease-out); }
.p-card:hover { transform: translateY(-5px); }
.p-card-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(150deg, var(--petrol), var(--green)); color: #fff; transition: transform .5s var(--ease-out); }
.p-card-ico .ico { width: 30px; height: 30px; }
.p-card:hover .p-card-ico { transform: rotate(-8deg) scale(1.08); }
.p-card h2 { font-size: 1.8rem; color: var(--petrol-d); }
.p-card p { color: var(--muted); }
.p-card-meta { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--green); }
.p-box { padding: 1.8rem; border-radius: 24px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 20px 44px -30px rgba(7, 54, 64, .4); }
.p-box h2, .p-list h2 { font-size: 1.5rem; color: var(--petrol-d); margin-bottom: 1rem; }
.p-muted { color: var(--muted); }
.p-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.p-stat { display: grid; gap: .2rem; padding: 1.3rem; border-radius: 20px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; color: var(--green); }
.p-stat b { font-family: var(--serif); font-size: 2.2rem; color: var(--petrol-d); font-weight: 500; }
.p-stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.p-drop { padding: 1rem; border: 2px dashed var(--line); border-radius: 18px; }
.p-drop input { border: 0; padding: .4rem 0; background: none; }
.p-drop img { max-height: 220px; width: auto; border-radius: 12px; }
.p-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.p-list-head h2 { margin-bottom: 0; }
.p-sort label { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; color: var(--petrol-d); }
.p-sort select { width: auto; padding: .55rem .9rem; }
.p-post { margin-inline: auto; }
.p-post-stats { margin: .8rem 0 1rem; }
.p-post-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.p-danger { padding: .9rem 1.4rem; border-radius: 999px; border: 1.5px solid #e3a6b1; color: #b32a44; font-weight: 700; background: #fff; }
.p-danger:hover { background: #b32a44; color: #fff; }
.p-danger-link { color: #b32a44; font-size: .85rem; margin-top: .4rem; }

@media (max-width: 959px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .p-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .post-grid, .p-cards { grid-template-columns: 1fr; }
  .legal-top-in { flex-wrap: wrap; gap: .6rem; }
  .blog-nav { justify-content: flex-start; }
}
.p-soon { display: flex; align-items: center; gap: 1.4rem; }
.btn-ghost-p { border: 1.5px solid var(--line); background: #fff; color: var(--petrol); }
.btn-ghost-p:hover { border-color: var(--petrol); }
.p-drop { display: grid; gap: .7rem; }
.p-drop-t { font-weight: 700; font-size: .9rem; color: var(--petrol-d); }
.p-hint { color: var(--muted); font-size: .88rem; }
.p-pick { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.p-form .p-pick-btn { display: inline-block; cursor: pointer; padding: .6rem 1.3rem; border-radius: 999px; background: var(--petrol); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 18px -10px rgba(11, 79, 92, .6); transition: background .35s, box-shadow .35s; }
.p-form .p-pick-btn:hover { background: var(--green); box-shadow: 0 16px 36px -10px rgba(31, 166, 122, .7); }
.p-form .btn-primary:hover, .p-post-actions .btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(31, 166, 122, .7); }
.p-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 600 !important; }
.p-check input { width: auto; }

.p-box .p-muted + .p-form { margin-top: 1.4rem; }
.p-backups { display: grid; gap: .5rem; margin-top: 1.2rem; }
.p-backups li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; border-radius: 14px; background: rgba(11, 79, 92, .05); font-size: .92rem; color: var(--petrol-d); font-weight: 600; }

/* ---------- Calculadoras ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc-tools { display: grid; gap: 1rem; justify-items: center; margin-bottom: 2rem; }
.calc-search { position: relative; width: min(640px, 100%); display: block; }
.calc-search svg { position: absolute; left: 1.1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.calc-search input { width: 100%; font: inherit; font-weight: 500; color: var(--ink); padding: .95rem 1.2rem .95rem 3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px -18px rgba(7, 54, 64, .35); }
.calc-search input:focus { outline: 2px solid var(--green-l); border-color: transparent; }
.calc-filter { width: min(640px, 100%); }
.calc-filter-btn { width: 100%; display: flex; align-items: center; gap: .6rem; font: inherit; font-weight: 600; font-size: .95rem; color: var(--petrol-d); padding: .8rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); cursor: pointer; transition: border-color .3s, background .3s; }
.calc-filter-btn:hover { border-color: var(--petrol); }
.calc-filter-btn span { flex: 1; text-align: left; }
.calc-filter-btn b { font-weight: 700; font-size: .85rem; color: var(--green-d); background: rgba(31, 166, 122, .12); padding: .2rem .7rem; border-radius: 999px; }
.calc-filter-ico { width: 18px; height: 18px; color: var(--petrol); flex: none; }
.calc-filter-chev { width: 12px; height: 8px; flex: none; transition: transform .25s; }
.calc-filter-btn[aria-expanded="true"] .calc-filter-chev { transform: rotate(180deg); }
.calc-filter-btn[aria-expanded="true"] { border-color: var(--petrol); background: #fff; }
.calc-chips { display: flex; flex-direction: column; gap: .15rem; margin-top: .6rem; padding: .45rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -24px rgba(7, 54, 64, .4); }
.calc-chips[hidden] { display: none; }
.calc-chip { font: inherit; font-size: .95rem; font-weight: 600; padding: .7rem .9rem; border-radius: 14px; border: 0; background: none; color: var(--petrol-d); cursor: pointer; text-align: left; width: 100%; transition: background .25s, color .25s; }
.calc-chip:hover { background: rgba(11, 79, 92, .06); }
.calc-chip.is-on { background: rgba(31, 166, 122, .12); color: var(--green-d); }
.calc-chip.is-on::after { content: "✓"; margin-left: auto; font-weight: 700; }
.calc-count { color: var(--muted); font-size: .88rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.calc-card { text-align: left; font: inherit; display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.5rem; border-radius: 24px; text-decoration: none; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 20px 44px -28px rgba(7, 54, 64, .4); cursor: pointer; color: inherit; transition: transform .35s var(--ease-out), box-shadow .35s; }
.calc-card[hidden] { display: none; }
.calc-card:hover, .calc-card:focus-visible { transform: translateY(-4px); box-shadow: 0 28px 54px -26px rgba(11, 79, 92, .5); }
.calc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--petrol), var(--green)); color: #fff; margin: 0 auto .3rem; }
.calc-ico svg { width: 24px; height: 24px; }
.calc-chip { display: flex; align-items: center; gap: .75rem; }
.calc-chip svg { width: 20px; height: 20px; flex: none; color: var(--petrol); }
.calc-chip.is-on svg { color: var(--green-d); }
.calc-card h3 { text-align: center; font-size: 1.25rem; color: var(--petrol-d); line-height: 1.2; }
.calc-card p { color: var(--muted); font-size: .95rem; }
.calc-card:hover .calc-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.calc-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2.5rem; max-width: 60ch; margin-inline: auto; }
.calc-dlg { width: min(640px, calc(100% - 1.5rem)); max-height: min(92svh, 900px); padding: 0; border: 0; border-radius: 28px; background: var(--cream); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(4, 36, 43, .6); overflow: auto; margin: auto; }
.calc-dlg::backdrop { background: rgba(4, 36, 43, .55); backdrop-filter: blur(3px); }
#calcBody { padding: 2rem 1.8rem 1.8rem; }
.calc-x { position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11, 79, 92, .08); color: var(--petrol); display: grid; place-items: center; cursor: pointer; transition: background .3s; z-index: 2; }
.calc-x:hover { background: rgba(11, 79, 92, .16); }
.calc-x svg { width: 18px; height: 18px; }
#calcBody h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); color: var(--petrol-d); margin: .2rem 2.5rem .5rem 0; line-height: 1.15; }
.calc-lead { color: var(--muted); margin-bottom: 1.4rem; }
#calcForm { display: grid; gap: .9rem; }
.calc-f { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--petrol-d); }
.calc-f[hidden] { display: none; }
.calc-f em { font-style: normal; font-weight: 500; color: var(--muted); }
.calc-f small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.calc-f input, .calc-f select { font: inherit; font-weight: 500; color: var(--ink); padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; width: 100%; }
.calc-f input:focus, .calc-f select:focus { outline: 2px solid var(--green-l); border-color: transparent; }
.calc-check { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.calc-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--petrol); flex: none; cursor: pointer; }
.calc-err { color: #a3321f; font-weight: 600; font-size: .92rem; }
.calc-actions { display: flex; align-items: center; gap: 1rem; margin-top: .2rem; }
.calc-clear { font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: .5rem; }
.calc-clear:hover { color: var(--petrol); }
.calc-res { margin-top: 1.4rem; }
.calc-out { padding: 1.4rem 1.5rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--petrol); display: grid; gap: .15rem; }
.calc-ok { border-left-color: var(--green); } .calc-warn { border-left-color: #d89a1e; } .calc-bad { border-left-color: #c8452f; }
.calc-big { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.05; color: var(--petrol-d); }
.calc-unit { color: var(--muted); font-weight: 600; }
.calc-badge { justify-self: start; margin-top: .6rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem; background: rgba(11, 79, 92, .1); color: var(--petrol-d); }
.calc-ok .calc-badge { background: rgba(31, 166, 122, .15); color: #0b5a40; }
.calc-out.calc-warn .calc-badge { background: rgba(216, 154, 30, .2); color: #6b4800; }
.calc-bad .calc-badge { background: rgba(200, 69, 47, .14); color: #8a2614; }
.calc-rows { display: grid; gap: .4rem; margin-top: .9rem; }
.calc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-radius: 12px; background: rgba(11, 79, 92, .05); font-size: .93rem; }
.calc-rows dt { color: var(--muted); } .calc-rows dd { font-weight: 700; color: var(--petrol-d); text-align: right; }
.calc-explain { margin-top: 1.1rem; display: grid; gap: .6rem; }
.calc-explain h3 { font-size: 1.05rem; color: var(--petrol-d); }
.calc-explain p { color: var(--ink); font-size: .96rem; }
.calc-how { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.calc-how summary { cursor: pointer; font-weight: 700; color: var(--petrol); }
.calc-how p { margin-top: .5rem; }
.calc-disc { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; }
@media (max-width: 600px) { .calc-dlg { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; } #calcBody { padding: 1.6rem 1.1rem 1.6rem; } }

/* ---------- Panel · Analíticas ---------- */
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.an-head .p-muted { margin-top: .4rem; }
.an-period, .an-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.an-period a, .an-tabs a { padding: .5rem 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); transition: color .3s, border-color .3s, background .3s; }
.an-period a:hover, .an-tabs a:hover { color: var(--petrol); border-color: var(--petrol); }
.an-period a[aria-current], .an-tabs a[aria-current] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.an-tabs { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.an-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.an-kpi { display: grid; align-content: start; gap: .25rem; padding: 1.4rem 1.4rem 1.2rem; border-radius: 22px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: 0 18px 40px -30px rgba(7, 54, 64, .45); }
.an-kpi-l { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); }
.an-kpi b { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--petrol-d); }
.an-kpi-n { font-size: .85rem; color: var(--muted); }
.an-kpis-sm .an-kpi { padding: 1.1rem 1.2rem; }
.an-kpis-sm .an-kpi b { font-size: 1.7rem; }
.an-delta { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: .3rem; }
.an-delta.is-up { color: #0b7a55; } .an-delta.is-down { color: #b0412d; }
.an-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.an-box-head h2 { margin-bottom: 0; }
.an-check { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-size: .9rem; font-weight: 600; color: var(--petrol); cursor: pointer; }
.an-check input { accent-color: var(--petrol); width: 1.05rem; height: 1.05rem; cursor: pointer; }
.an-more { font-weight: 700; font-size: .9rem; color: var(--petrol); }
.an-more:hover { color: var(--green); }
.an-help { font-size: .88rem; margin-bottom: 1.2rem; }
.an-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.an-chart .an-bar { fill: var(--petrol); opacity: .85; transition: opacity .2s, fill .2s; }
.an-chart g:hover .an-bar { fill: var(--green); opacity: 1; }
.an-chart text { font-size: 12px; fill: var(--muted); font-family: var(--sans); }
.an-rank { display: grid; gap: .7rem; list-style: none; padding: 0; }
.an-rank li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) auto; align-items: center; gap: 1rem; }
.an-rank-t { font-weight: 600; color: var(--petrol-d); }
.an-rank-t em, .an-table th em { display: block; font-style: normal; font-weight: 500; font-size: .8rem; color: var(--muted); }
.an-rank b { font-family: var(--serif); font-size: 1.3rem; color: var(--petrol-d); min-width: 2.5ch; text-align: right; }
.an-track { display: inline-block; vertical-align: middle; width: 100%; max-width: 160px; height: 10px; border-radius: 999px; background: rgba(11, 79, 92, .08); overflow: hidden; }
.an-rank .an-track { max-width: none; }
.an-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--petrol), var(--green)); }
.an-track-lg { width: 120px; max-width: none; height: 12px; margin-right: .6rem; }
.an-table .an-track:not(.an-track-lg) { width: 90px; margin-right: .5rem; }
.an-table-wrap { overflow-x: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.an-table th, .an-table td { padding: .75rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.an-table thead th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.an-table tbody th { font-weight: 600; color: var(--petrol-d); }
.an-table tbody tr:hover { background: rgba(11, 79, 92, .03); }
.an-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-num small { color: var(--muted); }
.an-funnel td:nth-child(2) { white-space: nowrap; }
.an-heat { display: inline-block; min-width: 5.5rem; text-align: center; padding: .3rem .7rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.an-heat-0 { background: #eef5f3; color: #4d6b72; } .an-heat-1 { background: #d6efe5; color: #14664a; } .an-heat-2 { background: #a9dfca; color: #0f5a41; }
.an-heat-3 { background: #5fc4a0; color: #06382a; } .an-heat-4 { background: #1f8f73; color: #fff; } .an-heat-5 { background: var(--petrol); color: #fff; }
@media (max-width: 900px) { .an-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .an-kpis { grid-template-columns: 1fr; } .an-rank li { grid-template-columns: 1fr auto; } .an-rank .an-track { grid-column: 1 / -1; grid-row: 2; } }
.an-sub { font-size: 1.15rem; color: var(--petrol-d); margin: 1.6rem 0 .3rem; }
.an-rank b small { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--muted); }
.an-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.an-sankey-wrap { overflow-x: auto; }
.an-sankey { width: 100%; min-width: 620px; height: auto; display: block; }
.an-sankey .an-links path { opacity: .28; transition: opacity .2s; }
.an-sankey .an-links path:hover { opacity: .6; }
.an-sankey text { font-size: 11px; font-weight: 600; fill: var(--petrol-d); font-family: var(--sans); }
.an-sankey tspan { font-weight: 500; fill: var(--muted); }
.an-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.an-flow { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(11, 79, 92, .04); border: 1px solid var(--line); }
.an-flow h3 { font-size: 1rem; color: var(--petrol-d); margin-bottom: .6rem; display: flex; justify-content: space-between; gap: .5rem; }
.an-flow h3 span { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 600; }
.an-flow ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.an-flow li { display: grid; grid-template-columns: 1fr 70px auto; gap: .6rem; align-items: center; font-size: .88rem; }
.an-flow-d em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.an-flow b { font-size: .85rem; color: var(--petrol-d); min-width: 3.2rem; text-align: right; }
@media (max-width: 900px) { .an-grid2 { grid-template-columns: 1fr; } }

/* ---------- Boletín (fondo de la página claro; solo el recuadro es oscuro, con los tonos de las secciones oscuras) ---------- */
.news { padding-top: 0; }
.news-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: 32px; color: #e6f3f1; background: radial-gradient(900px 500px at 85% -20%, #0e6b78 0%, transparent 60%), linear-gradient(170deg, var(--petrol-d), var(--petrol-dd)); box-shadow: 0 30px 60px -30px rgba(4, 36, 43, .6); }
.news-card .kicker { color: var(--green-l); }
.news-card em { color: var(--green-l); }
.news-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: .8rem; color: #fff; }
.news-copy p:not(.kicker) { color: #b7d3d1; max-width: 46ch; }
.news-form { display: grid; gap: .9rem; }
.news-f { display: grid; gap: .4rem; font-weight: 700; font-size: .9rem; color: #e6f3f1; }
.news-f input { font: inherit; font-weight: 500; color: var(--ink); padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid transparent; background: #fff; width: 100%; }
.news-f input::placeholder { color: #5b777d; }
.news-f input:focus { outline: 2px solid var(--green-l); outline-offset: 2px; }
.news-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: #b7d3d1; cursor: pointer; }
.news-consent input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--green-l); flex: none; cursor: pointer; }
.news-consent a { color: var(--green-l); text-decoration: underline; }
.news-consent a:hover { color: #fff; }
.news-form .btn { justify-self: start; background: var(--green-l); color: var(--petrol-dd); box-shadow: 0 14px 30px -14px rgba(64, 211, 160, .55); }
.news-form .btn:hover { background: #fff; color: var(--petrol-dd); box-shadow: 0 16px 36px -12px rgba(255, 255, 255, .35); }
.news-form .btn:disabled { opacity: .6; cursor: progress; }
.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-msg { font-size: .92rem; font-weight: 600; min-height: 1.2em; color: #b7d3d1; }
.news-msg.is-ok { color: var(--green-l); } .news-msg.is-err { color: #ffb4a6; }
@media (max-width: 860px) { .news-card { grid-template-columns: 1fr; } }
.nl-stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .nl-stats { grid-template-columns: 1fr; } }
.an-bar-soft { fill: var(--petrol); opacity: .28; }
.an-chart .an-bar-ok { fill: var(--green); }
.an-chart g:hover .an-bar-soft { fill: var(--petrol); opacity: .45; }
.an-legend { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.an-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.an-legend .lg-soft { background: rgba(11, 79, 92, .35); } .an-legend .lg-ok { background: var(--green); margin-left: .6rem; }
.nl-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.nl-actions .p-form { display: block; }
.nl-filter { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nl-tabs { border-bottom: 0; padding-bottom: 0; }
.nl-search { display: flex; gap: .5rem; align-items: stretch; }
.nl-search input { font: inherit; font-weight: 500; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; min-width: 330px; }
.nl-search input:focus { outline: 2px solid var(--green-l); border-color: transparent; }
.nl-state { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.nl-confirmed { background: rgba(31, 166, 122, .15); color: #0b5a40; }
.nl-pending { background: rgba(216, 154, 30, .2); color: #6b4800; }
.nl-unsubscribed { background: rgba(200, 69, 47, .14); color: #8a2614; }
#inscritos { scroll-margin-top: 5.5rem; }
.nl-search .btn { padding: 0 1.3rem; justify-content: center; font-size: .92rem; box-shadow: 0 8px 18px -10px rgba(11, 79, 92, .6); }
.nl-search .btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(31, 166, 122, .7); }
@media (max-width: 520px) { .nl-search { width: 100%; } .nl-search input { min-width: 0; flex: 1; } }
.an-filters { display: grid; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.an-filters .an-tabs { border-bottom: 0; padding-bottom: 0; }

/* ---------- Entrada del blog: Markdown, índice, notas, autor y relacionadas ---------- */
.post-cat, .post-card-cat { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-top: 1rem; }
.post-card-cat { margin: 0; }
.post-credit { padding: .6rem 1rem; font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .75); }
.post-credit a { text-decoration: underline; }
.post-badge { position: absolute; top: .8rem; left: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--petrol-dd); color: #fff; font-size: .75rem; font-weight: 700; }
.post-card-media { position: relative; }
.post-toc { margin: 1.6rem 0 0; padding: 1.2rem 1.4rem; border-radius: 20px; background: rgba(255, 255, 255, .75); border: 1px solid #fff; box-shadow: 0 18px 36px -28px rgba(7, 54, 64, .4); }
.post-toc-t { font-weight: 800; color: var(--petrol-d); margin-bottom: .5rem; }
.post-toc ol { list-style: none; display: grid; gap: .35rem; }
.post-toc a { color: var(--petrol); font-weight: 600; }
.post-toc a:hover { color: var(--green); }
.post-toc .toc-3 { padding-left: 1.2rem; font-size: .94rem; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--serif); color: var(--petrol-d); line-height: 1.2; scroll-margin-top: 130px; }
.post-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-top: 1rem; }
.post-body h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin-top: .4rem; }
.post-body h4 { font-size: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; display: grid; gap: .45rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li > ul, .post-body li > ol { margin-top: .45rem; }
.post-body a { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green-l); }
.post-body a:hover { color: var(--green); }
.post-body blockquote { border-left: 4px solid var(--green-l); padding: .4rem 0 .4rem 1.2rem; color: var(--petrol); font-style: italic; display: grid; gap: .8rem; }
.post-body hr { border: 0; height: 1px; background: var(--line); width: 100%; }
.post-body code { font-size: .92em; padding: .1em .4em; border-radius: 6px; background: rgba(11, 79, 92, .08); }
.post-body pre { overflow-x: auto; padding: 1rem 1.2rem; border-radius: 14px; background: var(--petrol-dd); color: #e6f3f1; font-size: .92rem; }
.post-body pre code { background: none; padding: 0; }
.post-body .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .98rem; line-height: 1.5; }
.post-body th, .post-body td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.post-body th { background: rgba(11, 79, 92, .06); color: var(--petrol-d); }
.post-body tr:last-child td { border-bottom: 0; }
.post-body sup.fn a { text-decoration: none; font-weight: 700; font-size: .8em; }
.post-notes { border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .88rem; line-height: 1.6; color: var(--muted); }
.post-notes .notes-t { font-size: 1.05rem; margin: 0 0 .6rem; }
.post-notes ol { gap: .3rem; word-break: break-word; }
.post-notes a { font-weight: 500; }
.fn-back { text-decoration: none !important; }
.author-box { margin-top: 1.4rem; padding: clamp(1.4rem, 4vw, 2rem); border-radius: 26px; color: #e6f3f1; background: radial-gradient(800px 400px at 90% -20%, #0e6b78 0%, transparent 60%), linear-gradient(170deg, var(--petrol-d), var(--petrol-dd)); display: grid; gap: 1rem; }
.author-box .kicker { color: var(--green-l); }
.author-box h2 { font-size: 1.7rem; color: #fff; }
.author-box p { color: #cfe3e1; }
.author-news { display: grid; gap: .9rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.author-news-t { font-weight: 700; color: #fff !important; }
.author-news .btn { justify-self: start; }
.related { margin-top: 3rem; }
.related h2 { font-size: 1.8rem; color: var(--petrol-d); margin-bottom: 1.2rem; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related .post-card-ex, .related .post-stats { display: none; }
/* panel: formulario y listado del blog */
.p-hint-inline { font-weight: 500; color: var(--muted); }
.p-hint.is-ok { color: var(--green); font-weight: 700; } .p-hint.is-warn { color: #b26a00; font-weight: 700; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.p-form select { font: inherit; font-weight: 500; color: var(--ink); padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; width: 100%; }
.md-preview { padding: 1.2rem 1.4rem; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.md-preview .post-body { margin-top: 1rem; }
.p-item { display: grid; gap: .5rem; align-content: start; }
.p-item-actions { display: flex; gap: 1.2rem; padding: 0 .4rem; }
.p-published { padding: .8rem 1.1rem; border-radius: 14px; background: #e8f6f0; color: var(--petrol-d); font-weight: 600; word-break: break-all; }
@media (max-width: 640px) { .p-two { grid-template-columns: 1fr; } }

/* ---------- Google Search Console en el panel ---------- */
.p-alert { padding: .8rem 1rem; border-radius: 14px; background: #fff3e0; color: #7a4a00; font-weight: 600; margin: .6rem 0; }
.p-steps { display: grid; gap: .5rem; padding-left: 1.3rem; list-style: decimal; color: var(--petrol-d); margin-bottom: 1rem; }
.gsc-post { border-top: 1px solid var(--line); padding: .8rem 0; }
.gsc-post summary { cursor: pointer; line-height: 1.5; }
.gsc-post[open] > summary { margin-bottom: .6rem; }

/* ---------- Portada: últimas entradas · página del autor ---------- */
.home-blog .post-stats, .home-blog .post-card-cat { display: none; }
.home-blog-more { text-align: center; margin-top: 2rem; }
.author-page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); max-width: 860px; }
.author-hero { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; }
.author-hero img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -32px rgba(7, 54, 64, .55); }
.author-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); color: var(--petrol-d); margin: .4rem 0 .8rem; }
.author-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.2rem; }
.author-sec { margin-top: 2.6rem; display: grid; gap: .9rem; }
.author-sec h2 { font-size: 1.7rem; color: var(--petrol-d); }
.author-list { display: grid; gap: .7rem; padding-left: 1.3rem; list-style: disc; line-height: 1.7; }
.author-list a, .author-sec p a { color: var(--petrol); text-decoration: underline; text-decoration-color: var(--green-l); }
.author-box h2 a { color: inherit; }
.author-box h2 a:hover { color: var(--green-l); }
@media (max-width: 700px) { .author-hero { grid-template-columns: 1fr; } .author-hero img { max-width: 200px; } }

/* ---------- Blog: búsqueda ---------- */
.blog-search { display: flex; gap: .6rem; max-width: 520px; margin: 0 auto 2rem; }
.blog-search input { flex: 1; min-width: 0; padding: .8rem 1.1rem; border: 1.5px solid var(--line, #d5e3e6); border-radius: 999px; font: inherit; background: #fff; color: inherit; }
.blog-search input:focus { outline: 2px solid var(--green-l); outline-offset: 2px; }
.blog-found { text-align: center; color: var(--muted); margin: -.6rem 0 1.6rem; }
.blog-found a { color: var(--petrol); text-decoration: underline; }

.pillar-cta + .pillar-cta { padding-top: .6rem; }

/* Panel · Contratómetro: selector buscable de ubicación */
.ctm-ubic { margin-bottom: 1.4rem; max-width: 26rem; }
.ctm-ubic-l { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); }
.ctm-sel { position: relative; }
.ctm-sel > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: .85rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--petrol-d); box-shadow: 0 10px 24px -18px rgba(7, 54, 64, .5); }
.ctm-sel > summary::-webkit-details-marker { display: none; }
.ctm-sel > summary::after { content: ""; width: .55rem; height: .55rem; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.ctm-sel[open] > summary::after { transform: rotate(225deg); }
.ctm-sel-box { position: absolute; z-index: 30; left: 0; right: 0; margin-top: .4rem; padding: .6rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(7, 54, 64, .55); }
.ctm-sel-box input { font: inherit; width: 100%; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line); }
.ctm-sel-box ul { list-style: none; margin: .5rem 0 0; padding: 0; max-height: 18rem; overflow: auto; }
.ctm-sel-box li[hidden] { display: none; }
.ctm-sel-box a { display: block; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; color: var(--petrol-d); }
.ctm-sel-box a:hover, .ctm-sel-box a:focus-visible { background: rgba(11, 79, 92, .08); }
.ctm-sel-empty { padding: .6rem .9rem; color: var(--muted); }
.ctm-nuevos { margin-top: .7rem; font-size: .95rem; color: var(--petrol-d); }
.ctm-kpi-link { color: inherit; text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ctm-kpi-link:hover, .ctm-kpi-link:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(7, 54, 64, .6); }
.ctm-kpi-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ctm-kpi-go { margin-top: .3rem; font-size: .8rem; font-weight: 700; color: var(--green-d); }
.ctm-nuevos-card { margin-top: .9rem; padding: 1rem 1.3rem; gap: .15rem; }
