/* Tipografías Jost y Cormorant Garamond (Google Fonts, licencia SIL OFL), guardadas en la página
   para que no haya que esperar a Google al abrirla. Solo los pesos que se usan. */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-italica-latin-ext-0.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-italica-latin-1.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-italica-latin-ext-0.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-italica-latin-1.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-latin-ext-2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-latin-3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-latin-ext-2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/cormorant-garamond-latin-3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fuentes/jost-latin-ext-4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fuentes/jost-latin-5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/jost-latin-ext-4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/jost-latin-5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fuentes/jost-latin-ext-4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fuentes/jost-latin-5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tierra-oscuro: #3D3020;
  --tierra-medio: #7A6A56;
  --tierra-claro: #9A8470;
  --tierra-acento: #9A7A55;
  --crema: #F5F0E8;
  --crema-oscuro: #EDE8DF;
  --fondo: #FAFAF8;
  --texto-principal: #4A3E30;
  --texto-secundario: #8A7660;
  --texto-tenue: #9A8470;
  --borde: rgba(122,106,86,0.18);
  --borde-medio: rgba(122,106,86,0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--fondo);
  color: var(--texto-principal);
  -webkit-font-smoothing: antialiased;
}


/* ── ÍCONOS ── (archivos en img/iconos, de Tabler Icons; se pintan con el color del texto) */
.ti {
  display: inline-block; width: 1em; height: 1em; flex-shrink: 0;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--icono) no-repeat center / contain;
          mask: var(--icono) no-repeat center / contain;
}
.ti-arrow-right { --icono: url("img/iconos/arrow-right.svg"); }
.ti-arrow-up-right { --icono: url("img/iconos/arrow-up-right.svg"); }
.ti-brand-instagram { --icono: url("img/iconos/brand-instagram.svg"); }
.ti-brand-whatsapp { --icono: url("img/iconos/brand-whatsapp.svg"); }
.ti-chevron-down { --icono: url("img/iconos/chevron-down.svg"); }
.ti-chevron-up { --icono: url("img/iconos/chevron-up.svg"); }
.ti-clock { --icono: url("img/iconos/clock.svg"); }
.ti-home-heart { --icono: url("img/iconos/home-heart.svg"); }
.ti-mail { --icono: url("img/iconos/mail.svg"); }
.ti-map-pin { --icono: url("img/iconos/map-pin.svg"); }
.ti-shield-check { --icono: url("img/iconos/shield-check.svg"); }
.ti-x { --icono: url("img/iconos/x.svg"); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 68px;
  background: rgba(18,14,8,0.28);
  backdrop-filter: blur(6px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, opacity 0.4s, transform 0.4s;
}
.nav.scrolled {
  background-image: url("img/textura.jpg");
  background-size: 600px auto;
  backdrop-filter: blur(2px);
  border-bottom: 0.5px solid rgba(122,106,86,0.2);
  box-shadow: 0 2px 20px rgba(60,48,32,0.1);
}
.nav.scrolled::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: rgba(237,234,228,0.88);
}
.nav.scrolled .nav-brand,
.nav.scrolled .nav-links,
.nav.scrolled .nav-cta { position: relative; z-index: 1; }
/* Logo M.O (Paso 6, versión horizontal). Se pinta con el color del texto:
   blanco sobre el video, grafito sobre fondos claros. */
