/* ============================================ */
/* JACOB PULIDO — jacobpulido.com               */
/* BRUTALIST / RETRO / IMPERFECT AESTHETICS     */
/* Azul marino · Negro · Cyan acento            */
/* Tipografía masiva · Grid visible · B&W       */
/* ============================================ */

/* ============================================ */
/* 1. VARIABLES CSS                             */
/* ============================================ */
:root {
  /* Paleta brutalista */
  --navy: #0F1D3A;
  --navy-dark: #0A1428;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --offwhite: #F0EDE8;
  --gray: #2A2A2A;
  --gray-light: #555555;
  --cyan: #00D4FF;

  /* Asignaciones — navy dominante, texto blanco por defecto */
  --bg: var(--navy);
  --bg-alt: var(--black);
  --bg-light: var(--white);
  --text: var(--white);
  --text-inverse: var(--black);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-muted-inverse: rgba(10, 10, 10, 0.5);
  --accent: var(--cyan);
  --grid-line: rgba(255, 255, 255, 0.12);
  --grid-line-inverse: rgba(10, 10, 10, 0.15);

  /* Tipografía */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Tamaños — MASIVOS para brutalismo */
  --text-xs: 0.6875rem;   /* 11px */
  --text-sm: 0.8125rem;   /* 13px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2.5rem;     /* 40px */
  --text-3xl: 4rem;       /* 64px */
  --text-4xl: 6rem;       /* 96px */
  --text-5xl: 9rem;       /* 144px */
  --text-6xl: 12rem;      /* 192px */

  /* Pesos */
  --w-regular: 400;
  --w-medium: 500;
  --w-bold: 700;
  --w-extrabold: 800;

  /* Espaciado — amplio y asimétrico */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Layout */
  --container-max: 1400px;
  --container-padding: 1.5rem;
  --header-height: 56px;

  /* Radios — rectos, brutalistas */
  --radius: 0px;

  /* Transiciones — instantáneas o lentas, nada suave */
  --transition-fast: 0.1s;
  --transition-base: 0.2s;
}

/* ============================================ */
/* 2. RESET Y BASE                              */
/* ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* sin smooth scroll */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================ */
/* 3. ACCESIBILIDAD                             */
/* ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--black);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  font-weight: var(--w-bold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 0;
}

/* ============================================ */
/* 4. UTILIDADES / LAYOUT                       */
/* ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
}

/* Grid linea decorativa horizontal */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grid-line);
}

.section--dark {
  background-color: var(--bg-alt);
  color: var(--text);
}

.section--dark::before {
  background: var(--grid-line);
}

.section--light {
  background-color: var(--bg-light);
  color: var(--black);
}

.section--light::before {
  background: var(--grid-line-inverse);
}

.section--light .section__title {
  color: var(--black);
}

.section--light .section__overline {
  color: var(--text-muted-inverse);
}

.section--light .section__subtitle {
  color: var(--text-muted-inverse);
}

.section__overline {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  color: var(--text-muted);
}

.section--dark .section__overline {
  color: var(--text-muted);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-3xl);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .section__title {
    font-size: var(--text-5xl);
  }
}

/* ============================================ */
/* 5. HEADER — Brutalista                       */
/* ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--navy);
  border-bottom: 2px solid var(--white);
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-sm);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__nav { display: flex; }

.header__menu {
  display: flex;
  gap: var(--space-6);
}

.header__link {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: var(--space-1) 0;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width var(--transition-base);
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-base);
}

.header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================ */
/* 6. MENÚ MÓVIL                                */
/* ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-2xl);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ============================================ */
/* 7. HERO — Tipografía masiva · Grid · B&W     */
/* ============================================ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
  padding-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

/* Grid lines decorativas */
.hero::after {
  content: '';
  position: absolute;
  top: var(--header-height);
  left: 50%;
  width: 1px;
  height: calc(100% - var(--header-height));
  background: var(--grid-line);
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  width: 100%;
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
    align-items: end;
  }
}

.hero__overline {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: clamp(4rem, 14vw, var(--text-6xl));
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--white);
  word-break: keep-all;
}

.hero__title-line2 {
  display: block;
}

/* Cyan accent block on part of the name */
.hero__title-accent {
  color: var(--cyan);
  -webkit-text-stroke: 2px var(--white);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-lg);
  color: var(--white);
  margin-top: var(--space-6);
  line-height: 1.3;
  max-width: 480px;
}

.hero__quote {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  border-left: 3px solid var(--cyan);
  max-width: 420px;
  font-style: italic;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

/* Hero image — B&W block */
.hero__image-wrapper {
  position: relative;
  border: 2px solid var(--white);
}

.hero__image-wrapper::before {
  content: '2026';
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--cyan);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  z-index: 2;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  display: block;
}

