/* ========== FONTS ========== */
@font-face {
  font-family: 'Quincy CF';
  src: url('fonts/QuincyCF-Bold.woff2') format('woff2'), url('fonts/Quincy CF Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Corporative Sans';
  src: url('fonts/CorporativeSans-Regular.woff2') format('woff2'), url('fonts/CorporativeSansRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========== VARIABLES ========== */
:root {
  /* Brand palette (Manual de uso, Río Adentro 2024) */
  --nieve: #F9F6EC;
  --crudo: #DECFBC;
  --mandarina: #EE7432;
  --oliva: #707634;
  --celeste: #9EBADB;
  --azul: #485E6B;
  --verde: #3B4227;
  /* The only derived tone: Mandarina deepened for orange text (5.3:1 on Nieve).
     Mandarina itself stays for fills, rules, icons and the logo, never small text. */
  --mandarina-texto: #A94A17;

  /* Role aliases used across the stylesheets */
  --color-olive: var(--verde);
  --color-olive-light: var(--oliva);
  --color-olive-dark: var(--verde);
  --color-cream: var(--nieve);
  --color-cream-dark: var(--crudo);
  --color-mandarina: var(--mandarina);
  --color-terracotta: var(--mandarina-texto);
  --color-terracotta-light: var(--mandarina);
  --color-white: var(--nieve);
  --color-text: var(--verde);
  --color-text-light: var(--azul);

  /* Type roles: Quincy for titles, Corporative Sans for labels, buttons and
     reading text. Each family has a single weight. */
  --font-display: 'Quincy CF', serif;
  --font-label: var(--font-body);
  --font-body: 'Corporative Sans', 'Helvetica', sans-serif;
  --font-detail: var(--font-body);
  --label-tracking: 0.08em;
  --title-tracking: 0;
  --cover-tracking: 0;
  /* One page grid: 1200px of content, the same side margin everywhere */
  --page-max: 1200px;
  --gutter: 3rem;
  /* Editorial type scale (2026 redesign) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.8125rem;
  --space-section: clamp(4rem, 3rem + 4vw, 6rem);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--fs-body); }
body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: rgba(238, 116, 50, 0.2);
  color: var(--color-olive-dark);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
/* Emphasis keeps the reading font */
strong, b { font-family: inherit; font-weight: inherit; color: var(--color-olive); }
/* Emphasis uses Quincy rather than a synthesized italic: none of the brand fonts has one. */
em, i { font-style: normal; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--title-tracking);}
:focus-visible { outline: 2px solid var(--color-olive); outline-offset: 3px; }
.nav :focus-visible { outline-color: var(--nav-fg); }
.nav__links.open :focus-visible { outline-color: var(--color-cream); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-olive-light); border-radius: 3px; }

/* ========== NAVIGATION ========== */
/* One foreground color per state: Verde over Nieve, Nieve over Verde. */
.nav {
  --nav-fg: var(--color-olive);
  --nav-line: rgba(59, 66, 39, 0.2);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.6s ease, box-shadow 0.6s ease;
  background: transparent;
  border-bottom: 1px solid var(--nav-line);
}
.nav.scrolled {
  background: rgba(249, 246, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(59, 66, 39, 0.06);
  border-bottom: 1px solid var(--color-mandarina);
}
.nav.nav--olive.scrolled {
  --nav-fg: var(--color-cream);
  background: rgba(59, 66, 39, 0.94);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(249, 246, 236, 0.25);
}
/* The logo is painted through its PNG as a mask so it takes the exact brand color. */
.nav__logo {
  display: inline-block;
  background-color: var(--nav-fg);
  -webkit-mask: url('img/logo/Logo AsanteSana-19.png') left center / contain no-repeat;
  mask: url('img/logo/Logo AsanteSana-19.png') left center / contain no-repeat;
  transition: background-color 0.6s ease;
}
.nav__logo img {
  height: 38px;
  width: auto;
  opacity: 0;
  transition: height 0.4s ease;
}
.nav.scrolled .nav__logo img { height: 32px; }
.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  letter-spacing: 0.025em;
  color: var(--nav-fg);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.6s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--nav-fg);
  transition: width 0.4s ease, background 0.6s ease;
}
.nav.scrolled:not(.nav--olive) .nav__link::after { background: var(--color-mandarina); }
.nav__link:hover::after { width: 100%; }
.nav__lang {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--nav-fg);
  padding: 0.5rem 0.6rem;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.6s ease;
}
.nav__lang:hover { text-decoration: underline; text-decoration-color: var(--color-mandarina); text-underline-offset: 0.3em; }
.nav__socials {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--nav-line);
}
.nav__socials a {
  color: var(--nav-fg);
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.6s ease;
}
.nav__socials a:hover { opacity: 1; }
/* Mobile menu: the word "Menú" next to the icon, 44 px minimum */
.nav__hamburger {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.4rem;
  color: var(--nav-fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  cursor: pointer;
  z-index: 1001;
}
.nav__hamburger-icon { display: flex; flex-direction: column; gap: 5px; }
.nav__hamburger-icon span {
  width: 24px; height: 2px;
  background: var(--nav-fg);
  transition: background 0.6s ease, transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
.nav.menu-open { background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none; border-bottom-color:transparent; }
.nav__hamburger.active { color: var(--color-cream); }
.nav__hamburger.active .nav__hamburger-icon span { background: var(--color-cream); }
.nav__hamburger.active .nav__hamburger-icon span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active .nav__hamburger-icon span:nth-child(2) { opacity: 0; }
.nav__hamburger.active .nav__hamburger-icon span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
/* Nieve ground and Verde type. The statement is the h1 and paints on first
   render; only the branches on the canvas move. Content takes 7 of 12 columns,
   the portrait 5; on phones the portrait waits for "Sobre mí". */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  align-items: center;
  padding: calc(5.5rem + 2rem) max(var(--gutter), (100% - var(--page-max)) / 2) var(--space-section);
  background: var(--color-cream);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero__content { grid-column: 1 / span 7; position: relative; z-index: 1; }
.hero__portrait { grid-column: 8 / span 5; position: relative; z-index: 1; margin: 0; }
.hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
.hero__eyebrow { margin-bottom: 1.5rem; font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); line-height: 1.5; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display); line-height: 1.125; letter-spacing: var(--title-tracking); color: var(--color-text); text-wrap: pretty; }
.hero__lead { max-width: 34rem; margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--azul); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }
.hero__note { margin-top: 2rem; font-size: var(--fs-label); line-height: 1.5; color: var(--azul); }
@media (max-width: 767px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(4.5rem + 1.75rem); }
  .hero__content, .hero__portrait { grid-column: 1; }
  .hero__portrait { display: none; }
  .hero__title { font-size: clamp(1.75rem, 7.4vw, 2.5rem); line-height: 1.15; }
}
/* ========== SECTION COMMON ========== */
.section {
  padding: 7rem var(--gutter);
  position: relative;
}
.section--alt { background: var(--color-olive); }
.section__label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 1.2rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-olive);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-wrap: balance; letter-spacing: var(--title-tracking);}
.section__text {
  max-width: 700px;
  font-family: var(--font-detail);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-text-light);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ========== BUTTONS ========== */