.logo-mo {
  display: block;
  aspect-ratio: 397.792 / 85.432;
  background-color: currentColor;
  -webkit-mask: url("img/logo-horizontal.svg") no-repeat center / contain;
          mask: url("img/logo-horizontal.svg") no-repeat center / contain;
}
.nav-brand {
  display: flex; align-items: center;
  color: rgba(255,255,255,0.8);  /* sobre imagen, blanco al 80 % (guía de estilo §1) */
  text-decoration: none;
  transition: color 0.4s;
}
.nav.scrolled .nav-brand { color: #4A4A48; }
.nav-logo { height: 40px; }
.footer-logo { height: 36px; color: #4A4A48; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 12px; letter-spacing: 1px;
  color: rgba(240,234,225,0.75); text-decoration: none;
  transition: color 0.3s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 0.5px; background: currentColor;
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: rgba(240,234,225,1); }
.nav-links a.active { color: rgba(240,234,225,1); }
.nav.scrolled .nav-links a { color: var(--texto-secundario); }
.nav.scrolled .nav-links a:hover { color: var(--tierra-medio); }
.nav.scrolled .nav-links a.active { color: var(--tierra-oscuro); }
.nav-cta {
  font-family: 'Jost', sans-serif;
  font-size: 12px; letter-spacing: 1px;
  padding: 7px 18px;
  border: 0.5px solid rgba(240,234,225,0.6);
  border-radius: 2px;
  color: rgba(240,234,225,0.85);
  background: transparent; cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.nav-cta:hover { background: rgba(240,234,225,0.15); color: rgba(240,234,225,1); border-color: rgba(240,234,225,0.9); }
.nav.scrolled .nav-cta { border-color: var(--tierra-medio); color: var(--tierra-medio); }
.nav.scrolled .nav-cta:hover { background: var(--tierra-medio); color: var(--crema); }

/* ── HERO ── */
.hero {
  height: 100vh; min-height: 580px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
/* Video de portada: archivos en video/ (cómo cambiarlo: LEEME_WEB.md).
   Mientras carga el video se ve la imagen fija de fondo (vertical y más liviana en el
   celular). Cuando el video arranca, el fondo pasa a oscuro para que la imagen fija no
   se transparente detrás. Si el video no carga, o si la persona pidió menos movimiento
   en su equipo, queda la imagen fija. */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: #1E1A14 url("video/portada.jpg") center / cover no-repeat;
}
@media (max-width: 767px) {
  .hero-video-wrap { background-image: url("video/portada-vertical.jpg"); }
}
.hero-video-wrap.reproduciendo { background: #1E1A14; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(18,14,8,0.70) 0%,
    rgba(18,14,8,0.25) 50%,
    rgba(18,14,8,0.05) 100%
  );
}
.hero-content {
  position: relative; z-index: 3;
  padding: 0 2.5rem 3.5rem;
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240,234,225,0.9); margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 0.5px; background: rgba(240,234,225,0.5);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300; color: #F0EAE1;
  line-height: 1.1; margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero-sub {
  font-size: 13px; letter-spacing: 1.5px;
  color: rgba(240,234,225,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bounce 2s ease-in-out infinite;
  text-decoration: none;
}
.hero-scroll span { font-size: 10px; letter-spacing: 2px; color: rgba(240,234,225,0.85); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero-scroll i { font-size: 16px; color: rgba(240,234,225,0.85); }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── SECCIONES ── */
.section { padding: 5rem 2.5rem; }
.section-alt { background: var(--crema); }

.section-header { margin-bottom: 2.5rem; }
.eyebrow {
  display: block;
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--texto-tenue); margin-bottom: 0.9rem;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 400;
  color: var(--tierra-oscuro); line-height: 1.2;
}

/* ── PORTFOLIO ── */
.portfolio-intro { margin-top: 0.75rem; }
.portfolio-intro em { font-size: 14px; color: #6B5840; font-style: italic; display: block; line-height: 1.5; }
.portfolio-intro p { font-size: 14px; color: var(--texto-secundario); line-height: 1.6; margin-top: 3px; }

.obras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2rem;
}
.obra-card {
  position: relative; overflow: hidden;
  border-radius: 2px; cursor: pointer;
  background: #3D3020;
}
.obra-card:first-child { grid-column: span 2; grid-row: span 2; }
.obra-card:first-child .obra-img { height: 420px; }
.obra-card:not(:first-child) .obra-img { height: 205px; }

.obra-img {
  width: 100%; display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.obra-card:hover .obra-img,
.obra-card:focus-visible .obra-img { transform: scale(1.04); }
.obra-card:focus-visible { outline: 2px solid var(--tierra-acento); outline-offset: 2px; }

.obra-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,11,7,0.85) 0%, transparent 55%);
  padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background 0.3s;
}
.obra-card:hover .obra-overlay {
  background: linear-gradient(to top, rgba(15,11,7,0.9) 0%, rgba(15,11,7,0.2) 100%);
}
.obra-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(196,168,130,0.15);
  border: 0.5px solid rgba(196,168,130,0.3);
  color: #C4A882; padding: 4px 10px; border-radius: 2px;
}
.obra-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400; color: #F0EAE1;
  margin-bottom: 2px;
}
.obra-card:first-child .obra-nombre { font-size: 22px; }
.obra-meta { font-size: 11px; color: rgba(196,168,130,0.65); letter-spacing: 0.5px; }
.obra-ver {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; letter-spacing: 1px; color: rgba(196,168,130,0.5);
  margin-top: 6px; opacity: 0; transition: opacity 0.3s;
  text-transform: uppercase;
}
.obra-card:hover .obra-ver { opacity: 1; }

