/* =========================================================
   APAREJO | Arq & Dis. — estilos
   Cortes (como en Framer): escritorio ≥1200 · tablet 810–1199 · celular <810
   ========================================================= */

:root {
  /* Colores */
  --crema: #F7F5EF;
  --texto: #1E1F1B;
  --texto-suave: #6B6A64;
  --oliva: #5A6143;
  --oliva-hover: #4A5036;
  --oliva-claro: #B9C08F;
  --pie: #1F211C;
  --linea: #D9D6CC;
  --blanco: #FFFFFF;
  --nav-fondo: rgba(96, 96, 90, 0.62);

  /* Tipografías */
  --f-titulo: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-logo: "Outfit", "Inter", system-ui, sans-serif;

  /* Medidas */
  --ancho: 1120px;
  --margen: 44px;
  --nav-alto: 56px;
  --seccion: 120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-alto) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin: 0 auto;
  padding: 0 var(--margen);
}

.section { padding: var(--seccion) 0; }

/* ---------- Tipografía común ---------- */
.label {
  font-family: var(--f-texto);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.label-olive { color: var(--oliva); }
.label-light { color: var(--oliva-claro); }

.title-lg {
  font-family: var(--f-titulo);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.title-xl {
  font-family: var(--f-titulo);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--f-texto);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--oliva); color: var(--blanco); }
.btn-primary:hover { background: var(--oliva-hover); }
.btn-ghost { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* =========================================================
   NAVEGACIÓN FIJA
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--nav-alto) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 28px 0;
  background: var(--nav-fondo);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--blanco);
}

.nav-logo {
  font-family: var(--f-logo);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo-sep { margin: 0 2px; }

.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .92;
  transition: opacity .2s ease;
}
.nav-menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--blanco);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav.abierto .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.abierto .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* =========================================================
   PORTADA
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;          /* iOS / Android: alto real sin barra del navegador */
  min-height: 560px;
  overflow: hidden;
  color: var(--blanco);
  background: #6d5a46;     /* color mientras carga la imagen */
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {             /* oscurecido suave para que se lea el texto */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.18) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-alto) + 34vh) var(--margen) calc(40px + env(safe-area-inset-bottom, 0px));
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin: 0 auto;
}
.hero-title {
  font-family: var(--f-titulo);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   EL ESTUDIO
   ========================================================= */
.estudio-intro {
  max-width: 820px;
  margin: 90px auto 100px;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: var(--texto);
}

.estudio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.estudio-foto {
  aspect-ratio: 345 / 468;
  overflow: hidden;
  background: #cfcfcb;
}
.estudio-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.estudio-texto .label { margin-bottom: 16px; }
.estudio-texto .title-lg { margin-bottom: 26px; }
.estudio-texto p:not(.label) {
  max-width: 470px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--texto-suave);
}
.estudio-texto strong { color: #4d4c47; font-weight: 600; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.servicios { padding-top: 40px; }

.servicios-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}
.servicios-titulo { text-align: right; }
.servicios-sub {
  font-family: var(--f-titulo);
  font-size: 18px;
  margin-bottom: 4px;
}
.servicios-titulo .title-lg { font-weight: 600; }

.acordeon {
  max-width: 752px;
  border-top: 1px solid var(--linea);
}
.servicio { border-bottom: 1px solid var(--linea); }

.servicio summary {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.servicio summary::-webkit-details-marker { display: none; }
.servicio summary::marker { content: ""; }

.servicio-nombre {
  grid-column: 1;
  font-family: var(--f-titulo);
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.15;
}
.servicio-desc {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--texto-suave);
  margin-top: 4px;
}
.servicio-icono {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  width: 14px; height: 14px;
}
.servicio-icono::before,
.servicio-icono::after {
  content: "";
  position: absolute;
  background: var(--texto);
  transition: transform .25s ease, opacity .25s ease;
}
.servicio-icono::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.servicio-icono::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.servicio[open] .servicio-icono::after { transform: rotate(90deg); opacity: 0; }

.servicio-body { padding: 0 0 22px; }
.servicio-body .label { font-size: 9.5px; margin-bottom: 8px; }
.servicio-body p:not(.label) {
  max-width: 600px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--texto);
}

