/*
═══════════════════════════════════════════════════════
  EZTO® — Sistema de diseño
  Principios: Google Material Design 3 + Identidad EZTO
───────────────────────────────────────────────────────
  Tipografías:
    --font-display  Big Shoulders Display  (impacto / reemplaza Druk Wide)
    --font-ui       Space Grotesk          (sistema/cuerpo)

  Espaciado: grid 8dp (4 · 8 · 12 · 16 · 24 · 32 · 48 · 64)
  Breakpoints MD3:
    compact   0–599px   (mobile)
    medium    600–904px (tablet)
    expanded  905px+    (desktop)
═══════════════════════════════════════════════════════
*/

/* ─── TOKENS DE DISEÑO ─── */
:root {
  /* Tipografías */
  --font-display: 'Big Shoulders Display', 'Anton', 'Arial Black', Impact, sans-serif;
  --font-ui: 'Space Grotesk', system-ui, sans-serif;

  /* Paleta */
  --color-bg: #0A0A0A;
  --color-surface: #111111;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-white: #FFFFFF;
  --color-red: #CC1B1B;
  --color-muted: rgba(255, 255, 255, 0.45);
  --color-muted-low: rgba(255, 255, 255, 0.25);

  /* Espaciado 8dp */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Header */
  --header-h: 64px;

  /* Transición */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Offset para secciones con scroll-margin (header fijo) */
section[id] {
  scroll-margin-top: var(--header-h);
}


/* ══════════════════════════════════════════
   HEADER FIJO
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
}

/* Logo */
.header-logo {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  flex-shrink: 0;
}

/* Nav desktop */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.header-nav a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s var(--ease);
  min-height: 48px;
  /* touch target MD3 */
  display: inline-flex;
  align-items: center;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-white);
}

/* Divisor visual IG | BE | YT */
.header-nav .nav-divider {
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

/* Redes — siempre visibles */
.header-social {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header-social a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s var(--ease);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.header-social a:hover {
  color: var(--color-white);
}

/* ── Botón idioma ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: border-color 0.2s, color 0.2s;
  min-height: 28px;
}

.lang-toggle:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.lang-sep {
  opacity: 0.35;
  font-weight: 300;
}

/* Idioma activo destacado */
.lang-toggle .lang-es,
.lang-toggle .lang-en {
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
}

[lang="es"] .lang-toggle .lang-es,
[lang="en"] .lang-toggle .lang-en {
  opacity: 1;
  color: var(--color-white);
}

.lang-toggle--mobile {
  margin-top: var(--sp-4);
  align-self: flex-start;
  font-size: 12px;
  padding: 8px 16px;
}

/* Hamburger — solo mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: var(--sp-3);
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-white);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menú mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-white);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.mobile-menu a:hover {
  opacity: 1;
}

.mobile-menu a.social-link {
  font-size: 14px;
  font-family: var(--font-ui);
  letter-spacing: 0.16em;
  color: var(--color-muted);
}


/* ══════════════════════════════════════════
   CONTENIDO PRINCIPAL
══════════════════════════════════════════ */
.site-main {
  padding-top: var(--header-h);
}


/* ══════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════ */
#home,
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  overflow: hidden;
}

/* Cada slide ocupa todo el contenedor */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transform: scale(1.03);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Dots navegación */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}

.hero-dot.is-active {
  background: var(--color-white);
  border-color: var(--color-white);
}

/* ── SLIDE 1: estilos originales ── */
.hero-slide--1 {}

/* ══════════════════════════════════════════
   SECCIÓN: HERO (#home)
══════════════════════════════════════════ */
#home {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(10, 10, 10, 0.97) 0%,
      rgba(10, 10, 10, 0.85) 45%,
      rgba(10, 10, 10, 0.25) 72%,
      rgba(10, 10, 10, 0.02) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-7) var(--sp-8);
  max-width: 760px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 7vw, 108px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
}