.ver-todo {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 2rem; font-size: 13px; letter-spacing: 0.5px;
  color: var(--tierra-medio); text-decoration: none;
  border-bottom: 0.5px solid var(--borde-medio);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.ver-todo:hover { color: var(--tierra-oscuro); }

/* ── NOSOTROS ── */

.nos-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  border: 0.5px solid var(--borde-medio);
  font-size: 12px; color: var(--tierra-medio);
  letter-spacing: 0.3px;
}

/* ── TESTIMONIOS ── */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 1.5rem; }
.t-card {
  padding: 1.5rem;
  border: 0.5px solid var(--borde);
  border-radius: 2px;
  background: var(--fondo);
}
.t-dots { display: flex; gap: 4px; margin-bottom: 1rem; }
.t-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--tierra-acento); }
.t-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-style: italic; font-weight: 400;
  color: #5C4A38; line-height: 1.6; margin-bottom: 1rem;
}
.t-nombre { font-size: 12px; font-weight: 500; color: var(--tierra-oscuro); letter-spacing: 0.3px; }
.t-zona { font-size: 11px; color: var(--texto-tenue); margin-top: 2px; }
.t-boca {
  font-size: 13px; color: var(--texto-secundario); font-style: italic;
  padding-top: 1.25rem; border-top: 0.5px solid var(--borde);
}
.t-boca strong { color: var(--tierra-oscuro); font-style: normal; font-weight: 500; }

/* ── CONTACTO ── */
.servilleta {
  border-left: 2px solid var(--tierra-acento);
  padding: 0.75rem 1.5rem; margin-bottom: 3rem;
  max-width: 560px;
}
.servilleta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-style: italic; color: var(--tierra-oscuro);
  line-height: 1.5;
}
.servilleta span {
  display: block; margin-top: 6px;
  font-size: 13px; color: var(--texto-secundario);
}
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.contact-items { display: flex; flex-direction: column; gap: 10px; }
.contact-title { font-size: 14px; font-weight: 500; color: var(--tierra-oscuro); margin-bottom: 0.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: var(--fondo); border: 0.5px solid var(--borde);
  border-radius: 2px; text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover { border-color: var(--tierra-medio); box-shadow: 0 2px 12px rgba(122,106,86,0.1); }
.ci-icon { font-size: 20px; color: var(--tierra-medio); flex-shrink: 0; }
.ci-label { font-size: 11px; color: var(--texto-tenue); letter-spacing: 0.3px; }
.ci-value { font-size: 13px; font-weight: 500; color: var(--tierra-oscuro); margin-top: 1px; }
.ci-arrow { margin-left: auto; font-size: 15px; color: var(--borde-medio); }

.divider-o {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--texto-tenue); margin: 1.5rem 0 1rem;
}
.divider-o::before, .divider-o::after { content: ''; flex: 1; height: 0.5px; background: var(--borde); }

