/* ==========================================================================
   Vitloor S.A. — estilos
   Dirección de arte: editorial. Tipografía enorme, fotografía a pantalla
   completa y secciones con composiciones distintas.
   Paleta: asfalto, papel, blanco y rojo Vitloor.
   Tipografía: Inter (grotesca neutra, estilo Helvetica) en toda la web.
   Solo se animan transform y opacity.
   ========================================================================== */

/* 1. Variables y base ------------------------------------------------------- */

:root {
  --red: #c40024;
  --red-dark: #9d001d;
  --ink: #232629;
  --asphalt: #2b2e31;
  --paper: #f2f3f1;
  --white: #ffffff;
  --concrete: #d9dcdb;
  --muted: #5b6168;

  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --container-max: 1440px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section-y: clamp(5rem, 10vw, 9rem);   /* mismo espacio vertical en todas las secciones */
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html.menu-open body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* 2. Secciones ---------------------------------------------------------------- */

.section { padding-block: var(--section-y); background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark { color: rgb(255 255 255 / .72); background: var(--asphalt); }
.section--red { color: rgb(255 255 255 / .88); background: var(--red); }

/* 3. Botones: relleno que barre desde abajo y flecha que se desplaza ------------- */

.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red);
  --sweep: var(--ink); --fg-hover: #fff; --bd-hover: var(--ink);

  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 54px; padding: 12px 28px;
  font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1.2;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bd); border-radius: 2px;
  overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s, transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sweep);
  transform: translate3d(0, 101%, 0);
  transition: transform .5s var(--ease);
}
.btn:hover { color: var(--fg-hover); border-color: var(--bd-hover); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }

.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover .btn__icon { transform: translate3d(5px, 0, 0); }

.btn--light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .7); --sweep: #fff; --fg-hover: var(--ink); --bd-hover: #fff; }
.btn--white { --bg: #fff; --fg: var(--ink); --bd: #fff; --sweep: var(--ink); --fg-hover: #fff; --bd-hover: var(--ink); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }

/* 4. Encabezado ---------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  color: #fff;
  transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header.is-solid {
  color: var(--ink);
  background: rgb(255 255 255 / .94);
  box-shadow: 0 1px 0 var(--concrete);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
html.menu-open .site-header { color: #fff; background: transparent; box-shadow: 0 0 0 transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); }

.brand { display: block; flex-shrink: 0; }
.brand img { width: auto; height: 40px; }

/* Espacio reservado para el logo */
.brand__slot {
  display: grid; place-items: center; width: 150px; height: 46px;
  font-size: .875rem; color: currentColor; opacity: .8;
  border: 1px dashed currentColor; border-radius: 2px;
}
.brand__slot--dark { color: #fff; opacity: .55; }

.nav-desktop { display: none; align-items: center; gap: 2.25rem; }
.nav-desktop a { position: relative; padding-block: 6px; font-size: .9688rem; font-weight: 500; color: inherit; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.nav-toggle {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 2px;
  transition: background-color .3s, color .3s;
}
.nav-toggle:hover { background: rgb(255 255 255 / .12); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  transition: transform .45s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
html.menu-open .nav-toggle__bars { background: transparent; }
html.menu-open .nav-toggle__bars::before { transform: translate3d(0, 6px, 0) rotate(45deg); }
html.menu-open .nav-toggle__bars::after { transform: translate3d(0, -6px, 0) rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (min-width: 720px)  { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) { .nav-desktop { display: flex; } .nav-toggle, .menu { display: none; } }

/* 5. Menú móvil ------------------------------------------------------------------ */

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem;
  color: #fff; background: var(--asphalt);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease), visibility 0s .65s;
  overflow-y: auto;
}
html.menu-open .menu { visibility: visible; clip-path: inset(0); transition: clip-path .65s var(--ease); }

.menu__list a {
  display: block; padding-block: .3rem;
  font-family: var(--font-display); font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .5s, transform .6s var(--ease), color .2s;
}
html.menu-open .menu__list a { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .06s); }
.menu__list a:hover { color: var(--red); }
.menu__list li:last-child a { color: #ff5058; }
.menu__foot { margin-top: 2rem; font-size: 1rem; color: rgb(255 255 255 / .7); }

/* 6. Animación de entrada y revelado al scroll ------------------------------------ */

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Imágenes: una cortina del color de la sección se retira para descubrirlas */
.js [data-reveal="image"] { position: relative; opacity: 1; transform: none; }
.js [data-reveal="image"]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--paper);
  transform-origin: top; transition: transform 1.3s var(--ease);
}
.js [data-reveal="image"].is-in::after { transform: scaleY(0); }

/* 7. Inicio ------------------------------------------------------------------------ */

.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100svh;
  color: #fff; background: var(--asphalt);
  overflow: hidden; isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 80% 10%, #3d4247 0%, var(--asphalt) 55%, #1f2225 100%); animation: bg-settle 2.4s var(--ease) both; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(20 22 24 / .45) 0%, rgb(20 22 24 / .1) 35%, rgb(20 22 24 / .78) 100%);
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
@keyframes bg-settle { from { transform: scale(1.1); opacity: .4; } to { transform: none; opacity: 1; } }

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 9.5vw, 4.5rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.03em;
  color: #fff;
}
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; transform: translate3d(0, 108%, 0); animation: line-in 1.2s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .11s); }
@keyframes line-in { to { transform: none; } }

