/* Forest Wood: verde bosque y dorado champán del logo; rayas horizontales del logo como motivo. */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bosque: #17211c;
  --bosque-2: #1f2c25;
  --bosque-3: #2a3a31;
  --crema: #f4eee2;
  --crema-2: #ebe2d0;
  --tinta: #1a231e;
  --tinta-suave: #4b564f;
  --oro: #d6b98a;
  --oro-2: #b8925c;
  --oro-claro: #efdcb8;
  --gradiente-oro: linear-gradient(120deg, #f0dcb6 0%, #d6b98a 45%, #b8925c 100%);
  --error: #c2593f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --espacio-seccion: clamp(72px, 9vw, 140px);
  --radio: 14px;
  --suave: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bosque); color: var(--crema); font: 400 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oro); color: var(--bosque); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.saltar:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.crema .kicker { color: var(--oro-2); }
h2 { font-size: clamp(36px, 5vw, 62px); }
.sub { margin-top: 18px; max-width: 560px; color: rgba(244, 238, 226, 0.72); font-size: 18px; }
.crema .sub { color: var(--tinta-suave); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.25s var(--suave), box-shadow 0.25s var(--suave), background-color 0.25s, color 0.25s; }
.boton-oro { background: var(--gradiente-oro); color: var(--bosque); box-shadow: 0 6px 20px -8px rgba(214, 185, 138, 0.6); }
.boton-oro:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(214, 185, 138, 0.75); }
.boton-oro:active { transform: translateY(0); }
.boton-linea { border-color: rgba(244, 238, 226, 0.45); color: var(--crema); }
.boton-linea:hover { background: rgba(244, 238, 226, 0.1); border-color: var(--crema); }
.boton-ancho { width: 100%; min-height: 54px; font-size: 16px; }
.boton[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Cabecera */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s; }
.cabecera.solida { background: rgba(23, 33, 28, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(214, 185, 138, 0.18); }
.cabecera-in { max-width: var(--ancho); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 21px/1 var(--serif); letter-spacing: 0.01em; }
.marca img { width: 44px; height: 44px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav a:not(.boton) { text-decoration: none; opacity: 0.85; position: relative; padding: 6px 0; }
.nav a:not(.boton)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--suave); }
.nav a:not(.boton):hover { opacity: 1; }
.nav a:not(.boton):hover::after { transform: scaleX(1); }
.nav .idioma { border: 1px solid rgba(214, 185, 138, 0.5); border-radius: 6px; padding: 5px 8px; font-size: 12px; letter-spacing: 0.1em; color: var(--oro); }
.nav .idioma::after { display: none; }
.nav .boton { min-height: 42px; padding: 0 20px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn span:not(.oculto) { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--crema); transition: transform 0.3s var(--suave); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Portada */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero picture, .hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-foto { object-fit: cover; object-position: 50% 60%; z-index: -2; animation: acercar 18s var(--suave) both; }
.hero-velo { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(15, 22, 18, 0.88) 0%, rgba(15, 22, 18, 0.55) 45%, rgba(15, 22, 18, 0.1) 75%),
  linear-gradient(0deg, rgba(23, 33, 28, 1) 0%, rgba(23, 33, 28, 0) 35%); }
