/* ==========================================================================
   Casa Verde Studio — Hoja de estilos del sitio público
   Paleta y tipografías definidas por el panel de administración.
   ========================================================================== */

:root {
  --hueso:     #F2EFEA;
  --hueso-2:   #ECE8E1;
  --salvia:    #A6B09A;
  --magenta:   #9B4A7A;
  --palo-rosa: #C7A3AA;
  --taupe:     #9A9185;
  --grafito:   #242423;
  --texto:     #4a4a48;

  --display: 'EB Garamond', 'Times New Roman', Georgia, serif;
  --ui: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --linea: rgba(36, 36, 35, .15);
  --max: 1180px;
  --nav-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--hueso);
  color: var(--grafito);
  font-family: var(--ui);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--magenta); }
::selection { background: var(--magenta); color: var(--hueso); }

h1, h2, h3, h4, blockquote, figure, p { margin: 0; }

.ac-magenta { color: var(--magenta); font-style: italic; }
.ac-salvia  { color: var(--salvia);  font-style: italic; }

.contenedor { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.contenedor--ancho { max-width: 1280px; }

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

.saltar-a {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--grafito); color: var(--hueso); padding: 12px 20px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.saltar-a:focus { left: 0; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* ── Animaciones ─────────────────────────────────────────────────────────── */

@keyframes cvSpin    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cvMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cvFadeUp  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cvFade    { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 1; }
body.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1); }
body.js .reveal.visible { opacity: 1; transform: none; }

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

/* ── Navegación ──────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(242, 239, 234, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 36, 35, .12);
  transition: padding .35s ease, background .35s ease;
}
.nav.compacta { padding: 11px 40px; background: rgba(242, 239, 234, .95); }

.nav__marca { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav__marca img { width: 30px; height: 30px; }
.nav__marca span {
  font-family: var(--display); font-size: 17px; letter-spacing: .28em;
  text-transform: uppercase; white-space: nowrap;
}
.nav__marca--logo img { width: auto; height: 30px; }

.nav__menu {
  display: flex; align-items: center; gap: 34px;
  font-size: 11px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
}
.nav__menu a { position: relative; padding-bottom: 3px; }
.nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .35s ease;
}
.nav__menu a:hover::after, .nav__menu a.activo::after { width: 100%; }
.nav__menu .nav__cta { border-bottom: 1px solid var(--grafito); }
.nav__menu .nav__cta::after { display: none; }

.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 42px; height: 38px; position: relative;
}
.nav__toggle span {
  display: block; width: 24px; height: 1px; background: var(--grafito); margin: 5px auto;
  transition: transform .35s ease, opacity .25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 150px 24px 96px; position: relative; overflow: hidden;
}
.hero__fondo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero__fondo::after { content: ''; position: absolute; inset: 0; background: rgba(242, 239, 234, .72); }
.hero__marco { position: absolute; inset: 28px; border: 1px solid rgba(36, 36, 35, .18); pointer-events: none; z-index: 2; }
.hero__icono, .hero__titulo, .hero__sub, .hero__desc { position: relative; z-index: 1; }
.hero__icono { width: 150px; height: 150px; margin-bottom: 40px; animation: cvSpin 90s linear infinite; }
.hero__titulo {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 11vw, 168px); letter-spacing: .16em;
  line-height: 1.02; margin: 0 0 8px; animation: cvFadeUp 1.2s ease both;
}
.hero__sub { display: flex; align-items: center; justify-content: center; gap: 22px; animation: cvFadeUp 1.2s .15s ease both; }
.hero__sub span:first-child, .hero__sub span:last-child { width: 60px; height: 1px; background: var(--taupe); }
.hero__sub b { font-weight: 300; font-size: 15px; letter-spacing: .55em; text-indent: .55em; }
.hero__desc {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe);
  margin-top: 44px; animation: cvFadeUp 1.2s .3s ease both; max-width: 34ch;
}
.hero__scroll {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); z-index: 3;
  white-space: nowrap;
}
.hero__scroll::after { content: ' ↓'; }

/* ── Marquesina ──────────────────────────────────────────────────────────── */

.marquee {
  background: var(--salvia); color: var(--hueso); overflow: hidden; padding: 20px 0;
  border-top: 1px solid var(--grafito); border-bottom: 1px solid var(--grafito);
}
.marquee__pista { display: flex; width: max-content; animation: cvMarquee linear infinite; }
.marquee__pista span {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--display); font-size: 26px; letter-spacing: .24em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee__pista img { width: 22px; height: 22px; opacity: .55; }

/* ── Encabezado de sección ───────────────────────────────────────────────── */

