/* Grupo Terra · página web */
:root {
  --noche: #12171a;
  --noche-2: #1b2125;
  --hueso: #f8f6f1;
  --blanco: #ffffff;
  --texto: #1f2427;
  --gris: #6e6b66;
  --gris-claro: #a7a49e;
  --linea: #e4e0d8;
  --agua: #5fb0a4;
  --arena: #ebd9c8;
  --sol: #ffb629;
  --naranja: #de6600;
  --wa: #1fa855;
  --f: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--f); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--texto); background: var(--blanco); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--agua); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Títulos: mayúsculas finas y espaciadas ---------- */
h1, h2 { font-weight: 300; text-transform: uppercase; letter-spacing: .2em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-weight: 500; font-size: 19px; letter-spacing: .02em; margin: 0 0 8px; }
p { margin: 0 0 14px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; font: 500 14px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn.sm { padding: 10px 16px; font-size: 12.5px; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: #178c46; }
.btn.line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.line:hover { background: #fff; color: var(--noche); }
.btn.solid { background: var(--hueso); color: var(--noche); }
.btn.dark { background: var(--texto); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.outline { border-color: var(--texto); color: var(--texto); }
.btn.outline:hover { background: var(--texto); color: #fff; }
.btn.solid:hover { background: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.link { display: inline-block; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; color: var(--texto); }
.link:hover { color: var(--naranja); }
.link.light { color: #eceae5; }
.link.light:hover { color: var(--sol); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; font-size: 15px; }
.mark { display: inline-flex; flex-direction: column; gap: 3px; width: 26px; }
.mark i { display: block; height: 3.5px; border-radius: 3px; }
.mark i:nth-child(1) { background: var(--agua); }
.mark i:nth-child(2) { background: var(--arena); width: 86%; margin-left: 8%; }
.mark i:nth-child(3) { background: var(--sol); }
.mark i:nth-child(4) { background: var(--naranja); width: 80%; margin-left: 14%; }
/* Logo propio (img/logo.png) */
.logo-img { display: block; height: 36px; width: auto; max-width: 220px; object-fit: contain; }
.logo-img.auto-blanco { filter: brightness(0) invert(1); }
.logo-img.auto-oscuro { filter: brightness(0); }
.top .logo-img.en-oscuro { display: none; }
.top.menu-open .logo-img.en-oscuro { display: block; }
.top.menu-open .logo-img.en-claro { display: none; }
.pie .logo-img { height: 42px; }

/* ---------- Cabecera blanca ---------- */
:root { --hh: 74px; }
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--pad); background: #fff; color: var(--texto); border-bottom: 1px solid var(--linea); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 6px 24px rgba(31,36,39,.06); }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.menu a:not(.btn) { text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #4a4f52; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: var(--texto); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--naranja); }
.top .btn.outline { border-color: var(--naranja); color: var(--naranja); margin-left: 6px; }
.top .btn.outline:hover { background: var(--naranja); color: #fff; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; color: inherit; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Portada: texto a la izquierda sobre fondo claro, foto a la derecha ---------- */
.hero { position: relative; margin-top: var(--hh); min-height: clamp(560px, calc(100svh - var(--hh)), 860px); display: flex; align-items: center; background: var(--hueso); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,246,241,.97) 0%, rgba(248,246,241,.9) 26%, rgba(248,246,241,.55) 42%, rgba(248,246,241,0) 60%); }
.hero-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 4vw; background: var(--hueso); }
.hero-art .ph { background: none; color: #c9c0b0; width: min(820px, 62vw); height: auto; padding: 0; }
.hero-art .ph svg { width: 100%; height: auto; }
.hero-in { position: relative; z-index: 2; width: 100%; padding: 40px var(--pad) clamp(110px, 14vh, 150px); }
.hero h1 { text-transform: none; font-weight: 300; letter-spacing: -.012em; line-height: 1.04; font-size: clamp(42px, 5.6vw, 82px); color: var(--texto); max-width: 11.5em; }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); font-weight: 400; max-width: 32ch; margin: 24px 0 34px; color: #555a5d; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.strata { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(70px, 9vw, 120px); z-index: 2; fill: none; stroke-width: 5; }
.strata path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) forwards; }
.strata path:nth-child(2) { animation-delay: .12s; } .strata path:nth-child(3) { animation-delay: .24s; } .strata path:nth-child(4) { animation-delay: .36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec.dark { background: var(--noche); color: #eceae5; }
.sec.bone { background: var(--hueso); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px 60px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 70px); }
.head p { max-width: 46ch; color: var(--gris); margin: 0; }
.dark .head p { color: var(--gris-claro); }

/* Placeholder de imágenes */
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: #ece9e2; color: #8f8a80; padding: 8%; }
.ph svg { width: 100%; height: 100%; }
.ph span { position: absolute; left: 14px; bottom: 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #8f8a80; }
.ph-interiores { background: #e9ece9; color: #7f938f; }
.ph-construccion { background: #efe9df; color: #9a8b6f; }
.dark .ph { background: var(--noche-2); color: #5b6668; }
.dark .ph span { color: #6c7779; }
.obra .ph span { top: 12px; bottom: auto; }
#lb .ph span { display: none; }

/* ---------- Servicios (íconos de línea) ---------- */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); }
.servicios.n4 { grid-template-columns: repeat(4, 1fr); }
.serv { padding: 40px clamp(18px, 2.2vw, 32px) 10px; display: flex; flex-direction: column; }
.serv:first-child { padding-left: 0; }
.serv + .serv { border-left: 1px solid var(--linea); }
.serv .icono { width: 54px; height: 54px; color: var(--texto); margin-bottom: 26px; }
.serv h3 { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.serv p { color: var(--gris); font-size: 15.5px; }
.serv ul { list-style: none; padding: 0; margin: 6px 0 24px; flex: 1; }
.serv li { padding: 7px 0 7px 16px; font-size: 14.5px; color: #4a4f52; position: relative; }
.serv li::before { content: ''; position: absolute; left: 0; top: 16px; width: 7px; height: 1px; background: var(--naranja); }
.serv .link { align-self: flex-start; font-size: 12.5px; }

/* ---------- Proyectos ---------- */
.filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.filtros button { background: none; border: 1px solid var(--linea); color: #4a4f52; font: 500 12.5px var(--f); letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; cursor: pointer; }
.filtros button span { color: var(--gris-claro); margin-left: 4px; font-weight: 400; }
.filtros button:hover { border-color: var(--texto); color: var(--texto); }
.filtros button.on { background: var(--texto); color: #fff; border-color: var(--texto); }
.filtros button.on span { color: #c9c6bf; }
.vacio { color: var(--gris-claro); font-size: 18px; }
/* Página principal: mosaico oscuro con el primero grande */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 22vw, 300px); gap: 14px; }
.obra { position: relative; display: block; background: var(--noche-2); overflow: hidden; color: #fff; text-decoration: none; }
.obra-img { position: absolute; inset: 0; display: block; }
.obra img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.obra:hover img { transform: scale(1.04); }
.obra.big { grid-column: span 2; grid-row: span 2; }
.obra .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(10,13,15,.82)); display: flex; flex-direction: column; }
.obra .cap b { font-weight: 500; letter-spacing: .06em; }
.obra .cap small { font-size: 13px; color: #d4d1ca; }
.obra[hidden] { display: none; }
/* Portafolio: tarjetas con texto debajo */
.pagina { padding-top: var(--hh); }
.pagina .sec { padding-top: clamp(50px, 7vw, 90px); }
.h-pag { font-size: clamp(30px, 4vw, 48px); }
.sub { color: var(--gris); max-width: 52ch; margin: 14px 0 0; font-size: 17px; }
.grid-port { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.obra.card { background: none; color: var(--texto); }
.obra.card .obra-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ece9e2; }
.obra.card .cap { position: static; padding: 16px 0 0; background: none; }
.obra.card .cap b { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.obra.card .cap small { color: var(--naranja); font-size: 13.5px; margin-top: 2px; }
/* Ficha de un proyecto */
.miga { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-claro); margin-bottom: 18px; }
.miga a { color: var(--gris); text-decoration: none; }
.miga a:hover { color: var(--naranja); }
.ficha-portada { display: block; width: 100%; aspect-ratio: 16 / 9; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; border: 0; background: #ece9e2; overflow: hidden; cursor: zoom-in; }
.ficha-portada img { width: 100%; height: 100%; object-fit: cover; }
.ficha-cuerpo { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 6vw, 90px); padding: clamp(40px, 5vw, 64px) 0; }
.ficha-texto { min-width: 0; font-size: 18px; line-height: 1.7; color: #3c4144; max-width: 62ch; }
.ficha-datos { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; align-content: start; border-top: 1px solid var(--linea); }
.ficha-datos dt, .ficha-datos dd { padding: 13px 0; border-bottom: 1px solid var(--linea); margin: 0; }
.ficha-datos dt { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); padding-right: 24px; padding-top: 15px; }
.ficha-galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ficha-galeria button { padding: 0; border: 0; background: #ece9e2; aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in; }
.ficha-galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ficha-galeria button:hover img { transform: scale(1.03); }
.ficha-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; margin-top: clamp(50px, 6vw, 80px); padding-top: 26px; border-top: 1px solid var(--linea); }
.ficha-nav a { text-decoration: none; font-weight: 500; letter-spacing: .04em; }
.ficha-nav a small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-claro); font-weight: 400; }
.ficha-nav a:hover { color: var(--naranja); }
.ficha-nav .todos { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ficha-nav .sig { text-align: right; }
.cta-band { background: var(--hueso); padding: clamp(40px, 5vw, 60px) 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.cta-band p { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; max-width: 30ch; }

/* ---------- Proceso ---------- */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--linea); }
.pasos li { padding: 26px 22px 10px 0; position: relative; }
.pasos li + li { padding-left: 22px; border-left: 1px solid var(--linea); }
.pasos .n { display: block; font-size: 44px; font-weight: 300; line-height: 1; margin-bottom: 18px; color: var(--naranja); }
.pasos li:nth-child(2) .n { color: var(--sol); } .pasos li:nth-child(3) .n { color: #b9a47b; } .pasos li:nth-child(4) .n { color: var(--agua); } .pasos li:nth-child(5) .n { color: var(--texto); }
.pasos p { color: var(--gris); font-size: 15.5px; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.cifras div { padding: 34px 0; display: flex; align-items: baseline; gap: 16px; }
.cifras div + div { padding-left: 34px; border-left: 1px solid var(--linea); }
.cifras b { font-size: clamp(44px, 6vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.cifras span { color: var(--gris); max-width: 14ch; line-height: 1.35; }

/* ---------- Equipo ---------- */
.equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 40px; }
.equipo figure { margin: 0; }
.equipo img, .avatar { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e7e3da; }
.avatar { display: grid; place-items: center; font-size: 96px; font-weight: 300; color: #b5ad9f; }
.equipo figcaption { padding-top: 16px; display: flex; flex-direction: column; }
.equipo figcaption b { font-weight: 500; font-size: 18px; letter-spacing: .04em; }
.equipo figcaption span { color: var(--gris); font-size: 15px; }

/* ---------- Testimonios ---------- */
.testis { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px; }
.testis blockquote { margin: 0; padding-top: 22px; border-top: 2px solid var(--agua); }
.testis p { font-size: 19px; font-weight: 300; line-height: 1.55; }
.testis footer { display: flex; flex-direction: column; font-size: 14.5px; }
.testis footer span { color: var(--gris); }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.c-info p { color: var(--gris-claro); margin: 22px 0 28px; max-width: 38ch; }
.c-info dl { margin: 40px 0 0; display: grid; grid-template-columns: 90px 1fr; gap: 12px 18px; font-size: 15.5px; }
.c-info dt { color: var(--gris-claro); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }
.c-info dd { margin: 0; }
.c-info a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.c-info a.btn { border: 0; }
.redes { display: flex; gap: 20px; margin-top: 30px; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; }
.form { background: var(--noche-2); padding: clamp(24px, 4vw, 44px); }
.form h3 { font-weight: 400; font-size: 21px; letter-spacing: .04em; margin-bottom: 22px; color: #fff; }
.form label { display: block; font-size: 13px; letter-spacing: .08em; color: var(--gris-claro); margin-bottom: 16px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; font: 400 16px var(--f); color: #fff; background: transparent; border: 1px solid #3a4246; border-radius: 0; transition: border-color .2s; }
.form select option { color: var(--texto); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--agua); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form .row3 { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 0 12px; }
.form fieldset.reunion { border: 1px solid #3a4246; padding: 4px 16px 0; margin: 0 0 18px; }
.form fieldset.reunion legend { padding: 0 6px; margin-left: -6px; }
.form label.chk { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-size: 14.5px; letter-spacing: .04em; cursor: pointer; }
.form label.chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--agua); }
.form .reunion-in { padding-top: 14px; }
.form .reunion .nota { margin: -4px 0 14px; font-size: 13.5px; color: var(--gris-claro); }
.form.sent fieldset { display: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 6px; }
.f-msg { margin: 16px 0 0; font-size: 15px; min-height: 1em; }
.f-msg.ok { color: #9fd8c9; }
.f-msg.err { color: #f2b09a; }
.f-msg a { color: #fff; }
.form.sent .row2, .form.sent label, .form.sent button { display: none; }
.form.sent .f-msg { font-size: 17px; }

/* ---------- Pie ---------- */
.pie { background: #0c1012; color: #9c9a95; padding: 40px 0; font-size: 14px; }
.pie-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap; }
.pie .logo { color: #eceae5; }
.pie p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Visor de proyectos ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(10,13,15,.96); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; color: #eceae5; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { width: min(1200px, 100%); height: min(76vh, 760px); display: grid; place-items: center; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-img .ph { height: 100%; }
.lb figcaption { padding-top: 16px; text-align: center; }
.lb figcaption b { display: block; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; font-size: 17px; }
.lb figcaption span { color: var(--gris-claro); font-size: 14.5px; }
.lb button { background: none; border: 0; color: #eceae5; font-size: 44px; font-weight: 200; cursor: pointer; height: 60px; }
.lb .lb-x { position: absolute; top: 12px; right: 18px; font-size: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .servicios, .servicios.n4 { grid-template-columns: 1fr 1fr; }
  .serv:nth-child(odd) { padding-left: 0; border-left: 0; }
  .serv:nth-child(n+3) { border-top: 1px solid var(--linea); }
  .grid-port { grid-template-columns: 1fr 1fr; }
  .ficha-cuerpo { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos li, .pasos li + li { padding: 24px 20px 10px 0; border-left: 0; border-bottom: 1px solid var(--linea); }
  .contacto { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; position: relative; z-index: 2; }
  .menu { position: fixed; inset: 0; background: var(--noche); color: #fff; flex-direction: column; justify-content: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu a:not(.btn) { font-size: 20px; color: #fff; }
  .menu.open { opacity: 1; pointer-events: auto; }
  .top.menu-open { color: #fff; background: transparent; box-shadow: none; border-color: transparent; }
  /* Portada en celular: foto arriba, texto abajo */
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(248,246,241,0) 60%, rgba(248,246,241,1) 100%); }
  .hero-art { position: absolute; justify-content: center; padding: 0 6vw; }
  .hero-art .ph { width: 100%; }
  .hero-in { padding: 8px var(--pad) 96px; }
  .strata { height: 60px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .servicios, .servicios.n4, .galeria, .cifras, .grid-port, .ficha-galeria { grid-template-columns: 1fr; }
  .serv, .serv + .serv { padding: 30px 0 6px; border-left: 0; }
  .serv + .serv { border-top: 1px solid var(--linea); }
  .ficha-nav { grid-template-columns: 1fr 1fr; }
  .ficha-nav .todos { display: none; }
  .galeria { grid-auto-rows: 240px; }
  .obra.big { grid-column: auto; grid-row: span 1; }
  .pasos { grid-template-columns: 1fr; }
  .cifras div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--linea); }
  .form .row2, .form .row3 { grid-template-columns: 1fr; }
  .lb { grid-template-columns: 40px 1fr 40px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strata path { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}

/* ---------- Aviso de cookies, privacidad y nota del formulario ---------- */
.lnk { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.pie .copy a { color: inherit; }
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: 420px; background: #fff; color: var(--texto); border: 1px solid var(--linea); box-shadow: 0 12px 40px rgba(18,23,26,.16); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; color: #4a4f52; }
.cookies div { display: flex; gap: 8px; justify-content: flex-end; }
.form .legal { font-size: 13px; color: var(--gris-claro); margin: 14px 0 0; }
.form .legal a { color: inherit; }
.form.sent .legal { display: none; }
.legal-doc .wrap { max-width: 820px; }
.legal-doc h2 { font-size: 15px; font-weight: 600; letter-spacing: .14em; margin: 40px 0 12px; }
.legal-doc p, .legal-doc li { color: #3c4144; font-size: 17px; }
.legal-doc ul { padding-left: 20px; margin: 0 0 14px; }
.legal-doc li { margin-bottom: 6px; }
@media (max-width: 640px) { .cookies { left: 12px; right: 12px; bottom: 84px; max-width: none; } }

.head p a { color: var(--texto); text-underline-offset: 4px; text-decoration-color: var(--naranja); }

/* ---------- Agendar reunión ---------- */
.agenda .wrap { max-width: 1120px; }
.ag-intro { margin-bottom: clamp(30px, 4vw, 48px); }
.ag-cargando, .ag-nota, .ag-vacio { color: var(--gris); font-size: 15px; }
.ag-error { border: 1px solid var(--linea); padding: 28px; max-width: 520px; }
.ag-error p { margin-bottom: 18px; }
.ag-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ag-form[hidden], .ag-ok[hidden], .ag-intro[hidden] { display: none; }
.ag-pasos { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ag-paso { border: 0; border-top: 1px solid var(--linea); margin: 0; padding: 26px 0 8px; min-width: 0; transition: opacity .2s; }
.ag-paso:disabled { opacity: .38; }
.ag-paso legend { display: flex; align-items: center; gap: 12px; padding: 0 0 18px; font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ag-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--texto); font-size: 13px; letter-spacing: 0; }
.ag-paso.activo .ag-n { background: var(--texto); color: #fff; }
/* modalidad */
.ag-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ag-mod { cursor: pointer; display: block; }
.ag-mod input { position: absolute; opacity: 0; pointer-events: none; }
.ag-mod-in { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px; border: 1px solid var(--linea); background: #fff; transition: border-color .2s, box-shadow .2s; }
.ag-mod:hover .ag-mod-in { border-color: #c9c3b8; }
.ag-mod input:checked + .ag-mod-in { border-color: var(--naranja); box-shadow: inset 0 0 0 1px var(--naranja); }
.ag-mod input:focus-visible + .ag-mod-in { outline: 2px solid var(--agua); outline-offset: 2px; }
.ag-mod-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--texto); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.ag-mod b { font-weight: 600; font-size: 16px; }
.ag-mod-in > span:not(.ag-mod-ic) { color: var(--gris); font-size: 15px; }
.ag-mod small { color: var(--naranja); font-size: 13.5px; margin-top: 6px; }
/* días */
.ag-dias-wrap { overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.ag-dias { display: flex; gap: 8px; width: max-content; }
.ag-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 68px; height: 82px; border: 1px solid var(--linea); background: #fff; font: inherit; color: var(--texto); cursor: pointer; flex: none; }
.ag-dia small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.ag-dia b { font-size: 24px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ag-dia:hover:not(:disabled) { border-color: var(--texto); }
.ag-dia.on { background: var(--texto); border-color: var(--texto); color: #fff; }
.ag-dia.on small { color: #d9d6cf; }
.ag-dia:disabled { cursor: not-allowed; opacity: .45; background: var(--hueso); }
/* horas */
.ag-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ag-hora { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border: 1px solid var(--linea); background: #fff; font: inherit; color: var(--texto); cursor: pointer; }
.ag-hora b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ag-hora small { font-size: 12.5px; color: var(--gris); }
.ag-hora:hover:not(:disabled) { border-color: var(--texto); }
.ag-hora.on { background: var(--texto); border-color: var(--texto); color: #fff; }
.ag-hora.on small { color: #d9d6cf; }
.ag-hora:disabled { cursor: not-allowed; background: var(--hueso); color: #b3aea5; }
.ag-hora:disabled b { text-decoration: line-through; }
/* datos */
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ag-paso label, .ag-terreno label { display: block; font-size: 13px; letter-spacing: .06em; color: var(--gris); margin-bottom: 16px; }
.ag-paso input:not([type=radio]), .ag-paso select, .ag-paso textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; font: 400 16px var(--f); color: var(--texto); background: #fff; border: 1px solid var(--linea); border-radius: 0; }
.ag-paso input:focus, .ag-paso select:focus, .ag-paso textarea:focus { outline: none; border-color: var(--agua); box-shadow: 0 0 0 3px rgba(95,176,164,.18); }
.ag-terreno { background: var(--hueso); padding: 16px 16px 2px; margin-bottom: 16px; }
.ag-paso .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* resumen */
.ag-resumen { position: sticky; top: calc(var(--hh) + 20px); background: var(--hueso); padding: 26px; }
.ag-resumen h2 { font-size: 14px; font-weight: 600; letter-spacing: .16em; margin-bottom: 16px; }
.ag-resumen dl { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.ag-resumen dt { color: var(--gris); font-size: 13px; letter-spacing: .06em; padding-top: 1px; }
.ag-resumen dd { margin: 0; font-weight: 500; }
.ag-resumen .btn { width: 100%; }
.ag-resumen .btn:disabled { background: #b9b5ad; border-color: #b9b5ad; }
.ag-msg { margin: 12px 0 0; font-size: 14.5px; min-height: 1em; }
.ag-msg.err { color: #b4472c; }
.ag-legal { font-size: 12.5px; color: var(--gris); margin: 12px 0 0; }
/* confirmación */
.ag-ok { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.ag-ok-ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--agua); color: #fff; display: grid; place-items: center; }
.ag-ok-ic svg { width: 32px; height: 32px; }
.ag-ok h2 { margin-bottom: 18px; }
.ag-ok #ok-det { font-size: 19px; line-height: 1.5; }
.ag-ok .sub { margin: 10px auto 28px; }
.ag-ok-acc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-band .cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .ag-form { grid-template-columns: 1fr; }
  .ag-resumen { position: static; }
}
@media (max-width: 640px) {
  .ag-dias-wrap { margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; }
  .ag-grid { grid-template-columns: 1fr; }
  .ag-ok-acc .btn { flex: 1 1 100%; }
}

.btn.outline { background: transparent; }
.menu a.btn[aria-current] { text-decoration: none; background: var(--naranja); color: #fff; }

/* Franjas de la portada con los colores exactos del logo */
.strata path:nth-child(1) { stroke: #a5c5c2; }
.strata path:nth-child(2) { stroke: #ebd9c8; }
.strata path:nth-child(3) { stroke: #ffb629; }
.strata path:nth-child(4) { stroke: #de6600; }
/* Logo oficial (incluye el nombre): un poco más alto para que se lea */
.top .logo-img { height: 42px; max-width: 240px; }
.pie .logo-img { height: 52px; max-width: 260px; }
