/* Enerbar — design tokens (colors, typography, spacing) */
/* Source: Manual de Marca Enerbar / Claude Design handoff */

@font-face {
  font-family: 'Nulshock';
  src: url('../assets/fonts/Nulshock-Bold.otf') format('opentype'),
       url('../assets/fonts/Nulshock-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root{
  /* Color */
  --color-black:#000000;
  --color-ink:#17202F;
  --color-green:#00EA03;
  --color-green-dim:#00b302;
  --color-white:#FFFFFF;
  --color-gray-300:#c9cdd3;
  --color-gray-500:#7b8290;
  --surface-dark:var(--color-ink);
  --surface-darkest:var(--color-black);
  --surface-light:var(--color-white);
  --text-on-dark:var(--color-white);
  --text-on-light:var(--color-black);
  --text-muted-on-dark:#9aa3ad;
  --text-muted-on-light:#4d5560;
  --accent:var(--color-green);
  --border-on-dark:rgba(255,255,255,0.14);
  --border-on-light:rgba(0,0,0,0.12);

  /* Typography */
  --font-display:'Nulshock','Arial Black',Arial,sans-serif;
  --font-subhead:'Raleway',Arial,sans-serif;
  --font-body:'Raleway',Arial,sans-serif;
  --weight-display:700;
  --weight-subhead:700;
  --weight-body:300;
  --tracking-display:0.01em;
  --tracking-eyebrow:0.22em;
  --text-display-xl:clamp(2.75rem,5vw,5rem);
  --text-display-lg:clamp(2rem,3.4vw,3.25rem);
  --text-display-md:1.75rem;
  --text-subhead:1.125rem;
  --text-body:1rem;
  --text-small:0.8125rem;
  --text-eyebrow:0.75rem;
  --line-tight:1.05;
  --line-normal:1.4;
  --line-loose:1.65;

  /* Spacing */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:64px;
  --space-9:96px;
  --radius-sm:2px;
  --radius-md:4px;
  --radius-pill:999px;
  --container-max:1200px;
  --border-width:1px;
  --shadow-card:0 1px 2px rgba(0,0,0,0.06),0 8px 24px rgba(0,0,0,0.08);
  --shadow-card-dark:0 8px 24px rgba(0,0,0,0.35);
}

/* Enerbar — base / reset */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6,p,ul,ol,figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a{
  color: var(--color-green);
  text-decoration: none;
}
a:hover{ color: var(--color-green-dim); }

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

button { font: inherit; }

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
}

.section{ padding: 96px 40px; }
.section--tight{ padding: 80px 40px; }

@media (max-width: 900px){
  .section{ padding: 64px 24px; }
  .section--tight{ padding: 56px 24px; }
}
@media (max-width: 640px){
  .section{ padding: 48px 20px; }
  .section--tight{ padding: 40px 20px; }
}

.bg-black{ background: var(--color-black); }
.bg-ink{ background: var(--color-ink); }
.bg-white{ background: var(--color-white); }

.eyebrow{
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-green);
}

/* Form fields (contacto) */
input, select, textarea{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  background: var(--color-white);
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--color-black);
  width: 100%;
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--color-green);
}
label{
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted-on-light);
}

/* Enerbar — components */

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-black);
  border-bottom: 1px solid var(--border-on-dark);
}
.site-header__bar{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo{ display: flex; align-items: center; }
.site-header__logo img{ height: 30px; width: 197px; object-fit: contain; aspect-ratio: 3560/542; }

.site-nav{ display: flex; align-items: center; gap: 28px; }
.site-nav a{
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
}
.site-nav a:hover{ color: var(--color-green); }
.site-nav a.is-active{ color: var(--color-green); }

.btn-cta{
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--color-green);
  color: var(--color-black);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background .15s linear;
}
.btn-cta:hover{ background: var(--color-black); color: var(--color-green); }
.btn-cta:active{ opacity: .85; }

.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  transition: transform .15s linear, opacity .15s linear;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