.hero-headline .red {
  color: var(--color-red);
}

.hero-headline .nowrap {
  white-space: nowrap;
}

.hero-subline {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
  opacity: 0.68;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--color-white);
  opacity: 0.25;
  margin-bottom: var(--sp-5);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
  min-height: 48px;
}

.hero-cta:hover {
  opacity: 1;
}

.hero-cta .arrow {
  color: var(--color-red);
  font-size: 16px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.hero-cta--secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 var(--sp-4);
  opacity: 0.85;
}

.hero-cta--secondary:hover {
  opacity: 1;
  border-color: var(--color-red);
}

/* Etiquetas laterales */
.hero-label {
  position: absolute;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.45;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-label--left {
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

.hero-label--bottom {
  left: var(--sp-4);
  bottom: var(--sp-6);
  transform: rotate(180deg);
}

/* Barra roja lateral derecha */
.hero-bar {
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 100px;
  background: var(--color-red);
  z-index: 2;
}

/* Deco 404 */
.hero-deco-404 {
  position: absolute;
  right: var(--sp-8);
  top: 50%;
  transform: translateY(-55%);
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--color-white);
  opacity: 0.40;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: right;
}

/* Bottom right deco */
.hero-deco-br {
  position: absolute;
  right: var(--sp-6);
  bottom: var(--sp-5);
  z-index: 2;
  text-align: right;
}

.hero-deco-br p {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.50;
  line-height: 1.5;
}

.hero-barcode {
  display: flex;
  gap: 1.5px;
  justify-content: flex-end;
  margin-top: var(--sp-2);
}

.hero-barcode span {
  display: inline-block;
  background: var(--color-white);
  opacity: 0.35;
  height: 12px;
}


/* ══════════════════════════════════════════
   SLIDE 2: No compres identidad
   (usa la misma estructura que slide 1)
══════════════════════════════════════════ */
:root {
  --color-yellow: #D4A000;
}

/* Imagen de fondo slide 2 */
.s2-bg {
  background-image: url('images/hero-slide2.jpg');
  background-position: center right;
}

/* Barra lateral amarilla en lugar de roja */
.s2-bar {
  background: var(--color-yellow) !important;
}

/* Pretítulo encima del headline */
.s2-pretitle {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

/* Acento amarillo dentro del headline y pretítulo */
.s2-yellow {
  color: var(--color-yellow);
}

/* CTA flecha amarilla en slide 2 */
.s2-arrow {
  color: var(--color-yellow) !important;
}

/* Decorativo derecho en amarillo */
.s2-deco-color {
  color: var(--color-yellow) !important;
  opacity: 0.45 !important;
}


/* ══════════════════════════════════════════
   SLIDE 3: David x EZTO — Brand Guidelines
══════════════════════════════════════════ */

/* Imagen de fondo slide 3 */
.hero-slide--3 .hero-bg {
  background-image: url('images/hero-slide3.jpg');
  background-position: center right;
}

/* Sidebar rojo izquierdo — posición absoluta sobre el overlay */
.s3-red-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 52px;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
  z-index: 4;
}

.s3-barcode {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  align-items: center;
}

.s3-barcode span {
  display: block;
  width: 18px;
  background: rgba(255, 255, 255, 0.35);
}

.s3-sidebar-label {
  font-family: var(--font-ui);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.90;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Top bar */
.s3-top-bar {
  position: absolute;
  top: 0;
  left: 52px;
  right: 0;
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 3;
}

.s3-top-left,
.s3-top-right {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
}

/* Contenido principal — desplazado por la barra roja */
.s3-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-7) var(--sp-8) var(--sp-7) calc(52px + var(--sp-8));
  flex: 1;
  max-width: 760px;
}

/* Headline slide 3: sin uppercase para capitalización natural */
.s3-headline {
  text-transform: none !important;
}

