/* ==========================================================
   Picos del Teide — Construcción y mantenimiento integral
   Negro elegante + naranja deportivo
   ========================================================== */

:root {
  --bg: #0B0B0C;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1C1C1F;
  --line: rgba(237, 235, 232, 0.09);
  --line-strong: rgba(237, 235, 232, 0.18);
  --text: #EDEBE8;
  --muted: #9C9993;
  --dim: #6B6964;
  --orange: #FF5A1F;
  --orange-2: #FF7A2F;
  --orange-soft: rgba(255, 90, 31, 0.12);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 14px;
  --r-sm: 8px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #0B0B0C; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: #0B0B0C; padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }

.display {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 7.4vw, 112px); }
.h2 { font-size: clamp(34px, 4.6vw, 68px); }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
.display em { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 58ch; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: #0B0B0C; }
.btn--primary:hover { background: var(--orange-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, .94);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px) saturate(140%); }
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-stretch: 112%; font-size: 17px; line-height: 1; }
.brand__name small { display: block; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .18em; color: var(--muted); margin-top: 5px; font-stretch: 100%; }

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 14.5px; color: var(--muted); position: relative; padding: 6px 0; transition: color .25s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange);
}
.nav__cta { --h: 44px; padding: 0 20px; font-size: 14px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); position: relative;
}
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    padding: 0 var(--gutter);
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav__links a { font-size: 40px; font-weight: 800; font-stretch: 112%; color: var(--text); letter-spacing: -.02em; }
  .nav__links a[aria-current="page"] { color: var(--orange); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .nav__mobile-cta { margin-top: 28px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { background: var(--bg); }
}
@media (min-width: 921px) { .nav__mobile-cta { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 6vw, 80px);
  overflow: clip;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: auto -10% -30% -10%; height: 80%; z-index: -2;
  background: radial-gradient(ellipse 50% 60% at 60% 70%, rgba(255, 90, 31, .22), transparent 70%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translateY(-4%) scale(1.06); opacity: .8; } }
.hero__grid {
  position: absolute; inset: 0; z-index: -3; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.teide {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: 70%;
  will-change: transform;
}
.teide .massif { fill: #0B0B0C; opacity: .9; }
.teide .ridge {
  fill: none; stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 3000; stroke-dashoffset: 0;
  animation: draw 2.6s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.teide .ridge { stroke-opacity: .35; }
.teide .ridge--top { stroke: var(--orange); stroke-width: 2; stroke-opacity: 1; }
@keyframes draw { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }

.hero__content { position: relative; display: grid; gap: 34px; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  margin-top: 16px;
}
.hero__meta div { padding: 20px 20px 0 0; }
.hero__meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero__meta b { display: block; font-size: 15px; font-weight: 700; }
.hero__meta span { font-size: 14px; color: var(--muted); }
.coords {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 30px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); text-align: right; line-height: 1.8;
}
.coords b { color: var(--orange); font-weight: 500; }
@media (max-width: 720px) {
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta div, .hero__meta div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .coords { display: none; }
  .teide { width: 240%; max-width: none; left: -130%; right: auto; height: 50%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: clip; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(70px, 10vw, 140px)) 0 clamp(60px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1;
  background: url("assets/img/teide-lines.svg?v=20261029a") center bottom / cover no-repeat;
  opacity: .5;
  mask-image: linear-gradient(to top, #000 20%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent);
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 -40% 30%; height: 90%; z-index: -2;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, .16), transparent 65%);
}
.page-hero .display { margin: 20px 0 26px; max-width: 16ch; }
.crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--dim); letter-spacing: .08em; margin-top: 40px; }
.crumbs a:hover { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 11vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(50px, 6vw, 80px); }
.section__head .display { margin-top: 18px; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Marquee (clients / sectors) ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 56px;
  font-stretch: 112%; font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); color: var(--dim); white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services list (home) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.svc-row {
  display: grid; grid-template-columns: 90px 1.1fr 1.4fr 48px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line-strong);
  position: relative; transition: padding .4s var(--ease);
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--orange-soft), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.svc-row:hover::before { transform: scaleX(1); }
.svc-row:hover { padding-left: 20px; }
.svc-row__n { font-family: var(--f-mono); font-size: 13px; color: var(--orange); }
.svc-row__t { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.1; }
.svc-row__d { color: var(--muted); font-size: 16px; }
.svc-row__a {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.svc-row__a svg { width: 18px; height: 18px; }
.svc-row:hover .svc-row__a { background: var(--orange); border-color: var(--orange); color: #0B0B0C; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 50px 1fr 44px; gap: 8px 16px; }
  .svc-row__d { grid-column: 2 / 3; font-size: 15px; }
  .svc-row__a { grid-row: 1; grid-column: 3; width: 44px; height: 44px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stat { padding: 34px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { font-size: clamp(48px, 5.5vw, 84px); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.03em; }
.stat__n sup { font-size: .4em; color: var(--orange); vertical-align: top; margin-left: 4px; }
.stat__l { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 22ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 30px; }
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px 34px; position: relative; overflow: hidden;
  transition: border-color .35s, transform .45s var(--ease);
}
.step:hover { border-color: rgba(255, 90, 31, .45); transform: translateY(-4px); }
.step__n { font-family: var(--f-mono); font-size: 12px; color: var(--orange); letter-spacing: .1em; }
.step h3 { margin: 50px 0 12px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step::after {
  content: ""; position: absolute; left: 26px; right: 26px; top: 64px; height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
@media (max-width: 980px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Photo frames (placeholders ready for real photos) ---------- */
.frame {
  position: relative; border-radius: var(--r); overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 70% 110%, rgba(255, 90, 31, .28), transparent 70%),
    linear-gradient(160deg, #1d1d20, #121214);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.frame::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/teide-lines.svg?v=20261029a") center 120% / 180% auto no-repeat;
  opacity: .35;
  transition: transform 1.2s var(--ease);
}
.frame img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.frame__tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; }
.project--wide { grid-column: span 8; }
.project--wide .frame { aspect-ratio: 16 / 9.4; }
.project .frame { aspect-ratio: 4 / 3.6; }
.project--wide + .project .frame { aspect-ratio: auto; flex: 1; min-height: 260px; }
.project:hover .frame::before { transform: scale(1.06); }
.project__meta { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.project__cat { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.project p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.project[hidden] { display: none; }
@media (max-width: 900px) {
  .project, .project--wide { grid-column: span 12; }
  .project--wide + .project .frame { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  height: 42px; padding: 0 18px; border-radius: 999px; background: transparent;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; font-weight: 600;
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: #0B0B0C; border-color: var(--text); }

/* ---------- Service detail cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(28px, 3vw, 44px);
  display: grid; gap: 18px; align-content: start;
  transition: border-color .35s, background .35s;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.svc-card:hover { border-color: rgba(255, 90, 31, .4); background: var(--surface-2); }
.svc-card__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
}
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card p { margin: 0; color: var(--muted); }
.svc-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.svc-card li { display: flex; gap: 12px; font-size: 15.5px; }
.svc-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; background: var(--orange); transform: rotate(45deg); }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split .frame { aspect-ratio: 4 / 5; }
.prose p { color: var(--muted); margin: 0 0 20px; max-width: 56ch; }
.prose p:first-of-type { color: var(--text); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .frame { aspect-ratio: 4 / 3; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.value { padding: 36px 30px 0 0; }
.value + .value { padding-left: 30px; border-left: 1px solid var(--line); }
.value h3 { margin: 18px 0 10px; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 22px; margin: 0 auto;
  padding: clamp(50px, 7vw, 100px) clamp(28px, 6vw, 90px);
  background: var(--orange); color: #0B0B0C;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: end;
}
.cta-band::before {
  content: ""; position: absolute; inset: 20% -10% -40% 30%; z-index: -1;
  background: url("assets/img/teide-lines.svg?v=20261029a") center bottom / cover no-repeat;
  opacity: .22; mix-blend-mode: multiply;
}
.cta-band .display { max-width: 14ch; }
.cta-band p { margin: 20px 0 0; font-size: 18px; max-width: 46ch; color: rgba(11, 11, 12, .75); }
.cta-band .btn--dark { background: #0B0B0C; color: var(--text); }
.cta-band .btn--dark:hover { transform: translateY(-2px); background: #1c1c1f; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line-strong); }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.contact__list a:hover { color: var(--orange); }
.pending { color: var(--orange); font-family: var(--f-mono); font-size: 13px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 3.5vw, 48px); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--text); font: inherit; font-size: 16px; padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff4d4d; }
.field__err { font-size: 13px; color: #ff6b6b; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin-top: 3px; flex: none; }
.form__ok { display: none; padding: 18px 20px; border-radius: var(--r-sm); background: var(--orange-soft); border: 1px solid rgba(255, 90, 31, .4); }
.form.is-sent .form__ok { display: block; }
.hidden-field { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .contact__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 28px 60px 28px 0; position: relative;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 400; color: var(--orange); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 28px; color: var(--muted); max-width: 70ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(70px, 8vw, 110px) 0 36px; margin-top: clamp(90px, 11vw, 160px); position: relative; overflow: clip; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--orange); }
.footer__tag { color: var(--muted); max-width: 32ch; margin: 18px 0 0; font-size: 15px; }
.footer__big {
  font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; line-height: .8;
  font-size: clamp(40px, 9.4vw, 170px); color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  margin: clamp(60px, 8vw, 110px) 0 30px; white-space: nowrap; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 26px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reveal[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .teide .ridge { animation-duration: .01s; animation-delay: 0s; }
  .hero__glow { animation: none; }
}
.hero .lead { text-shadow: 0 1px 18px rgba(11, 11, 12, .9); }
.field__err:empty { display: none; }
.hero .btn--ghost { background: rgba(11, 11, 12, .75); }

/* ---------- Logo + menú en cápsula (v2) ---------- */
.brand__logo { height: 62px; width: auto; }
.brand--footer .brand__logo { height: 72px; }
@media (max-width: 920px) { .brand__logo { height: 42px; } }

@media (min-width: 921px) {
  .nav__links {
    gap: 2px;
    padding: 5px;
    background: #0B0B0C;
    border: 1px solid rgba(237, 235, 232, 0.22);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 8px 30px rgba(0, 0, 0, .35);
  }
  .nav__links a {
    display: block;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--muted);
    transition: color .25s var(--ease), background .25s var(--ease);
  }
  .nav__links a:hover,
  .nav__links a:focus-visible {
    color: #FF9A6B;
    background: rgba(255, 90, 31, 0.12);
  }
  .nav__links a[aria-current="page"] { color: var(--text); background: rgba(237, 235, 232, 0.08); }
  .nav__links a[aria-current="page"]:hover { color: #FF9A6B; background: rgba(255, 90, 31, 0.12); }
  .nav__links a[aria-current="page"]::after { display: none; }
}
@media (max-width: 920px) { .nav__links a:hover { color: #FF9A6B; } }

/* ---------- v3: naranja del logo en etiquetas + blanco más fuerte ---------- */
:root {
  --text: #FFFFFF;
  --muted: #B8B5AF;
}
.eyebrow {
  color: #FF5A1F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow::before { background: #FF5A1F; height: 2px; }
.display { color: #FFFFFF; }

/* ---------- v4: hero compacto (preparado para vídeo de fondo) ---------- */
.hero .h1 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1; }
.hero .lead { font-size: clamp(15px, 1.1vw, 17px); max-width: 44ch; }
.hero__content { gap: 22px; }
@media (max-width: 720px) { .hero .h1 { font-size: 34px; } }
.hero__top { flex-direction: column; align-items: flex-start; gap: 26px; }

/* ---------- v5: foto de fondo en el hero ---------- */
.hero--photo { background: #0B0B0C; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/img/hero-picos-del-teide.webp?v=20261029a") center 35% / cover no-repeat;
  animation: heroZoom 14s var(--ease) both;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, .82) 0%, rgba(11, 11, 12, .5) 28%, rgba(11, 11, 12, 0) 52%),
    linear-gradient(0deg, #0B0B0C 0%, rgba(11, 11, 12, 0) 26%),
    linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 14%);
}
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero--photo .hero__content { padding-bottom: 10px; }

@media (max-width: 720px) {
  .hero--photo { align-items: flex-end; padding-top: calc(var(--nav-h) + 56vw); }
  .hero__bg { inset: var(--nav-h) 0 auto -9%; width: 118%; aspect-ratio: 16 / 9; height: auto; background-size: 100% auto; background-position: center top; }
  .hero__bg::after { background: linear-gradient(0deg, #0B0B0C 0%, rgba(11, 11, 12, 0) 35%); }
  .hero--photo { min-height: auto; }
}
@media (min-width: 721px) {
  .hero--photo .lead { max-width: 34ch; }
  .hero__bg::after {
    background:
      linear-gradient(90deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, .7) 26%, rgba(11, 11, 12, .25) 42%, rgba(11, 11, 12, 0) 55%),
      linear-gradient(0deg, #0B0B0C 0%, rgba(11, 11, 12, 0) 26%),
      linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 14%);
  }
}
@media (max-width: 720px) { .hero--photo { padding-top: calc(var(--nav-h) + 62vw); } }

/* ---------- v6: hero estilo editorial (título abajo-izq, texto abajo-dcha) ---------- */
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; }
.hero--photo { align-items: flex-end; padding-bottom: clamp(36px, 5vw, 64px); }
.hero__bg::after {
  background:
    linear-gradient(0deg, rgba(11, 11, 12, .95) 0%, rgba(11, 11, 12, .55) 22%, rgba(11, 11, 12, 0) 45%),
    linear-gradient(180deg, rgba(11, 11, 12, .5) 0%, rgba(11, 11, 12, 0) 14%) !important;
}
.hero__content--split {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px clamp(32px, 5vw, 90px); align-items: end;
}
.hero__content--split .h1 { font-size: clamp(34px, 4.2vw, 66px); line-height: 1.02; font-stretch: 100%; font-weight: 600; letter-spacing: -.02em; max-width: none; }
.hero__content--split .h1 .serif { color: var(--orange); font-size: 1.12em; }
.hero__tag { margin: 18px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.hero__right { justify-self: end; max-width: 400px; padding-bottom: 6px; }
.hero__right p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero__link {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; font-weight: 700; color: var(--text);
  padding-bottom: 6px; border-bottom: 1px solid var(--orange);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.hero__link svg { width: 16px; height: 16px; color: var(--orange); }
.hero__link:hover { color: #FF9A6B; gap: 14px; }
@media (max-width: 860px) {
  .hero__content--split { grid-template-columns: 1fr; gap: 26px; }
  .hero__right { justify-self: start; }
}
@media (max-width: 720px) {
  .hero__bg::after { background: linear-gradient(0deg, #0B0B0C 0%, rgba(11, 11, 12, 0) 35%) !important; }
}

/* ---------- v7: título del hero en sans sólida (sin serif) ---------- */
.hero__content--split .h1 { font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: .98; }
.hero__content--split .h1 em { font-style: normal; color: var(--orange); }

/* ---------- v8: sin botón en el header + cápsula translúcida ---------- */
@media (min-width: 921px) {
  .nav .wrap { position: relative; }
  .nav .wrap > nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nav__links {
    background: rgba(28, 28, 31, 0.42);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  }
  @supports (backdrop-filter: blur(10px)) {
    .nav__links { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
  }
}
.nav.is-scrolled { background: rgba(11, 11, 12, .55); }

/* ==========================================================
   v9: Maqueta de 3 tarjetas interactivas (página Servicios)
   Lienzo fijo 1344×586 escalado para caber; <700px se apila
   ========================================================== */
.fx-stage { --fx-scale: 1; position: relative; width: 100%; height: calc(586px * var(--fx-scale)); }
.fx-cards {
  position: absolute; left: 0; top: 0;
  width: 1344px; height: 586px;
  display: grid; grid-template-columns: 440px 439px 441px; gap: 12px;
  overflow: hidden; border-radius: 16px;
  transform: scale(var(--fx-scale)); transform-origin: 0 0;
}
.fx-card {
  position: relative; height: 650px; min-width: 0; overflow: hidden; contain: paint;
  border: 1px solid rgba(255, 255, 255, .06); border-top-color: rgba(255, 255, 255, .1);
  background: #050404; border-radius: 16px;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.fx-card:focus-visible { outline: 1px solid rgba(255, 154, 107, .6); outline-offset: -2px; }

.fx-icon { position: absolute; z-index: 6; left: 25px; top: 25px; width: 25px; height: 25px; color: rgba(255, 255, 255, .92); filter: drop-shadow(0 0 5px rgba(255, 255, 255, .1)); }
.fx-pulse { width: 27px; height: 25px; }

.fx-pill {
  position: absolute; z-index: 7; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 24px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); color: #EDE6E1;
  background: rgba(18, 14, 12, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 13px rgba(0, 0, 0, .25), 0 0 14px rgba(255, 90, 31, .08);
  -webkit-backdrop-filter: blur(13px) saturate(150%); backdrop-filter: blur(13px) saturate(150%);
  white-space: nowrap; font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: -.1px;
}
.fx-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #7adcaa; box-shadow: 0 0 4px rgba(122, 220, 170, .6); }
.fx-dot--light { background: #f2ece6; box-shadow: 0 0 4px rgba(255, 240, 230, .5); }
.fx-dot--orange { background: #FF7A3D; box-shadow: 0 0 5px rgba(255, 90, 31, .7); }
.fx-dot--yellow { background: #ffd462; box-shadow: 0 0 5px #ffd462, 0 0 13px rgba(255, 197, 68, .82); }
.fx-title { position: absolute; z-index: 7; margin: 0; color: #d9d3cf; font-weight: 500; letter-spacing: -.02em; }

/* --- Tarjeta 1: horizonte volcánico --- */
.fx-left { background: #000; }
.fx-surface {
  position: absolute; z-index: 0; inset: -1px; overflow: hidden; background: #000;
  transform: scaleY(1); transform-origin: 50% 100%;
  transition: transform 720ms cubic-bezier(.22, 1, .36, 1), filter 720ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform, filter;
}
.fx-surface::before {
  content: ""; position: absolute; left: -2.5%; top: 32%; width: 105%; height: 84%;
  border-radius: 50% 50% 0 0 / 7% 7% 0 0;
  background:
    radial-gradient(ellipse 58% 16% at 50% 0%, rgba(255, 110, 40, .9) 0%, rgba(255, 90, 31, .55) 43%, rgba(160, 40, 10, .18) 72%, transparent 100%),
    linear-gradient(180deg, #ff6a2a 0%, #f2561c 5%, #c9441a 12%, #93361a 20%, #6a2a18 30%, #4a2217 42%, #3a1e17 53%, #2d1a15 64%, #231612 74%, #1a110e 83%, #110c0a 93%, #0b0807 100%);
  filter: blur(14px);
  box-shadow: 0 -9px 24px rgba(255, 90, 31, .32), inset 0 8px 22px rgba(255, 120, 40, .22);
}
.fx-left:hover .fx-surface, .fx-left:focus-visible .fx-surface { transform: scaleY(1.075); filter: saturate(1.3) brightness(1.1) contrast(1.04); }
.fx-region { min-height: 28px; padding: 0 12px; font-size: 11px; line-height: 26px; background: rgba(12, 9, 8, .55); -webkit-backdrop-filter: blur(8px) saturate(125%); backdrop-filter: blur(8px) saturate(125%); }
.fx-region-left { left: 32px; top: 79px; }
.fx-region-right { right: 32px; top: 82px; }
.fx-regions { left: 56px; top: 438px; }
.fx-live {
  left: 50%; top: 256px; transform: translateX(-50%); height: 39px; padding: 0 18px; border-radius: 20px;
  border: 1px solid transparent; color: #fff4ee; font-size: 13px; line-height: 37px;
  background:
    linear-gradient(180deg, rgba(60, 30, 20, .9), rgba(35, 20, 15, .92)) padding-box,
    linear-gradient(180deg, rgba(255, 140, 90, .6), rgba(255, 90, 31, .45)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 16px rgba(255, 90, 31, .22);
}
.fx-live .fx-dot { background: #67dba9; box-shadow: 0 0 5px rgba(103, 219, 169, .78), 0 0 11px rgba(76, 210, 157, .45); animation: fx-live 1.55s ease-in-out infinite; }
.fx-left .fx-title { left: 24px; top: 500px; width: 385px; font-size: 26px; line-height: 32px; }
.fx-left .fx-title strong { font-weight: 800; color: #fff; }

/* --- Tarjeta 2: órbita + esfera de hormigón --- */
.fx-middle {
  background:
    radial-gradient(ellipse 156px 164px at 54% 26%, rgba(255, 110, 50, .30) 0%, rgba(255, 90, 31, .14) 55%, transparent 100%),
    radial-gradient(ellipse 220px 95px at 50% 63%, rgba(255, 90, 31, .16), transparent 75%),
    radial-gradient(ellipse 268px 184px at 104% 31%, rgba(255, 90, 31, .42) 0%, rgba(200, 60, 20, .22) 50%, transparent 100%),
    radial-gradient(ellipse 235px 170px at 103% 55%, rgba(255, 150, 60, .18) 0%, transparent 100%),
    radial-gradient(ellipse 170px 150px at 15% 36%, rgba(255, 255, 255, .05), transparent 78%),
    linear-gradient(180deg, #2a2320 0%, #2e2622 12%, #332a25 25%, #2f2521 40%, #261e1b 52%, #1d1715 65%, #141010 77%, #0b0909 88%, #050404 100%);
}
.fx-site { position: absolute; z-index: 7; right: 23px; top: 31px; color: rgba(255, 244, 238, .6); font-size: 12px; line-height: 16px; font-weight: 600; font-family: var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.fx-orbit {
  position: absolute; z-index: 2; left: 30px; top: 91px; width: 379px; height: 379px;
  border: 1px dashed rgba(255, 200, 170, .24); border-radius: 50%;
  animation: fx-orbit 28s linear infinite; will-change: transform;
}
.fx-orbit::before, .fx-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe0cf; box-shadow: 0 0 4px rgba(255, 200, 160, .6); }
.fx-orbit::before { left: 45px; top: 59px; }
.fx-orbit::after { right: 9px; top: 92px; background: #FF7A3D; box-shadow: 0 0 6px rgba(255, 90, 31, .7); }
.fx-orbit-dot { position: absolute; left: 54px; bottom: 43px; width: 8px; height: 8px; border-radius: 50%; background: #ff9a6b; box-shadow: 0 0 6px rgba(255, 120, 60, .6); }
.fx-sphere {
  position: absolute; z-index: 3; left: 95px; top: 158px; width: 249px; height: 249px; border-radius: 50%; filter: blur(1.2px);
  background:
    radial-gradient(circle closest-side at 50% 50%, transparent 0 80%, rgba(255, 255, 255, .06) 93%, rgba(255, 255, 255, .03) 100%),
    radial-gradient(ellipse 36px 150px at 0% 50%, rgba(0, 0, 0, .55), transparent 70%),
    radial-gradient(ellipse 64px 156px at 100% 52%, rgba(255, 130, 70, .35), transparent 70%),
    radial-gradient(ellipse 215px 112px at 52% 106%, rgba(255, 90, 31, .55), transparent 72%),
    linear-gradient(180deg, #3a3532 0%, #34302d 20%, #2c2725 45%, #3a2a22 72%, #6a3218 92%, #7a3516 100%);
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, .15), 0 0 30px rgba(255, 90, 31, .22);
}
.fx-num { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; min-width: 16px; }
.fx-t1 { right: 38px; top: 98px; }
.fx-t2 { left: 41px; top: 270px; }
.fx-t3 { left: 60px; top: 447px; }
.fx-copy { position: absolute; z-index: 7; left: 23px; top: 510px; width: 380px; margin: 0; color: #e2dbd6; font-size: 19px; line-height: 27px; letter-spacing: -.02em; }

/* --- Tarjeta 3: banda de urgencias que se expande --- */
.fx-right { background: #060505; }
.fx-band {
  position: absolute; z-index: 1; inset: 0; overflow: hidden;
  clip-path: inset(199px 0 calc(100% - 355px) 0);
  background:
    radial-gradient(ellipse 330px 390px at 108% 67%, rgba(255, 128, 18, .94) 0%, rgba(225, 69, 12, .55) 46%, transparent 72%),
    radial-gradient(ellipse 360px 330px at 8% 36%, rgba(40, 34, 32, .98) 0%, rgba(20, 16, 15, .74) 48%, transparent 74%),
    radial-gradient(ellipse 440px 280px at 44% 108%, rgba(207, 60, 24, .84) 0%, rgba(111, 30, 20, .42) 55%, transparent 80%),
    linear-gradient(145deg, #0a0807 0%, #1a1412 35%, #2a1c16 60%, #5a2410 100%);
  transition: clip-path 390ms cubic-bezier(.22, 1, .36, 1); will-change: clip-path;
}
.fx-band::before, .fx-band::after { content: ""; position: absolute; pointer-events: none; }
.fx-band::before {
  inset: -12%; opacity: 0;
  background:
    radial-gradient(ellipse 225px 350px at 78% 46%, rgba(255, 150, 40, .9) 0%, rgba(255, 90, 31, .52) 36%, transparent 68%),
    radial-gradient(ellipse 260px 300px at 57% 24%, rgba(255, 220, 190, .35) 0%, transparent 72%),
    radial-gradient(ellipse 310px 280px at 42% 84%, rgba(255, 60, 20, .55) 0%, transparent 72%);
  filter: blur(10px) saturate(1.13);
  transform: translate3d(8%, 1%, 0) scale(1.04);
  transition: opacity 310ms ease-out;
  animation: fx-drift 2.8s ease-in-out infinite alternate; animation-play-state: paused; will-change: transform, opacity;
}
.fx-band::after {
  left: 0; right: 0; top: 199px; height: 156px;
  background:
    radial-gradient(ellipse 255px 190px at 104% 50%, rgba(255, 125, 18, .92), transparent 69%),
    radial-gradient(ellipse 350px 200px at 5% 48%, rgba(30, 26, 24, .94), transparent 68%),
    radial-gradient(ellipse at 55% 50%, transparent 0%, rgba(0, 0, 0, .24) 72%),
    linear-gradient(90deg, #141110 0%, #2a1a14 50%, #a8461a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .46);
  opacity: 1; transition: opacity 210ms ease-out;
}
.fx-right:hover .fx-band, .fx-right:focus-visible .fx-band { clip-path: inset(0); }
.fx-right:hover .fx-band::before, .fx-right:focus-visible .fx-band::before { opacity: .85; animation-play-state: running; }
.fx-right:hover .fx-band::after, .fx-right:focus-visible .fx-band::after { opacity: 0; }
.fx-stack { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.fx-status {
  position: absolute; z-index: 4; left: 34px; right: 35px; height: 38px; display: flex; align-items: center; padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 11px; color: #f2ece8;
  background: rgba(14, 11, 10, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 5px 20px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  font-size: 12.5px; line-height: 16px; font-weight: 600;
}
.fx-status:first-child { top: 242px; }
.fx-status:last-child { top: 288px; }
.fx-status .fx-dot { margin-right: 10px; }
.fx-status em { margin-left: auto; color: #ffb08a; font-style: normal; font-size: 11px; font-family: var(--f-mono); }
.fx-status:last-child em { color: #a9e49f; }
.fx-status:first-child .fx-dot { animation: fx-status 1.85s ease-in-out infinite .15s; }
.fx-status:last-child .fx-dot { animation: fx-status 2.15s ease-in-out infinite .8s; }
.fx-right .fx-title { left: 22px; top: 500px; font-size: 56px; line-height: 70px; font-weight: 800; letter-spacing: -.035em; color: #fff; }

@keyframes fx-live { 0%, 18%, 100% { opacity: 1; transform: scale(1); } 42%, 62% { opacity: .22; transform: scale(.72); } 78% { opacity: .95; transform: scale(1.08); } }
@keyframes fx-status { 0%, 24%, 100% { opacity: 1; transform: scale(1); } 52%, 68% { opacity: .28; transform: scale(.75); } }
@keyframes fx-orbit { to { transform: rotate(360deg); } }
@keyframes fx-orbit-m { from { transform: translateX(-50%) rotate(0); } to { transform: translateX(-50%) rotate(360deg); } }
@keyframes fx-drift {
  0% { transform: translate3d(9%, -1%, 0) scale(1.04) rotate(-1deg); }
  48% { transform: translate3d(1%, 3%, 0) scale(1.08) rotate(1deg); }
  100% { transform: translate3d(-8%, -2%, 0) scale(1.05) rotate(-.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-surface, .fx-band, .fx-band::before, .fx-band::after { transition-duration: 1ms; }
  .fx-live .fx-dot, .fx-status .fx-dot, .fx-orbit, .fx-band::before { animation: none; }
}

/* Única reordenación: por debajo de 700px las tarjetas se apilan */
@media (max-width: 699.98px) {
  .fx-stage { height: auto; }
  .fx-cards { position: relative; width: 100%; height: auto; transform: none; grid-template-columns: 1fr; gap: 14px; overflow: visible; border-radius: 0; }
  .fx-card { width: 100%; height: auto; min-height: 560px; }
  .fx-left .fx-title, .fx-copy, .fx-right .fx-title { top: auto; bottom: 20px; }
  .fx-left .fx-title { width: calc(100% - 44px); font-size: 24px; line-height: 30px; }
  .fx-region-right { right: 22px; }
  .fx-regions { top: 400px; }
  .fx-orbit { left: 50%; transform: translateX(-50%); animation-name: fx-orbit-m; width: min(379px, calc(100% - 32px)); height: auto; aspect-ratio: 1; }
  .fx-sphere { left: 50%; transform: translateX(-50%); width: min(249px, calc(100% - 92px)); height: auto; aspect-ratio: 1; }
  .fx-t1 { right: 20px; }
  .fx-t3 { top: 410px; }
  .fx-copy { width: calc(100% - 46px); }
  .fx-status { left: 20px; right: 20px; }
  .fx-right .fx-title { font-size: clamp(42px, 13vw, 56px); }
}
@media (max-width: 410px) {
  .fx-card { min-height: 540px; }
  .fx-region-left { left: 20px; } .fx-region-right { right: 20px; }
  .fx-regions { top: 380px; left: 20px; }
  .fx-orbit { top: 108px; } .fx-sphere { top: 171px; }
  .fx-t2 { left: 20px; } .fx-t3 { left: 24px; top: 395px; }
}
.fx-surface { inset: 0; border-radius: inherit; }
.fx-right .fx-title { font-size: 48px; line-height: 60px; font-stretch: 100%; }
@media (max-width: 699.98px) { .fx-right .fx-title { font-size: clamp(30px, 10vw, 48px); } }

/* ---------- v10: transición hero → contenido (efecto telón) ---------- */
.after-hero { position: relative; z-index: 2; background: var(--bg); }
@media (min-width: 721px) {
  .hero--photo {
    position: sticky; top: 0; z-index: 0;
    transform: scale(calc(1 - var(--hp, 0) * .07));
    transform-origin: 50% 0%;
    border-radius: calc(var(--hp, 0) * 28px);
    will-change: transform;
  }
  .hero--photo::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: #0B0B0C; opacity: calc(var(--hp, 0) * .75);
  }
  .hero--photo .hero__content {
    opacity: calc(1 - var(--hp, 0) * 1.6);
    transform: translateY(calc(var(--hp, 0) * -70px));
  }
  .after-hero {
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -30px 80px rgba(0, 0, 0, .65);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .after-hero::before {
    content: ""; position: absolute; left: 50%; top: 0; width: min(420px, 40%); height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #FF5A1F, transparent);
  }
  .after-hero > .marquee { border-top: 0; }
}
@media (max-width: 720px) {
  .hero--photo .hero__content { opacity: calc(1 - var(--hp, 0) * 1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--photo { transform: none; border-radius: 0; }
}

/* ---------- v11: vídeo del casco como fondo de "Qué hacemos" ---------- */
.section--video { position: relative; isolation: isolate; overflow: clip; }
.sv-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  display: flex; justify-content: center; align-items: flex-start;
}
.sv-video {
  width: min(1400px, 110%); height: auto; margin-top: -2%;
  mix-blend-mode: screen; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 45% 50% at 50% 45%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 45% 50% at 50% 45%, #000 45%, transparent 100%);
}
.section--video::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0) 35%, rgba(11, 11, 12, .75) 60%, var(--bg) 100%);
}
.section--video .svc-list { background: rgba(11, 11, 12, .35); }
@media (max-width: 720px) {
  .sv-video { width: 180%; margin-top: 30px; opacity: .45; }
}
/* Casco a la derecha, en el hueco sobre el texto, sin tapar títulos */
.sv-bg { justify-content: flex-end; }
.sv-video {
  width: min(1050px, 72%); margin-top: -3%; margin-right: -9%; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 38% 46% at 50% 46%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 38% 46% at 50% 46%, #000 55%, transparent 100%);
}
.section--video .section__head .lead { position: relative; }
@media (max-width: 860px) {
  .section--video { padding-top: calc(clamp(90px, 11vw, 160px) + 46vw); }
  .sv-bg { justify-content: center; }
  .sv-video { width: 150%; margin: -2vw 0 0 0; opacity: .9; }
}
@media (min-width: 861px) { .sv-video { margin-top: 1.5%; } }

/* v12: casco centrado en mitad de la sección */
.sv-bg { align-items: center; justify-content: center; }
.sv-video, .section--video .sv-video { margin: 0; width: min(1150px, 85%); opacity: .6; }
.section--video::after { background: none; }
.section--video .svc-list { background: transparent; }
@media (max-width: 860px) {
  .section--video { padding-top: clamp(90px, 11vw, 160px); }
  .sv-video, .section--video .sv-video { width: 160%; opacity: .5; }
}
.section--video .svc-row__t, .section--video .svc-row__d { text-shadow: 0 1px 14px rgba(11, 11, 12, .95), 0 0 2px rgba(11, 11, 12, .8); }
/* v13: casco más pequeño (vídeo más alejado) */
.sv-video, .section--video .sv-video { width: min(760px, 58%); }
@media (max-width: 860px) { .sv-video, .section--video .sv-video { width: 115%; } }
.contact__list a, .footer ul a { overflow-wrap: anywhere; }

/* v14: formulario de presupuesto → WhatsApp de Pedro */
#presupuesto { scroll-margin-top: calc(var(--nav-h) + 24px); }
.form__note { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.form button[type=submit] svg { width: 19px; height: 19px; }
.form__ok a { color: var(--orange); text-decoration: underline; }
.form--focus { box-shadow: 0 0 0 2px var(--orange), 0 0 40px rgba(255, 90, 31, .25); transition: box-shadow .6s var(--ease); }

/* v15: ventana rápida de servicio (inicio) */
.svc-modal { padding: 0; border: 0; background: transparent; color: var(--text); max-width: min(620px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); overflow: visible; }
.svc-modal::backdrop { background: rgba(5, 5, 6, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.svc-modal[open] .svc-modal__box { animation: svcIn .38s var(--ease) both; }
@keyframes svcIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.svc-modal__box {
  position: relative; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px;
  padding: clamp(26px, 4vw, 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 90, 31, .08);
}
.svc-modal__box::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.svc-modal__close {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); font-size: 24px; line-height: 1; color: var(--text);
  transition: background .25s, border-color .25s, color .25s;
}
.svc-modal__close:hover { background: var(--orange); border-color: var(--orange); color: #0B0B0C; }
.svc-modal__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.svc-modal__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 0 0 12px; }
.svc-modal__desc { color: var(--muted); margin: 0 0 18px; }
.svc-modal__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.svc-modal__list li { display: flex; gap: 12px; font-size: 15.5px; }
.svc-modal__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; background: var(--orange); transform: rotate(45deg); }
.svc-modal__clients { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 26px; }
.svc-modal__clients h3 { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.svc-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-modal__chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 600; }
.svc-modal__cta { width: 100%; justify-content: center; }
body.modal-open { overflow: hidden; }

/* v16: fotos reales en proyectos */
.frame--photo::before { display: none; }
.frame--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .frame--photo img { transform: scale(1.04); }

/* v17: "PICOS DEL TEIDE" del pie con bordes iluminados */
.footer__big { -webkit-text-stroke: 0; color: transparent; font-size: 0; line-height: 0; white-space: normal; margin: clamp(60px, 8vw, 110px) 0 30px; }
.footer__big .fb { display: block; width: 100%; height: auto; overflow: visible; }
.fb text { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 128px; letter-spacing: -2px; fill: transparent; }
.fb__base { stroke: rgba(255, 90, 31, .35); stroke-width: 1.4; }
.fb__glow { stroke: #FF5A1F; stroke-width: 1.6; opacity: .55; animation: fbBreath 4s ease-in-out infinite; }
.fb__run { stroke: #FFB48F; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 120 880; stroke-dashoffset: 0; animation: fbRun 6s linear infinite; }
@keyframes fbBreath { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes fbRun { to { stroke-dashoffset: -1000; } }
@media (prefers-reduced-motion: reduce) { .fb__run { animation: none; opacity: 0; } .fb__glow { animation: none; opacity: .6; } }
/* v17b: más luz, todo en naranja */
.fb__base { stroke: rgba(255, 90, 31, .6); stroke-width: 1.6; }
.fb__glow { stroke: #FF5A1F; stroke-width: 2.2; }
.fb__run { stroke: #FF7A3D; stroke-width: 2.6; }
@keyframes fbBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.footer__big .fb { filter: drop-shadow(0 0 10px rgba(255, 90, 31, .35)); }

/* v18: formulario de presupuesto en ventana */
.form-modal { max-width: min(680px, calc(100vw - 32px)); }
.form--modal { background: none; border: 0; padding: 0; margin-top: 8px; gap: 16px; }
.form--modal .field textarea { min-height: 110px; }
.form--modal button[type=submit] { width: 100%; justify-content: center; }
@media (max-width: 560px) { .form-modal__box { padding: 24px 18px; } }
.form-modal__box > .eyebrow { padding-right: 52px; } @media (max-width: 560px) { .form-modal__box > .eyebrow { font-size: 11px; letter-spacing: .1em; } }
/* v19: ancla "Servicios" del menú → sección Qué hacemos */
#que-hacemos { scroll-margin-top: calc(var(--nav-h) - 40px); }
#que-hacemos { scroll-margin-top: calc(var(--nav-h) - clamp(90px, 11vw, 160px) + 28px); }
/* v20: foto de Nosotros */
.frame--portrait img { object-position: 50% 35%; }
.frame--portrait img { object-position: 62% 40%; }

/* v21: pasos del proceso que aparecen uno a uno al bajar */
.process--seq .step { opacity: 0; transform: translateY(46px) scale(.96); transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .35s; }
.process--seq .step::after { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.process--seq .step h3, .process--seq .step p { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s; }
.process--seq .step.is-on { opacity: 1; transform: none; }
.process--seq .step.is-on::after { transform: scaleX(1); }
.process--seq .step.is-on h3, .process--seq .step.is-on p { opacity: 1; transform: none; }
.process--seq .step.is-on:hover { transform: translateY(-4px); }
.process--seq .step.is-current { border-color: rgba(255, 90, 31, .55); box-shadow: 0 0 30px rgba(255, 90, 31, .12); }
.no-js .process--seq .step, .no-js .process--seq .step h3, .no-js .process--seq .step p { opacity: 1; transform: none; }

/* v22: botón flotante de WhatsApp en naranja */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px;
  border-radius: 999px; background: var(--orange); color: #0B0B0C; font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 30px rgba(255, 90, 31, .35), 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { transform: translateY(-3px); background: var(--orange-2); box-shadow: 0 14px 36px rgba(255, 90, 31, .45), 0 2px 8px rgba(0, 0, 0, .4); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 90, 31, .55); animation: waPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 90, 31, 0); } }
@media (max-width: 720px) { .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; } .wa-float__label { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
.nav.is-open ~ .wa-float, body.modal-open .wa-float { opacity: 0; pointer-events: none; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
.frame--portrait img { object-position: 50% 30%; }