.seccion { padding: 120px 0; }
.seccion--alt { background: var(--hueso-2); border-top: 1px solid var(--linea); }
.seccion--borde { border-top: 1px solid var(--linea); }

.seccion__head {
  display: flex; align-items: baseline; gap: 26px; margin-bottom: 54px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.seccion__head .num { color: var(--magenta); }
.seccion__head .etq { color: var(--taupe); }
.seccion__head .raya { flex: 1; height: 1px; background: var(--linea); align-self: center; }

/* ── Estudio ─────────────────────────────────────────────────────────────── */

.estudio__parrafo {
  font-family: var(--display); font-size: clamp(26px, 4vw, 52px);
  line-height: 1.35; max-width: 980px; text-wrap: pretty;
}
.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-top: 80px; }
.pilar__titulo { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--magenta); margin-bottom: 14px; }
.pilar p { font-size: 14px; line-height: 1.8; color: var(--texto); text-wrap: pretty; }

/* ── Servicios ───────────────────────────────────────────────────────────── */

.servicio {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 28px;
  align-items: baseline; padding: 42px 10px; border-bottom: 1px solid var(--linea);
  transition: background .35s ease, padding-left .35s ease;
}
.servicio:hover { background: rgba(166, 176, 154, .14); padding-left: 26px; }
.servicio__num { font-size: 11px; letter-spacing: .2em; color: var(--taupe); }
.servicio__nombre { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 40px); letter-spacing: .04em; }
.servicio__desc { font-size: 14px; line-height: 1.75; color: var(--texto); text-wrap: pretty; }
.servicio__icono { width: 26px; height: 26px; justify-self: end; align-self: center; }
.servicio__precio { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); margin-top: 10px; }

/* ── Proyectos ───────────────────────────────────────────────────────────── */

.proyectos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.proyecto { grid-column: span 6; margin: 0; }
.proyecto--grande { grid-column: span 7; }
.proyecto--chico  { grid-column: span 5; }
.proyecto--desfase { margin-top: 90px; }

.proyecto__marco {
  position: relative; overflow: hidden; background: var(--hueso);
  border: 1px solid var(--linea); aspect-ratio: 4 / 3;
}
.proyecto--grande .proyecto__marco { aspect-ratio: 4 / 3.1; }
.proyecto--chico  .proyecto__marco { aspect-ratio: 4 / 4.1; }
.proyecto__marco img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.proyecto:hover .proyecto__marco img { transform: scale(1.045); }

.proyecto__vacio {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 24px; color: var(--taupe); background: repeating-linear-gradient(45deg, rgba(166,176,154,.08) 0 12px, transparent 12px 24px);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
}
.proyecto__vacio img { width: 40px; height: 40px; opacity: .5; }

.proyecto__pie {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--texto);
}
.proyecto__pie .cat { color: var(--taupe); text-align: right; }
.proyecto__desc { font-size: 13px; line-height: 1.7; color: var(--texto); margin-top: 10px; }
.proyecto__lupa {
  position: absolute; inset: auto 14px 14px auto; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(242,239,234,.9); display: flex;
  align-items: center; justify-content: center; font-size: 14px; color: var(--grafito);
  opacity: 0; transition: opacity .3s ease;
}
.proyecto:hover .proyecto__lupa { opacity: 1; }

/* ── Cita ────────────────────────────────────────────────────────────────── */

.cita { position: relative; padding: 150px 24px; text-align: center; border-top: 1px solid var(--linea); overflow: hidden; }
/* inset + margin:auto centra sin usar transform: la animación de giro necesita esa propiedad */
.cita__sello {
  position: absolute; inset: 0; margin: auto; width: 420px; height: 420px;
  max-width: 82vw; max-height: 82vw;
  opacity: .28; animation: cvSpin 120s linear infinite; pointer-events: none;
}
.cita blockquote {
  position: relative; font-family: var(--display); font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.4; max-width: 820px; margin: 0 auto; text-wrap: pretty;
}
.cita__autor { position: relative; display: block; margin-top: 30px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); }

/* ── Diario ──────────────────────────────────────────────────────────────── */

.notas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.nota { display: flex; flex-direction: column; }
.nota__img { aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--linea); background: var(--hueso-2); }
.nota__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.nota:hover .nota__img img { transform: scale(1.05); }
.nota__meta { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); margin: 18px 0 10px; }
.nota__titulo { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.25; letter-spacing: .02em; }
.nota__resumen { font-size: 13.5px; line-height: 1.75; color: var(--texto); margin-top: 12px; }
.nota__mas { margin-top: 16px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--magenta); }

/* ── Artículo ────────────────────────────────────────────────────────────── */