/* Subtítulo en monospace como slide 2 */
.s3-subline {
  font-family: 'Courier New', monospace !important;
  font-size: 13px !important;
  letter-spacing: 0.04em;
  line-height: 1.9 !important;
  opacity: 0.55;
}

/* Bottom bar */
.s3-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 52px;
  right: 0;
  height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 3;
}

.s3-bottom-bar span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive slide 3 */
@media (max-width: 904px) {
  .s3-logo {
    width: clamp(200px, 50vw, 380px);
  }

  .s3-content {
    padding: 56px 32px 56px calc(52px + 24px);
  }
}

@media (max-width: 599px) {
  .s3-red-bar {
    width: 100%;
    height: 44px;
    flex-direction: row;
    top: 0;
    bottom: auto;
  }

  .s3-sidebar-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .s3-barcode {
    flex-direction: row;
  }

  .s3-barcode span {
    width: 1.5px;
    height: 14px;
  }

  .s3-top-bar,
  .s3-bottom-bar {
    left: 0;
  }

  .s3-content {
    padding: 96px 16px 60px 16px;
    max-width: 100%;
  }

  .s3-headline {
    font-size: clamp(40px, 12vw, 64px) !important;
  }
}


/* ══════════════════════════════════════════
   SECCIÓN: MANIFIESTO (#manifiesto)
══════════════════════════════════════════ */
#manifiesto {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ── Cabecera ── */
.manifesto-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: end;
  padding: var(--sp-8) var(--sp-8) var(--sp-7);
  border-bottom: 1px solid var(--color-border);
  max-width: 1400px;
  margin: 0 auto;
}

.manifesto-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-4);
}

.manifesto-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
}

.manifesto-intro {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 460px;
  align-self: end;
}

/* ── Lista de ítems ── */
.manifesto-list {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.manifesto-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-7) var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

/* Ítems en columna derecha sin borde derecho */
.manifesto-row:nth-child(even) {
  border-right: none;
}

/* Último par sin borde inferior */
.manifesto-row:nth-last-child(-n+2):not(.manifesto-row--last) {
  border-bottom: 1px solid var(--color-border);
}

.manifesto-row:hover {
  background-color: var(--color-surface);
}

/* Ítem 11 — full width */
.manifesto-row--last {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
}

.mrow-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--color-white);
  opacity: 0.12;
  user-select: none;
  padding-top: 4px;
}

.mrow-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.mrow-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-white);
  margin: 0;
}

.mrow-body {
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 680px;
  margin: 0;
}

.mrow-body em {
  font-style: italic;
  color: var(--color-red);
}

.mrow-body strong {
  color: var(--color-white);
  font-weight: 600;
}

.mrow-body--accent {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  color: var(--color-red);
  letter-spacing: 0.02em;
}

.mrow-body--large {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mrow-red {
  color: var(--color-red);
}

/* ── Responsive ── */
@media (max-width: 904px) {
  .manifesto-header {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding: var(--sp-7) var(--sp-5) var(--sp-6);
  }

  .manifesto-list {
    grid-template-columns: 1fr;
  }

  .manifesto-row {
    grid-template-columns: 56px 1fr;
    gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-5);
    border-right: none;
  }

  .manifesto-row--last {
    border-bottom: none;
  }

  .mrow-num {
    font-size: 28px;
  }
}

@media (max-width: 599px) {
  .manifesto-header {
    padding: var(--sp-6) var(--sp-4) var(--sp-5);
  }

  .manifesto-row {
    grid-template-columns: 44px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-4);
  }

  .mrow-num {
    font-size: 22px;
  }

  .mrow-title {
    font-size: 18px;
  }
}



/* ══════════════════════════════════════════
   SECCIÓN PLACEHOLDER (experimentos, etc.)
══════════════════════════════════════════ */
.section-placeholder {
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-8) var(--sp-8);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.section-placeholder .section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-4);
}