.hero-in { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 140px var(--gutter) clamp(72px, 10vh, 120px); }
.hero h1 { font-size: clamp(48px, 8.4vw, 116px); max-width: 11ch; }
.hero h1 em { font-style: italic; font-weight: 400; background: var(--gradiente-oro); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.hero-sub { margin-top: 26px; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(244, 238, 226, 0.85); }
.hero-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .kicker, .hero h1, .hero-sub, .hero-botones { animation: subir 1s var(--suave) both; }
.hero h1 { animation-delay: 0.08s; }
.hero-sub { animation-delay: 0.18s; }
.hero-botones { animation-delay: 0.28s; }
.rayas { position: absolute; right: 0; bottom: 18%; width: min(34vw, 420px); height: 120px; background: repeating-linear-gradient(0deg, rgba(214, 185, 138, 0.55) 0 3px, transparent 3px 14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); opacity: 0.7; }
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Franja de servicios en movimiento */
.franja { border-block: 1px solid rgba(214, 185, 138, 0.22); overflow: hidden; background: var(--bosque); }
.franja-pista { display: flex; align-items: center; gap: 28px; width: max-content; padding: 20px 0; animation: deslizar 40s linear infinite; font: 400 italic clamp(20px, 2.2vw, 28px)/1 var(--serif); color: var(--oro-claro); white-space: nowrap; }
.franja-pista i { width: 7px; height: 7px; border-radius: 50%; background: var(--oro); flex: none; }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* Secciones */
.seccion { padding: var(--espacio-seccion) 0; position: relative; }
.crema { background: var(--crema); color: var(--tinta); }
.oscuro { background: var(--bosque); }
.titulo-bloque { margin-bottom: clamp(40px, 5vw, 64px); }
.titulo-fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Servicios: rejilla editorial, la primera tarjeta grande */
.servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.servicio { background: #fffaf1; border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(26, 35, 30, 0.06), 0 18px 40px -28px rgba(26, 35, 30, 0.45); transition: transform 0.4s var(--suave), box-shadow 0.4s var(--suave); }
.servicio:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(26, 35, 30, 0.06), 0 28px 50px -26px rgba(26, 35, 30, 0.55); }
.servicio-foto { aspect-ratio: 4 / 3; overflow: hidden; }
.servicio-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--suave); }
.servicio:hover .servicio-foto img { transform: scale(1.06); }
.servicio-txt { padding: 22px 22px 26px; }
.servicio .num { font: 600 13px/1 var(--sans); color: var(--oro-2); letter-spacing: 0.12em; }
.servicio h3 { font-size: 23px; margin: 10px 0 10px; }
.servicio p { font-size: 15px; color: var(--tinta-suave); line-height: 1.55; }
.servicio:first-child { grid-column: span 2; grid-row: span 2; }
.servicio:first-child .servicio-foto { aspect-ratio: auto; flex: 1; min-height: 320px; }
.servicio:first-child h3 { font-size: 34px; }
.servicio:first-child p { font-size: 17px; max-width: 440px; }
.servicio:last-child { grid-column: span 2; }
.servicio:last-child .servicio-foto { aspect-ratio: auto; height: 194px; }

/* Galería */
.enlace-ig { display: inline-flex; align-items: center; gap: 10px; color: var(--oro); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(214, 185, 138, 0.35); padding-bottom: 4px; transition: border-color 0.25s, color 0.25s; }
.enlace-ig:hover { color: var(--oro-claro); border-color: var(--oro-claro); }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 32px; }
.filtro { background: transparent; border: 1px solid rgba(244, 238, 226, 0.2); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.filtro:hover { border-color: var(--oro); }
.filtro.activo { background: var(--oro); border-color: var(--oro); color: var(--bosque); }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 16px; }
.pieza { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--bosque-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; }
.pieza img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--suave); }
.pieza-alta { grid-row: span 2; }
.pieza::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(214, 185, 138, 0); transition: box-shadow 0.3s; }
.pieza:hover img { transform: scale(1.04); }
.pieza:hover::after { box-shadow: inset 0 0 0 2px rgba(214, 185, 138, 0.8); }
.pieza.escondida { display: none; }

/* Cita */
.cita { background: var(--bosque-2); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.cita::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: repeating-linear-gradient(0deg, rgba(214, 185, 138, 0.18) 0 2px, transparent 2px 12px); }
.cita-in { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); position: relative; }
.cita img { flex: none; }
.cita blockquote { margin: 0; font: 400 italic clamp(24px, 3.2vw, 40px)/1.3 var(--serif); color: var(--oro-claro); max-width: 900px; }