/* ============================================ */
/* 8. BOTONES — Brutalistas                     */
/* ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--navy);
}

.btn:hover {
  background: var(--cyan);
  color: var(--black);
  border-color: var(--cyan);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--text {
  background: none;
  border: none;
  border-bottom: 2px solid var(--white);
  color: var(--white);
  padding: 8px 0;
  text-transform: none;
  font-weight: var(--w-medium);
  letter-spacing: 0;
  font-size: var(--text-sm);
}

.btn--text:hover {
  background: none;
  color: var(--white);
  border-bottom-color: var(--cyan);
}

.btn--full { width: 100%; }

button[disabled], .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================ */
/* 8b. EMPRENDEDOR — Práctica, no teoría        */
/* ============================================ */
.entrepreneur__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

@media (min-width: 768px) {
  .entrepreneur__layout {
    grid-template-columns: 45% 55%;
    gap: var(--space-16);
    align-items: start;
  }
}

.entrepreneur__title {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: clamp(2rem, 5vw, var(--text-3xl));
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.entrepreneur__body p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.entrepreneur__body strong {
  color: var(--white);
  font-weight: var(--w-bold);
}

.entrepreneur__closing {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-lg);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand cards */
.entrepreneur__brands {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .entrepreneur__brands {
    grid-template-columns: repeat(2, 1fr);
  }
}

.brand-card {
  background: var(--black);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-fast);
}

.brand-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.brand-card__name {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-2xl);
  color: var(--white);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-card__type {
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  font-size: var(--text-xs);
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-3);
}

.brand-card__year {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.brand-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================ */
/* 9. SOBRE JACOB                               */
/* ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 45% 55%;
    gap: var(--space-16);
  }
}

.about__title {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-2xl);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.about__text p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about__text p:last-child { margin-bottom: 0; }

.about__concepts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: var(--space-16);
  background: var(--grid-line);
}

.concept {
  background: var(--navy);
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
}

.concept__number {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-2xl);
  color: var(--cyan);
  line-height: 1;
  -webkit-text-stroke: 1px var(--black);
}

.concept__label {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-top: var(--space-2);
}

/* ============================================ */
/* 10. QUÉ HAGO — Grid con líneas               */
/* ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: var(--space-12);
  background: var(--grid-line);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--navy);
  padding: var(--space-8);
  transition: background var(--transition-fast);
}

.service-card:hover {
  background: var(--navy-dark);
}

.service-card__number {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-3xl);
  color: var(--cyan);
  line-height: 1;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: var(--space-4);
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.6;
}

/* ============================================ */
/* 11. PROYECTOS — Bloques navy + placeholder   */
/* ============================================ */
.projects .section__title {
  margin-bottom: var(--space-12);
}

.project--with-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 2px solid var(--grid-line);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .project--with-visual {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.project__content {
  padding: var(--space-8);
}

.project__name {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.project__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  padding: 4px 10px;
  margin-top: var(--space-3);
}

.project__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-5);
  max-width: 600px;
  line-height: 1.7;
}

.project__areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project__areas span:nth-child(even) { color: rgba(255, 255, 255, 0.15); }

.project__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--grid-line);
}

.project__placeholder {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project__placeholder-sub {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.project__divider {
  border: none;
  border-top: 2px solid var(--grid-line);
  margin: 0;
}

/* ============================================ */
/* 12. IMPACTO — Números gigantes               */
/* ============================================ */
.impact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: var(--space-12);
  background: var(--grid-line);
}

@media (min-width: 768px) {
  .impact__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.impact-item {
  background: var(--navy);
  padding: var(--space-8) var(--space-6);
}

.impact-item__number {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-3xl);
  line-height: 0.95;
  letter-spacing: -0.04em;
  display: block;
  color: var(--white);
}

.impact-item__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================ */
/* 13. TRAYECTORIA — Vertical brutalista        */
/* ============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: var(--space-16) auto 0;
  padding-left: var(--space-8);
  border-left: 2px solid var(--black);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border: 2px solid var(--black);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-xl);
  color: var(--navy);
  -webkit-text-stroke: 1px var(--cyan);
  display: block;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--text-muted-inverse);
  line-height: 1.6;
  max-width: 600px;
}

/* ============================================ */
/* 14. CONFERENCIAS                             */
/* ============================================ */
.institutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: var(--space-10);
  background: var(--grid-line);
}

@media (min-width: 768px) {
  .institutions {
    grid-template-columns: repeat(5, 1fr);
  }
}

.institution {
  background: var(--navy);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: background var(--transition-fast);
}

.institution:hover {
  background: var(--cyan);
  color: var(--black);
}

.topics {
  margin-top: var(--space-16);
  border-top: 2px solid var(--grid-line);
  padding-top: var(--space-8);
}