@media (max-width: 1200px){
  .site-header__bar{ padding: 0 20px; height: 68px; }
  .nav-toggle{ display: flex; }
  .site-nav{
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-black);
    border-bottom: 1px solid var(--border-on-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease, padding .2s ease;
  }
  .site-nav.is-open{ max-height: 400px; padding: 8px 20px 20px; }
  .site-nav a{ padding: 12px 0; width: 100%; border-top: 1px solid var(--border-on-dark); }
  .site-header .btn-cta{ display: none; }
  .site-header__bar{ flex-wrap: nowrap; }
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta{ display: none; }
@media (max-width: 640px){
  body.has-mobile-cta{ padding-bottom: 76px; }
  .mobile-cta{
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--color-black); border-top: 1px solid var(--border-on-dark);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-cta .btn{ flex: 1; text-align: center; padding: 13px 10px; font-size: 13px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: var(--color-black);
  overflow: hidden;
}
.hero::before{
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/pattern-green-on-black.png');
  background-size: 1536px;
  background-repeat: repeat;
  opacity: .15;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__inner{
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 40px 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__inner--left{ margin: 0 auto 0 0; }
@media (max-width: 900px){
  .hero__inner{ padding: 88px 24px 64px; }
}

.h1-display{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-xl);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-white);
  margin: 0;
  letter-spacing: .01em;
}
.h1-display__accent{ color: var(--color-green); }

/* Signature: harmonic distortion (3rd + 5th harmonic riding the fundamental)
   settling into a pure sine that keeps going — the literal shape of what
   Fluke 1775 measures as THD, resolved. Reads left to right. */
.signal-line{ width: 100%; max-width: 640px; height: 34px; display: block; overflow: visible; }
.signal-line__path{
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference){
  .hero__inner > .eyebrow,
  .hero__inner > .h1-display,
  .hero__inner > p,
  .hero__inner > div{
    opacity: 0;
    animation: hero-rise .6s ease-out forwards;
  }
  .hero__inner > .eyebrow{ animation-delay: .05s; }
  .hero__inner > .h1-display{ animation-delay: .15s; }
  .hero__inner > p{ animation-delay: 2.8s; }
  .hero__inner > div{ animation-delay: 2.95s; }
  .signal-line__path{
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: signal-draw 2.4s ease-in-out .5s forwards;
  }
  @keyframes hero-rise{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }
  @keyframes signal-draw{ to{ stroke-dashoffset: 0; } }
}

/* Scroll reveal — progressive enhancement, content stays visible if JS never runs */
[data-reveal]{ transition: opacity .5s ease-out, transform .5s ease-out; }
html.reveal-ready [data-reveal]{ opacity: 0; transform: translateY(20px); }
html.reveal-ready [data-reveal].is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  html.reveal-ready [data-reveal]{ opacity: 1; transform: none; }
}

.page-hero{ position: relative; overflow: hidden; background: var(--color-black); padding: 96px 40px 80px; }
.page-hero::before{
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/pattern-green-on-black.png');
  background-size: 1536px;
  background-repeat: repeat;
  opacity: .15;
  mix-blend-mode: screen;
  pointer-events: none;
}
.page-hero .container{ position: relative; z-index: 1; }
.page-hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-lg);
  text-transform: uppercase;
  color: var(--color-white);
  margin: 16px 0 0;
  line-height: 1.1;
  max-width: 760px;
}
.page-hero p{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  margin: 20px 0 0;
  max-width: 640px;
}
@media (max-width: 640px){
  .page-hero{ padding: 64px 20px 56px; }
}

/* Servicios hero: a level meter foreshadowing the 3 escalating plans below —
   same reading as Plan 01/02/03, encodes "these are tiers", not decoration. */