.section-placeholder .section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 640px;
  margin-bottom: var(--sp-5);
}

.section-placeholder .section-body {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 480px;
}

.section-placeholder .section-num {
  position: absolute;
  right: var(--sp-8);
  bottom: var(--sp-6);
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  color: var(--color-white);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
}


/* ══════════════════════════════════════════
   SECCIÓN: PENSAMIENTOS (#pensamientos)
══════════════════════════════════════════ */
.pensamientos-section {
  position: relative;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-8) 64px calc(var(--sp-8) + 56px);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

/* ── Encabezado de sección: 2 columnas ── */
.pens-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: end;
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--color-border);
}

.pens-header-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.pens-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
}

/* ── Título de sección ── */
.pens-section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
}

.pens-title-red {
  color: var(--color-red);
}

/* ── Columna derecha del header ── */
.pens-header-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-bottom: var(--sp-2);
}

.pens-header-desc {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 480px;
}

.pens-header-cta {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: border-color 0.2s;
  align-self: flex-start;
}

.pens-header-cta:hover {
  border-color: var(--color-red);
}

.pens-header-cta-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pens-header-cta-action {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

/* ── Grid de 3 cards ── */
.pens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ── Card individual ── */
.pens-card {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: background 0.2s, border-color 0.2s;
}

.pens-card:hover {
  background: var(--color-bg);
  border-color: var(--color-red);
}

/* Imagen */
.pens-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.pens-card-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pens-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pens-card:hover .pens-card-img img {
  transform: scale(1.04);
}

.pens-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  position: relative;
}

.pens-card-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    var(--color-border) 12px,
    var(--color-border) 13px
  );
}

/* Cuerpo de la card */
.pens-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5) var(--sp-6) var(--sp-5);
}

/* Meta: categoría + fecha */
.pens-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.pens-card-cat {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
}

.pens-card-date {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* Título */
.pens-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}

.pens-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.pens-card-title a:hover {
  color: var(--color-red);
}

/* Excerpt */
.pens-card-excerpt {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: var(--sp-5);
}

/* Footer: tipo + CTA */
.pens-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-4);
  margin-top: auto;
}

.pens-card-type {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pens-card-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
}

.pens-card-cta:hover {
  color: var(--color-red);
}

/* ── Barra de marca inferior ── */
.pens-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  border-top: 1px solid var(--color-border);
}