/* Three variants for the whole site: .btn (principal), .btn--secondary and .link.
   .btn--light inverts both buttons for Verde backgrounds. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.8rem;
  border: 1.5px solid var(--color-olive);
  border-radius: 999px;
  background: var(--color-olive);
  color: var(--color-cream);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--color-terracotta); border-color: var(--color-terracotta); color: var(--color-cream); }
.btn--secondary { background: transparent; color: var(--color-olive); }
.btn--secondary:hover { background: var(--color-olive); border-color: var(--color-olive); color: var(--color-cream); }
.btn--light { background: var(--color-cream); border-color: var(--color-cream); color: var(--color-olive); }
.btn--light:hover { background: var(--color-cream-dark); border-color: var(--color-cream-dark); color: var(--color-olive); }
.btn--light.btn--secondary { background: transparent; color: var(--color-cream); }
.btn--light.btn--secondary:hover { background: var(--color-cream); color: var(--color-olive); }
.btn .drawn-arrow { width: 1.35em; height: 0.58em; margin-left: 0; }
.btn--primary { padding: 0 1.5rem; border-color: var(--color-terracotta); background: var(--color-terracotta); color: var(--color-cream); font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; text-transform: none; }
.btn--primary:hover { border-color: var(--color-olive); background: var(--color-olive); color: var(--color-cream); }
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-olive);
  text-decoration: underline;
  text-decoration-color: var(--color-mandarina);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  transition: color 0.3s ease;
}
.link:hover { color: var(--color-terracotta); }

/* ========== SOY / ABOUT ========== */
#soy {
  background-color: var(--color-cream);
}
#soy .section__label {
  color: var(--color-terracotta);
}
#soy .section__title {
  color: var(--color-olive);
}
#soy .about__bio {
  color: var(--color-text-light);
}
.about { overflow: hidden; }

/* ========== MISSION ========== */
.mission {
  padding: 8rem 2rem;
  text-align: center;
  background: var(--color-cream);
}
.mission__text {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-olive);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-wrap: balance; letter-spacing: var(--title-tracking);}

.about__grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about__image-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: var(--transition-slow);
}
.about__image-wrap:hover img { transform: none; }
.about__image-frame {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 1px solid var(--color-terracotta-light);
  border-radius: 10px;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity var(--transition);
}
.about__image-wrap:hover .about__image-frame {
  opacity: 0.5;
}
.about__content { padding: 0.5rem 0 0; }
.about__title { margin: 0.4rem 0 1.6rem; line-height: 0; }
.about__title img { width: min(300px, 75%); height: auto; }
/* The manual's outlined Quincy title, for one word per page */
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--color-olive); }
@supports not (-webkit-text-stroke: 1px black) { .outline { color: inherit; } }
.about__bio {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
  text-align: justify;
  text-wrap: pretty;
  hyphens: none;
  -webkit-hyphens: none;
}
.about__bio:last-of-type { margin-bottom: 2rem; }

/* ========== SERVICES ========== */
#servicios {
  background: var(--color-olive);
  position: relative;
  overflow: hidden;
}
#leavesCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
#servicios .container {
  position: relative;
  z-index: 1;
}
#servicios .section__title {
  color: var(--color-cream);
}
.services__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.services__intro .section__text {
  margin: 0 auto;
  color: rgba(249, 246, 236, 0.75);
  font-family: var(--font-detail);
  font-size: var(--fs-lead);
  font-style: normal;
  line-height: 1.85;
  text-wrap: balance;
  text-align: center;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--color-cream);
  border-radius: 4px 24px 4px 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.4s ease;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  background: var(--color-olive);
  opacity: 0.04;
  border-radius: 0 24px 0 20px;
  transition: var(--transition);
}
.service-card:hover {
  background: var(--color-cream-dark);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.service-card:focus-visible {
  background: var(--color-cream-dark);
  box-shadow: 0 0 0 3px var(--color-terracotta), 0 16px 48px rgba(0, 0, 0, 0.1);
}
.service-card:focus-visible .service-card__line { opacity:0.6; }
.services__language-note { color:var(--color-cream); font-family:var(--font-detail); font-size: var(--fs-label); margin:0 0 1.5rem; text-align:center; }
.service-card:hover::before {
  opacity: 0.08;
}
/* Alternating corner radius for variety */
.service-card:nth-child(2n) {
  border-radius: 24px 4px 24px 4px;
}
.service-card:nth-child(2n)::before {
  right: auto; left: 0;
  border-radius: 24px 0 20px 0;
}
/* Icons sit in color circles, each with the manual's color pairing. */
.icon-circle {
  width: 88px;
  height: 88px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  object-fit: contain;
  background: var(--icon-bg, var(--color-olive));
}
.icon-circle--verde { --icon-bg: var(--verde); }
.icon-circle--oliva { --icon-bg: var(--oliva); }
.icon-circle--mandarina { --icon-bg: var(--mandarina); }
.icon-circle--azul { --icon-bg: var(--azul); }
.icon-circle--celeste { --icon-bg: var(--celeste); }
.icon-circle--crudo { --icon-bg: var(--crudo); }
.service-card__icon {
  margin-bottom: 1.2rem;
  transition: clip-path 1s ease-out, opacity 0.6s ease;
}
/* Autofill: the circle opens when the card scrolls into view. Only hidden when
   JavaScript runs (html.js), so the icons still show if the script fails. */
.js .service-card__icon {
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
}
.js .service-card.visible .service-card__icon {
  opacity: 1;
  clip-path: circle(50% at 50% 50%);
}
@media (prefers-reduced-motion: reduce) {
  .service-card__icon, .js .service-card__icon { opacity: 1; clip-path: none; transition: none; }
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--color-olive);
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-align: center; letter-spacing: var(--title-tracking);}
.service-card__desc {
  font-family: var(--font-detail);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.service-card__line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--color-terracotta) 50%, transparent 95%);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover .service-card__line { opacity: 0.6; }