.scope-meter{ display: flex; align-items: flex-end; gap: 12px; }
.scope-meter__col{ display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scope-meter__bar{ display: block; width: 18px; background: var(--color-green); border-radius: 1px; }
.scope-meter__n{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .04em; color: var(--text-muted-on-dark); }
@media (max-width: 640px){
  .scope-meter{ display: none; }
}

/* ---------- Buttons (link-styled CTAs) ---------- */
.btn{
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s linear, color .15s linear, border-color .15s linear, opacity .15s linear;
}
.btn-primary{ background: var(--color-green); color: var(--color-black); }
.btn-primary:hover{ background: var(--color-black); color: var(--color-green); }
.btn-primary:active{ opacity: .85; }
.btn-dark{ background: var(--color-black); color: var(--color-white); }
.btn-dark:hover{ opacity: .85; color: var(--color-white); }
.btn-outline{ background: transparent; color: var(--color-white); border-color: var(--border-on-dark); }
.btn-outline:hover{ border-color: var(--color-green); color: var(--color-green); }
.btn-outline:active{ opacity: .85; }
.btn-tab{
  font-family: var(--font-subhead); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-on-light); background: transparent; color: var(--color-black); cursor: pointer;
}
.btn-tab.is-active{ background: var(--color-black); color: var(--color-white); border-color: transparent; }

/* ---------- Section header ---------- */
.section-header{ display: flex; flex-direction: column; gap: 10px; }
.section-header__index{
  font-family: var(--font-subhead); font-weight: 700; font-size: 12px;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-green);
}
.section-header__title{
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-md);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; color: var(--color-black);
}
.section-header--dark .section-header__title{ color: var(--color-white); }

/* ---------- Grids ---------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.grid-3--tight{ gap: 24px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
@media (max-width: 900px){
  .grid-3, .grid-2{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

/* ---------- Sobre mí: bio + trayectoria grids ---------- */
.bio-grid{ display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 64px; align-items: start; }
.trayectoria-grid{ display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 56px; align-items: center; }
@media (max-width: 820px){
  .bio-grid, .trayectoria-grid{ grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- AMR step ---------- */
.amr-step{ display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border-on-light); }
.amr-step--dark{ border-top-color: var(--border-on-dark); }
.amr-step__n{ font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--color-green); }
.amr-step__t{ font-family: var(--font-subhead); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; color: var(--color-black); }
.amr-step--dark .amr-step__t{ color: var(--color-white); }
.amr-step__d{ font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.6; color: var(--text-muted-on-light); margin: 0; }
.amr-step--dark .amr-step__d{ color: var(--text-muted-on-dark); }

/* ---------- Plan card ---------- */
.plan-card{
  background: var(--color-white); color: var(--color-black);
  border: 1px solid var(--border-on-light); border-radius: var(--radius-md);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-card);
}
.plan-card--highlighted{
  background: var(--color-ink); color: var(--color-white);
  border-color: var(--border-on-dark); box-shadow: var(--shadow-card-dark);
}
.plan-card__eyebrow{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.plan-card__name{ font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.plan-card__features{ display: flex; flex-direction: column; gap: 10px; }
.plan-card__features li{ display: flex; gap: 8px; font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.4; }
.plan-card__features li::before{ content: '▸'; color: var(--color-green); }

/* ---------- Individual service card ---------- */
.svc-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 900px){
  .svc-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .svc-grid{ grid-template-columns: 1fr; }
}
.svc-card{
  background: var(--color-white); border: 1px solid var(--border-on-light); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s linear;
}
.svc-card:hover{ border-color: var(--color-green); }
.svc-card .image-slot img{ transition: transform .35s ease; }
.svc-card:hover .image-slot img{ transform: scale(1.04); }
.svc-card__title{ font-family: var(--font-subhead); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; color: var(--color-black); }
.svc-card__desc{ font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--text-muted-on-light); margin: 0; }

/* ---------- Image slot / placeholder ---------- */
.image-slot{
  width: 100%;
  background: var(--color-ink);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.image-slot img{ width: 100%; height: 100%; object-fit: cover; }
.image-slot__label{
  font-family: var(--font-subhead); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted-on-dark);
  text-align: center; padding: 0 16px;
}
.image-slot__play{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; padding-left: 3px;
  pointer-events: none;
}
.ratio-4-3{ aspect-ratio: 4/3; }
.ratio-3-4{ aspect-ratio: 3/4; }
.ratio-16-10{ aspect-ratio: 16/10; }