.articulo { padding: calc(var(--nav-h) + 70px) 0 100px; }
.articulo__head { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.articulo__titulo { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.5vw, 66px); line-height: 1.12; letter-spacing: .03em; }
.articulo__meta { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--taupe); margin-bottom: 22px; }
.articulo__portada { max-width: 1000px; margin: 0 auto 56px; border: 1px solid var(--linea); }
.articulo__cuerpo { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: var(--texto); }
.articulo__cuerpo p { margin: 0 0 24px; }
.articulo__cuerpo h2 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--grafito); margin: 44px 0 18px; }
.articulo__cuerpo h3 { font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--grafito); margin: 34px 0 14px; }
.articulo__cuerpo a { color: var(--magenta); border-bottom: 1px solid currentColor; }
.articulo__volver { display: inline-block; margin-top: 56px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--magenta); }

/* ── Contacto y pie ──────────────────────────────────────────────────────── */

.pie { background: var(--grafito); color: var(--hueso); position: relative; overflow: hidden; }
.pie .contenedor { padding-top: 120px; padding-bottom: 56px; position: relative; }
.pie .seccion__head .num { color: var(--palo-rosa); }
.pie .seccion__head .raya { background: rgba(242, 239, 234, .2); }
.pie a:hover { color: var(--palo-rosa); }

.pie__titulo {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 10vw, 150px); letter-spacing: .06em; line-height: 1; margin-bottom: 24px;
}
.pie__titulo span { color: var(--salvia); }
.pie__intro { max-width: 46ch; font-size: 14px; line-height: 1.85; color: rgba(242, 239, 234, .72); margin-bottom: 64px; }

.pie__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; padding-bottom: 80px; }
.pie__datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 38px; align-content: start; }
.dato__etq { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); margin-bottom: 14px; }
.dato__val { font-family: var(--display); font-size: 21px; line-height: 1.5; word-break: break-word; }
.dato__val a { border-bottom: 1px solid rgba(242, 239, 234, .35); padding-bottom: 2px; }
.pie__redes { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }

.pie__legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid rgba(242, 239, 234, .18); padding-top: 26px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe);
}

/* ── Formulario ──────────────────────────────────────────────────────────── */

.form { display: grid; gap: 20px; }
.form__titulo { font-family: var(--display); font-size: 24px; margin-bottom: 6px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); }
.campo input, .campo select, .campo textarea {
  font-family: var(--ui); font-size: 14px; font-weight: 300; color: var(--hueso);
  background: transparent; border: 0; border-bottom: 1px solid rgba(242, 239, 234, .3);
  padding: 11px 2px; transition: border-color .3s ease;
  border-radius: 0; -webkit-appearance: none; appearance: none;
  color-scheme: dark; /* controles nativos (calendario, flechas) legibles sobre grafito */
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo select option { color: var(--grafito); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--palo-rosa); }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(242, 239, 234, .35); }
.campo--doble { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--ui); font-size: 11px; font-weight: 400; letter-spacing: .28em;
  text-transform: uppercase; padding: 17px 34px; cursor: pointer;
  background: var(--hueso); color: var(--grafito); border: 1px solid var(--hueso);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.boton:hover { background: transparent; color: var(--hueso); }
.boton:disabled { opacity: .5; cursor: wait; }
.boton--magenta { background: var(--magenta); border-color: var(--magenta); color: var(--hueso); }
.boton--magenta:hover { background: transparent; color: var(--palo-rosa); border-color: var(--palo-rosa); }

.aviso { padding: 15px 18px; font-size: 12.5px; line-height: 1.6; border-left: 2px solid; }
.aviso--ok    { border-color: var(--salvia);  background: rgba(166, 176, 154, .16); }
.aviso--error { border-color: var(--magenta); background: rgba(155, 74, 122, .16); }
.privacidad-nota { font-size: 10.5px; line-height: 1.7; color: var(--taupe); letter-spacing: .04em; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ── WhatsApp flotante ───────────────────────────────────────────────────── */

.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(36, 36, 35, .26); transition: transform .3s ease;
}
.wa:hover { transform: scale(1.08); color: #fff; }
.wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ── Cookies ─────────────────────────────────────────────────────────────── */

.cookies {
  position: fixed; left: 22px; bottom: 22px; z-index: 85; max-width: 380px;
  background: var(--grafito); color: var(--hueso); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 14px 40px rgba(36, 36, 35, .3); animation: cvFade .5s .8s both;
}
.cookies p { font-size: 12px; line-height: 1.65; color: rgba(242, 239, 234, .8); }
.cookies a { color: var(--palo-rosa); border-bottom: 1px solid currentColor; }
.cookies__acciones { display: flex; gap: 12px; align-items: center; }
.cookies .boton { padding: 11px 22px; font-size: 10px; }
.cookies__no { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); background: none; border: 0; cursor: pointer; font-family: var(--ui); }