/* ========== TESTIMONIALS ========== */
#testimonios {
  background: var(--color-cream);
  padding: 6rem var(--gutter);
  border-top: 2px solid rgba(238, 116, 50, 0.10);
}
#testimonios .section__title {
  color: var(--color-olive);
  text-align: center;
  margin-bottom: 1.5rem;
}
.testimonials__wrapper {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  min-height: 240px;
}
.testimonial {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
  pointer-events: none;
}
.testimonial[aria-hidden="true"] { visibility: hidden; }
.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonial__quote {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-style: normal;
  text-align: justify;
}
.testimonial__quote::before, .testimonial__quote::after { content: none; }
.testimonial__org {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-olive);
  margin-bottom: 0.3rem; letter-spacing: var(--title-tracking);}
.testimonial__role {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 1rem;
}
.testimonial__author {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-terracotta);
}
.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.testimonials__dot {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.testimonials__dot::after { content:""; width:9px; height:9px; border-radius:50%; background:var(--color-olive); opacity:0.35; transition:var(--transition); }
.testimonials__dot.active::after { background:var(--color-terracotta); opacity:1; transform:scale(1.3); }


/* ========== CONTACT ========== */
#contacto {
  background: var(--color-cream);
  padding: 6rem var(--gutter);
  border-top: 2px solid rgba(238, 116, 50, 0.10);
}
#contacto .section__title {
  color: var(--color-olive);
  margin-bottom: 0.8rem;
  text-align: center;
}
#contacto .section__text {
  color: var(--color-text-light);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 3rem;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.contact__info {
  background: var(--color-white);
  border: 1.5px solid rgba(59, 66, 39, 0.08);
  border-radius: 4px 24px 4px 24px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact__info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-detail);
  font-size: var(--fs-body);
  color: var(--color-text-light);
}
.contact__info-item:last-of-type { margin-bottom: 0; }
.contact__info-item a { color: var(--color-text-light); transition: var(--transition); }
.contact__info-item a:hover { color: var(--color-terracotta); }
.contact__info-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.45;
  color: var(--color-olive);
}
.contact__socials {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(238, 116, 50, 0.08);
  width: 100%;
}
.contact__social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 66, 39, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.contact__social:hover {
  background: var(--color-olive);
  border-color: var(--color-olive);
}
.contact__social:hover svg { fill: var(--color-cream); stroke: var(--color-cream); }
.contact__social svg { width: 17px; height: 17px; fill: var(--color-olive); transition: var(--transition); }

/* ========== FOOTER ========== */
/* One quiet band: logo, pages and contact; below, the copyright and the credit. */
.footer { padding: 2.5rem var(--gutter) 1.75rem; border-top: 1px solid rgba(59, 66, 39, 0.15); background: var(--color-cream); }
.footer__inner { max-width: var(--page-max); margin: 0 auto; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(59, 66, 39, 0.12); }
.footer__logo { display: block; height: 22px; width: auto; }
.footer__nav, .footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.4rem; font-size: 0.875rem; line-height: 1.5; }
.footer__nav a, .footer__contact a { color: var(--color-text); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--color-terracotta); }
.footer__contact a:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(59, 66, 39, 0.35); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.25rem; }
.footer__copy { font-size: 0.8125rem; color: var(--color-text); }
.footer__message { max-width: 74ch; margin-top: .3rem; font-size: 0.75rem; line-height: 1.5; color: var(--azul); }
.footer__credit { font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--azul); opacity: .55; }
@media (max-width: 767px) {
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Staggered reveal for cards */
.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.service-card.reveal:nth-child(5) { transition-delay: 0.25s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-olive);
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
    z-index: 999;
  }
  .nav__links.open { --nav-fg: var(--color-cream); --nav-line: rgba(249, 246, 236, 0.25); }
  .nav__links.open .nav__link { font-size: var(--fs-lead); }
  .nav__links.open .nav__link--active { color: var(--color-cream) !important; }
  .nav__links.open .nav__socials a { opacity: 1; }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__image-wrap { max-width: 400px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .section { padding: 5rem var(--gutter); }
  .nav { padding: 1rem 1.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  #testimonios { padding: 5rem 1.5rem; }
}

/* ========== OTROS PROYECTOS ========== */
.proyectos {
  padding: 4rem 2rem;
  background: var(--color-cream);
}
.proyectos .container {
  max-width: 900px;
  margin: 0 auto;
}
.proyectos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
/* Must come after the base rule above, or the 3-column layout wins on mobile */
@media (max-width: 900px) {
  .proyectos__grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}
.proyecto-card {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-cream-dark);
  box-shadow: 0 2px 12px rgba(59, 66, 39,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 66, 39,0.12);
}
.proyecto-card__img {
  height: 150px;
  overflow: hidden;
}
.proyecto-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.proyecto-card:hover .proyecto-card__img img {
  transform: scale(1.05);
}
.proyecto-card__text {
  padding: 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proyecto-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-olive);
  margin-bottom: 0.4rem; letter-spacing: var(--title-tracking);}
.proyecto-card__desc {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  line-height: 1.55;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}
.proyecto-card__year {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-olive);
  text-decoration: underline;
  text-decoration-color: var(--color-mandarina);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  margin-top: auto;
  align-self: flex-start;
}
.proyecto-card__year strong { font: inherit; }
.proyecto-card:hover .proyecto-card__year { color: var(--color-terracotta); }