.pens-bottom-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.pens-globe-icon {
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.pens-brand-name {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.pens-divider {
  color: var(--color-border);
  font-size: 11px;
}

.pens-est {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.pens-red-line {
  width: 48px;
  height: 2px;
  background: var(--color-red);
}

/* ── Responsive: tablet ── */
@media (max-width: 904px) {
  .pensamientos-section {
    padding: 64px 40px calc(var(--sp-7) + 56px);
  }

  .pens-section-header {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .pens-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .pens-card-img-link {
    aspect-ratio: 16 / 7;
  }

  .pens-bottom-bar {
    padding: 0 40px;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 599px) {
  .pensamientos-section {
    padding: 48px 16px calc(var(--sp-6) + 56px);
  }

  .pens-section-header {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .pens-section-title {
    font-size: clamp(28px, 10vw, 48px);
  }

  .pens-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .pens-card-body {
    padding: var(--sp-4);
  }

  .pens-bottom-bar {
    padding: 0 16px;
  }
}

/* ── Modo claro: overrides ── */
[data-theme="light"] .pens-card-title {
  color: var(--color-white);
}

[data-theme="light"] .pens-card-cta {
  color: var(--color-white);
}

[data-theme="light"] .pens-ver-todos {
  color: var(--color-white);
}

/* ── (bloque cerrado: sección pensamientos) */

/* Placeholder temporal — mantener mientras no hay posts */
.pens-card--placeholder .pens-card-img-placeholder {
  min-height: 200px;
}



/* ══════════════════════════════════════════
   SECCIÓN: PORTFOLIO / LAB × EXPERIMENTOS
══════════════════════════════════════════ */
.portfolio-section {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.portfolio-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  align-items: end;
}

.portfolio-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-4);
}

.portfolio-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 90px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.portfolio-headline .pf-red {
  color: var(--color-red);
}

.portfolio-intro {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: var(--sp-5);
}

.portfolio-cta {
  margin-top: 0;
}

/* ── Grid 3 cards ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 1;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-7) var(--sp-6);
  border-right: 1px solid var(--color-border);
  position: relative;
  transition: background 0.3s var(--ease);
}

.portfolio-card:last-child {
  border-right: none;
}

.portfolio-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-card--accent {
  background: rgba(204, 27, 27, 0.03);
}

.portfolio-card--accent:hover {
  background: rgba(204, 27, 27, 0.06);
}

.pcard-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}

.pcard-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-white);
  opacity: 0.07;
  user-select: none;
}

.pcard-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
}

.pcard-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}

.pcard-body {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-muted);
  flex: 1;
}

.pcard-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
}

.pcard-line {
  flex: 1;
  height: 1px;
  background: var(--color-red);
  opacity: 0.35;
}

.pcard-year {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-low);
}

/* ── Cards dinámicas con imagen destacada ── */
.portfolio-card--dynamic {
  text-decoration: none;
  color: inherit;
  padding: 0;
  overflow: hidden;
}

.pcard-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
}

.pcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: transform 0.5s var(--ease), filter 0.4s;
}

.portfolio-card--dynamic:hover .pcard-image img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.pcard-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card--dynamic:hover .pcard-img-overlay {
  opacity: 1;
}

.pcard-img-overlay span {
  font-size: 28px;
  color: #fff;
}

.pcard-no-img {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--color-surface),
    var(--color-surface) 8px,
    var(--color-border) 8px,
    var(--color-border) 9px
  );
}

.portfolio-card--dynamic .pcard-top {
  margin-top: var(--sp-4);
  padding: 0 var(--sp-5);
  border-bottom: none;
  margin-bottom: var(--sp-3);
}

.portfolio-card--dynamic .pcard-title {
  padding: 0 var(--sp-5);
  margin-bottom: 0;
}

.portfolio-card--dynamic .pcard-footer {
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
  margin-top: auto;
}

/* ── Bottom bar ── */
.portfolio-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--sp-3) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.portfolio-bottom-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
}

.pb-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.30;
}

.pb-sep {
  color: var(--color-white);
  opacity: 0.15;
  font-size: 11px;
}

.pb-est {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  opacity: 0.60;
}

.pb-barcode {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
}

.pb-barcode span {
  display: inline-block;
  background: var(--color-white);
  opacity: 0.25;
  width: 1.5px;
}

.pb-crosshair {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-white);
  opacity: 0.25;
}

/* ── Responsive: tablet ── */
@media (max-width: 904px) {
  .portfolio-header {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding: var(--sp-7) var(--sp-6) var(--sp-5);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: var(--sp-6) var(--sp-6);
  }

  .portfolio-card:last-child {
    border-bottom: none;
  }

  .portfolio-bottom {
    padding: var(--sp-3) var(--sp-6);
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 599px) {
  .portfolio-header {
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
  }

  .portfolio-card {
    padding: var(--sp-5) var(--sp-4);
  }

  .pcard-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .portfolio-bottom {
    padding: var(--sp-3) var(--sp-4);
  }

  .pb-tag {
    display: none;
  }
}


/* ══════════════════════════════════════════
   CARRUSEL BEHANCE
══════════════════════════════════════════ */
.behance-carousel {
  border-top: 1px solid var(--color-border);
  padding: var(--sp-7) var(--sp-8);
  overflow: hidden;
}

.bc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.bc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-red);
}

.bc-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.bc-counter {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--color-muted);
  min-width: 52px;
}