/* Pasos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: paso; }
.pasos li { position: relative; padding-top: 28px; border-top: 1px solid rgba(26, 35, 30, 0.18); }
.paso-num { font: 500 64px/1 var(--serif); background: var(--gradiente-oro); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 18px; }
.pasos h3 { font-size: 23px; margin-bottom: 10px; }
.pasos p { color: var(--tinta-suave); font-size: 15.5px; }

/* Presupuesto */
.presupuesto { background: radial-gradient(1200px 600px at 0% 0%, var(--bosque-3), var(--bosque) 60%); }
.presupuesto-in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.presupuesto-lado { position: sticky; top: 110px; }
.zona { display: flex; gap: 14px; margin: 40px 0 30px; padding: 22px; border: 1px solid rgba(214, 185, 138, 0.25); border-radius: var(--radio); background: rgba(255, 255, 255, 0.02); }
.zona svg { color: var(--oro); flex: none; margin-top: 2px; }
.zona strong { font-weight: 700; display: block; margin-bottom: 4px; }
.zona p { color: rgba(244, 238, 226, 0.7); font-size: 15px; }
.formulario { background: var(--crema); color: var(--tinta); border-radius: 20px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); display: grid; gap: 18px; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo { display: grid; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo > span, .campo legend { font-size: 13.5px; font-weight: 700; color: var(--tinta); padding: 0; margin-bottom: 7px; }
.campo input, .campo textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--tinta); background: #fffaf1; border: 1px solid #d9cfbb; border-radius: 10px; padding: 13px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--oro-2); box-shadow: 0 0 0 3px rgba(184, 146, 92, 0.22); }
.campo small { color: var(--error); font-size: 13px; font-weight: 600; min-height: 0; }
.campo small:empty { display: none; }
.campo.mal input, .campo.mal textarea { border-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid #d9cfbb; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fffaf1; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover span { border-color: var(--oro-2); }
.chip input:checked + span { background: var(--bosque); border-color: var(--bosque); color: var(--oro-claro); }
.chip input:focus-visible + span { outline: 2px solid var(--oro-2); outline-offset: 2px; }
.campo.mal .chip span { border-color: var(--error); }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nota-privada { font-size: 13px; color: var(--tinta-suave); text-align: center; margin-top: -6px; }
.aviso-form { font-weight: 700; text-align: center; font-size: 15px; }
.aviso-form:empty { display: none; }
.aviso-form.bien { color: #2f6b45; background: #e3efe2; padding: 14px; border-radius: 10px; }
.aviso-form.mal { color: var(--error); }

/* Pie */
.pie { background: #111914; padding: 64px 0 28px; border-top: 1px solid rgba(214, 185, 138, 0.18); }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.pie-marca { display: flex; align-items: center; gap: 16px; }
.pie-marca strong { font: 600 22px/1 var(--serif); }
.pie-marca p { color: rgba(244, 238, 226, 0.6); font-size: 14px; margin-top: 6px; }
.pie-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.pie-nav a { text-decoration: none; opacity: 0.75; }
.pie-nav a:hover { opacity: 1; color: var(--oro); }
.pie-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(244, 238, 226, 0.08); font-size: 13px; color: rgba(244, 238, 226, 0.45); }

/* Visor de fotos */
.visor { position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 12, 0.94); display: flex; align-items: center; justify-content: center; padding: 60px 16px; }
.visor[hidden] { display: none; }
.visor img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 8px; object-fit: contain; animation: subir 0.4s var(--suave); }
.visor button { position: absolute; background: rgba(244, 238, 226, 0.08); border: 1px solid rgba(244, 238, 226, 0.2); color: var(--crema); width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; transition: background-color 0.2s; }
.visor button:hover { background: rgba(214, 185, 138, 0.3); }
.visor-cerrar { top: 16px; right: 16px; }
.visor-ant { left: 16px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 16px; top: 50%; transform: translateY(-50%); }

/* Aparecer al hacer scroll */
.js .aparece { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--suave), transform 0.8s var(--suave); }
.js .aparece.visto { opacity: 1; transform: none; }

/* Página 404 */
.no-esta { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.no-esta h1 { font-size: clamp(40px, 6vw, 72px); margin: 24px 0 14px; }
.no-esta p { color: rgba(244, 238, 226, 0.7); margin-bottom: 28px; }

@media (max-width: 1020px) {
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .servicio:last-child { grid-column: auto; }
  .servicio:last-child .servicio-foto { aspect-ratio: 4 / 3; height: auto; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .presupuesto-in { grid-template-columns: 1fr; }
  .presupuesto-lado { position: static; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--bosque); flex-direction: column; justify-content: center; gap: 26px; font: 500 30px/1 var(--serif); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  .nav.abierta { opacity: 1; visibility: visible; }
  .nav .idioma { font: 700 14px/1 var(--sans); padding: 8px 12px; }
  .nav .boton { font: 700 16px/1 var(--sans); min-height: 52px; padding: 0 28px; }
  .rayas { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .marca span { font-size: 19px; }
  .marca img { width: 38px; height: 38px; }
  .servicios { grid-template-columns: 1fr; }
  .servicio:first-child { grid-column: auto; grid-row: auto; }
  .servicio:first-child .servicio-foto { aspect-ratio: 4 / 3; min-height: 0; }
  .servicio:first-child h3 { font-size: 26px; }
  .pasos { grid-template-columns: 1fr; }
  .fila2 { grid-template-columns: 1fr; }
  .hero-velo { background: linear-gradient(0deg, rgba(23, 33, 28, 1) 0%, rgba(15, 22, 18, 0.72) 55%, rgba(15, 22, 18, 0.35) 100%); }
  .hero-botones .boton { flex: 1 1 100%; }
  .cita-in { flex-direction: column; align-items: flex-start; }
  .cita img { width: 64px; height: 64px; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .visor-ant, .visor-sig { top: auto; bottom: 16px; transform: none; }
  .visor-ant { left: calc(50% - 60px); }
  .visor-sig { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .aparece { opacity: 1; transform: none; }
}
.logo-404 { margin: 0 auto; }