/* Quiet type, drawn marks and uncluttered surfaces. */
.testimonial__role { text-transform: none; letter-spacing: .015em; font-size: var(--fs-body); }
.testimonial__quote { font-family: var(--font-detail); font-size: var(--fs-lead); line-height: 1.8; text-align: left; }
.testimonials__dot { width: 44px; height: 44px; color: var(--color-olive); font-family: var(--font-detail); font-size: var(--fs-label); opacity: .5; }
.testimonials__dot::after { display: none; }
.testimonials__dot.active { opacity: 1; text-decoration: underline; text-decoration-color: var(--color-mandarina); text-underline-offset: .5em; }
.service-card, .service-card:nth-child(2n) { border-radius: 0; box-shadow: none; border-top: 1px solid rgba(59, 66, 39,.35); }
.service-card::before, .service-card__line { display: none; }
.service-card:hover { transform: none; box-shadow: none; background: var(--color-cream-dark); }
.service-card__desc { text-align: left; }
.proyecto-card { border-radius: 0; box-shadow: none; }
.proyecto-card:hover { transform: none; box-shadow: none; }
.contact__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.contact__email { font-family: var(--font-detail); font-size: var(--fs-h2); line-height: 1.5; display: inline; border-bottom: 1.5px solid var(--color-mandarina); padding-bottom: .3rem; overflow-wrap: anywhere; }
.contact__email:hover { color: var(--color-terracotta); }
.contact__info { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.drawn-arrow { display: inline-block; width: 1.5em; height: 0.64em; vertical-align: -.08em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-left: .35em; overflow: visible; transition: translate .3s ease; }
.drawn-arrow--up { transform: rotate(-90deg); }
.drawn-arrow--down { transform: rotate(90deg); }
/* Vertical arrows: rotated, so their height is the width — keep them short */
.drawn-arrow--up, .drawn-arrow--down { width: 1.15em; }
/* The contact address is very large type; its arrow stays modest */
.contact__email .drawn-arrow { width: 0.7em; height: 0.32em; }
.drawn-arrow--back { transform: rotate(180deg); }
.drawn-arrow--out { transform: rotate(-32deg); width: 1.15em; height: 0.5em; }
a:hover .drawn-arrow { translate: 3px -1px; }
@media (prefers-reduced-motion: reduce) {
  .drawn-arrow, .work-card img { transition: none !important; }
}
/* The artwork takes the full viewing space; controls stay in the margins. */
.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 4.5rem 6vw 1.5rem; border: 0; background: var(--color-cream); color: var(--color-olive); }
.image-viewer::backdrop { background: rgba(59, 66, 39, .93); }
.image-viewer[open] { display: flex; flex-direction: column; align-items: center; }
.image-viewer figure { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.image-viewer__image { width: 100%; height: 100%; min-height: 0; object-fit: contain; flex: 1; }
.image-viewer__caption { font-family: var(--font-detail); font-size: var(--fs-body); text-align: center; max-width: 45rem; }
.image-viewer__close { position: absolute; right: 1.5rem; top: 1rem; width: 44px; height: 44px; display: grid; place-items: center; color: inherit; }
.image-viewer__close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.2; }
.image-viewer__nav { display: flex; align-items: center; gap: 1.8rem; margin-top: 1rem; }
.image-viewer__nav button { color: inherit; width: 54px; height: 44px; }
.image-viewer__nav button:hover { color: var(--color-terracotta); }
.image-viewer__nav .drawn-arrow { width: 32px; height: 14px; margin: 0; }
.image-viewer__count { font-family: var(--font-detail); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .image-viewer { padding: 4.5rem 1rem 1rem; } }

#contacto .container { max-width: 1200px; }
#contacto .section__title, #contacto .section__text { text-align: left; }
#contacto .section__text { margin-left: 0; hyphens: none; }
.contact__info { background: transparent; border: 0; border-radius: 0; padding: 1.5rem 0 0; border-top: 1px solid #3b422735; }
.contact__info-item { margin: 0; }
.contact__socials { width: auto; padding: 0; margin: 0; border: 0; gap: .5rem; }
.contact__social { width: 44px; height: 44px; border: 0; border-radius: 0; }
.contact__social:hover { background: transparent; }
.contact__social:hover svg { fill: var(--color-terracotta); stroke: none; }
@media (max-width: 700px) { #contacto { padding: 4rem var(--gutter); } }

/* ========== HOME STRUCTURE ========== */

/* Anchors land below the fixed navigation */
section[id] { scroll-margin-top: 4.5rem; }

/* Navigation: the section in view is underlined; external links say so */
.nav__link.is-active::after { width: 100%; }
.nav__ext { font-size: 0.8em; margin-left: 0.1em; opacity: 0.75; }

/* Reading text aligns left, without forced hyphenation */
.section__text, .about__bio, .service-card__desc {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.about__bio { font-size: var(--fs-body); }

/* About: the middle of the bio as three facts */
.about__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0.4rem 0 2rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(59, 66, 39, 0.18);
  border-bottom: 1px solid rgba(59, 66, 39, 0.18);
}
.about__facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: var(--color-terracotta);
  margin-bottom: 0.4rem; letter-spacing: var(--title-tracking);}
.about__facts span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-text-light);
}

/* Services: left-aligned like every other section */
.services__intro { text-align: left; max-width: 720px; margin: 0 0 3.5rem; }
.services__intro .section__text { text-align: left; margin: 0; text-wrap: pretty; }
.services__intro .section__text + .section__text { margin-top: 1rem; }
.service-card { align-items: flex-start; text-align: left; }
.service-card__title { text-align: left; }
.services__cta { margin-top: 2.5rem; }

/* Other projects: a compact list closing the selected work */
.more-work { margin-top: 5.5rem; }
.more-work__title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 1rem;
}
.more-work__list { list-style: none; border-top: 1px solid rgba(59, 66, 39, 0.25); }
.more-work__list a {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(59, 66, 39, 0.25);
  color: var(--color-olive);
  text-decoration: none;
}
.more-work__list a:hover .more-work__name,
.more-work__list a:hover .more-work__go { color: var(--color-terracotta); }
.more-work__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: var(--title-tracking);}
.more-work__desc { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; color: var(--color-text-light); }
.more-work__go {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-mandarina);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

/* Experience: four visible entries instead of a carousel */
#testimonios .section__title { text-align: left; }
.exp-intro { margin: 0 0 2.5rem; }
.exp-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
  border-top: 1px solid rgba(59, 66, 39, 0.18);
}
.exp-item { padding: 1.7rem 0; border-bottom: 1px solid rgba(59, 66, 39, 0.18); }
.exp-item__org { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; color: var(--color-olive); letter-spacing: var(--title-tracking);}
.exp-item__role {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin: 0.45rem 0 0.8rem;
}
.exp-item__text { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.7; color: var(--color-text); }
.exp-more { margin-top: 2rem; }