.hero__aside { opacity: 0; animation: fade-up 1s var(--ease) 1.1s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }

.hero__lead { max-width: 30ch; font-size: 1rem; line-height: 1.5; color: rgb(255 255 255 / .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2rem; align-items: end; }
  .hero__title { grid-column: 1 / 9; font-size: clamp(3.5rem, 5.6vw, 5.5rem); }
  .hero__aside { grid-column: 10 / 13; padding-bottom: .6rem; }
}

/* Indicador de desplazamiento */
.scroll-cue { position: absolute; right: var(--gutter); bottom: 2rem; display: none; width: 44px; height: 72px; place-items: center; }
.scroll-cue__line { position: relative; display: block; width: 1px; height: 56px; background: rgb(255 255 255 / .35); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-24px); } 70%, 100% { transform: translateY(58px); } }
@media (min-width: 1024px) { .scroll-cue { display: grid; } }

/* 8. Clientes: cinta continua ---------------------------------------------------------- */

.marquee { overflow: hidden; background: var(--white); border-bottom: 1px solid var(--concrete); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: flex; align-items: center; gap: 2.5rem; padding-block: 1.25rem; padding-right: 2.5rem;
  font-family: var(--font-display); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; color: var(--ink);
}
.marquee__list li::after { content: ""; width: 8px; height: 8px; background: var(--red); }
.marquee__list img { display: block; width: auto; height: clamp(1.75rem, 2.4vw, 2.25rem); filter: grayscale(1); opacity: .5; transition: opacity .3s, filter .3s; }
.marquee__list li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* 9. Quiénes somos: frase que se ilumina al leer + acordeón ---------------------------- */

.statement {
  max-width: 26em;
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.625rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -.025em; color: var(--ink);
}
.statement .w { display: inline-block; will-change: opacity; }

/* Logotipo animado bajo la frase: el ícono entra y las letras suben una a una */
.intro__brand { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.logo-anim { display: block; width: clamp(14.5rem, 21vw, 18.5rem); height: auto; overflow: visible; }
.logo-anim .la-l, .logo-anim .la-sub path { fill: var(--ink); }
.logo-anim .la-icon, .logo-anim .la-l { transform-box: fill-box; }
.js [data-reveal="logo"] { opacity: 1; transform: none; }
.js .logo-anim .la-icon {
  opacity: 0; transform: translate3d(-18px, 0, 0) scale(.88); transform-origin: center;
  transition: opacity .7s var(--ease), transform 1s var(--ease);
}
.js .logo-anim .la-l {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .7s var(--ease), transform 1s var(--ease);
  transition-delay: calc(.35s + var(--i, 0) * 70ms);
}
.js .logo-anim .la-sub { opacity: 0; transition: opacity .9s var(--ease) 1.05s; }
.js .is-in .logo-anim .la-icon, .js .is-in .logo-anim .la-l, .js .is-in .logo-anim .la-sub { opacity: 1; transform: none; }

.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; margin-top: clamp(4rem, 8vw, 7rem); }