.manifiesto {
  margin: 100px auto 34px;
  text-align: center;
  font-family: var(--f-titulo);
  line-height: 1.22;
}
.manifiesto-1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; }
.manifiesto-2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; color: #3b3c37; }

.pilares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* =========================================================
   PROYECTOS
   ========================================================= */
.proyectos { padding-top: 40px; }

.proyectos-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.proyectos-tag { font-size: 14px; color: var(--texto-suave); }

.proyectos-titulo {
  margin: 30px 0 30px;
  text-align: center;
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 38px);
}
.proyectos-titulo a { text-decoration: none; }
.proyectos-titulo a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.galeria {
  max-width: 710px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.galeria-item {
  display: block;
  aspect-ratio: 229 / 286;
  overflow: hidden;
  background: #ddd8cc;
}
.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.galeria-item:hover img { transform: scale(1.04); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto {
  background: var(--pie);
  color: var(--blanco);
  padding-bottom: calc(var(--seccion) + env(safe-area-inset-bottom, 0px));
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 344px);
  gap: 80px;
}
.contacto-info .label { margin-bottom: 18px; }
.contacto-info .title-xl { margin-bottom: 22px; }
.contacto-bajada { font-size: 14px; line-height: 1.45; color: #d9d9d3; margin-bottom: 22px; }

.icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.contacto-ig {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  font-size: 11px;
  text-decoration: none;
  color: #d9d9d3;
  margin-bottom: 16px;
}
.redes { display: flex; gap: 12px; color: var(--oliva-claro); }
.redes a { display: inline-flex; padding: 2px; }
.redes a:hover { color: var(--blanco); }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .label { font-size: 9.5px; }
.field input,
.field textarea {
  width: 100%;
  padding: 6px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  border-radius: 0;              /* iOS redondea por defecto */
  -webkit-appearance: none;
  appearance: none;
  color: var(--blanco);
  font-family: var(--f-texto);
  font-size: 16px;               /* 16px evita el zoom automático en iPhone */
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.5); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--oliva-claro); }
.form .btn { align-self: flex-start; }

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.whatsapp {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--oliva);
  color: var(--blanco);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
.whatsapp:hover { transform: scale(1.06); background: var(--oliva-hover); }

/* =========================================================
   TABLET (810–1199)
   ========================================================= */
@media (max-width: 1199px) {
  :root { --margen: 36px; --seccion: 96px; }

  .estudio-grid { gap: 44px; }
  .contacto-grid { gap: 56px; }
  .pilares { grid-template-columns: repeat(2, 1fr); row-gap: 14px; text-align: center; }
}

/* =========================================================
   CELULAR (<810)
   ========================================================= */
@media (max-width: 809px) {
  :root { --margen: 22px; --seccion: 72px; --nav-alto: 60px; }

  .nav { padding-left: 20px; padding-right: 10px; }
  .nav-logo { font-size: 20px; }
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: calc(var(--nav-alto) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: rgba(70, 70, 65, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.abierto .nav-menu { visibility: visible; opacity: 1; transform: none; }
  .nav-menu a {
    padding: 16px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav-menu a:last-child { border-bottom: 0; }

  .hero-content { padding-top: calc(var(--nav-alto) + 30vh); }
  .hero-actions .btn { flex: 1 1 auto; }

  .estudio-intro { margin: 48px auto 56px; font-size: 16px; text-align: left; }
  .estudio-grid { grid-template-columns: 1fr; gap: 36px; }
  .estudio-foto { max-width: 420px; }

  .servicios-head { flex-direction: column; gap: 18px; }
  .servicios-titulo { text-align: left; }
  .servicio summary { padding: 18px 0; }

  .manifiesto { margin-top: 64px; }
  .manifiesto-2 br { display: none; }
  .pilares { grid-template-columns: 1fr; text-align: left; }

  .proyectos-head { flex-direction: column; gap: 6px; }
  .galeria { gap: 6px; }

  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .title-xl br { display: none; }
  .form .btn { align-self: stretch; }
}

/* Celulares chicos */
@media (max-width: 380px) {
  .nav-logo { font-size: 18px; }
  .hero-actions { flex-direction: column; }
}

/* Respeta "reducir movimiento" del sistema (Windows, macOS, iOS, Android) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
