:root {
  --bg: #121d36;
  --bg-alt: #14213c;
  --surface: #192846;
  --surface-2: #1e2f4e;
  --line: #2a3c60;
  --line-soft: #172542;
  --text: #f4f2ee;
  --muted: #bcc2cf;
  --accent: #e7e3dc;
  --accent-hover: #f3f1ec;
  --accent-soft: rgba(231, 227, 220, 0.14);
  --radius: 10px;
  --header-h: 72px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9em;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.hl { color: var(--accent); }
.center { text-align: center; margin-top: 32px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #121d36; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 29, 54, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

/* Portada */
.hero {
  position: relative;
  padding: 120px 0 110px;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(18, 29, 54, 0.94) 38%, rgba(18, 29, 54, 0.62) 72%, rgba(18, 29, 54, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("assets/hero-portada.jpg") center 55% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 44px; }

.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px 48px; }
.stats li { border-left: 2px solid var(--accent); padding-left: 14px; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.stats span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; display: block; }

/* Secciones */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { margin-bottom: 44px; }

.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(231, 227, 220, 0.5); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 20px; margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 2px; background: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 20px; }

/* Panel de proyecto */
.panel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.panel-grid .ticks { margin: 22px 0 28px; }
.panel-shot { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); transition: transform 0.3s, border-color 0.3s; }
.panel-shot:hover { transform: translateY(-4px); border-color: rgba(231, 227, 220, 0.5); }
.panel-shot img { display: block; width: 100%; height: auto; }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 500 0.9rem var(--font-body);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #121d36; }

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}
.project[hidden] { display: none; }
.projects-empty { color: var(--muted); padding: 28px 0; margin: 0; }
.projects-empty a { color: var(--accent); }
.project p { color: var(--muted); font-size: 0.94rem; }
.project .tag { font: 700 0.72rem var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.meta { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.meta li { font-size: 0.78rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; }

/* Galería */
.gallery-head { margin: 64px 0 20px; }
.gallery-head h3 { font-size: 1.3rem; }
.gallery-head p { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; min-width: 0; }
.g-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: radial-gradient(ellipse at 50% 45%, var(--surface-2) 0%, var(--bg-alt) 75%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g-item:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent); }
.g-item img { width: 100%; height: 100%; object-fit: contain; }
.gallery .photo .g-item { padding: 0; }
.gallery .photo img { object-fit: cover; }
.gallery figcaption { margin-top: 10px; line-height: 1.35; }
.g-tag { display: block; font: 700 0.7rem var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.g-title { font-size: 0.95rem; font-weight: 500; }

.lightbox {
  max-width: min(1200px, 94vw);
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(9, 16, 32, 0.9); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--bg-alt); border-radius: 6px; }
.lightbox-caption { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #121d36;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.about-icon { width: 100%; max-width: 240px; opacity: 0.95; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .i { color: var(--accent); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.note { color: var(--muted); font-size: 0.9rem; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font: 400 1rem var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .invalid { border-color: #e5484d; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: #46a758; }
.form-status.error { color: #ff6369; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: #0c1528; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }
.footer-nav,
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-nav a,
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { color: var(--muted); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.footer-bottom p { margin: 0; color: #9aa3b6; font-size: 0.85rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #121d36;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 960px) {
  .contact-grid,
  .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-icon { max-width: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand img { width: 150px; }
  .hero { padding: 64px 0 56px; background-position: 65% 40%; }
  .section { padding: 64px 0; }
  .cta-row .btn { width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-3,
  .cards-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Celular primero: barra de contacto, filas deslizables y toques cómodos */
.mobile-bar { display: none; }
.swipe-dots { display: none; }

@media (hover: none) {
  .card:hover,
  .g-item:hover,
  .panel-shot:hover { transform: none; }
}

@media (max-width: 700px) {
  html { -webkit-text-size-adjust: 100%; }
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

  .hero { padding: 44px 0 40px; background-image:
    linear-gradient(90deg, var(--bg) 0%, rgba(18, 29, 54, 0.9) 50%, rgba(18, 29, 54, 0.7) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("assets/hero-portada-m.jpg"); }
  .cta-row { margin: 24px 0 32px; }
  .lead { font-size: 1rem; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .card { padding: 22px 18px; }
  .gallery-head { margin: 40px 0 16px; }

  .nav-toggle { padding: 12px 10px; }
  .chip { padding: 10px 16px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 20px; padding: 0 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .contact-list a { display: inline-block; padding: 8px 0; }
  .footer-nav,
  .footer-contact { gap: 0; }
  .footer-nav a,
  .footer-contact a,
  .footer-contact span { display: block; padding: 9px 0; }

  .cards[data-swipe],
  .gallery[data-swipe] {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    overscroll-behavior-x: contain;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    scrollbar-width: none;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { flex: 0 0 84%; scroll-snap-align: start; }
  [data-swipe] > [hidden] { display: none; }

  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width 0.2s, background 0.2s; }
  .swipe-dots i.on { width: 20px; background: var(--accent); }

  .wa-float { display: none; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(18, 29, 54, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font: 600 0.95rem var(--font-body);
  }
  .mb-primary { background: var(--accent); border-color: var(--accent); color: #121d36; }
}

/* Proyecto integral */
.spec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.spec h3 { font-size: 1rem; margin: 12px 0 6px; }
.spec p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.45; }
.spec-who { display: inline-block; font: 700 0.68rem var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: #121d36; background: var(--accent); border-radius: 99px; padding: 4px 9px; }
.spec-who.net { color: var(--accent); background: var(--accent-soft); }
.integral-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.integral-points li { border-left: 2px solid var(--accent); padding-left: 14px; }
.integral-points strong { display: block; font-family: var(--font-head); }
.integral-points span { color: var(--muted); font-size: 0.92rem; }

/* Red de profesionales */
.red-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.red-grid .ticks { margin-top: 20px; }

@media (max-width: 1000px) {
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .red-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .spec-grid[data-swipe] { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .spec-grid[data-swipe] > * { flex: 0 0 72%; }
  .integral-points { grid-template-columns: 1fr; gap: 14px; }
}

/* =====================================================================
   TECNOLOGÍA, VIDRIO Y TRANSICIONES (05-11-2026)
   Sin librerías externas. Todo se apaga con "reducir movimiento".
   ===================================================================== */
:root {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --glass: rgba(25, 40, 70, 0.56);
  --glass-line: rgba(231, 227, 220, 0.13);
  --glass-hi: rgba(255, 255, 255, 0.06);
  interpolate-size: allow-keywords;
}

/* Fondo técnico: grilla de plano, brillos y luz que sigue el mouse */
body::before,
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background-image:
    linear-gradient(rgba(231, 227, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 227, 220, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 35%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 35%, #000 25%, transparent 85%);
}
body::after {
  background:
    radial-gradient(520px circle at var(--cx, 75%) var(--cy, 15%), rgba(231, 227, 220, 0.06), transparent 60%),
    radial-gradient(900px 620px at 0% 0%, rgba(64, 96, 170, 0.14), transparent 60%),
    radial-gradient(820px 620px at 100% 100%, rgba(64, 96, 170, 0.11), transparent 60%);
}

/* Secciones translúcidas para que se vea el fondo */
.section { position: relative; }
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(1160px, 92%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(231, 227, 220, 0.38), transparent);
  pointer-events: none;
}
.section.alt { background: rgba(20, 33, 60, 0.55); }
.site-footer { background: rgba(13, 23, 42, 0.82); }

/* Encabezado de vidrio + barra de progreso + sección activa */
.site-header {
  background: rgba(18, 29, 54, 0.58);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { background: rgba(18, 29, 54, 0.72); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); border-bottom-color: var(--glass-line); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(231, 227, 220, 0.2), var(--accent) 70%, #faf8f4);
  box-shadow: 0 0 10px rgba(231, 227, 220, 0.6);
}
.nav a:not(.btn) { position: relative; transition: color 0.25s; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--text); }

/* Botones */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(231, 227, 220, 0.6); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.8s var(--ease);
}
.btn-primary:hover::after { translate: 120% 0; }
.btn-ghost { background: rgba(255, 255, 255, 0.035); border-color: rgba(231, 227, 220, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(231, 227, 220, 0.08); }

/* Vidrio en tarjetas y formularios */
.card,
.spec,
.project,
.form,
.g-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 45%), var(--glass);
  border-color: var(--glass-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 40px -26px rgba(0, 0, 0, 0.8);
}
.project { box-shadow: inset 3px 0 0 var(--accent), inset 0 1px 0 var(--glass-hi), 0 18px 40px -26px rgba(0, 0, 0, 0.8); }
.form { border-radius: 16px; }
.field input,
.field select,
.field textarea { background: rgba(13, 23, 42, 0.55); border-color: rgba(231, 227, 220, 0.14); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.field input:focus,
.field select:focus,
.field textarea:focus { background: rgba(13, 23, 42, 0.75); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 22px -6px rgba(231, 227, 220, 0.45); }
.field select option { background: var(--surface); }
.chip { background: rgba(255, 255, 255, 0.03); transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.chip.is-active { box-shadow: 0 6px 20px -8px rgba(231, 227, 220, 0.6); }
.spec-who,
.badge,
.g-tag { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* Luz que sigue el cursor y borde iluminado (solo computador) */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::before,
.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.fx-spot::before { z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 227, 220, 0.1), transparent 45%); }
.fx-spot::after {
  z-index: 2;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(243, 241, 236, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.fx-spot:hover::before,
.fx-spot:hover::after { opacity: 1; }

/* Inclinación 3D leve al pasar el mouse */
html .fx-tilt,
html .fx-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
html .fx-tilt:hover { --ty: -4px; }

/* Aparición al hacer scroll */
[data-reveal],
.fx-tilt {
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    translate 0.9s var(--ease) var(--d, 0s),
    transform 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}
.js [data-reveal]:not(.in) { opacity: 0; translate: 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 1s var(--ease) calc(var(--d, 0s) + 0.25s);
}
.js [data-reveal]:not(.in) .eyebrow::before { transform: scaleX(0); }

/* Portada: entrada en secuencia, título con brillo y estructura que se dibuja */
.hero { overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.hero-copy > :nth-child(5) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero .hl {
  background: linear-gradient(90deg, var(--accent) 0%, #faf8f4 25%, var(--accent) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear 1.2s infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.stats .num { font-style: normal; font-variant-numeric: tabular-nums; }
.stats li { background: linear-gradient(90deg, rgba(231, 227, 220, 0.07), transparent); padding: 6px 18px 6px 14px; border-radius: 0 8px 8px 0; }

.hero-fx {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(16px, calc((100vw - 1160px) / 2));
  width: min(500px, calc(100vw - 720px));
  height: auto;
  translate: 0 -50%;
  opacity: 0.65;
  pointer-events: none;
  overflow: visible;
}
.fx-lines path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.22s); }
.fx-lines .thin { stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fx-node {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 0.5s var(--ease) forwards, node-pulse 3.6s ease-in-out infinite;
  animation-delay: calc(1.5s + var(--i) * 0.05s), calc(2.6s + var(--i) * 0.2s);
}
@keyframes node-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes node-pulse { 0%, 100% { transform: scale(1); fill: var(--bg); } 50% { transform: scale(1.6); fill: var(--accent); } }
.fx-loads { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: fade-in 0.8s 1.9s forwards, bob 2.4s ease-in-out 2.7s infinite alternate; }
@keyframes bob { to { transform: translateY(4px); } }
.fx-dim path { fill: none; stroke: rgba(231, 227, 220, 0.55); stroke-width: 1; stroke-dasharray: 4 4; }
.fx-dim,
.fx-label { opacity: 0; animation: fade-in 0.8s 2.2s forwards; }
.fx-dim text,
.fx-label { fill: var(--muted); font: 600 11px var(--font-mono); letter-spacing: 0.16em; }
.fx-scan { opacity: 0; animation: fade-in 0.6s 2.6s forwards, scan 6.5s linear 2.6s infinite; }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(920px); } }
@keyframes fade-in { to { opacity: 1; } }

/* Panel: marco con brillo */
.panel-shot { box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--glass-line), 0 0 60px -20px rgba(231, 227, 220, 0.25); }
.panel-shot img { transition: transform 0.8s var(--ease); }
.panel-shot:hover img { transform: scale(1.025); }

/* Proyectos: animación al filtrar */
.project.pop { animation: pop-in 0.6s var(--ease) both; animation-delay: var(--pd, 0s); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Galería */
.g-item img { transition: transform 0.7s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.lightbox { background: rgba(23, 36, 64, 0.72); border-color: var(--glass-line); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.lightbox::backdrop { background: rgba(9, 16, 32, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { animation: lb-in 0.45s var(--ease); }
.lightbox[open]::backdrop { animation: fade-from 0.45s ease; }
@keyframes lb-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
@keyframes fade-from { from { opacity: 0; } }

/* WhatsApp flotante con pulso */
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2.8s ease-out 3s infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.7); opacity: 0; } }

/* Transición suave al ir al panel y volver (navegadores compatibles) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.3s ease both vt-out; }
  ::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }

/* Menú móvil */
@media (max-width: 1000px) {
  .nav { background: rgba(18, 29, 54, 0.95); }
  .nav.open a { animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms); }
  .nav a:not(.btn)::after { left: auto; right: 6px; top: 50%; bottom: auto; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%) scale(0); }
  .nav a:not(.btn):hover::after,
  .nav a.active::after { transform: translateY(-50%) scale(1); }
}
@media (max-width: 1080px) {
  .hero-fx { top: auto; bottom: -10px; right: -8%; width: min(92vw, 640px); translate: none; opacity: 0.2; }
}

/* Celular: vidrio más liviano para que vaya fluido */
@media (max-width: 700px) {
  .card,
  .spec,
  .project,
  .form,
  .g-item,
  .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card,
  .spec,
  .project,
  .form { background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 45%), rgba(25, 40, 70, 0.72); }
  .mobile-bar { background: rgba(18, 29, 54, 0.7); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-top-color: var(--glass-line); }
  .mb-btn { transition: transform 0.2s var(--ease), background 0.2s; }
  .mb-btn:active { transform: scale(0.96); }
  .swipe-dots i { transition: width 0.35s var(--ease), background 0.35s; }
  body::after { background: radial-gradient(500px 400px at 0% 0%, rgba(64, 96, 170, 0.16), transparent 60%), radial-gradient(500px 500px at 100% 60%, rgba(64, 96, 170, 0.1), transparent 60%); }
}

/* Reducir movimiento: todo visible y sin animaciones */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal]:not(.in) { opacity: 1; translate: none; }
  .js [data-reveal]:not(.in) .eyebrow::before { transform: none; }
  .fx-scan { display: none; }
}

/* =====================================================================
   MÁS TECNOLOGÍA (06-11-2026): cercha interactiva, cifras, proceso
   ligado al scroll, títulos que se decodifican y radar de cobertura
   ===================================================================== */

/* Cercha interactiva: carga P, deformada y diagrama de momento */
.fx-live { opacity: 0; transition: opacity 0.8s ease; }
.fx-live.on { opacity: 1; }
.fx-def { fill: none; stroke: #faf8f4; stroke-width: 1.6; stroke-dasharray: 6 5; filter: drop-shadow(0 0 4px rgba(231, 227, 220, 0.7)); }
.fx-mom { fill: rgba(231, 227, 220, 0.12); stroke: rgba(231, 227, 220, 0.6); stroke-width: 1; }
.fx-p path { fill: none; stroke: #faf8f4; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(231, 227, 220, 0.8)); }
.fx-p text,
.fx-read { fill: #faf8f4; font: 700 13px var(--font-mono); letter-spacing: 0.08em; }
.fx-read { font-size: 12px; fill: var(--accent); }

/* Franja de cifras */
.metrics { position: relative; border-bottom: 1px solid var(--glass-line); background: rgba(20, 33, 60, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { position: relative; padding: 30px 24px 28px; border-left: 1px solid var(--glass-line); }
.metric:last-child { border-right: 1px solid var(--glass-line); }
.metric strong { display: block; font: 700 clamp(2rem, 3.6vw, 2.8rem) / 1 var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(231, 227, 220, 0.35); }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.35; }
.metric::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(231, 227, 220, 0));
  transform-origin: left;
  transition: transform 1.2s var(--ease) calc(var(--d, 0s) + 0.2s);
}
.js .metric[data-reveal]:not(.in)::after { transform: scaleX(0); }

/* Radar de cobertura */
.radar { margin: 32px 0 0; max-width: 420px; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar-grid circle,
.radar-grid path { fill: none; stroke: rgba(231, 227, 220, 0.2); stroke-width: 1; }
.radar-grid circle:nth-child(2) { stroke-dasharray: 3 5; }
.radar-km text { fill: rgba(188, 194, 207, 0.75); font: 500 9px var(--font-mono); letter-spacing: 0.08em; }
.radar-sweep { transform-box: view-box; transform-origin: 200px 165px; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(-360deg); } }
.radar-city circle { fill: var(--accent); }
.radar-city .ping { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; animation-delay: calc(var(--i, 0) * 0.6s); }
.radar-city text { fill: var(--text); font: 600 11px var(--font-mono); letter-spacing: 0.04em; }
.radar-city.base circle:not(.ping) { fill: #faf8f4; filter: drop-shadow(0 0 6px rgba(231, 227, 220, 0.9)); }
.radar-city.base text { fill: var(--accent); font-weight: 700; letter-spacing: 0.14em; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4.5); opacity: 0; } }
.radar figcaption { margin-top: 10px; color: var(--muted); font: 500 0.8rem var(--font-mono); letter-spacing: 0.04em; }

@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 1px solid var(--glass-line); }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--glass-line); }
}
@media (max-width: 700px) {
  .metrics { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 33, 60, 0.85); }
  .metrics .container { padding: 0; }
  .metric { padding: 20px 16px 18px; }
  .metric::after { left: 16px; right: 16px; }
  .metric span { font-size: 0.85rem; }
  .radar { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .metric[data-reveal]:not(.in)::after { transform: none; }
  .radar-sweep { display: none; }
  .radar-city .ping { display: none; }
  .fx-live { opacity: 1; }
}

/* =====================================================================
   TECNOLOGÍA 3 (06-11-2026): estructura 3D que se arma con el scroll,
   fondo topográfico vivo, borde con luz y títulos palabra por palabra
   ===================================================================== */

/* Fondo topográfico */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.topo.on { opacity: 1; }
.hero .topo { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, #000 55%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, #000 55%); }
#red { overflow: hidden; }
#red > .container { position: relative; z-index: 1; }

/* Borde con luz que recorre */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beam {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 250deg, rgba(250, 248, 244, 0) 260deg, #faf8f4 320deg, #ffffff 335deg, transparent 345deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam-spin 4.5s linear infinite;
  filter: drop-shadow(0 0 4px rgba(250, 248, 244, 0.9));
}
.btn-primary .beam { padding: 2px; background: conic-gradient(from var(--beam), transparent 0deg 250deg, rgba(18, 29, 54, 0) 260deg, rgba(18, 29, 54, 0.55) 320deg, #ffffff 335deg, transparent 345deg); }
.has-beam { position: relative; }
@keyframes beam-spin { to { --beam: 360deg; } }

/* Títulos palabra por palabra */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.12em 0.02em 0.1em; margin: -0.12em -0.02em -0.1em; }
.w > span { display: inline-block; transition: transform 0.9s var(--ease) calc(var(--d, 0s) + var(--wi, 0) * 55ms + 0.1s); }
.js [data-reveal]:not(.in) .w > span { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  .beam { display: none; }
  .js [data-reveal]:not(.in) .w > span { transform: none; }
  .topo { opacity: 1; }
}

/* =====================================================================
   TECNOLOGÍA 4 (06-11-2026): intro de carga, modo plano en proyectos,
   cursor de CAD, botones magnéticos y cortina entre páginas
   ===================================================================== */

/* Intro de carga: lámina técnica que se dibuja */
.intro { display: none; }
html.is-intro { overflow: hidden; }
html.is-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(231, 227, 220, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(231, 227, 220, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 45%, #182542, #121d36 72%);
  border-bottom: 2px solid #e7e3dc;
  box-shadow: 0 0 30px rgba(231, 227, 220, 0.55);
  transition: translate 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}
html.is-intro-lift .intro { translate: 0 -102%; }
html.is-intro-fast .intro { transition-duration: 0.35s; }
html.is-intro:not(.is-intro-lift) .hero,
html.is-intro:not(.is-intro-lift) .hero * { animation-play-state: paused !important; }
.intro-sheet { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-sheet .i-line { fill: none; stroke: rgba(231, 227, 220, 0.55); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: i-draw 0.8s cubic-bezier(0.6, 0, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.intro-sheet .i-frame { stroke: rgba(231, 227, 220, 0.8); stroke-width: 1.4; }
.intro-sheet .i-axis { stroke-dasharray: 1; stroke: rgba(127, 156, 201, 0.55); }
.intro-sheet .i-bub { fill: #121d36; stroke: rgba(231, 227, 220, 0.7); stroke-width: 1; opacity: 0; animation: i-fade 0.4s ease forwards; animation-delay: calc(0.35s + var(--i, 0) * 60ms); }
.intro-sheet text { fill: #e7e3dc; font: 600 11px var(--font-mono); letter-spacing: 0.12em; opacity: 0; animation: i-fade 0.4s ease forwards; animation-delay: calc(0.4s + var(--i, 0) * 60ms); }
.intro-sheet .i-small { font-size: 9px; fill: rgba(188, 194, 207, 0.85); letter-spacing: 0.1em; }
.intro-core { position: relative; display: grid; justify-items: center; gap: 14px; padding: 26px 34px 22px; background: rgba(18, 29, 54, 0.92); border: 1px solid rgba(231, 227, 220, 0.22); border-radius: 12px; }
.intro-core img { width: 190px; height: auto; clip-path: inset(0 100% 0 0); animation: i-wipe 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.25s forwards; }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.intro-count { --n: 0; counter-reset: n var(--n); font: 700 0.85rem var(--font-mono); letter-spacing: 0.18em; color: #faf8f4; animation: i-count 0.95s cubic-bezier(0.3, 0, 0.2, 1) 0.1s forwards; }
.intro-count::before { content: "CARGANDO MODELO · " counter(n) "%"; }
.intro-bar { display: block; width: 190px; height: 2px; background: rgba(231, 227, 220, 0.15); overflow: hidden; }
.intro-bar::after { content: ""; display: block; height: 100%; background: #e7e3dc; box-shadow: 0 0 10px #e7e3dc; transform-origin: left; transform: scaleX(0); animation: i-bar 0.95s cubic-bezier(0.3, 0, 0.2, 1) 0.1s forwards; }
.intro-skip { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; color: rgba(188, 194, 207, 0.7); }
@keyframes i-draw { to { stroke-dashoffset: 0; } }
@keyframes i-fade { to { opacity: 1; } }
@keyframes i-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes i-count { to { --n: 100; } }
@keyframes i-bar { to { transform: scaleX(1); } }

/* Cortina con grilla técnica entre páginas */
html.cortina-out::before,
html.cortina-in::before,
html.cortina-out::after,
html.cortina-in::after { position: fixed; z-index: 2147483001; pointer-events: none; }
html.cortina-out::before,
html.cortina-in::before {
  content: "";
  inset: 0;
  background:
    linear-gradient(rgba(231, 227, 220, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(231, 227, 220, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 50%, #182542, #121d36 72%);
}
html.cortina-out::after,
html.cortina-in::after {
  content: attr(data-cortina);
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  text-align: center;
  font: 700 0.8rem "Consolas", "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.22em;
  color: #e7e3dc;
  text-shadow: 0 0 16px rgba(231, 227, 220, 0.6);
}
html.cortina-out::before { border-top: 2px solid #e7e3dc; box-shadow: 0 0 30px rgba(231, 227, 220, 0.5); animation: c-cubre 0.5s cubic-bezier(0.7, 0, 0.2, 1) both; }
html.cortina-out::after { animation: i-fade 0.25s ease 0.3s both; opacity: 0; }
html.cortina-in::before { border-bottom: 2px solid #e7e3dc; box-shadow: 0 0 30px rgba(231, 227, 220, 0.5); animation: c-descubre 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.25s both; }
html.cortina-in::after { animation: c-sale 0.25s ease 0.2s both; }
@keyframes c-cubre { from { translate: 0 102%; } to { translate: 0 0; } }
@keyframes c-descubre { from { translate: 0 0; } to { translate: 0 -102%; } }
@keyframes c-sale { from { opacity: 1; } to { opacity: 0; } }

/* Modo plano: tarjetas de proyecto */
.project { position: relative; }
.project > :not(.bp) { position: relative; z-index: 1; }
.bp { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.bp::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(127, 156, 201, 0.12) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(127, 156, 201, 0.12) 1px, transparent 1px) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 85%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at 85% 85%, #000 10%, transparent 75%);
  opacity: 0;
  transition: opacity 0.5s;
}
.bp-ico { position: absolute; right: 14px; bottom: 12px; width: 72px; height: 54px; overflow: visible; }
.bp-ico path { fill: none; stroke: rgba(160, 196, 255, 0.85); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.5, 0, 0.2, 1); filter: drop-shadow(0 0 3px rgba(127, 156, 201, 0.6)); }
.bp-dim { position: absolute; display: block; color: rgba(160, 196, 255, 0.9); font: 600 9px var(--font-mono); letter-spacing: 0.08em; opacity: 0; transition: opacity 0.4s 0.2s; }
.bp-dim::before { content: ""; position: absolute; background: rgba(160, 196, 255, 0.6); transform-origin: left; transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1) 0.1s; }
.bp-w { left: 14px; right: 14px; top: 6px; height: 9px; border-left: 1px solid rgba(160, 196, 255, 0.6); border-right: 1px solid rgba(160, 196, 255, 0.6); }
.bp-w::before { left: 0; right: 0; top: 4px; height: 1px; transform: scaleX(0); }
.bp-w::after { content: attr(data-v); position: absolute; left: 50%; top: -1px; translate: -50% 0; padding: 0 6px; background: rgba(21, 33, 60, 0.95); }
.bp-xy { position: absolute; left: 14px; bottom: 10px; z-index: 0; color: rgba(160, 196, 255, 0.8); font: 600 9px var(--font-mono); letter-spacing: 0.1em; opacity: 0; transition: opacity 0.4s 0.3s; }
.project:hover .bp::before,
.project:focus-within .bp::before,
.project.bp-on .bp::before { opacity: 1; }
.project:hover .bp-ico path,
.project:focus-within .bp-ico path,
.project.bp-on .bp-ico path { stroke-dashoffset: 0; }
.project:hover .bp-dim,
.project:hover .bp-xy,
.project.bp-on .bp-dim,
.project.bp-on .bp-xy { opacity: 1; }
.project:hover .bp-w::before,
.project.bp-on .bp-w::before { transform: scaleX(1); }
.project:has(> .bp) { padding-bottom: 56px; }

/* Galería: zoom suave y realce al pasar el cursor (reemplaza el efecto "rayos X", 24-11-2026) */
.g-item img { transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.g-item:hover img,
.g-item:focus-visible img,
.g-item.zoom-run img { transform: scale(1.1); filter: brightness(1.12) contrast(1.06) saturate(1.08); }

/* Cursor de CAD (solo computador) */
.cad, .cad-snap { position: fixed; left: 0; top: 0; z-index: 2147482000; pointer-events: none; }
.cad { width: 0; height: 0; opacity: 0; transition: opacity 0.2s; }
html.cad-on .cad.on { opacity: 1; }
.cad i { position: absolute; --c: #faf8f4; filter: drop-shadow(0 0 1px rgba(18, 29, 54, 0.9)); }
.cad .cad-h { left: -48px; top: -0.75px; width: 96px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--c) 18%, var(--c) calc(50% - 10px), transparent calc(50% - 10px), transparent calc(50% + 10px), var(--c) calc(50% + 10px), var(--c) 82%, transparent); }
.cad .cad-v { top: -48px; left: -0.75px; width: 1.5px; height: 96px; background: linear-gradient(180deg, transparent, var(--c) 18%, var(--c) calc(50% - 10px), transparent calc(50% - 10px), transparent calc(50% + 10px), var(--c) calc(50% + 10px), var(--c) 82%, transparent); }
.cad b { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 1.5px solid #faf8f4; box-shadow: 0 0 6px rgba(231, 227, 220, 0.6); transition: transform 0.2s; }
.cad span { position: absolute; left: 22px; top: 20px; white-space: nowrap; padding: 2px 6px; border-radius: 4px; background: rgba(18, 29, 54, 0.8); border: 1px solid rgba(231, 227, 220, 0.25); color: #e7e3dc; font: 600 12px var(--font-mono); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.cad.snap b { transform: rotate(45deg) scale(0.8); }
.cad.snap .cad-h,
.cad.snap .cad-v { opacity: 0.5; }
.cad-snap { opacity: 0; transition: opacity 0.2s, left 0.18s var(--ease), top 0.18s var(--ease), width 0.18s var(--ease), height 0.18s var(--ease); --c: #faf8f4; background:
  linear-gradient(var(--c), var(--c)) left top / 10px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1.5px 10px no-repeat,
  linear-gradient(var(--c), var(--c)) right top / 10px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1.5px 10px no-repeat,
  linear-gradient(var(--c), var(--c)) left bottom / 10px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1.5px 10px no-repeat,
  linear-gradient(var(--c), var(--c)) right bottom / 10px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1.5px 10px no-repeat;
  filter: drop-shadow(0 0 4px rgba(231, 227, 220, 0.7)); }
html.cad-on .cad-snap.on { opacity: 1; }
html.cad-on,
html.cad-on * { cursor: none !important; }
html.cad-on input,
html.cad-on textarea,
html.cad-on select,
html.cad-on [contenteditable] { cursor: auto !important; }
html.cad-on:has(dialog[open]) *,
html.cad-on.cad-text * { cursor: auto !important; }
html.cad-on:has(dialog[open]) .cad,
html.cad-on:has(dialog[open]) .cad-snap,
html.cad-on.cad-text .cad,
html.cad-on.cad-text .cad-snap { opacity: 0 !important; }

/* Botones magnéticos */
.btn.mag { transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s, translate 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.wa-float.mag { transition: transform 0.15s, translate 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }

@media (prefers-reduced-motion: reduce) {
  .bp-ico path,
  .bp-dim,
  .bp-dim::before,
  .bp::before { transition: none; }
  .g-item img { transition: none; }
  .cad-snap { transition: opacity 0.2s; }
}

/* =====================================================================
   TECNOLOGÍA 5 (06-11-2026): galería horizontal, cinta de especialidades,
   y formulario técnico
   ===================================================================== */

/* Galería horizontal: se fija en pantalla y avanza de lado al bajar */
#proyectos:has(.hs.on) { overflow-x: clip; }
.hs.on { position: relative; margin-top: 40px; }
.hs.on .hs-stick {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  --gw: min(40vw, calc((100svh - var(--header-h) - 300px) * 1.333));
}
.hs.on .gallery-head { margin: 0 0 22px; }
.hs.on .gallery { display: flex; gap: 32px; width: max-content; will-change: transform; counter-reset: lam; }
.hs.on .gallery figure { flex: none; width: var(--gw); counter-increment: lam; opacity: 0.5; transition: opacity 0.5s var(--ease); }
.hs.on .gallery figure.cur { opacity: 1; }
.hs.on .gallery figcaption::before {
  content: "LÁM. " counter(lam, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  font: 600 0.7rem var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hs-ruler { display: none; }
.hs.on .hs-ruler { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding-bottom: 14px; font: 600 0.7rem var(--font-mono); letter-spacing: 0.12em; color: var(--muted); }
.hs-bar { position: relative; flex: 1; max-width: 520px; height: 8px; border: 1px solid rgba(231, 227, 220, 0.45); }
.hs-bar::before,
.hs-fill { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(231, 227, 220, 0.16) 0 10%, transparent 10% 20%); }
.hs-fill { background: repeating-linear-gradient(90deg, var(--accent) 0 10%, rgba(231, 227, 220, 0.35) 10% 20%); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.hs-bar::after { content: ""; position: absolute; top: -7px; left: var(--p, 0%); width: 1.5px; height: 20px; margin-left: -0.75px; background: #faf8f4; box-shadow: 0 0 8px rgba(231, 227, 220, 0.8); }
.hs-ticks { position: absolute; left: 0; right: 0; top: 13px; display: flex; justify-content: space-between; font-size: 0.62rem; }
.hs-ticks b { font-weight: 600; translate: -50% 0; }
.hs-ticks b:last-child { translate: 0 0; }
.hs-n { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Formulario técnico: esquinas de plano al escribir, OK por campo y envío con progreso */
@property --k { syntax: "<length>"; inherits: false; initial-value: 0px; }
.field input,
.field select,
.field textarea,
.field input:focus,
.field select:focus,
.field textarea:focus {
  --kc: var(--accent);
  background-image:
    linear-gradient(var(--kc), var(--kc)), linear-gradient(var(--kc), var(--kc)),
    linear-gradient(var(--kc), var(--kc)), linear-gradient(var(--kc), var(--kc)),
    linear-gradient(var(--kc), var(--kc)), linear-gradient(var(--kc), var(--kc)),
    linear-gradient(var(--kc), var(--kc)), linear-gradient(var(--kc), var(--kc));
  background-repeat: no-repeat;
  background-position: left 4px top 4px, left 4px top 4px, right 4px top 4px, right 4px top 4px, left 4px bottom 4px, left 4px bottom 4px, right 4px bottom 4px, right 4px bottom 4px;
  background-size: var(--k) 1.5px, 1.5px var(--k), var(--k) 1.5px, 1.5px var(--k), var(--k) 1.5px, 1.5px var(--k), var(--k) 1.5px, 1.5px var(--k);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s, --k 0.35s var(--ease);
}
.form .field input:focus,
.form .field select:focus,
.form .field textarea:focus { --k: 10px; }
.field label { display: flex; justify-content: space-between; gap: 8px; }
.f-meta { font: 600 0.68rem var(--font-mono); letter-spacing: 0.1em; color: var(--muted); opacity: 0.75; font-variant-numeric: tabular-nums; }
.field .f-ok { color: #6fcf7f; opacity: 0; translate: 4px 0; transition: opacity 0.3s, translate 0.3s var(--ease); }
.field.ok .f-ok { opacity: 1; translate: 0 0; }
.btn-load { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; opacity: 0.8; pointer-events: none; }
.btn.is-sending .btn-load { animation: btn-load 0.8s var(--ease) forwards; }
.btn.is-done .btn-load { transform: scaleX(1); }
.btn.btn-err { animation: btn-err 0.4s; }
@keyframes btn-load { to { transform: scaleX(1); } }
@keyframes btn-err { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }

@media (prefers-reduced-motion: reduce) {
  .field input,
  .field select,
  .field textarea { transition: none; }
  .btn.is-sending .btn-load,
  .btn.btn-err { animation: none; }
  .btn.is-sending .btn-load { transform: scaleX(1); }
}

/* Radar: ciudades del litoral (V y VI región) */
.radar-city.costa text { font-size: 10px; fill: var(--muted); }

/* =====================================================================
   EXPERIENCIA POR ÁREAS (08-11-2026): pestañas con imagen y texto general
   ===================================================================== */
.exp-cifras { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.exp-cifras li { display: flex; align-items: baseline; gap: 10px; }
.exp-cifras strong { font: 700 clamp(2rem, 3.6vw, 2.6rem) / 1 var(--font-mono); color: var(--accent); text-shadow: 0 0 24px rgba(231, 227, 220, 0.35); }
.exp-cifras span { color: var(--muted); font-size: 0.95rem; }
.area {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 45%), var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 40px -26px rgba(0, 0, 0, 0.8);
}
.area[hidden] { display: none; }
.area.show { animation: area-in 0.5s var(--ease) both; }
.area.show .area-txt > * { animation: area-txt 0.55s var(--ease) both; }
.area.show .area-txt > :nth-child(2) { animation-delay: 0.06s; }
.area.show .area-txt > :nth-child(3) { animation-delay: 0.12s; }
.area.show .area-txt > :nth-child(4) { animation-delay: 0.18s; }
@keyframes area-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes area-txt { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }
.area-fig { margin: 0; }
.area-fig .g-item { aspect-ratio: 4 / 3; }
.area-fig.photo .g-item { padding: 0; }
.area-fig.photo img { object-fit: cover; }
.area-fig figcaption { margin-top: 10px; }
.area-txt h3 { font-size: 1.5rem; margin: 0 0 12px; }
.area-txt p { color: var(--muted); margin: 0 0 18px; }
.area-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.area-list li { position: relative; padding-left: 26px; }
.area-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border: 1.5px solid var(--accent); rotate: 45deg; scale: 0.7; }
@media (max-width: 900px) {
  .area { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .area.show,
  .area.show .area-txt > * { animation: none; }
}
.metric strong.plus::before { content: "+"; }

/* Experiencia: título más grande, párrafo resumen y dos imágenes por área */
.eyebrow.eyebrow-lg { font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: 0.22em; margin: 0 0 18px; }
.eyebrow.eyebrow-lg::before { width: 40px; }
.lead.lead-wide { max-width: 860px; }
.media-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.media-btn { font: 600 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-line); border-radius: 99px; padding: 6px 12px; cursor: pointer; transition: color 0.25s, background 0.25s, border-color 0.25s; }
.media-btn:hover { color: var(--text); }
.media-btn.is-on { color: #121d36; background: var(--accent); border-color: var(--accent); }
.area-media .area-fig[hidden] { display: none; }
.area-media .area-fig.show { animation: media-in 0.5s var(--ease) both; }
@keyframes media-in { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.area-ph {
  aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 8px; text-align: center; padding: 24px;
  border: 1px dashed rgba(231, 227, 220, 0.35); border-radius: var(--radius);
  background: linear-gradient(rgba(231, 227, 220, 0.06) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(231, 227, 220, 0.06) 1px, transparent 1px) 0 0 / 22px 22px, rgba(13, 23, 42, 0.4);
  color: var(--muted); font: 500 0.85rem var(--font-mono);
}
.area-ph small { color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.7rem; }
@media (prefers-reduced-motion: reduce) { .area-media .area-fig.show { animation: none; } }

/* Experiencia: las dos imágenes se ven juntas (arriba) y el texto abajo */
.area { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.area-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.area-media .area-fig .g-item { aspect-ratio: 4 / 3; }
.area-txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "t l" "p l" "b l"; column-gap: 40px; align-items: start; }
.area-txt h3 { grid-area: t; }
.area-txt p { grid-area: p; }
.area-txt .area-list { grid-area: l; margin: 4px 0 0; }
.area-txt .btn { grid-area: b; justify-self: start; }
@media (max-width: 760px) {
  .area-media { gap: 10px; }
  .area-txt { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "p" "l" "b"; }
  .area-txt .area-list { margin: 0 0 20px; }
}

/* Experiencia: imágenes más chicas, en una columna angosta junto al texto */
.area { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 24px; }
.area-media { gap: 12px; align-self: start; }
.area-fig figcaption { margin-top: 6px; }
.area-fig .g-title { font-size: 0.82rem; }
.area-txt { display: block; }
.area-txt .area-list { margin: 0 0 22px; }
@media (max-width: 900px) {
  .area { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
  .area-media { max-width: 460px; }
}

/* Paleta nueva (20-11-2026): Stone Gray #E7E3DC · Ink Navy #121d36 · Burgundy #7A1F2B.
   El burdeos se reserva para los clics que llevan a otro lugar (cotizar, ver panel, revisar proyecto). */
:root { --go: #7a1f2b; --go-hover: #922737; --go-text: #f4f2ee; }
.btn-primary { background: var(--go); color: var(--go-text); }
.btn-primary:hover { background: var(--go-hover); box-shadow: 0 10px 28px -10px rgba(122, 31, 43, 0.85); }
a.btn-ghost { border-color: rgba(122, 31, 43, 0.95); background: rgba(122, 31, 43, 0.16); color: var(--text); }
a.btn-ghost:hover { background: var(--go); border-color: var(--go); color: var(--go-text); }
.panel-shot:hover { border-color: var(--go); }

/* =====================================================================
   SEO (25-11-2026): páginas de servicio /<servicio>/ y enlaces desde Experiencia
   ===================================================================== */
.area-more { display: inline-block; margin-left: 14px; color: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid var(--go); padding-bottom: 2px; }
.area-more:hover { color: var(--go-text); border-bottom-color: var(--go-hover); }
.svc-page .site-header { position: sticky; top: 0; }
.svc-hero { padding-top: 48px; }
.svc-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; margin: 6px 0 18px; max-width: 22ch; }
.svc-crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.svc-crumbs a { color: var(--muted); }
.svc-crumbs a:hover { color: var(--text); }
.svc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.svc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.svc-grid h2, .svc-page section > .container > h2 { margin: 0 0 20px; }
.svc-list li { font-size: 1rem; margin-bottom: 12px; }
.svc-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-media .g-item { aspect-ratio: 4 / 3; cursor: default; }
.svc-media .photo img { object-fit: cover; }
.svc-why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc-why li { border: 1px solid var(--glass-line, var(--line)); border-radius: 14px; padding: 20px; background: var(--glass, transparent); }
.svc-why strong { display: block; margin-bottom: 8px; }
.svc-why span { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.svc-note { color: var(--muted); font-size: 0.88rem; margin-top: 20px; }
.svc-final { text-align: center; }
.svc-final .lead { margin-inline: auto; }
.svc-final .svc-cta { justify-content: center; }
.svc-other-t { margin: 44px 0 12px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.svc-other { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.svc-other a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.9rem; }
.svc-other a:hover { border-color: var(--go); background: rgba(122, 31, 43, 0.16); }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svc-why { grid-template-columns: 1fr; }
  .svc-media { gap: 10px; }
  .area-more { display: block; margin: 14px 0 0; width: fit-content; }
}