.intro__figure { overflow: visible; }
.intro__figure img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; transform: scale(1.12); }

.intro__meta { max-width: 38ch; margin-bottom: 2rem; font-size: .9375rem; }

@media (min-width: 960px) {
  .intro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2rem; align-items: end; }
  .intro__figure { grid-column: 1 / 6; }
  .intro__body { grid-column: 7 / 13; }
}

.value { border-top: 1px solid rgb(35 38 41 / .28); }
.value:last-child { border-bottom: 1px solid rgb(35 38 41 / .28); }

.value__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.15rem 0; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink); background: none; border: 0;
  transition: color .3s, padding-left .45s var(--ease);
}
.value__btn:hover { color: var(--red); padding-left: .5rem; }

.value__icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.value__icon::before, .value__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: currentColor; transition: transform .45s var(--ease); }
.value__icon::after { transform: rotate(90deg); }
.value.is-open .value__icon::after { transform: rotate(0deg); }

.value__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease); }
.value__panel > div { overflow: hidden; }
.value__panel p { max-width: 44ch; padding-bottom: 1.4rem; font-size: .9688rem; }
.js .value:not(.is-open) .value__panel { grid-template-rows: 0fr; }
.js .value:not(.is-open) .value__panel > div { visibility: hidden; transition: visibility 0s .55s; }

/* 10. Servicios: tarjetas con icono ----------------------------------------------------- */

.services__title { margin-bottom: clamp(2rem, 4vw, 3rem); font-size: 1rem; font-weight: 500; letter-spacing: normal; color: rgb(255 255 255 / .6); }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

.card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: clamp(1.5rem, 2.4vw, 2rem) clamp(1.5rem, 2.4vw, 2rem) 2.25rem;
  color: var(--muted); background: var(--white);
  border-bottom: 4px solid var(--red-dark);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .75rem;
  background: rgb(196 0 36 / .1); border-radius: 50%;
}
.card__icon img { width: 52px; height: 52px; object-fit: contain; }
.card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.card__text { font-size: .9375rem; line-height: 1.6; }

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (hover: hover) {
  .card { transition: opacity .9s var(--ease), transform .5s var(--ease); }
  .card.is-in:hover { transform: translate3d(0, -6px, 0); }
}

/* 11. Experiencia: registro editorial por año ---------------------------------------------- */

.exp__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.exp__head h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.exp__head p { max-width: 28ch; font-size: .9375rem; }
@media (min-width: 960px) {
  .exp__head { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2rem; align-items: end; }
  .exp__head h2 { grid-column: 1 / 9; }
  .exp__head p { grid-column: 10 / 13; padding-bottom: .6rem; }
}

.year { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.year + .year { margin-top: clamp(2rem, 4vw, 3rem); }
.year__label { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1; color: var(--red); }

.works li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--concrete); isolation: isolate; }
.works li:first-child { padding-top: 0; }
.works__title { font-size: .9688rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.works__client, .works__term { font-size: .9062rem; line-height: 1.4; }

@media (min-width: 960px) {
  .year { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2rem; }
  .year__label { grid-column: 1 / 4; position: sticky; top: 100px; align-self: start; }
  .works { grid-column: 4 / 13; }
  .works li { grid-template-columns: minmax(0, 1fr) 15rem 5.5rem; gap: 0 2rem; align-items: baseline; padding: 1.25rem 0; }
  .works li:first-child { padding-top: 1.25rem; }
  .works li::before {
    content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: var(--paper);
    transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
  }
  .works li:hover::before { transform: scaleY(1); }
  .works__term { text-align: right; white-space: nowrap; }
}

.more summary {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding: 14px 0;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink); cursor: pointer; list-style: none; border-bottom: 2px solid var(--red);
  transition: color .3s, gap .4s var(--ease);
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--red); gap: 1.5rem; }
.more__close { display: none; }
.more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }
.more[open] summary { margin-bottom: clamp(2rem, 4vw, 3rem); }
.more__icon { position: relative; width: 18px; height: 18px; }
.more__icon::before, .more__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.more__icon::after { transform: rotate(90deg); }
.more[open] .more__icon::after { transform: rotate(0deg); }