/* ---------- Image slideshow (auto-rotates when a slot has 2+ photos) ---------- */
.image-slideshow img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.image-slideshow img.is-active{ opacity: 1; }
.image-slideshow__dots{ position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.image-slideshow__dot{ width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); padding: 0; cursor: pointer; }
.image-slideshow__dot.is-active{ background: var(--color-green); }

/* ---------- Case / work item ---------- */
.case-card{ display: flex; flex-direction: column; gap: 16px; }
.case-card .image-slot img{ transition: transform .35s ease; }
.case-card:hover .image-slot img{ transform: scale(1.05); }
.case-card__sector{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-green); }
.case-card__name{ font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--color-black); }
.case-card__desc{ font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--text-muted-on-light); margin: 0; }

.case-row{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.case-row--reverse > :first-child{ order: 2; }
.case-row--reverse > :last-child{ order: 1; }
@media (max-width: 800px){
  .case-row{ grid-template-columns: 1fr; gap: 28px; }
  .case-row--reverse > :first-child,
  .case-row--reverse > :last-child{ order: initial; }
}
.case-row__sector{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.case-row__name{ font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; color: var(--color-black); }
.case-row__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-black); display: flex; align-items: center; gap: 6px; }
.case-row__label--solved{ color: var(--color-green-dim); }
.case-row__label--solved::before{ content: '▸'; color: var(--color-green); }
.case-row__text{ font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--text-muted-on-light); margin: 0; }

.pill{
  font-family: var(--font-subhead); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--color-white); border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill); padding: 10px 20px; display: inline-block;
}

/* ---------- Post / blog card ---------- */
.post-card{ display: flex; flex-direction: column; gap: 16px; }
.post-card__meta{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.post-card__title{ font-family: var(--font-subhead); font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--color-black); }
.post-card__excerpt{ font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--text-muted-on-light); }
.post-card__title:hover{ color: var(--color-green-dim); }

/* ---------- Post featured (most recent, blog index) ---------- */
.post-featured{ display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; color: inherit; }
.post-featured__body{ display: flex; flex-direction: column; gap: 10px; }
.post-featured__flag{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-black); }
.post-featured__title{ font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.15; color: var(--color-black); margin: 4px 0 0; }
.post-featured__excerpt{ font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--text-muted-on-light); margin: 4px 0 0; }
.post-featured:hover .post-featured__title{ color: var(--color-green-dim); }
@media (max-width: 800px){
  .post-featured{ grid-template-columns: 1fr; gap: 24px; }
}

.post-teaser{ background: var(--color-black); border: 1px solid var(--border-on-dark); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.post-teaser__tag{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.post-teaser__title{ font-family: var(--font-subhead); font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--color-white); }

/* ---------- Social card ---------- */
.social-card{
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border: 1px solid var(--border-on-light); border-radius: var(--radius-md); color: var(--color-black);
  transition: border-color .15s linear;
}
.social-card:hover{ border-color: var(--color-green); }
.social-card__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.social-card__handle{ font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--color-black); }
.social-card__desc{ font-family: var(--font-body); font-weight: 300; font-size: 14px; color: var(--text-muted-on-light); }
.social-card--dark{ background: var(--color-black); border-color: var(--border-on-dark); color: var(--color-white); }
.social-card--dark .social-card__handle{ color: var(--color-white); }
.social-card--dark .social-card__desc{ color: var(--text-muted-on-dark); }
.social-card--dark:hover{ border-color: var(--color-green); }

.video-embed{ position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-on-light); background: var(--color-black); }
.video-embed iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--dark{ border-color: var(--border-on-dark); }
.redes-video-title--dark{ color: var(--color-white); }

