/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1; transition: background .3s, color .3s, transform .3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-water { background: var(--water); color: var(--white); }
.btn-water:hover { background: var(--water-deep); }
.btn-line { border: 1.5px solid currentColor; }
.btn-line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--water-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { width: 16px; transition: transform .3s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; height: var(--head-h); z-index: 50; color: var(--white); transition: background .35s, color .35s, box-shadow .35s; }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1480px; }
.site-head.is-solid { background: rgba(255,255,255,.96); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo svg.mark { width: 42px; height: 42px; flex: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word b { font: 800 1.42rem/1 var(--body); letter-spacing: .01em; }
.logo .word span { font: 500 .62rem/1 var(--body); letter-spacing: .42em; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.logo .word span::before, .logo .word span::after { content: ''; height: 1px; width: 14px; background: currentColor; opacity: .7; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); font-weight: 500; font-size: .98rem; }
.nav > a, .nav .dd > a { position: relative; padding: 8px 0; }
.nav > a::after, .nav .dd > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.nav > a:hover::after, .nav .dd:hover > a::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.dd { position: relative; }
.dd > a { display: inline-flex; align-items: center; gap: 6px; }
.dd > a svg { width: 10px; }
.dd-menu { position: absolute; top: 100%; left: -24px; min-width: 260px; background: var(--white); color: var(--navy); border-radius: 14px; padding: 12px; box-shadow: 0 24px 60px rgba(10,20,40,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 11px 14px; border-radius: 8px; }
.dd-menu a:hover { background: var(--mist); }
.head-right { display: flex; align-items: center; gap: 22px; }
.head-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.head-tel svg { width: 16px; }
.site-head .btn { padding: 13px 22px; font-size: .95rem; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: .3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: var(--head-h) 0 0 0; background: var(--white); color: var(--navy); z-index: 49; padding: 24px var(--gut) 120px; overflow-y: auto; }
.drawer a { display: block; padding: 14px 0; font: 400 1.7rem/1.2 var(--display); border-bottom: 1px solid var(--line); }
.drawer a.sub { font: 500 1.05rem/1.2 var(--body); padding-left: 18px; color: var(--muted); }
@media (max-width: 1099px) {
  .nav, .head-tel, .site-head .btn { display: none; }
  .burger { display: block; }
  .logo svg.mark { width: 36px; height: 36px; }
  .logo .word b { font-size: 1.2rem; }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1.2s; }
.hero-media video.is-on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,34,.55) 0%, rgba(8,18,34,0) 26%, rgba(8,18,34,0) 42%, rgba(8,18,34,.78) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vh, 90px); max-width: 1480px; }
.hero h1 { max-width: 15ch; font-weight: 350; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: 34px; }
.hero-sub { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: #dbe5ee; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-facts { display: flex; gap: 36px; border-left: 1px solid rgba(255,255,255,.35); padding-left: 28px; }
.hero-facts b { display: block; font: 400 2.2rem/1 var(--display); }
.hero-facts span { font-size: .88rem; color: #c3d0dc; }
@media (max-width: 999px) {
  .hero { min-height: 92svh; }
  .hero-facts { border-left: 0; padding-left: 0; gap: 26px; }
}

/* ---------- Declaración ---------- */
.statement { overflow: hidden; }
.statement p { font: 350 clamp(1.7rem, 3.3vw, 3.2rem)/1.18 var(--display); letter-spacing: -.015em; max-width: 24ch; color: var(--navy); }
.statement p .soft { color: #8d9aa8; }
.statement-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: center; }
.statement-foot p { font: 400 1.05rem/1.6 var(--body); color: var(--muted); max-width: 52ch; }

/* ---------- Marea: el agua sube y descubre cada espacio ---------- */
.tide { height: 340vh; background: var(--navy); }
.tide-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.tide-scene { position: absolute; inset: 0; }
.tide-scene img { width: 100%; height: 100%; object-fit: cover; }
.tide-scene + .tide-scene { clip-path: inset(100% 0 0 0); }
.tide-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,34,.72) 0%, rgba(8,18,34,.15) 55%, rgba(8,18,34,0) 100%); }
.tide-wave { position: absolute; left: 0; width: 200%; height: 26px; z-index: 3; pointer-events: none; opacity: 0; }
.tide-wave path { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.5; }
.tide-copy { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; top: 0; display: flex; align-items: center; }
.tide-copy .wrap { max-width: 1480px; }
.tide-text { position: relative; max-width: 560px; color: var(--white); min-height: 360px; }
.tide-item { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.tide-item.is-on { opacity: 1; transform: none; }
.tide-item h3 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1; margin-bottom: 22px; }
.tide-item p { color: #d7e1ea; font-size: 1.1rem; max-width: 44ch; margin-bottom: 26px; }
.tide-item a { color: var(--white); }
.tide-level { position: absolute; z-index: 4; right: var(--gut); top: 50%; transform: translateY(-50%); height: 46vh; width: 2px; background: rgba(255,255,255,.25); }
.tide-level i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--water-2); }
.tide-level span { position: absolute; right: 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); white-space: nowrap; transform: translateY(50%); }
.tide-level span.is-on { color: var(--white); }
@media (max-width: 999px) {
  .tide { height: auto; }
  .tide-stick { position: relative; height: auto; }
  .tide-scene { position: relative; height: 72svh; }
  .tide-scene + .tide-scene { clip-path: none; }
  .tide-scene::after { background: linear-gradient(0deg, rgba(8,18,34,.85) 0%, rgba(8,18,34,0) 70%); }
  .tide-wave, .tide-level { display: none; }
  .tide-copy { display: none; }
  .tide-scene .m-copy { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: 36px; color: var(--white); }
  .tide-scene .m-copy h3 { font-size: 2.4rem; margin-bottom: 10px; }
  .tide-scene .m-copy p { color: #d7e1ea; margin-bottom: 14px; }
}
@media (min-width: 1000px) { .tide-scene .m-copy { display: none; } }

/* ---------- Servicios en bloques partidos ---------- */
.srv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: clamp(48px, 6vw, 88px); }
.srv-head h2 { max-width: 14ch; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 140px); }
.split.rev .split-media { order: 2; }
.split-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3.1; background: var(--mist); }
.split-media img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; }
.split-media .tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; background: rgba(255,255,255,.94); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.split-body h3 { font-size: clamp(2rem, 3.4vw, 3.3rem); margin-bottom: 20px; }
.split-body p { color: var(--muted); margin-bottom: 22px; }
.ticks { margin: 0 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 16px; height: 8px; border-radius: 0 0 8px 8px; border: 1.5px solid var(--water); border-top: 0; }
@media (max-width: 999px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
}