@media (max-width: 700px) {
  .exp-list { grid-template-columns: minmax(0, 1fr); }
  .more-work { margin-top: 4rem; }
  .more-work__list a { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .about__facts { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .about__facts li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; gap: 0.75rem; }
  .about__facts strong { font-size: var(--fs-h3); margin: 0; }
}
/* Phones: service cards become compact rows, icon beside the title */
@media (max-width: 640px) {
  .services__grid { gap: 0.75rem; }
  .service-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.25rem;
  }
  .service-card__icon { width: 56px; height: 56px; padding: 13px; margin: 0; grid-row: span 2; }
  .service-card__title { font-size: var(--fs-lead); margin-bottom: 0.35rem; }
  .service-card__desc { font-size: var(--fs-body); line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Mobile menu: no divider line before the social icons */
@media (max-width: 900px) { .nav__links.open .nav__socials { border-left: 0; margin-left: 0; padding-left: 0; } }

/* ========== TRAYECTORIA (communications career) ========== */
.trayectoria { background: rgba(222, 207, 188, 0.35); border-top: 1px solid rgba(59, 66, 39, 0.12); }
.tray-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.tray-head .section__title { margin: 0; }
.tray-intro { font-family: var(--font-detail); font-size: var(--fs-lead); line-height: 1.7; color: var(--color-text); }
.tray-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 2rem 0; margin-bottom: 3.5rem; border-top: 1px solid rgba(59, 66, 39, 0.25); border-bottom: 1px solid rgba(59, 66, 39, 0.25); }
.tray-stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1; color: var(--color-terracotta); margin-bottom: 0.55rem; letter-spacing: var(--title-tracking);}
.tray-stats span { display: block; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5; color: var(--color-text-light); }
.tray-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; margin-bottom: 4rem; }
.tray-feature__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--verde); }
.tray-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.tray-feature:hover .tray-feature__img img { transform: scale(1.03); }
.tray-feature h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.15; margin: 0.7rem 0 1rem; color: var(--color-olive); letter-spacing: var(--title-tracking);}
.tray-feature__body > p:not(.case-org):not(.work-meta) { font-family: var(--font-detail); font-size: var(--fs-body); line-height: 1.75; }
.tray-feature__points { list-style: none; margin: 1.2rem 0 1.4rem; border-top: 1px solid rgba(59, 66, 39, 0.2); }
.tray-feature__points li { padding: 0.7rem 0; border-bottom: 1px solid rgba(59, 66, 39, 0.2); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; }
.tray-feature__points strong { font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); margin-right: 0.3rem; }
.tray-label { font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); margin-bottom: 1rem; }
.tray-timeline { list-style: none; border-top: 1px solid rgba(59, 66, 39, 0.3); }
.tray-timeline a { display: grid; grid-template-columns: 7.5rem minmax(0, 1.1fr) minmax(0, 1.4fr) 2rem; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid rgba(59, 66, 39, 0.3); color: var(--color-olive); text-decoration: none; transition: padding 0.3s ease, background 0.3s ease; }
.tray-timeline a:hover { background: rgba(249, 246, 236, 0.7); padding-left: 0.6rem; }
.tray-timeline a:hover .tray-org { color: var(--color-terracotta); }
.tray-year { font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--color-terracotta); }
.tray-org { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 1.3; transition: color 0.3s ease; letter-spacing: var(--title-tracking);}
.tray-role { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55; color: var(--color-text-light); }
.tray-go { justify-self: end; }
.tray-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
@media (max-width: 900px) {
  .tray-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .tray-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tray-feature { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
  .tray-timeline a { grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 0.25rem 1rem; }
  .tray-timeline a > span:not(.tray-go) { grid-column: 1; }
  .tray-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
@media (max-width: 640px) {
  .tray-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tray-feature__img img, .tray-timeline a, .tray-org { transition: none; }
  .tray-feature:hover .tray-feature__img img { transform: none; }
}

/* Current page in the nav (pages other than home) */
.nav__link--active::after { width: 100%; }

/* ========== IMPACT (one block for every figure on the site) ========== */
/* Three groups read as units: career, FAAE digital growth, recognition. */
.impact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr);
  border-top: 1px solid rgba(59, 66, 39, 0.25);
  border-bottom: 1px solid rgba(59, 66, 39, 0.25);
  margin-bottom: 3.5rem;
}
.impact__item { padding: 1.8rem 2rem; }
.impact__item:first-child { padding-left: 0; }
.impact__item:last-child { padding-right: 0; }
.impact__item + .impact__item { border-left: 1px solid rgba(59, 66, 39, 0.25); }
.impact__kicker {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.9rem;
}
.impact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--color-terracotta);
  margin-bottom: 0.55rem; letter-spacing: var(--title-tracking);}
.impact__value small { font-size: 0.42em; margin-left: 0.15em; color: var(--color-olive); }
.impact__label { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5; color: var(--color-text-light); }
.impact__trio { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.impact__trio strong {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--color-terracotta);
  margin-bottom: 0.55rem; letter-spacing: var(--title-tracking);}
.impact__trio span { font-family: var(--font-body); font-size: var(--fs-body); color: var(--color-text-light); }
.impact__note { margin-top: 0.9rem; font-family: var(--font-body); font-size: var(--fs-label); color: var(--color-text-light); }
@media (max-width: 900px) {
  .impact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .impact__item--group { grid-column: 1 / -1; order: -1; padding: 1.6rem 0; border-bottom: 1px solid rgba(59, 66, 39, 0.25); }
  .impact__item + .impact__item { border-left: 0; }
  .impact__item:not(.impact__item--group) { padding: 1.6rem 0; }
  .impact__item:last-child { border-left: 1px solid rgba(59, 66, 39, 0.25); padding-left: 1.4rem; }
}
@media (max-width: 420px) {
  .impact__trio { gap: 0.5rem; }
  .impact { grid-template-columns: minmax(0, 1fr); }
  .impact__item:last-child { border-left: 0; padding-left: 0; border-top: 1px solid rgba(59, 66, 39, 0.25); }
  .impact__value { font-size: var(--fs-h2); }
  .impact__trio strong { font-size: var(--fs-h2); }
  /* Long button labels wrap instead of pushing the page sideways */
  .services__cta .btn { width: 100%; white-space: normal; text-align: center; padding: 0.7rem 1rem; }
}

/* ========== PAGE GRID ========== */
@media (max-width: 900px) { :root { --gutter: 1.5rem; } }
@media (max-width: 640px) { :root { --gutter: 1.25rem; } }