.topics__title {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.topics__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .topics__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topics__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.topics__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

/* ============================================ */
/* 15. MEDIOS                                   */
/* ============================================ */
.media__title {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.media__title--second {
  margin-top: var(--space-16);
}

.media__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: var(--space-6);
  background: var(--grid-line);
}

@media (min-width: 768px) {
  .media__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.media__item {
  background: var(--navy);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: background var(--transition-fast);
  display: block;
}

.media__item:hover {
  background: var(--black);
  color: var(--white);
}

a.media__item:hover {
  background: var(--cyan);
  color: var(--black);
}

/* ============================================ */
/* 16. CV — Acordeón Brutalista                 */
/* ============================================ */
.cv-section .section__title {
  margin-bottom: var(--space-8);
}

.accordion {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.accordion__item {
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion__label {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  text-align: left;
}

.accordion__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--white);
  transition: var(--transition-fast);
}

.accordion__icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.accordion__icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion__trigger:hover .accordion__label {
  color: var(--accent);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.accordion__panel:not([hidden]) {
  max-height: 3000px;
  opacity: 1;
}

.accordion__content {
  padding: 0 0 var(--space-8) 0;
  max-width: 800px;
}

/* CV content styles */
.cv-entry {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--grid-line);
}

.cv-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cv-entry__title {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-base);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.cv-entry__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.cv-subtitle {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  color: var(--white);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
}

.cv-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.cv-list {
  list-style: none;
  padding: 0;
}

.cv-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-1) 0;
  line-height: 1.6;
  position: relative;
  padding-left: var(--space-4);
}

.cv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 2px;
  background: var(--cyan);
}

.cv-list a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.cv-list a:hover {
  background: var(--cyan);
  color: var(--black);
  border-bottom-color: var(--cyan);
}

.cv-list--inline {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* ============================================ */
/* 17. CONTACTO                                 */
/* ============================================ */
.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.contact__title {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-2xl);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.contact__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-5);
  line-height: 1.7;
}

.contact__collaboration {
  margin-top: var(--space-8);
}

.contact__collaboration h3 {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-3);
}

.contact__collaboration li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-1) 0;
  position: relative;
  padding-left: var(--space-4);
}

.contact__collaboration li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.contact__details {
  margin-top: var(--space-10);
}

.contact__details p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-2);
}

.contact__details strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--w-bold);
}

.contact__details a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact__details a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* Formulario */
.contact__form-wrapper {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--space-8);
}

.contact__form h3 {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: var(--space-6);
}

.form__group {
  margin-bottom: var(--space-4);
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: var(--text-xs);
  color: var(--text-muted-inverse);
  margin-bottom: var(--space-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form__input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--black);
  border-radius: 0;
  font-size: var(--text-sm);
  color: var(--black);
}

.form__input:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}

.form__input::placeholder {
  color: var(--text-muted-inverse);
  opacity: 0.5;
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  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 fill='%230A0A0A' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

.form__textarea {
  resize: vertical;
  min-height: 60px;
}

.form__notice {
  margin-top: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 2px solid var(--grid-line-inverse);
  color: var(--text-muted-inverse);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.form__success {
  margin-top: var(--space-4);
  padding: var(--space-3) 0;
  color: #047857;
  font-size: var(--text-sm);
}

.form__error {
  margin-top: var(--space-4);
  padding: var(--space-3) 0;
  color: #DC2626;
  font-size: var(--text-sm);
}

/* ============================================ */
/* 18. FOOTER — Brutalista                      */
/* ============================================ */
.footer {
  background: var(--black);
  padding: var(--space-8) 0;
  border-top: 2px solid var(--grid-line);
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__name {
  font-family: var(--font-heading);
  font-weight: var(--w-extrabold);
  font-size: var(--text-xs);
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__tagline {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================ */
/* 19. ANIMACIONES                              */
/* ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] > .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
[data-stagger] > .animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
[data-stagger] > .animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
[data-stagger] > .animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
[data-stagger] > .animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }
[data-stagger] > .animate-on-scroll:nth-child(6) { transition-delay: 0.30s; }

/* Hero image */
.hero__image-wrapper.animate-on-scroll {
  transform: translateX(20px);
}

.hero__image-wrapper.animate-on-scroll.is-visible {
  transform: translateX(0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__image-wrapper.animate-on-scroll {
    transform: none;
  }
}

/* ============================================ */
/* 20. RESPONSIVE                               */
/* ============================================ */
@media (max-width: 1023px) {
  :root {
    --container-padding: 1.25rem;
  }

  .header__nav { display: none; }
  .header__hamburger { display: flex; }

  .about__concepts {
    grid-template-columns: repeat(2, 1fr);
  }

  .project--with-visual {
    grid-template-columns: 1fr;
  }

  .project__visual {
    min-height: 160px;
    border-left: none;
    border-top: 2px solid var(--grid-line);
  }

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

  .footer__container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  :root {
    --text-5xl: 5rem;
    --text-4xl: 3.5rem;
    --text-3xl: 2.5rem;
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-10);
  }

  .hero__container {
    min-height: auto;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__image-wrapper {
    max-height: 50vh;
  }

  .impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .institutions {
    grid-template-columns: repeat(2, 1fr);
  }

  .media__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__form-wrapper {
    padding: var(--space-5);
  }
}

/* ============================================ */
/* 21. PRINT                                    */
/* ============================================ */
@media print {
  .header, .footer, .hero__buttons,
  .contact__form-wrapper {
    display: none !important;
  }
  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }
  .section {
    padding: 16pt 0;
    page-break-inside: avoid;
  }
  .hero {
    min-height: auto;
    padding-top: 20pt;
  }
  a { text-decoration: none; color: #000; }
}