.bc-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-white);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.bc-btn:hover:not(:disabled) {
  border-color: var(--color-red);
  color: var(--color-red);
}

.bc-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.bc-track-wrap {
  overflow: hidden;
}

.bc-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

/* Tarjeta */
.bc-card {
  flex: 0 0 calc((100% - 32px) / 3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
}

.bc-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface);
}

.bc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s, transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  display: block;
}

.bc-card:hover .bc-img-wrap img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.bc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.bc-card:hover .bc-overlay {
  opacity: 1;
}

.bc-overlay-arrow {
  font-size: 28px;
  color: #fff;
}

.bc-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.bc-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-year {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.bc-no-img {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--color-surface),
    var(--color-surface) 8px,
    var(--color-border) 8px,
    var(--color-border) 9px
  );
}

/* Skeleton loading */
.bc-skeleton {
  flex: 0 0 calc((100% - 32px) / 3);
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    rgba(255,255,255,0.04) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: bc-shimmer 1.4s infinite;
  border-radius: 0;
}

@keyframes bc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive carrusel */
@media (max-width: 904px) {
  .behance-carousel {
    padding: var(--sp-6) var(--sp-5);
  }

  .bc-card,
  .bc-skeleton {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 599px) {
  .behance-carousel {
    padding: var(--sp-5) var(--sp-4);
  }

  .bc-card,
  .bc-skeleton {
    flex: 0 0 85%;
  }
}

/* Modo claro */
[data-theme="light"] .bc-skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    rgba(0,0,0,0.04) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: bc-shimmer 1.4s infinite;
}

/* ══════════════════════════════════════════
   SECCIÓN: CONTACTO (#contacto)
══════════════════════════════════════════ */
#contacto {
  border-top: 1px solid var(--color-border);
  padding: var(--sp-8) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.contacto-left .contact-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-4);
}

.contacto-left .contact-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
}

/* CTA con ícono — usado en contacto y pensamientos */
.pens-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}

.pens-cta:hover {
  border-color: var(--color-red);
  background: rgba(204, 27, 27, 0.06);
}

.pens-cta-icon {
  width: 22px;
  height: 22px;
  color: var(--color-white);
  opacity: 0.70;
  flex-shrink: 0;
}

.pens-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pens-cta-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.pens-cta-handle {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-white);
}

.contact-cta {
  margin-top: var(--sp-5);
}

.contact-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-top: var(--sp-4);
  max-width: 320px;
}

.contact-reply {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-red);
  margin-top: var(--sp-4);
  max-width: 320px;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-6);
}

.labexp-cta {
  margin-top: var(--sp-5);
}

.contacto-right {
  padding-top: var(--sp-3);
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 14px;
  padding: var(--sp-3) 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-input:focus {
  border-color: var(--color-red);
}

.form-input::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: var(--sp-6);
}

.form-select option {
  background: #1a1a1a;
  color: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
  background: var(--color-red);
  color: #ffffff;
  border: none;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--sp-4) var(--sp-6);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
  min-height: 48px;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  display: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: var(--sp-3) var(--sp-4);
  border-left: 2px solid;
}

.form-status.is-visible {
  display: block;
}

.form-success {
  border-color: #4caf50;
  color: #4caf50;
}

.form-error {
  border-color: var(--color-red);
  color: var(--color-red);
}

.social-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
  min-height: 56px;
  transition: border-color 0.2s;
}

.social-link-item:hover {
  border-color: var(--color-red);
}

.social-link-item .sli-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

.social-link-item .sli-arrow {
  font-size: 16px;
  color: var(--color-red);
  opacity: 0;
  transition: opacity 0.2s;
}

.social-link-item:hover .sli-arrow {
  opacity: 1;
}