/* ========== COMMON CLOSING BLOCK (CV, portfolio) ========== */
.page-cta { padding: 5.5rem var(--gutter); border-top: 1px solid rgba(59, 66, 39, 0.15); }
.page-cta__inner { max-width: var(--page-max); margin: 0 auto; }
.page-cta__label { font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); margin-bottom: 1rem; }
.page-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.15; letter-spacing: var(--title-tracking); color: var(--color-olive); margin-bottom: 1rem; max-width: 22ch; }
.page-cta p:not(.page-cta__label) { font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.7; max-width: 46ch; margin-bottom: 1.8rem; }

/* ========== ACCESS AND NAVIGATION ========== */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; padding: .8rem 1.2rem; background: var(--color-olive); color: var(--color-cream); font-family: var(--font-body); font-size: var(--fs-body); }
.skip-link:focus { top: 1rem; }
/* A link and its ↗ never split across lines */
.nav__link { white-space: nowrap; }

/* ========== CONTACT FORM AND NEWSLETTER ========== */
.contact__grid:has(.contact-form) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 4rem; row-gap: 1.5rem; }
.contact__grid:has(.contact-form) > :not(.contact-form) { grid-column: 2; }
.contact__grid:has(.contact-form) .contact__email { font-size: var(--fs-h3); }
.contact-form { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.contact-form__field { display: flex; flex-direction: column; gap: .45rem; }
.contact-form__field--wide, .contact-form__actions { grid-column: 1 / -1; }
.contact-form label, .contact__news-label { font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 44px; padding: .75rem .9rem; border: 1px solid rgba(59, 66, 39, .35); border-radius: 0; background: var(--color-white); color: var(--color-olive); font-family: var(--font-body); font-size: var(--fs-body); }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--color-mandarina); outline-offset: 2px; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
.contact-form__note { max-width: 26rem; font-family: var(--font-body); font-size: var(--fs-label); color: var(--color-text-light); }
.contact__news { flex-basis: 100%; padding-top: 1.5rem; border-top: 1px solid #3b422735; text-align: left; }
.contact__news p:not(.contact__news-label) { margin: .4rem 0 1rem; font-family: var(--font-body); font-size: var(--fs-body); color: var(--color-text-light); }
.contact__news iframe { display: block; width: 100%; max-width: 480px; height: 320px; border: 1px solid rgba(59, 66, 39, .15); background: #FFFFFF; }
@media (max-width: 900px) {
  .contact__grid:has(.contact-form) { grid-template-columns: minmax(0, 1fr); }
  .contact-form, .contact__grid:has(.contact-form) > :not(.contact-form) { grid-column: 1; grid-row: auto; }
}
/* Between tablet and wide desktop the full menu is tight: the logo keeps its
   size, links sit closer and the social icons rest in the footer. */
.nav__logo { flex-shrink: 0; }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav__links { gap: 1.1rem; }
  .nav__links .nav__socials { display: none; }
}

/* ========== 2026 EDITORIAL: MENU ========== */
.nav__links { gap: 2rem; }
.nav__link[aria-current="page"]::after, .nav__link--active::after { width: 100%; }
.nav__cta.btn { min-height: 44px; padding: 0 1.2rem; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; text-transform: none; }
@media (max-width: 900px) {
  .nav__links.open .nav__cta.btn { margin-top: .5rem; border-color: var(--color-cream); color: var(--color-cream); }
  .nav__links.open .nav__cta.btn:hover { background: var(--color-cream); color: var(--color-olive); }
}

/* ========== 2026 EDITORIAL: INNER PAGES ========== */
.page { max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding: calc(5.5rem + var(--space-section) * .6) var(--gutter) var(--space-section); }
.eyebrow { margin-bottom: 1.2rem; font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); line-height: 1.5; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display); line-height: 1.125; letter-spacing: var(--title-tracking); color: var(--color-text); text-wrap: balance; }
.page-lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--color-text); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }

/* Sobre mí: text in 7 columns, portrait in 5 */
.about-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
.about-page__text { grid-column: 1 / span 7; }
.about-page__text > p:not(.eyebrow):not(.page-lead):not(.about-page__langs) { margin-top: 1.2rem; max-width: 680px; font-size: var(--fs-body); line-height: 1.65; }
.about-page__text .page-lead { max-width: 680px; }
.about-page__h2 { margin-top: 3rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: var(--title-tracking); }
.about-page__langs { margin-top: 2rem; font-size: var(--fs-label); color: var(--azul); }
.about-page__portrait { grid-column: 9 / span 4; margin: 0; position: sticky; top: 6.5rem; }
.about-page__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
@media (max-width: 767px) {
  .about-page { grid-template-columns: minmax(0, 1fr); }
  .about-page__text, .about-page__portrait { grid-column: 1; }
  .about-page__portrait { position: static; grid-row: 1; margin-bottom: 2rem; }
  .about-page__portrait img { aspect-ratio: 3 / 2; }
}

/* ========== 2026 EDITORIAL: HOME ========== */
.anchor-legacy { position: absolute; top: 0; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: var(--title-tracking); color: var(--color-text); }
.home-acomp, .home-work, .home-about { padding: var(--space-section) var(--gutter); }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Track record in one line */
.track { display: flex; align-items: baseline; gap: .5rem 2rem; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding: 1.5rem var(--gutter); border-block: 1px solid rgba(59, 66, 39, .2); }
.track__label { flex-shrink: 0; font-family: var(--font-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--color-terracotta); }
.track__list { font-size: var(--fs-body); line-height: 1.6; color: var(--azul); }