/* FORM */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label, .form-label { font-size: 11px; letter-spacing: 0.5px; color: var(--texto-secundario); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Jost', sans-serif;
  font-size: 13px; color: var(--tierra-oscuro);
  background: var(--fondo);
  border: 0.5px solid var(--borde-medio);
  border-radius: 2px; padding: 10px 14px;
  width: 100%; transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--tierra-medio);
}
.form-group textarea { height: 80px; resize: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tipo-btns { display: flex; gap: 8px; }
.tipo-btn {
  flex: 1; padding: 9px;
  font-family: 'Jost', sans-serif; font-size: 12px;
  cursor: pointer; border: 0.5px solid var(--borde-medio);
  border-radius: 2px; background: var(--fondo);
  color: var(--texto-secundario); text-align: center;
  transition: all 0.2s;
}
.tipo-btn.active { border-color: var(--tierra-medio); color: var(--tierra-medio); background: rgba(122,106,86,0.05); }
.tipo-btn:hover:not(.active) { border-color: var(--tierra-claro); }
.form-submit {
  width: 100%; padding: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  background: var(--tierra-medio); color: var(--crema);
  border: none; border-radius: 2px; cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--tierra-oscuro); }
.form-nota { font-size: 11px; color: var(--texto-tenue); text-align: center; letter-spacing: 0.3px; }

/* ── MODAL DE OBRA ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,11,7,0.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--fondo); border-radius: 2px;
  width: 100%; max-width: 800px; max-height: 90vh;
  overflow-y: auto; position: relative;
}
.modal-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 0.5px solid var(--borde);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400; color: var(--tierra-oscuro);
}
.modal-meta { font-size: 12px; color: var(--texto-tenue); margin-top: 3px; letter-spacing: 0.3px; }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--texto-tenue); padding: 4px;
  transition: color 0.2s; flex-shrink: 0;
}
.modal-close:hover { color: var(--tierra-oscuro); }
.modal-body { padding: 1.5rem 1.75rem; }

/* Galería del modal */
.galeria-principal {
  width: 100%; height: 320px;
  background: #3D3020; border-radius: 2px;
  overflow: hidden; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.galeria-principal img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Video dentro del modal */
.modal-video {
  width: 100%; border-radius: 2px; margin-bottom: 10px;
  background: #2A2218; display: none;
}
.modal-video video { width: 100%; border-radius: 2px; display: block; }

.galeria-thumbs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.thumb {
  width: 64px; height: 48px; border-radius: 2px;
  overflow: hidden; cursor: pointer;
  border: 1.5px solid transparent; transition: border-color 0.2s;
  background: #5C5040; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.thumb.active { border-color: var(--tierra-medio); }
button.thumb { padding: 0; font: inherit; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Ficha de la obra */
.modal-ficha { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ficha-item { display: flex; flex-direction: column; gap: 2px; }
.ficha-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--texto-tenue); }
.ficha-valor { font-size: 14px; font-weight: 500; color: var(--tierra-oscuro); }

/* ── FOOTER ── */
.footer {
  padding: 1.5rem 2.5rem;
  border-top: 0.5px solid rgba(122,106,86,0.2);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
  background-image: url("img/textura.jpg");
  background-size: 600px auto;
}
.footer::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: rgba(237,234,228,0.88);
}
.footer > * { position: relative; z-index: 1; }
.footer-slogan { font-size: 12px; color: var(--texto-secundario); font-style: italic; }
.footer-zona { font-size: 12px; color: var(--texto-tenue); white-space: nowrap; }


/* Back to top button */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  width: 40px; height: 40px;
  background: rgba(122,106,86,0.9);
  border: none; border-radius: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  backdrop-filter: blur(4px);
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--tierra-oscuro); }
.back-top i { font-size: 18px; color: #F5F0E8; }

/* ── NOSOTROS REDISEÑADO ── */
.nos-section {
  position: relative; min-height: 520px; overflow: hidden;
}
.nos-bg-placeholder {
  position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(160deg, #7A6A56 0px, #4A3828 40px, #6B5840 80px);
}
.nos-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.nos-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(20,15,8,0.05) 0%,
    rgba(20,15,8,0.25) 35%,
    rgba(20,15,8,0.65) 60%,
    rgba(20,15,8,0.78) 100%
  );
}
.nos-contenido {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 520px; align-items: center;
}
.nos-lado-izq { min-height: 520px; }
.nos-lado-der {
  padding: 4rem 3rem 4rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.nos-stat {
  font-family: 'Jost', sans-serif;
  font-size: 14px; font-weight: 400;
  color: rgba(240,234,225,0.7); letter-spacing: 0.5px;
  margin-bottom: 2rem; margin-top: 1.5rem;
  display: flex; align-items: baseline; gap: 8px;
  border-left: 2px solid rgba(196,168,130,0.5);
  padding-left: 14px;
}
.nos-stat-num {
  font-size: 36px; font-weight: 300;
  color: #C4A882; line-height: 1;
}
.nos-texto-intro {
  font-size: 14px; color: rgba(240,234,225,0.65);
  line-height: 1.75; margin-bottom: 0.5rem;
}
.nos-texto-dest {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-style: italic; font-weight: 300;
  color: #F0EAE1; line-height: 1.4;
  margin-bottom: 1.5rem; display: block;
}
.nos-div { height: 0.5px; background: rgba(196,168,130,0.2); margin-bottom: 1.5rem; }
.nos-texto-sec {
  font-size: 13px; color: rgba(240,234,225,0.5);
  line-height: 1.75; margin-bottom: 2rem;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 110;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(240,234,225,0.85); border-radius: 2px;
  transition: all 0.3s;
}
.nav.scrolled .hamburger span { background: var(--tierra-oscuro); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 105;
  background-image: var(--tex-url);
  background-size: 600px auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(237,234,228,0.96);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  position: relative; z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300; letter-spacing: 2px;
  color: var(--tierra-oscuro); text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--tierra-medio); }