/* ══════════════════════════════════════════
   FOOTER GLOBAL
══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.site-footer span {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.35;
}

.site-footer .footer-globe {
  font-size: 13px;
  opacity: 0.3;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.35;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}


/* ══════════════════════════════════════════
   RESPONSIVE — MEDIUM (600–904px)
══════════════════════════════════════════ */
@media (max-width: 904px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    padding: 0 var(--sp-5);
  }

  /* Header: ocultar nav, mostrar hamburger */
  .header-nav {
    display: none;
  }

  .header-social {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-content {
    padding: var(--sp-6) var(--sp-5);
    max-width: 100%;
  }

  .hero-label--left,
  .hero-label--bottom,
  .hero-bar,
  .hero-deco-404,
  .hero-deco-br {
    display: none;
  }


  /* Contacto */
  #contacto {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-7) var(--sp-5);
  }

  .contacto-right {
    padding-top: 0;
  }

  /* Placeholders */
  .section-placeholder {
    padding: var(--sp-7) var(--sp-5);
  }
}


/* ══════════════════════════════════════════
   RESPONSIVE — COMPACT (0–599px / mobile)
══════════════════════════════════════════ */
@media (max-width: 599px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    padding: 0 var(--sp-4);
  }

  /* Hero */
  .hero-headline {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-subline {
    font-size: 13px;
  }

  .hero-content {
    padding: var(--sp-5) var(--sp-4);
  }

  #home .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.75) 100%);
  }


  .item-title {
    font-size: 16px;
  }

  .item-highlight {
    font-size: 20px;
  }

  .las-incendia {
    font-size: 40px;
  }

  .wakeup-wrap {
    margin: var(--sp-3) 0;
    width: 100%;
  }

  /* Contacto */
  #contacto {
    padding: var(--sp-6) var(--sp-4);
    gap: var(--sp-5);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }

  /* Placeholders */
  .section-placeholder {
    padding: var(--sp-6) var(--sp-4);
    min-height: 50svh;
  }

  .section-placeholder .section-num {
    display: none;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-4);
  }
}


/* ══════════════════════════════════════════
   BOTÓN TOGGLE DE TEMA
══════════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  transition: border-color 0.2s, color 0.2s;
  min-height: 28px;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.theme-dark-label,
.theme-light-label {
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
  font-size: 8px;
}

.theme-sep {
  opacity: 0.35;
  font-weight: 300;
}

/* Indicador de tema activo */
[data-theme="dark"] .theme-toggle .theme-dark-label,
[data-theme="light"] .theme-toggle .theme-light-label {
  opacity: 1;
  color: var(--color-white);
}

/* Mobile toggles wrapper */
.mobile-toggles {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  align-items: center;
}

.theme-toggle--mobile {
  font-size: 11px;
  padding: 8px 14px;
  min-height: 40px;
}


/* ══════════════════════════════════════════
   MODO CLARO — LIGHT MODE
══════════════════════════════════════════ */

/* ── Tokens: override para modo claro ── */
[data-theme="light"] {
  --color-bg: #F3F2EE;
  --color-surface: #EAEAE4;
  --color-border: rgba(0, 0, 0, 0.10);
  --color-white: #0D0D0D;
  --color-muted: rgba(0, 0, 0, 0.65);
  --color-muted-low: rgba(0, 0, 0, 0.42);
  /* --color-red se mantiene igual */
}

/* ── El hero siempre oscuro (slides con imagen de fondo) ── */
[data-theme="light"] #home {
  --color-bg: #0A0A0A;
  --color-white: #FFFFFF;
  --color-muted: rgba(255, 255, 255, 0.45);
  --color-muted-low: rgba(255, 255, 255, 0.25);
  --color-border: rgba(255, 255, 255, 0.08);
}

