/* =========================================================
   Pulso Arquitectura — hoja de estilos
   1. Tokens        4. Layout        7. Secciones
   2. Reset         5. Header        8. Formulario
   3. Tipografía    6. Hero          9. Footer / Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper:      #FAF9F6;
  --bone:       #F1EEE8;
  --ink:        #1C1B18;
  --ink-soft:   #35332E;
  --muted:      #8A857B;
  --muted-light:#A9A399;
  --line:       #DEDAD1;
  --line-dark:  #3A3833;
  --accent:     #EE312D;  /* rojo de marca Pulso */

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 1.4rem;
}
.h2--light { color: var(--paper); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: none;
  background: var(--accent);
  opacity: 1;
}
.eyebrow--light { color: var(--muted-light); }

/* Los rótulos son etiquetas, no texto corrido: no les aplica el max-width de <p>. */
.eyebrow { max-width: none; }

/* El del hero lleva la ubicación completa en tres líneas; la raya se alinea
   con la primera en vez de centrarse sobre el bloque. */
.hero .eyebrow { align-items: flex-start; line-height: 2; }
.hero .eyebrow::before { margin-top: 0.68em; }

p { margin: 0 0 1.15rem; max-width: 62ch; }

em { font-style: italic; }

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

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bone); }
.section--dark {
  background: var(--ink);
  color: var(--muted-light);
}

.section__head { margin-bottom: clamp(3rem, 6vw, 4.5rem); max-width: 720px; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
  flex-wrap: wrap;
}
.section__lead { color: var(--muted); font-size: 1.05rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.grid-2--contact { align-items: start; }

/* ---------- Botones ---------- */
.btn {
  --btn-fg: var(--paper);
  --btn-bg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.1rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--light { --btn-fg: var(--ink); --btn-bg: var(--paper); }
.btn--light:hover { --btn-bg: var(--bone); }

.btn--ghost-light {
  --btn-fg: var(--paper);
  background: transparent;
  border-color: rgba(250, 249, 246, .45);
}
.btn--ghost-light:hover { background: rgba(250, 249, 246, .1); border-color: var(--paper); }

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

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(250, 249, 246, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

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

/* El logotipo son dos imágenes superpuestas: la clara se ve sobre el hero
   oscuro, la oscura aparece cuando la cabecera se vuelve sólida al hacer scroll. */
.logo { position: relative; display: block; line-height: 0; }
.logo__img {
  display: block;
  height: clamp(34px, 3.6vw, 42px);
  width: auto;
  transform-origin: left center;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.logo:hover .logo__img,
.logo:focus-visible .logo__img { transform: scale(1.07); }
.logo__img--dark { position: absolute; top: 0; left: 0; opacity: 0; }
.site-header.is-solid .logo__img--light { opacity: 0; }
.site-header.is-solid .logo__img--dark  { opacity: 1; }

.nav__list { display: flex; align-items: center; gap: clamp(1.4rem, 2.1vw, 2.4rem); }
.nav__link {
  position: relative;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
  transition: opacity .3s var(--ease), color .45s var(--ease);
}
.site-header.is-solid .nav__link { color: var(--ink); opacity: 1; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link--cta {
  border: 1px solid currentColor;
  padding: 0.7rem 1.3rem;
  opacity: 1;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--paper); color: var(--ink); }
.site-header.is-solid .nav__link--cta { opacity: 1; }
.site-header.is-solid .nav__link--cta:hover { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--paper);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .45s var(--ease);
}
.site-header.is-solid .menu-toggle span { background: var(--ink); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,19,16,.88) 0%, rgba(20,19,16,.62) 42%, rgba(20,19,16,.34) 100%),
    linear-gradient(to top, rgba(20,19,16,.6) 0%, transparent 50%),
    rgba(20,19,16,.16);
}

.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); }