/* 12. Altos de Piedra Larga: fotografía a pantalla completa ------------------------------------ */

.altos {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(100svh, 1000px); padding-block: var(--section-y);
  color: rgb(255 255 255 / .85); background: var(--asphalt);
  overflow: hidden; isolation: isolate;
}
.altos__media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 90% at 20% 20%, #3b4045 0%, var(--asphalt) 60%, #202326 100%); }
.altos__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(20 22 24 / .82) 0%, rgb(20 22 24 / .25) 55%, rgb(20 22 24 / .35) 100%);
}

.fader img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: translate3d(0, var(--py, 0px), 0) scale(1.14);
  transition: opacity 1.5s ease;
}
.fader img.is-active { opacity: 1; }

.altos__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; width: 100%; }
.altos__title { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; color: #fff; }
.altos__title--logo { line-height: 0; }
.altos__title--logo img { display: block; width: clamp(34rem, 80vw, 58rem); max-width: none; height: auto; margin-left: calc(clamp(34rem, 80vw, 58rem) * -0.287); filter: brightness(0) invert(1); }
.altos__slogan { max-width: 18ch; margin-top: 1.25rem; font-family: var(--font-display); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: #fff; }

.altos__panel { padding: clamp(1.5rem, 2.6vw, 2.25rem); color: var(--muted); background: var(--paper); }
.altos__text { margin-bottom: 1.25rem; font-size: .9688rem; }
.altos__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; margin-bottom: 1.75rem; }
.altos__facts > div { padding-top: .75rem; border-top: 1px solid var(--concrete); }
.altos__facts dt { font-size: .8125rem; }
.altos__facts dd { margin-top: .1rem; font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }

@media (min-width: 960px) {
  .altos__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2rem; align-items: end; }
  .altos__title { font-size: clamp(3.5rem, 5vw, 4.75rem); }
  .altos__head { grid-column: 1 / 9; }
  .altos__panel { grid-column: 9 / 13; }
}

.fader__dots { display: flex; gap: 6px; margin-top: 1.75rem; }
.fader__dot { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; }
.fader__dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgb(255 255 255 / .4); transition: background-color .3s; }
.fader__dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; }
.fader__dot:hover::before { background: rgb(255 255 255 / .75); }
.fader__dot.is-active::after { animation: dot-fill var(--dur, 6500ms) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }

/* 13. Equipo: columnas escalonadas -------------------------------------------------------------- */