.mobile-menu-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2;
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--tierra-medio);
}

/* Caja de arquitectos */
.arq-caja {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--crema); border: 0.5px solid var(--borde);
  border-radius: 2px; padding: 1.75rem 2rem;
}
.arq-texto { font-size: 14px; line-height: 1.6; color: var(--texto-secundario); max-width: 560px; }
.arq-texto { margin-top: 0.75rem; }
.boton {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 1px;
  background: var(--tierra-medio); color: var(--crema);
  padding: 12px 26px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s;
}
.boton:hover { background: var(--tierra-oscuro); }
.boton i { font-size: 16px; }

@media (max-width: 900px) {
  .arq-caja { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 1.25rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-logo { height: 32px; }
  .hamburger { display: flex; }
  .nav { padding: 0 1.25rem; height: 56px; }

  .hero-title { font-size: 32px; white-space: normal; }
  .hero-content { padding: 0 1.5rem 5rem; }
  .hero-scroll { bottom: 1.5rem; }

  .section { padding: 3rem 1.25rem; }
  .sec-title { font-size: 24px; }

  .obras-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .obra-card:first-child { grid-column: span 2; }
  .obra-card:first-child .obra-img { height: 260px; }
  .obra-card:not(:first-child) .obra-img { height: 150px; }
  .obra-card:first-child .obra-nombre { font-size: 18px; }

  .nos-section { min-height: auto; }
  .nos-contenido { grid-template-columns: 1fr; }
  .nos-lado-izq { display: none; }
  .nos-lado-der { padding: 3rem 1.5rem; }

  .t-grid { grid-template-columns: 1fr; gap: 10px; }

  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer { flex-direction: column; gap: 10px; text-align: center; padding: 1.5rem; }
  .footer > div { justify-content: center; }

  .back-top { bottom: 1.5rem; right: 1.25rem; }
  .modal { margin: 1rem; }
  .modal-header { padding: 1.25rem; }
  .modal-body { padding: 1.25rem; }
  .galeria-principal { height: 220px; }
}