/* ---------- CTA banner ---------- */
.cta-banner{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.cta-banner__text{
  font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase;
  max-width: 560px; line-height: 1.2;
}
.cta-banner--big .cta-banner__text{ font-size: 28px; color: var(--color-white); }

/* ---------- Quote ---------- */
/* ---------- Credentials ledger (Sobre mí) ---------- */
.credentials{ display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: 1px solid var(--border-on-light); }
.credentials__group{ display: flex; flex-direction: column; gap: 6px; }
.credentials__cat{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.credentials__item{ font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.5; color: var(--color-black); }

.quote-block{ max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 20px; }
.quote-block__text{ font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.35; color: var(--color-white); text-transform: uppercase; }
.quote-block__attr{ font-family: var(--font-subhead); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-green); }

/* ---------- Contact bar ---------- */
.contact-bar{ display: flex; gap: 32px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--border-on-dark); }
.contact-bar__item{ display: flex; flex-direction: column; gap: 4px; }
.contact-bar__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.contact-bar__value{ font-family: var(--font-body); font-weight: 300; font-size: 14px; color: var(--color-white); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--color-black); color: var(--color-white); border-top: 1px solid var(--border-on-dark); }
.site-footer__inner{ max-width: var(--container-max); margin: 0 auto; padding: 64px 40px 32px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__top{ display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.site-footer__brand{ display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.site-footer__brand img{ height: 32px; width: 210px; object-fit: contain; aspect-ratio: 3560/542; }
.site-footer__brand p{ font-family: var(--font-body); font-weight: 300; font-size: 14px; line-height: 1.6; color: var(--text-muted-on-dark); margin: 0; }
.site-footer__col{ display: flex; flex-direction: column; gap: 10px; }
.site-footer__col-label{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.site-footer__col a{ color: var(--color-white); font-family: var(--font-body); font-weight: 300; font-size: 14px; }
.site-footer__legal{ font-family: var(--font-body); font-weight: 300; font-size: 12px; color: var(--text-muted-on-dark); }
.site-footer--simple .site-footer__inner{ padding: 48px 40px 32px; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer--simple img{ height: 28px; width: 184px; object-fit: contain; aspect-ratio: 3560/542; }

@media (max-width: 640px){
  .site-footer__inner{ padding: 48px 20px 24px; }
}

/* ---------- FAQ accordion ---------- */
.faq{ display: flex; flex-direction: column; border-top: 1px solid var(--border-on-light); }
.faq-item{ border-bottom: 1px solid var(--border-on-light); }
.faq-item summary{
  font-family: var(--font-subhead); font-weight: 700; font-size: 15px; color: var(--color-black);
  padding: 18px 2px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: '+'; font-family: var(--font-display); font-size: 20px; color: var(--color-green); flex-shrink: 0; }
.faq-item[open] summary::after{ content: '\2212'; }
.faq-item p{ font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--text-muted-on-light); margin: 0 0 20px; padding: 0 2px; }

/* ---------- Contact page ---------- */
.contact-layout{ display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 64px; align-items: start; }
@media (max-width: 900px){
  .contact-layout{ grid-template-columns: 1fr; }
}
.contact-form{ display: flex; flex-direction: column; gap: 20px; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px){
  .form-row{ grid-template-columns: 1fr; }
}
.form-field{ display: flex; flex-direction: column; gap: 6px; }
.contact-side{ display: flex; flex-direction: column; gap: 32px; background: var(--color-ink); border-radius: var(--radius-md); padding: 32px; }
.contact-side__item{ display: flex; flex-direction: column; gap: 4px; }
.contact-side__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.contact-side__value{ font-family: var(--font-body); font-weight: 300; font-size: 15px; color: var(--color-white); }
.contact-side__socials{ display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border-on-dark); }
.contact-sent{ background: var(--color-ink); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.contact-sent__title{ font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--color-white); }
.contact-sent__text{ font-family: var(--font-body); font-weight: 300; font-size: 15px; color: var(--text-muted-on-dark); }
.contact-error{ font-family: var(--font-body); font-weight: 300; font-size: 14px; color: #ff6b6b; }
.contact-form__note{ font-family: var(--font-body); font-weight: 300; font-size: 13px; color: var(--text-muted-on-light); }

/* ---------- Post detail: TL;DR, CTA temprano, compartir ---------- */
.post-tldr{ max-width: 760px; margin: 0 auto 40px; background: var(--color-ink); border-radius: var(--radius-md); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.post-tldr__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.post-tldr__text{ font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--color-white); margin: 0; }

.post-inline-cta{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--color-ink); border-radius: var(--radius-md); padding: 18px 20px; margin: 0 0 28px; }
.post-article .post-inline-cta__text{ font-family: var(--font-body); font-weight: 300; font-size: 14px; color: var(--color-white); margin: 0; }
.post-inline-cta__link{ font-family: var(--font-subhead); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-green); white-space: nowrap; }
.post-inline-cta__link:hover{ color: var(--color-green-dim); }

.post-share{ display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--border-on-light); }
.post-share__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted-on-light); }
.post-share a, .post-share__copy{
  font-family: var(--font-subhead); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-black); background: none; border: none; padding: 0; cursor: pointer;
}
.post-share a:hover, .post-share__copy:hover{ color: var(--color-green-dim); }