.hero__title {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.98;
  color: var(--paper);
  margin-bottom: 1.8rem;
}
.hero__title em { color: var(--paper); opacity: .92; }

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(250, 249, 246, .82);
  max-width: none;
  margin-bottom: 2.6rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__meta {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero__scroll {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(250, 249, 246, .7);
}
.hero__line {
  width: 2px; height: 90px;
  background: linear-gradient(to bottom, var(--accent) 35%, rgba(238, 49, 45, 0));
}

/* ---------- 7. Secciones ---------- */
/* Strip */
.strip {
  background: var(--ink);
  color: var(--accent);
  padding-block: 1.5rem;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.strip .dot { opacity: .4; }

/* Estudio */
.estudio__media { position: relative; }
.estudio__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.estudio__badge {
  position: absolute;
  right: -1px; bottom: -1px;
  background: var(--paper);
  padding: 1.5rem 1.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.estudio__badge-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}
.estudio__badge-text {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 .45rem;
}
.stat__label {
  order: 2;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat { display: flex; flex-direction: column; }

/* Equipo */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.member__portrait {
  aspect-ratio: 3 / 4;
  margin-bottom: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Al reemplazar el recuadro por una fotografía, hereda el mismo encuadre */
.member__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.member__initials {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.member__name { font-size: 1.5rem; margin-bottom: .3rem; }
.member__role {
  margin: 0 0 .9rem;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.member__bio { margin: 0; font-size: .95rem; color: var(--muted); }

/* Servicios */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease), padding-inline .45s var(--ease);
}
.service:hover { background: rgba(28, 27, 24, .028); padding-inline: 1.2rem; }
.service__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--accent);
  opacity: .7;
  transition: opacity .4s var(--ease);
}
.service:hover .service__num { opacity: 1; }
/* La descripcion ocupa toda la columna, hasta la linea divisoria:
   no le aplica el ancho de lectura de <p>. */
.service__body p { max-width: none; }

.service__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: .6rem;
}
.service p { color: var(--muted); margin: 0; }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  padding: .6rem 1.2rem;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project { overflow: hidden; }
.project--tall { grid-row: span 2; }
.project--wide { grid-column: span 2; }

.project__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--bone);
}
.project img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.project--tall img { min-height: 620px; }
.project__link:hover img,
.project__link:focus-visible img { transform: scale(1.05); filter: grayscale(0) brightness(.72); }

.project__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(20,19,16,.85), transparent);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.project__link:hover .project__info,
.project__link:focus-visible .project__info { opacity: 1; transform: translateY(0); }

.project__title { font-size: 1.6rem; color: var(--paper); margin-bottom: .2rem; }
.project__meta {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,249,246,.75);
}

.project.is-hidden { display: none; }
.projects__empty { text-align: center; color: var(--muted); margin-top: 3rem; }

/* Cita */
.quote {
  background: var(--bone);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  border-block: 1px solid var(--line);
}
.quote__inner { text-align: center; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 1.8rem;
}
.quote cite {
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Proceso */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1.4rem;
  transition: opacity .5s var(--ease);
  opacity: .55;
}
.step:hover .step__num { opacity: 1; }
.step__title { font-size: 1.5rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Contacto */
.contacto__lead { color: var(--paper); opacity: .9; }
.contacto__list {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 1.6rem;
}
.contacto__list li { display: grid; gap: .4rem; }
.contacto__label {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .85;
}
.contacto__list a { color: var(--paper); border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; transition: border-color .35s var(--ease); }
.contacto__list a:hover { border-color: var(--paper); }
.contacto__list span:not(.contacto__label) { color: var(--paper); }

/* ---------- 8. Formulario ---------- */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .5rem; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.form label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .85;
}
.opt { text-transform: none; letter-spacing: .04em; opacity: .7; }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: .95rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  transition: border-color .35s var(--ease);
}
.form textarea { resize: vertical; min-height: 96px; }
.form input::placeholder,
.form textarea::placeholder { color: var(--muted-light); }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 12px center, right 6px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.form select option { background: var(--ink); color: var(--paper); font-weight: 300; }

/* Sin esto el navegador pinta el título de grupo con su gris por defecto,
   que sobre el fondo oscuro del desplegable queda ilegible. */