/* ── Header ── */
[data-theme="light"] .lang-toggle,
[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .lang-toggle:hover,
[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
}

/* ── Pensamientos — cards modo claro ── */
[data-theme="light"] .pens-cta {
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .pens-cta:hover {
  border-color: var(--color-red);
  background: rgba(204, 27, 27, 0.05);
}

[data-theme="light"] .pens-cta-label {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .pens-cta-handle {
  color: var(--color-white);
}

[data-theme="light"] .pens-bottom-bar {
  border-top-color: rgba(0, 0, 0, 0.09);
}

/* ── Portfolio section ── */
[data-theme="light"] .portfolio-card:hover {
  background: rgba(0, 0, 0, 0.025);
}

/* ── Formulario de contacto — modo claro ── */
[data-theme="light"] .form-input {
  color: #0D0D0D;
  border-bottom-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .form-input:focus {
  border-bottom-color: var(--color-red);
}

[data-theme="light"] .form-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="light"] .form-select option {
  background: #F3F2EE;
  color: #0D0D0D;
}

[data-theme="light"] .portfolio-card--accent {
  background: rgba(204, 27, 27, 0.04);
}

[data-theme="light"] .portfolio-card--accent:hover {
  background: rgba(204, 27, 27, 0.08);
}

/* ── Footer ── */
/* .site-footer ya usa var(--color-white) con opacity, funciona solo */

/* ── Manifiesto: footer cover "EZTO®" en rojo ── */

/* ══════════════════════════════════════
   SECCIÓN: SOBRE MÍ
══════════════════════════════════════ */

.sobremi-section {
  background-color: var(--color-bg);
  padding: var(--sp-8) var(--sp-6);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.sobremi-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

/* ── Foto ── */
.sobremi-photo-col {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.sobremi-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sobremi-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%);
}

.sobremi-photo-tag {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--color-red);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.sobremi-photo-tag-sep {
  opacity: 0.6;
}

/* ── Contenido ── */
.sobremi-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-top: var(--sp-3);
}

.sobremi-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
}

.sobremi-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
}

.sobremi-red {
  color: var(--color-red);
}

.sobremi-body {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
  max-width: 560px;
}

.sobremi-body strong {
  color: var(--color-white);
  font-weight: 600;
}

/* ── Propuesta de valor ── */
.sobremi-value {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--color-red);
}

.sobremi-value-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--sp-3);
}

.sobremi-value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sobremi-value-list li {
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  color: var(--color-white);
  padding-left: var(--sp-4);
  position: relative;
}

.sobremi-value-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: 400;
}

/* ── Stats ── */
.sobremi-stats {
  display: flex;
  gap: var(--sp-7);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sobremi-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--color-white);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  max-width: 120px;
}

/* ── Link externo ── */
.sobremi-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid var(--color-red);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sobremi-link:hover {
  color: var(--color-red);
}

/* ── Barra inferior decorativa ── */
.sobremi-bottom-bar {
  max-width: 1200px;
  margin: var(--sp-8) auto 0;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Responsive ── */
@media (max-width: 904px) {
  .sobremi-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .sobremi-photo-col {
    position: static;
    max-width: 280px;
  }

  .sobremi-stats {
    gap: var(--sp-5);
  }
}

@media (max-width: 599px) {
  .sobremi-section {
    padding: var(--sp-7) var(--sp-4);
  }

  .sobremi-stats {
    flex-wrap: wrap;
    gap: var(--sp-4);
  }

  .sobremi-photo-col {
    max-width: 220px;
  }
}

/* ── Modo claro ── */
[data-theme="light"] .sobremi-photo {
  filter: none;
}

[data-theme="light"] .sobremi-body strong {
  color: var(--color-white);
}

/* ══════════════════════════════════════
   FIN: SOBRE MÍ
══════════════════════════════════════ */


/* ── Transición suave al cambiar tema ── */
body,
.site-header,
#manifiesto,
.manifesto-grid .col,
.pensamientos-section,
.portfolio-section,
.portfolio-header,
.portfolio-card,
.portfolio-bottom,
#contacto,
.site-footer,
.mobile-menu,
.sobremi-section {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}