/* Acompañamientos: two groups of rows, 7/5 */
.acomp-groups { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 3rem; align-items: start; }
.acomp-group__title { margin-bottom: .8rem; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); color: var(--azul); }
.acomp-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 2rem; align-items: center; gap: 1.1rem; min-height: 56px; padding: 1.1rem 0; border-top: 1px solid rgba(59, 66, 39, .25); color: var(--color-text); }
.acomp-list li:last-child .acomp-row { border-bottom: 1px solid rgba(59, 66, 39, .25); }
.acomp-row__icon { width: 40px; height: 40px; padding: 8px; }
.acomp-row__text { display: flex; flex-direction: column; gap: .2rem; }
.acomp-row__name { font-size: var(--fs-lead); line-height: 1.35; }
.acomp-row__sub { font-size: var(--fs-label); line-height: 1.5; color: var(--azul); }
.acomp-row__go { justify-self: end; color: var(--color-terracotta); }
.acomp-row:hover .acomp-row__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Selected work: the first case wide, two below */
.home-work .section-title { margin-bottom: 2.5rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
.feature { display: grid; gap: 1.2rem; align-content: start; color: var(--color-text); }
.feature--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.feature__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-cream-dark); }
.feature__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .feature__image img { transform: scale(1.02); }
.feature__meta { font-size: var(--fs-label); line-height: 1.5; color: var(--azul); }
.feature__title { margin-top: .4rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.33; letter-spacing: var(--title-tracking); }
.feature--lead .feature__title { font-size: var(--fs-h2); line-height: 1.2; }
.feature__text { margin-top: .6rem; font-size: var(--fs-body); line-height: 1.65; }
.feature__figure { margin-top: 1rem; font-size: var(--fs-body); color: var(--color-terracotta); }
.feature__link { display: inline-block; margin-top: 1rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature:hover .feature__link { color: var(--color-terracotta); }

/* Sobre mí, text only at 680 px */
.home-about__inner > * { max-width: 680px; }
.home-about__name { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: 1.2rem; }
.home-about__firma { width: auto; height: 2.6rem; }
.home-about__inner > p:not(.eyebrow) { margin-top: 1rem; font-size: var(--fs-body); line-height: 1.65; }

@media (max-width: 767px) {
  .track { flex-direction: column; gap: .4rem; }
  .acomp-groups { grid-template-columns: minmax(0, 1fr); }
  .acomp-row { padding: .7rem 0; }
  .acomp-row__sub { display: none; }
  .acomp-row__name { font-size: var(--fs-body); }
  .features { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .feature, .feature--lead { grid-column: 1; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid rgba(59, 66, 39, .25); }
  .feature__text, .feature__link { display: none; }
  .feature__title, .feature--lead .feature__title { font-size: var(--fs-lead); line-height: 1.3; }
  .feature__figure { margin-top: .3rem; font-size: var(--fs-label); }
}
@media (prefers-reduced-motion: reduce) { .feature__image img { transition: none; } }

/* ========== 2026 EDITORIAL: CASE AND PROJECT PAGES ========== */
.crumbs { margin-bottom: 2rem; font-size: var(--fs-label); color: var(--azul); }
.crumbs a { color: var(--color-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crumbs span[aria-hidden] { margin: 0 .35rem; }
.case-page__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2rem; align-items: start; }
.case-page__intro { grid-column: 1 / span 8; }
.case-page__intro .page-lead { max-width: 40rem; }
.facts { grid-column: 9 / span 4; margin: 0; border-top: 1px solid rgba(59, 66, 39, .25); }
.facts > div { padding: .8rem 0; border-bottom: 1px solid rgba(59, 66, 39, .25); }
.facts dt { font-size: var(--fs-label); color: var(--azul); }
.facts dd { margin: .2rem 0 0; font-size: var(--fs-body); line-height: 1.5; }
.facts dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.facts dd .drawn-arrow { width: 1em; }
.case-figures { margin-top: 3rem; padding: 1.5rem 0; border-block: 1px solid rgba(59, 66, 39, .25); }
.case-figures ul { display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; list-style: none; }
.case-figures strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.2; color: var(--color-terracotta); }
.case-figures span { font-size: var(--fs-body); }
.case-figures p { margin-top: .8rem; font-size: var(--fs-label); color: var(--azul); }
.case-hero { margin-top: 3rem; }
.case-hero figure, .case-gallery figure { margin: 0; }
.case-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-cream-dark); }
.case-hero figcaption, .case-gallery figcaption, .work-figure figcaption { padding-top: .6rem; font-size: var(--fs-label); line-height: 1.5; color: var(--azul); }
.case-contribution { margin-top: var(--space-section); }
.case-contribution .section-title { margin-bottom: 2rem; }
.case-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.case-blocks .case-block { margin: 0; padding: 0; background: none; color: inherit; border: 0; }
.case-blocks .case-block h3 { margin-bottom: .6rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.33; letter-spacing: var(--title-tracking); text-transform: none; color: var(--color-text); }
.case-blocks .case-block p { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65; }
.case-blocks .case-block--result { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(59, 66, 39, .25); }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: var(--space-section); }
.case-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: var(--space-section); padding-top: 1.5rem; border-top: 1px solid rgba(59, 66, 39, .25); }
.pager .drawn-arrow--back { margin: 0 .35em 0 0; }
.page-close { margin-top: var(--space-section); padding: var(--space-section) 0 0; border-top: 1px solid rgba(59, 66, 39, .25); }
.page-close .page-actions { margin-top: 1.5rem; }
@media (max-width: 767px) {
  .case-page__head { grid-template-columns: minmax(0, 1fr); }
  .case-page__intro, .facts { grid-column: 1; }
  .case-blocks { grid-template-columns: minmax(0, 1fr); }
  .case-gallery { grid-template-columns: minmax(0, 1fr); }
  .pager { flex-direction: column; }
}

/* ========== 2026 EDITORIAL: OBRA ========== */
.obra-index__head { max-width: 46rem; margin-bottom: 3rem; }
.obra-row { display: grid; gap: 2.5rem 2rem; margin-bottom: 3rem; }
.obra-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.obra-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.obra-card { display: block; color: var(--color-text); }
.obra-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-cream-dark); }
.obra-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.obra-card:hover .obra-card__image img { transform: scale(1.02); }
.obra-card__meta { margin-top: 1rem; font-size: var(--fs-label); line-height: 1.5; color: var(--azul); }
.obra-card__title { margin-top: .3rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.33; letter-spacing: var(--title-tracking); }
.obra-card:hover .obra-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Project page: the first image runs edge to edge */
.work-page__head { padding-bottom: 2.5rem; }
.work-page__head .page-lead { max-width: 40rem; }
.work-hero { margin: 0; }
.work-hero img { width: 100%; max-height: 80vh; object-fit: cover; background: var(--color-cream-dark); }
.work-hero figcaption { max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding: .6rem var(--gutter) 0; font-size: var(--fs-label); color: var(--azul); }
.work-page__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2rem; padding-top: var(--space-section); padding-bottom: 0; }
.work-text { grid-column: 1 / span 7; }
.work-text p { max-width: 680px; font-size: var(--fs-body); line-height: 1.65; }
.work-text p + p { margin-top: 1.1rem; }
.work-related { margin-top: 2rem; color: var(--azul); }
.work-page__body .facts { grid-column: 9 / span 4; }
.work-seq { display: grid; gap: 2.5rem; padding-top: var(--space-section); padding-bottom: 0; }
.work-seq__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.work-figure { margin: 0; }
.work-figure img { width: 100%; height: auto; }
.work-page__foot { padding-top: 0; }
@media (max-width: 767px) {
  .obra-row--2, .obra-row--3 { grid-template-columns: minmax(0, 1fr); }
  .work-page__body { grid-template-columns: minmax(0, 1fr); }
  .work-text, .work-page__body .facts { grid-column: 1; }
  .work-seq__pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .obra-card__image img { transition: none; } }