.form select optgroup {
  background: var(--ink);
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field__error {
  font-size: .74rem;
  color: #C98B6B;
  min-height: 1em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: #C98B6B; }

.form__status {
  margin: 0;
  font-size: .85rem;
  color: var(--muted-light);
  min-height: 1.4em;
}
.form__status.is-success { color: #A8C0A0; }

/* ---------- 9. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--muted-light);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand { display: flex; flex-direction: column; color: var(--paper); }
.footer__logo { display: block; height: 40px; width: auto; }
.footer__nav, .footer__social { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer__nav a, .footer__social a {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.footer__nav a:hover, .footer__social a:hover { color: var(--paper); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .72rem;
  color: var(--muted);
}
.footer__legal p { margin: 0; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .project--wide { grid-column: span 2; }
  .project--tall { grid-row: span 1; }
  .project--tall img { min-height: 300px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: flex; }

  /* El despliegue se hace con opacidad y escala, no con clip-path: en Safari
     de iPhone el recorte animado sobre un elemento fijo se repinta a medias y
     el menú aparece cortado hasta que se vuelve a tocar. */
  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    pointer-events: none;
    transition: opacity .38s var(--ease), transform .38s var(--ease),
                visibility 0s linear .38s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .38s var(--ease), transform .38s var(--ease),
                visibility 0s linear 0s;
  }

  .nav__list { flex-direction: column; gap: 2rem; text-align: center; }
  .nav__link { color: var(--paper); font-size: 1rem; letter-spacing: .2em; }
  .site-header.is-solid .nav__link { color: var(--paper); opacity: .85; }
  .site-header.is-solid .nav__link--cta:hover { background: var(--paper); color: var(--ink); }

  .logo { z-index: 110; }
  .site-header:has(.nav.is-open) .logo__img--light { opacity: 1; }
  .site-header:has(.nav.is-open) .logo__img--dark  { opacity: 0; }

  .menu-toggle { position: relative; z-index: 110; }
  .menu-toggle.is-open span { background: var(--paper); }
  .menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.is-open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }
  .estudio__media { order: -1; }
  .service { grid-template-columns: 1fr; gap: .4rem; }
  .section__head--row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .projects { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .project--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.6rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .estudio__badge { padding: 1.1rem 1.4rem; }
  .estudio__badge-num { font-size: 2.2rem; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* El hero no depende de JavaScript: entra con su propia animación */
.hero [data-reveal] { animation: riseIn .9s var(--ease) both; }
.hero [data-reveal][data-reveal-delay="1"] { animation-delay: .10s; }
.hero [data-reveal][data-reveal-delay="2"] { animation-delay: .20s; }
.hero [data-reveal][data-reveal-delay="3"] { animation-delay: .30s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}


/* ---------- 10. Acentos de marca añadidos ---------- */

/* El botón que cierra la conversión es el único bloque rojo lleno de la página. */
.form .btn--light {
  --btn-fg: var(--paper);
  --btn-bg: var(--accent);
}
.form .btn--light:hover { --btn-bg: #D4231F; }

/* Enlaces del pie */
.footer__nav a:hover,
.footer__social a:hover { color: var(--accent); }

/* Las comillas de la cita repiten el trazo */
.quote blockquote::before { color: var(--accent); }


/* ---------- 11. Cursor de marca ---------- */
/* Solo en equipos con mouse: en táctiles no hay puntero que reemplazar. */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .filter, summary, [role="button"] { cursor: none; }
  /* Los campos conservan su cursor de texto: sin él no se ve dónde se escribe. */
  input, textarea, select { cursor: auto; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s var(--ease);
  }
  .cursor-dot {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--accent);
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid var(--accent);
    transition: opacity .25s var(--ease), width .3s var(--ease),
                height .3s var(--ease), margin .3s var(--ease),
                background-color .3s var(--ease);
  }
  .cursor-dot.is-visible,
  .cursor-ring.is-visible { opacity: 1; }

  /* Sobre algo pulsable el aro se abre y el punto desaparece,
     para no tapar lo que se está por tocar. */
  .cursor-ring.is-active {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    background: rgba(238, 49, 45, .12);
  }
  .cursor-dot.is-active { opacity: 0; }
}


/* ---------- 12. Botón de WhatsApp ---------- */
/* Queda bajo la cabecera (z-index 100) para que el menú desplegado lo tape. */
.wsp {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.wsp__label {
  padding: .62rem 1.05rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .78rem;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wsp:hover .wsp__label,
.wsp:focus-visible .wsp__label { opacity: 1; transform: none; }

.wsp__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wsp__icon svg { display: block; width: 28px; height: 28px; }
.wsp:hover .wsp__icon,
.wsp:focus-visible .wsp__icon {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

@media (max-width: 620px) {
  .wsp__label { display: none; }
  .wsp__icon { width: 50px; height: 50px; }
  .wsp__icon svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo__img, .wsp__label, .wsp__icon { transition: none; }
}


/* ---------- 13. Titulares equilibrados ---------- */
/* El navegador reparte las líneas para que ninguna quede con una palabra sola. */
.h2, .hero__title, .ficha__titulo { text-wrap: balance; }

/* ---------- 14. Ficha de obra ---------- */
/* display:grid pisa el display:none que trae el atributo hidden, así que la
   ocultación hay que declararla con la misma fuerza. */
.ficha[hidden] { display: none; }

.ficha {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.ficha__fondo {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 13, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ficha__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: min(1040px, 100%);
  max-height: 100%;
  overflow: auto;
  background: var(--paper);
  animation: fichaEntra .45s var(--ease) both;
}
@keyframes fichaEntra {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.ficha__media { margin: 0; }
.ficha__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ficha__texto { padding: clamp(1.6rem, 3.5vw, 2.8rem); align-self: center; }
.ficha__titulo {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  margin: .2rem 0 1rem;
}
.ficha__texto p { max-width: 46ch; }
.ficha__cerrar {
  position: absolute;
  top: .6rem;
  right: .8rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
  transition: color .3s var(--ease);
}
.ficha__cerrar:hover { color: var(--accent); }

@media (max-width: 760px) {
  .ficha { padding: 0; }
  .ficha__panel { grid-template-columns: 1fr; width: 100%; max-height: 100%; }
  .ficha__media img { max-height: 46vh; }
  .ficha__cerrar { background: rgba(250, 249, 246, .92); }
}

@media (prefers-reduced-motion: reduce) {
  .ficha__panel { animation: none; }
}


/* ---------- 15. Panel de marca ---------- */
/* La sección entera va en blanco: desde la franja negra hasta Servicios no
   hay cambio de tono, así que la placa del logotipo no se recorta contra
   el fondo. */
#estudio { background: #FFFFFF; }

.marca {
  display: grid;
  place-items: center;
  background: #FFFFFF;
  /* recorta la entrada del logotipo, que empieza fuera de la pantalla */
  overflow: hidden;
  padding-block: clamp(1rem, 3vw, 2.2rem);
}
.marca__pieza {
  position: relative;
  width: 100%;
  max-width: 588px;   /* 40 % menos que el tamaño anterior */
  opacity: 0;         /* entra con la animación; ver bloque 16 */
}
.marca__pieza img { display: block; width: 100%; height: auto; aspect-ratio: auto; }

/* La barra crece desde el centro de la O: 38.67 % de alto del archivo */
.marca__barra {
  position: absolute;
  inset: 0;
  transform-origin: 90.94% 38.67%;
  transform: scaleY(0);
}

/* Los años, centrados bajo la placa */
.marca__anos {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .8rem;
  max-width: none;
  margin: clamp(1.6rem, 3.5vw, 2.6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.marca__anos-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
}
.marca__anos-txt {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 16. Movimiento del logotipo ---------- */
/* Tres tiempos, pensados para repetirse igual en video:
   1. el logotipo entra desde fuera de la pantalla y frena en su sitio,
      con la O ya completamente negra;
   2. recién ahí la barra roja se traza desde el centro de la O hacia arriba;
   3. una vez trazada, late. */
.marca.is-visible .marca__pieza {
  animation: marcaEntra 1.15s cubic-bezier(.16, .84, .26, 1) .15s both;
}
@keyframes marcaEntra {
  from { opacity: 0; transform: translateX(calc(-50vw - 50%)); }
  10%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}

.marca.is-visible .marca__barra {
  animation: barraTraza .8s cubic-bezier(.22, .9, .3, 1) 1.35s both,
             barraLate 3.4s ease-in-out 2.2s infinite;
}
@keyframes barraTraza {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes barraLate {
  0%, 62%, 100% { opacity: 1; transform: scaleY(1); }
  70% { opacity: .4;  transform: scaleY(.88); }
  78% { opacity: 1;   transform: scaleY(1.05); }
  86% { opacity: .7;  transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .marca__pieza { opacity: 1; }
  .marca__barra { transform: none; }
  .marca.is-visible .marca__pieza,
  .marca.is-visible .marca__barra { animation: none; }
}

/* ---------- 17. Márgenes de Servicios ---------- */
/* La bajada se alineaba a 720 px mientras las descripciones llegaban al borde;
   ahora ambas terminan en la misma línea. */
#servicios .section__head { max-width: none; }
#servicios .section__lead { max-width: none; }