/* ── Lightbox ────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(36, 36, 35, .95);
  display: none; align-items: center; justify-content: center; padding: 5vh 5vw;
}
.lightbox.abierto { display: flex; animation: cvFade .3s both; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__cerrar, .lightbox__nav {
  position: absolute; background: none; border: 0; color: var(--hueso);
  font-size: 30px; cursor: pointer; padding: 14px; line-height: 1; font-family: var(--ui);
}
.lightbox__cerrar { top: 14px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__pie { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--taupe); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }

/* ── Páginas simples (aviso legal, 404, mantenimiento) ───────────────────── */

.pagina { padding: calc(var(--nav-h) + 90px) 0 110px; }
.pagina h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 72px); letter-spacing: .04em; margin-bottom: 30px; }
.pagina__cuerpo { max-width: 760px; font-size: 15px; line-height: 1.9; color: var(--texto); }
.pagina__cuerpo h2 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--grafito); margin: 40px 0 14px; }
.pagina__cuerpo p { margin: 0 0 18px; }
.pagina__cuerpo ul { margin: 0 0 18px; padding-left: 20px; }
.pagina__cuerpo li { margin-bottom: 8px; }

.centrado { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; gap: 26px; }
.centrado img { width: 90px; height: 90px; }
.centrado h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 9vw, 110px); letter-spacing: .1em; line-height: 1; }
.centrado p { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); max-width: 44ch; line-height: 2; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .contenedor { padding: 0 30px; }
  .seccion { padding: 96px 0; }
  .pie__grid { grid-template-columns: 1fr; gap: 56px; }
  .proyecto--grande, .proyecto--chico { grid-column: span 6; }
  .proyecto--desfase { margin-top: 40px; }
}

@media (max-width: 860px) {
  .nav { padding: 14px 24px; }
  .nav.compacta { padding: 10px 24px; }
  .nav__toggle { display: block; }
  /* la marca y el botón deben quedar por encima del panel desplegado */
  .nav__marca, .nav__toggle { position: relative; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0 0 auto 0; top: 0; z-index: 1; padding: 96px 30px 44px;
    flex-direction: column; align-items: flex-start; gap: 26px;
    background: var(--hueso); border-bottom: 1px solid var(--linea);
    transform: translateY(-100%); transition: transform .45s cubic-bezier(.22,.61,.36,1);
    font-size: 13px; max-height: 100svh; overflow-y: auto;
  }
  .nav__menu.abierto { transform: translateY(0); }
  .nav__menu a { padding-bottom: 6px; }

  .servicio { grid-template-columns: 46px minmax(0, 1fr); gap: 8px 18px; padding: 32px 0; }
  .servicio:hover { padding-left: 0; }
  .servicio__cuerpo { grid-column: 2; margin-top: 10px; }
  .servicio__icono { display: none; }

  .proyectos { grid-template-columns: 1fr; gap: 46px; }
  .proyecto, .proyecto--grande, .proyecto--chico { grid-column: 1 / -1; }
  .proyecto--desfase { margin-top: 0; }
  .proyecto__marco, .proyecto--grande .proyecto__marco, .proyecto--chico .proyecto__marco { aspect-ratio: 4 / 3.2; }

  .cita { padding: 100px 24px; }
  .cita__sello { width: 300px; height: 300px; }
  .marquee__pista span { font-size: 20px; gap: 24px; padding-right: 24px; }
  .pie .contenedor { padding-top: 90px; }
  .campo--doble { grid-template-columns: 1fr; }
  .cookies { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .wa { right: 16px; bottom: 84px; width: 52px; height: 52px; }
  .pie__legal { flex-direction: column; align-items: flex-start; gap: 9px; }
}

@media (max-width: 520px) {
  .contenedor { padding: 0 22px; }
  .seccion { padding: 76px 0; }
  .seccion__head { gap: 14px; margin-bottom: 38px; font-size: 10px; letter-spacing: .22em; }
  .hero { padding: 130px 20px 90px; }
  .hero__icono { width: 100px; height: 100px; margin-bottom: 28px; }
  .hero__marco { inset: 16px; }
  .hero__sub { gap: 12px; }
  .hero__sub span:first-child, .hero__sub span:last-child { width: 30px; }
  .hero__sub b { font-size: 12px; letter-spacing: .4em; text-indent: .4em; }
  .hero__desc { font-size: 10.5px; letter-spacing: .24em; margin-top: 32px; }
  .pilares { gap: 32px; margin-top: 52px; }
  .notas { grid-template-columns: 1fr; gap: 44px; }
  .pie__legal { justify-content: flex-start; gap: 8px; flex-direction: column; align-items: flex-start; }
  .boton { width: 100%; }
}