/* ---------- Lo que firmamos contigo ---------- */
.pact { background: var(--navy); color: #e8eef4; overflow: hidden; }
.pact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.pact h2 { color: var(--white); max-width: 12ch; margin-bottom: 26px; }
.pact .lead { margin-bottom: 30px; }
.sheet { position: relative; background: #fbfcfd; color: var(--ink); border-radius: 6px; padding: clamp(32px, 4vw, 56px); box-shadow: 0 40px 90px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
.sheet-top .logo { color: var(--navy); }
.sheet-top .logo svg.mark { width: 34px; height: 34px; }
.sheet-top .logo .word b { font-size: 1.1rem; }
.sheet-top small { font-size: .78rem; color: var(--muted); text-align: right; }
.clause { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.clause svg { width: 22px; height: 22px; color: var(--water); margin-top: 3px; }
.clause b { display: block; font: 500 1.22rem/1.25 var(--display); color: var(--navy); margin-bottom: 4px; }
.clause span { color: var(--muted); font-size: .96rem; }
.sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; }
.sign div { flex: 1; border-top: 1px solid var(--ink); padding-top: 8px; font-size: .8rem; color: var(--muted); }
.sign svg.sig { width: 150px; height: 46px; color: var(--navy); margin-bottom: -6px; }
.sign svg.sig path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sheet.is-in svg.sig path { transition: stroke-dashoffset 1.6s ease .4s; stroke-dashoffset: 0; }
@media (max-width: 999px) { .pact-grid { grid-template-columns: 1fr; } .sheet { transform: none; } }

/* ---------- Obras reales ---------- */
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 18px; scrollbar-width: thin; }
.reel figure { flex: 0 0 auto; width: clamp(260px, 30vw, 440px); scroll-snap-align: start; }
.reel figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--mist); }
.reel figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.grid-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { cursor: zoom-in; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; transition: transform .6s; }
.work:hover img { transform: scale(1.02); }
.work figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }
.filters button.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.work.is-out { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,14,24,.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-on { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; }
.lightbox p { color: #cfd8e2; text-align: center; margin: 14px auto 0; }
.lightbox button { position: absolute; color: var(--white); font-size: 2rem; width: 54px; height: 54px; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }
@media (max-width: 999px) { .grid-works { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- Zona ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.zone-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.zone-list span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .95rem; background: var(--white); }
.zone-map { position: relative; aspect-ratio: 1; }
.zone-map svg { width: 100%; height: 100%; }
@media (max-width: 999px) { .zone { grid-template-columns: 1fr; } .zone-map { max-width: 420px; } }

/* ---------- Llamada final ---------- */
.cta { position: relative; overflow: hidden; color: var(--white); min-height: 78vh; display: flex; align-items: center; }
.cta-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,18,34,.86), rgba(8,18,34,.35)); }
.cta .wrap { position: relative; z-index: 2; max-width: 1480px; }
.cta h2 { max-width: 13ch; margin-bottom: 22px; }
.cta p { color: #d3dde7; margin-bottom: 32px; font-size: 1.15rem; }
.cta .hero-ctas { margin-top: 0; }

/* ---------- Cabeceras de páginas ---------- */
.page-hero { padding: calc(var(--head-h) + clamp(40px, 6vw, 90px)) 0 clamp(48px, 6vw, 90px); background: var(--mist); }
.page-hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); color: var(--navy); margin-bottom: 24px; }
.page-hero .lead { margin-bottom: 30px; }
.page-hero .ph-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 4.6; }
.page-hero .ph-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--navy); }
.page-hero.slim .grid { grid-template-columns: 1fr; }
.page-hero.slim h1 { max-width: 18ch; }
@media (max-width: 999px) { .page-hero .grid { grid-template-columns: 1fr; } .page-hero .ph-media { aspect-ratio: 4 / 3; } }