.team__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.team__title { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.team-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.team-list li { display: grid; gap: .3rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.team__name { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }

@media (min-width: 720px) {
  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .team-list li:nth-child(even) { transform: translate3d(0, 3.5rem, 0); }
  .team-list { padding-bottom: 3.5rem; }
}
@media (min-width: 960px) {
  .team__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2rem; align-items: start; }
  .team__title { grid-column: 1 / 6; }
  .team-list { grid-column: 6 / 13; }
}
.js .team-list li[data-reveal] { transform: translate3d(0, 28px, 0); }
.js .team-list li[data-reveal].is-in { transform: none; }
@media (min-width: 720px) { .js .team-list li:nth-child(even)[data-reveal].is-in { transform: translate3d(0, 3.5rem, 0); } }

/* 14. Contacto (cierre en rojo) ------------------------------------------------------------------ */

.contact__title { max-width: 12ch; font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.contact__lead { max-width: 24ch; font-size: 1.0625rem; line-height: 1.45; color: #fff; }

.contact__details { display: grid; gap: .25rem; }
.contact__details a {
  position: relative; width: fit-content;
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: #fff;
}
.contact__details a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.contact__details a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__details p { margin-top: 1rem; font-size: .9688rem; color: rgb(255 255 255 / .88); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }

@media (min-width: 960px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .contact__lead { grid-column: 1 / 5; }
  .contact__details { grid-column: 6 / 10; }
  .contact__actions { grid-column: 10 / 13; flex-direction: column; align-items: stretch; }
}

/* 15. Pie de página ---------------------------------------------------------------------------------- */

.footer { padding-block: clamp(3rem, 5vw, 4.5rem); color: rgb(255 255 255 / .68); background: var(--ink); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.footer__legal, .footer__copy { font-size: .9375rem; line-height: 1.6; }
@media (min-width: 960px) {
  .footer__inner { grid-template-columns: 1fr 1fr auto; gap: 3rem; }
  .footer__copy { text-align: right; }
}

/* 16. Movimiento reducido ------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .line > span, .hero__aside { transform: none; opacity: 1; }
  .js [data-reveal], .js [data-reveal="image"] { opacity: 1; transform: none; }
  .js [data-reveal="image"]::after { display: none; }
  .marquee__track { width: auto; flex-wrap: wrap; }
  .marquee__list[aria-hidden="true"], .marquee__list li[aria-hidden="true"] { display: none; }
}

/* WordPress: texto del nombre cuando aún no hay logo, y páginas genéricas ------------------ */

.brand__text { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.page-default { padding-top: calc(var(--header-h) + var(--section-y)); }
.page-default h1 { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.02em; }
.page-default__body { max-width: 68ch; }
.page-default__body > * + * { margin-top: 1rem; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }


/* Contacto: título grande a la izquierda y una lista de vías de contacto a la derecha; el rojo solo en el botón principal */
.section.contact { color: var(--muted); background: var(--white); }
.contact .container { display: grid; grid-template-columns: minmax(0, 1fr); }
.contact .contact__grid, .contact .contact__details, .contact .contact__actions { display: contents; }
.contact .contact__title { order: 1; max-width: 11ch; font-size: clamp(2.75rem, 7vw, 5.5rem); color: var(--ink); }
.contact .contact__lead { order: 2; max-width: 30ch; margin: 1.5rem 0 clamp(2.5rem, 5vw, 3.5rem); font-size: 1.125rem; color: var(--muted); }
.contact .contact__actions a:first-child { order: 3; }
.contact .contact__actions a:last-child { display: none; }
.contact .contact__details a { order: 4; }
.contact .contact__details p { order: 5; }
.contact .contact__details a, .contact .contact__details p { margin: 0; border-top: 1px solid var(--concrete); }
.contact .contact__details p { padding: 1.25rem 0; border-bottom: 1px solid var(--concrete); font-size: 1rem; line-height: 1.5; color: var(--muted); }
.contact .contact__details a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.25rem 0;
  font-size: clamp(1.625rem, 3.4vw, 2.5rem); color: var(--ink); transition: color .3s, padding .4s var(--ease);
}
.contact .contact__details a::after {
  content: "\2192"; position: static; width: auto; height: auto; background: none; transform: none;
  font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .4s var(--ease);
}
.contact .contact__details a:hover { color: var(--red); padding-left: .5rem; }
.contact .contact__details a:hover::after { transform: translate3d(6px, 0, 0); }
.contact .btn--white {
  --bg: var(--red); --fg: #fff; --bd: var(--red); --sweep: var(--ink); --fg-hover: #fff; --bd-hover: var(--ink);
  justify-content: space-between; width: 100%; min-height: 0; margin-bottom: 1rem; padding: 1.75rem 2rem; font-size: 1.25rem; border-radius: 0;
}
@media (min-width: 960px) {
  .contact .container { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
  .contact .contact__title { grid-column: 1 / 7; grid-row: 1 / span 2; }
  .contact .contact__lead { grid-column: 1 / 6; grid-row: 3 / span 2; margin: 1.5rem 0 0; align-self: start; }
  .contact .contact__actions a:first-child { grid-column: 8 / 13; grid-row: 1; }
  .contact .contact__details a:nth-of-type(1) { grid-column: 8 / 13; grid-row: 2; }
  .contact .contact__details a:nth-of-type(2) { grid-column: 8 / 13; grid-row: 3; }
  .contact .contact__details p { grid-column: 8 / 13; grid-row: 4; }
}