/* ========== 2026 EDITORIAL: CONTACT ========== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-contact { padding: var(--space-section) var(--gutter); border-top: 1px solid rgba(59, 66, 39, .2); }
.home-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 4rem; row-gap: 2.5rem; align-items: start; }
.home-contact__text { margin-top: 1rem; font-size: var(--fs-body); }
.home-contact__email { margin-top: 2rem; }
.home-contact .contact__email { display: inline; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.5; letter-spacing: var(--title-tracking); border-bottom: 1px solid var(--color-olive); padding-bottom: .2rem; overflow-wrap: anywhere; }
.home-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.5rem; }
.contact-copy { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; text-transform: none; padding: 0 1.4rem; }
.home-contact__more { margin-top: 1.2rem; font-size: var(--fs-body); color: var(--azul); }
.home-contact__more a { color: var(--color-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.home-contact__news { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(59, 66, 39, .2); }
.home-contact__news p:not(.eyebrow) { margin: -.6rem 0 1.2rem; font-size: var(--fs-body); }
.home-contact__news .btn { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; text-transform: none; }
/* The form lines up with the title; its summary only shows on phones (or without JS) */
.home-contact__form { padding-top: 2.4rem; }
.js .home-contact__form > summary { display: none; }
.home-contact__form > summary { cursor: pointer; font-size: var(--fs-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; padding: .8rem 0; }
.home-contact__form .contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.contact-form label { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: 0; text-transform: none; color: var(--color-text); }
.contact-form [aria-invalid="true"] { border-color: var(--color-terracotta); }
.contact-form__error { margin-top: .3rem; font-size: var(--fs-label); color: var(--color-terracotta); }
@media (max-width: 767px) {
  .home-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .home-contact__form { padding-top: 0; border-top: 1px solid rgba(59, 66, 39, .2); }
  .js .home-contact__form > summary { display: block; }
}

/* ========== 2026 EDITORIAL: TYPE AND COLOUR ROLES ========== */
/* Corporative Sans has one weight (400) and Quincy one (700): never fake others. */
html { font-synthesis: none; }
body { font-size: var(--fs-body); line-height: 1.65; }
/* Buttons read as sentences */
.btn { padding: 0 1.5rem; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; text-transform: none; }
/* Capitals only for labels of one to three words; names and phrases stay in normal case */
.hero__eyebrow, .eyebrow--long, .case-org, .cases-intro > p.comm-langs:last-child { text-transform: none; letter-spacing: 0; }
/* Reading text is Verde; Azul stays for metadata, captions and form help */
.section__text, #contacto .section__text, .impact__label, .cases-intro .comm-lead + .comm-lead, .case-note { color: var(--color-text); }
/* Interior titles: one size, one colour */
.page-title, .cases-intro h1, .cv-header h1 { font-size: var(--fs-display); line-height: 1.125; letter-spacing: 0; color: var(--color-text); }
/* Mid widths: the full menu is tight (after the 2026 menu rules so it wins) */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav__links { gap: 1.1rem; }
}
/* Without JavaScript the phone menu shows its links in the bar instead of a button */
@media (max-width: 900px) {
  html:not(.js) .nav { position: relative; flex-wrap: wrap; row-gap: .6rem; }
  html:not(.js) .nav__hamburger { display: none; }
  html:not(.js) .nav__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; width: 100%; }
  html:not(.js) .hero, html:not(.js) .page { padding-top: var(--space-section); }
}

/* ========== INTRO: the orange opening, short ========== */
/* The logo with its tagline on Mandarina, branches growing in Nieve.
   The logo is still from the first paint; only the branches move. */
.intro {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: min(72svh, 680px);
  padding: 6rem var(--gutter) 3.5rem;
  background: radial-gradient(ellipse 62% 58% at 50% 52%, #D65E25 0%, #DC6227 42%, var(--color-mandarina) 100%);
}
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro__logo { position: relative; z-index: 1; width: min(400px, 68vw); height: auto; filter: brightness(0) invert(1); }
@media (max-width: 767px) { .intro { min-height: 58svh; padding-top: 5rem; } }
/* The statement follows the intro, so it no longer makes room for the menu */
.intro + .hero { padding-top: var(--space-section); }
/* Menu over the intro: white, and orange once it scrolls over it */
.nav.nav--terracotta { --nav-fg: #FFFFFF; --nav-line: rgba(255, 255, 255, 0.35); }
.nav.nav--terracotta.scrolled { background: rgba(238, 116, 50, 0.95); box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1); border-bottom: 1px solid var(--nav-line); }
.nav.nav--terracotta .nav__cta.btn { border-color: #FFFFFF; color: #FFFFFF; }
.nav.nav--terracotta .nav__cta.btn:hover { background: #FFFFFF; color: var(--color-olive); }
.nav.nav--terracotta .nav__link::after { background: #FFFFFF; }

/* ========== EDITORIAL REFINEMENTS ========== */
/* After the intro the statement can speak at a calmer size */
.intro + .hero .hero__title { font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.15; }
/* Sobre mí: the name holds the left column, the text reads on the right */
.home-about__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 3rem; align-items: start; }
.home-about__inner > * { max-width: none; }
.home-about__head .home-about__name { flex-direction: column; align-items: flex-start; }
.home-about__firma { height: 2.2rem; }
.home-about__body > p { max-width: 640px; font-size: var(--fs-lead); line-height: 1.6; }
.home-about__body > p + p { margin-top: 1rem; }
.home-about__body .page-actions { margin-top: 2rem; }
@media (max-width: 767px) {
  .home-about__inner { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .home-about__body > p { font-size: var(--fs-body); }
}
@media (max-width: 767px) { .intro + .hero .hero__title { font-size: clamp(1.75rem, 7.4vw, 2.5rem); } }