/* contenido de servicio */
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin: 0 0 22px; color: var(--navy); }
.prose p { color: var(--muted); margin-bottom: 18px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); }
.inc { border-top: 1px solid var(--line); }
.inc li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.inc li b { font: 500 1.25rem/1.25 var(--display); color: var(--navy); }
.inc li span { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font: 500 1.25rem/1.3 var(--display); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; font-family: var(--body); font-size: 1.5rem; line-height: 1; color: var(--water); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }
.svc-index a { display: grid; grid-template-columns: 1fr 1.2fr 160px; gap: 32px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .4s; }
.svc-index a:first-child { border-top: 1px solid var(--line); }
.svc-index a:hover { padding-left: 14px; }
.svc-index h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); color: var(--navy); }
.svc-index p { color: var(--muted); }
.svc-index img { width: 160px; height: 110px; object-fit: cover; border-radius: 4px; }
@media (max-width: 999px) {
  .cols2 { grid-template-columns: 1fr; }
  .inc li { grid-template-columns: 1fr; gap: 6px; }
  .svc-index a { grid-template-columns: 1fr; gap: 12px; }
  .svc-index img { width: 100%; height: 200px; }
}

/* ---------- Presupuesto en 3 pasos ---------- */
.quote-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.quote-aside h2 { color: var(--navy); margin-bottom: 20px; font-size: clamp(2rem, 3.6vw, 3.4rem); }
.quote-aside p { color: var(--muted); margin-bottom: 26px; }
.contact-lines a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; }
.contact-lines a svg { width: 22px; color: var(--water); }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 3.5vw, 48px); }
.q-steps { display: flex; gap: 8px; margin-bottom: 30px; }
.q-steps li { flex: 1; font-size: .82rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.q-steps li.is-on { color: var(--navy); border-color: var(--water); font-weight: 600; }
.q-steps li.is-done { border-color: var(--water-2); }
.q-step legend { font: 400 1.7rem/1.2 var(--display); color: var(--navy); margin-bottom: 20px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts label { position: relative; display: block; cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; border: 1.5px solid var(--line); border-radius: 8px; padding: 18px; font-weight: 600; transition: .2s; }
.opts span small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.opts input:checked + span { border-color: var(--water); background: #e9f6f8; }
.opts input:focus-visible + span { outline: 2px solid var(--water); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 8px; padding: 14px; background: var(--white); }
.field input.is-bad, .field textarea.is-bad { border-color: #c0392b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 4px; }
.q-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 20px; }
.q-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--water-deep); }
.q-wa svg { width: 20px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 999px) { .quote-wrap { grid-template-columns: 1fr; } .opts, .row2 { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-foot { background: #0c1628; color: #b7c3d0; padding: 90px 0 120px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-foot .logo { color: var(--white); margin-bottom: 20px; }
.site-foot h4 { color: var(--white); font: 600 .95rem/1 var(--body); margin-bottom: 18px; }
.site-foot li { margin-bottom: 10px; }
.site-foot a:hover { color: var(--white); }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .85rem; }
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 999px) { .foot-grid { grid-template-columns: 1fr 1fr; } .site-foot { padding-bottom: 140px; } }

/* ---------- WhatsApp y barra móvil ---------- */
.wa-float { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .3s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; color: var(--white); }
.m-bar { display: none; }
@media (max-width: 999px) {
  .wa-float { display: none; }
  .m-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); box-shadow: 0 -1px 0 var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .m-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 999px; font-weight: 600; }
  .m-bar a svg { width: 20px; }
  .m-bar .call { background: var(--navy); color: var(--white); }
  .m-bar .wa { background: #25d366; color: #06301a; }
}

/* ---------- Aviso ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--navy); color: var(--white); padding: 16px 22px; border-radius: 10px; z-index: 95; max-width: calc(100% - 32px); transition: transform .4s, visibility .4s; visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Pendiente de confirmar (solo con ?review=1) ---------- */
.review [data-pending] { background: #fff1b8; outline: 2px dashed #d39b00; }

/* ===== v3: más movimiento ===== */
/* Portada: ondas de agua al mover el ratón y línea de agua bajo el titular */
.hero-ripple { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-line { display: block; width: min(820px, 70vw); height: 22px; margin-top: 18px; overflow: hidden; }
.hero-line path { fill: none; stroke: var(--water-2); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: line-draw 1.8s cubic-bezier(.6,0,.2,1) .9s forwards, line-run 6s linear 2.7s infinite; }
.no-splash .hero-line path { animation-delay: .5s, 2.3s; }

/* Franja con los servicios en movimiento */
.marquee { background: var(--water); color: var(--white); overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.mq-track { display: flex; width: max-content; animation: mq 32s linear infinite; }
.mq-track > div { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.mq-track span { font: 350 clamp(1.5rem, 2.6vw, 2.4rem)/1 var(--display); white-space: nowrap; letter-spacing: -.01em; }
.mq-track i { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--white); opacity: .75; flex: none; }

/* Marea: ola con espuma y contador de nivel */
.tide-foam { position: absolute; left: 0; width: 100%; height: 60px; z-index: 3; pointer-events: none; opacity: 0; overflow: hidden; }
.tide-foam svg { position: absolute; left: 0; top: 0; width: 200%; height: 60px; }
.tide-foam .f1 path { fill: rgba(108,198,211,.55); }
.tide-foam .f2 path { fill: rgba(255,255,255,.88); }
.tide-foam .f1 { animation: wave-run 6s linear infinite; }
.tide-foam .f2 { animation: wave-run 9s linear infinite reverse; top: 6px; }
.tide-count { position: absolute; z-index: 4; right: calc(var(--gut) + 60px); bottom: 7vh; color: var(--white); text-align: right; }
.tide-count b { display: block; font: 300 clamp(4rem, 9vw, 8.5rem)/.9 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tide-count span { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.tide-item h3 { overflow: hidden; padding-bottom: .06em; }
.tide-item h3 > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.tide-item.is-on h3 > span { transform: none; }
.tide-item p, .tide-item a { opacity: 0; transform: translateY(18px); transition: opacity .7s .15s, transform .7s .15s; }
.tide-item.is-on p, .tide-item.is-on a { opacity: 1; transform: none; }

/* Servicios: lista grande, la foto sale del ratón como una gota */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 64px; align-items: center; gap: 24px 48px; padding: clamp(28px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.svc-row h3 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1; font-weight: 350; overflow: hidden; padding-bottom: .06em; }
.svc-row h3 span { display: inline-block; transition: transform .6s cubic-bezier(.2,.8,.2,1), color .4s; }
.svc-row p { color: var(--muted); font-size: 1.02rem; max-width: 44ch; }
.svc-go { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s, transform .5s; }
.svc-go svg { width: 20px; height: 20px; }
.svc-row::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--water); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.6,0,.2,1); }
.svc-row:hover::before { transform: scaleX(1); }
.svc-row:hover h3 span { transform: translateX(18px); color: var(--water-deep); }
.svc-row:hover .svc-go { background: var(--water); border-color: var(--water); color: var(--white); transform: rotate(-45deg); }
.svc-thumb { display: none; }
.svc-float { position: fixed; left: 0; top: 0; width: 340px; height: 240px; z-index: 30; pointer-events: none; border-radius: 6px; overflow: hidden; clip-path: circle(0% at 50% 50%); transition: clip-path .7s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.svc-float.is-on { clip-path: circle(75% at 50% 50%); }
.svc-float img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.svc-float.is-on img { transform: scale(1); }

/* Compromiso: cada cláusula se marca al bajar */
.pact .clause { transition: opacity .5s; }
.pact.is-pinned .clause { opacity: .28; }
.pact.is-pinned .clause.is-on { opacity: 1; }
.clause svg path { transition: fill .5s; }
.clause.is-on svg path { fill: rgba(29,151,171,.25); }
.pact.is-pinned .sheet svg.sig path { transition: none; }

/* Obras: tira horizontal fijada */
.reel-pin { overflow: hidden; }
.reel.is-h { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; }
.reel.is-h figure img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.reel.is-h figure:hover img { transform: scale(1.03); }

/* Botones: el agua sube al pasar el ratón */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; left: -10%; right: -10%; top: 100%; height: 160%; z-index: -1; border-radius: 45% 45% 0 0; transition: top .55s cubic-bezier(.3,.7,.2,1), border-radius .55s; }
.btn-water::after { background: var(--water-deep); }
.btn-navy::after { background: var(--water); }
.btn-line::after { background: var(--white); }
.btn:hover::after { top: -30%; border-radius: 0; }
.btn-water:hover { background: var(--water); }
.btn-navy:hover { background: var(--navy); }

/* Cabeceras de página: la foto se destapa como agua */
.page-hero .ph-media { clip-path: inset(100% 0 0 0); animation: ph-rise 1.3s cubic-bezier(.7,0,.2,1) .25s forwards; }
.page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.page-hero h1 .w > span { display: inline-block; }

/* Cortina de agua entre páginas */
.curtain { position: fixed; inset: 0; z-index: 250; background: var(--water); transform: translateY(100%); pointer-events: none; }
.curtain.is-in { transform: translateY(0); transition: transform .45s cubic-bezier(.7,0,.3,1); }

@media (max-width: 999px) {
  .svc-row { grid-template-columns: 1fr 48px; }
  .svc-row p { grid-column: 1 / -1; grid-row: 2; }
  .svc-go { width: 46px; height: 46px; }
  .svc-float { display: none; }
  .svc-thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
  .tide-count { display: none; }
  .hero-ripple { display: none; }
  .hero-line { width: 80vw; }
}

/* ===== Producción (06/11/2026) ===== */
/* Pie: enlaces legales y crédito de RelyViews (kit credito-relyviews) */
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rv-credit { display: flex; justify-content: center; margin-top: 20px; padding: 16px 96px 24px; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); color: #e3e9f0; }
.rv-credit a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; padding: 8px 20px; font-size: 15px; line-height: 1.2; color: inherit; opacity: 1; text-decoration: none; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 999px; transition: background-color .2s, border-color .2s; }
.rv-credit a strong { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rv-credit a:hover, .rv-credit a:focus-visible { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); color: #fff; }
@media (max-width: 767px) { .rv-credit { padding: 16px 16px 20px; } }

/* Aviso de cookies: en ordenador abajo a la izquierda (no tapa el WhatsApp); en móvil tapa la barra entera mientras está abierto */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 80; width: min(440px, calc(100% - 140px)); background: var(--navy); color: #e3e9f0; border-radius: 12px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: none; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .92rem; line-height: 1.5; margin-bottom: 14px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns .btn { padding: 12px 20px; font-size: .95rem; }
.cookie-btns .btn-line { color: #fff; }
@media (max-width: 999px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .cookie-btns .btn { flex: 1; justify-content: center; }
}

/* Datos pendientes del alta: se ven siempre para que nadie publique sin ellos */
.pending { background: #fff1b8; color: #6b4e00; padding: 0 4px; border-radius: 3px; }

/* Páginas de servicio = destino de anuncios */
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa::after { background: #1eb457; }
.btn-wa svg { width: 20px; height: 20px; }
.ph-proof { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.ph-proof a { color: var(--navy); font-weight: 600; }
#presupuesto { scroll-margin-top: calc(var(--head-h) + 12px); }
.quote-aside .clauses { margin: 6px 0 30px; border-top: 1px dashed var(--line); }
.quote-aside .clause b { font-size: 1.12rem; }
.quote-aside .clause span { color: var(--muted); font-size: .95rem; }
.revs { display: grid; gap: 16px; }
.rev { background: var(--mist); border-radius: 10px; padding: 20px 22px; }
.rev p { font-size: .98rem; color: var(--ink); max-width: none; }
.rev .rev-stars { color: #e3a008; letter-spacing: 2px; font-size: 1rem; margin-bottom: 6px; }
.rev cite { display: block; margin-top: 10px; font-style: normal; font-size: .85rem; color: var(--muted); }
.svc-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-works img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.svc-works figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.also { display: flex; flex-wrap: wrap; gap: 14px 28px; }
@media (max-width: 999px) { .svc-works { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Legales */
.legal-main { padding-top: calc(var(--head-h) + clamp(40px, 6vw, 80px)); }
.legal { max-width: 860px; }
.legal h1 { color: var(--navy); font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: 14px; }
.legal h2 { color: var(--navy); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 40px 0 14px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 14px; max-width: 75ch; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--water-deep); text-decoration: underline; }
.legal-updated { color: var(--muted) !important; font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--mist); color: var(--navy); }
.check a { text-decoration: underline; color: var(--navy); }
.svc-quote .svc-form { position: sticky; top: calc(var(--head-h) + 20px); }
@media (max-width: 999px) { .svc-quote .svc-form { position: static; order: -1; } }
@media (min-width: 1000px) { .hero .hero-row { padding-right: 72px; } }