/* ---------- Post detail: resolve box / tags / sources ---------- */
.post-resolve{ border-top: 1px solid var(--border-on-light); padding-top: 16px; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.post-resolve__label{ font-family: var(--font-subhead); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-green); }
.post-article .post-resolve__text{ font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--text-muted-on-light); margin: 0; }

.post-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.post-tag{ font-family: var(--font-body); font-weight: 300; font-size: 12px; color: var(--text-muted-on-light); border: 1px solid var(--border-on-light); border-radius: var(--radius-sm); padding: 4px 10px; }

.post-sources{ display: flex; flex-wrap: wrap; gap: 20px; }
.post-source-link{
  font-family: var(--font-subhead); font-weight: 700; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-black);
}
.post-source-link:hover{ color: var(--color-green-dim); }
.post-source-link--dark{ color: var(--color-white); }
.post-source-link--dark:hover{ color: var(--color-green); }

/* ---------- Blog hub (reference guide) ---------- */
.hub-title{ font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-md); text-transform: uppercase; color: var(--color-white); margin: 0; line-height: 1.15; max-width: 900px; }
.hub-intro{ font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--text-muted-on-dark); margin: 0; max-width: 760px; }
.hub-grid{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px){
  .hub-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .hub-grid{ grid-template-columns: 1fr; }
}
.hub-card{
  background: var(--color-black); border: 1px solid var(--border-on-dark); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s linear;
}
.hub-card:hover{ border-color: var(--color-green); }
.hub-card__name{ font-family: var(--font-subhead); font-weight: 700; font-size: 14px; color: var(--color-white); }
.hub-card__desc{ font-family: var(--font-body); font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--text-muted-on-dark); }

/* ---------- Blog post article ---------- */
/* ---------- Reading progress (blog posts) ---------- */
.read-progress{ position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.read-progress__bar{ height: 100%; width: 0%; background: var(--color-green); }
@media (prefers-reduced-motion: no-preference){
  .read-progress__bar{ transition: width .1s linear; }
}

.post-article{ max-width: 760px; margin: 0 auto; }
.post-article h2{ font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--color-black); margin: 40px 0 16px; line-height: 1.2; }
.post-article h3{ font-family: var(--font-subhead); font-weight: 700; font-size: 17px; color: var(--color-black); margin: 32px 0 12px; }
.post-article p{ font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--color-black); margin: 0 0 20px; }
.post-article ul{ display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; padding-left: 0; }
.post-article ul li{ display: flex; gap: 8px; font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.5; }
.post-article ul li::before{ content: '▸'; color: var(--color-green); flex-shrink: 0; }
.post-article strong{ font-weight: 700; }
.post-article a{ text-decoration: underline; }
