/* ==========================================================================
   Cubicom — construcción, remodelación y mantenimiento en Guayaquil
   Dirección visual: plano técnico. Paleta del logo (navy, concreto, salvia),
   titulares en Archivo expandido, anotaciones en IBM Plex Mono.
   ========================================================================== */

:root {
  --navy: #1c2d4f;
  --navy-deep: #121e36;
  --navy-ink: #0b1426;
  --concrete: #6b6b73;
  --sage: #6f8a78;
  --sage-text: #4b6655;
  --sage-light: #a9c3b2;
  --gold: #a9853a;
  --danger: #b3261e;
  --wa: #25d366;

  --bg: #ffffff;
  --bg-alt: #eff1f0;
  --paper: #f7f6f1;
  --paper-line: rgba(28, 45, 79, 0.055);
  --text: #1b2232;
  --text-light: #565b66;
  --text-on-dark: #c9d1dd;
  --border: #dde1e4;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 2px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --shadow-sm: 0 1px 2px rgba(11, 20, 38, 0.06), 0 4px 14px rgba(11, 20, 38, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 20, 38, 0.06), 0 22px 44px rgba(11, 20, 38, 0.12);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
ul, ol { list-style: none; }

button, a, input, textarea, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.12;
  font-weight: 700;
  color: var(--navy);
}
h1, h2 { text-wrap: balance; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.i-wa { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  background: var(--navy); color: #fff; padding: 12px 20px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 88px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

/* Papel de plano: retícula muy tenue */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.bg-alt { background: var(--bg-alt); }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--sage-text);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 11px;
  background: var(--sage); clip-path: var(--hex); flex-shrink: 0;
}
.eyebrow .idx { color: var(--navy); }
.eyebrow .idx::after { content: "/"; margin-left: 10px; color: var(--sage); }
.on-dark .eyebrow { color: var(--sage-light); }
.on-dark .eyebrow::before { background: var(--sage-light); }
.on-dark .eyebrow .idx { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-light); margin-top: 22px; font-size: 1.06rem; }
.band-dark .section-head p { color: var(--text-on-dark); }

/* Cota: línea de medida con remates */
.rule {
  display: block; position: relative;
  width: 112px; height: 9px; margin-top: 26px;
  border-left: 1px solid var(--sage); border-right: 1px solid var(--sage);
}
.rule::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px;
  height: 1px; background: var(--sage);
}
.section-head.center .rule { margin-left: auto; margin-right: auto; }
.on-dark .rule, .on-dark .rule::before { border-color: var(--sage-light); }
.on-dark .rule::before { background: var(--sage-light); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; min-height: 52px;
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 12px 26px rgba(28, 45, 79, 0.25); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9eef4; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.btn-light .i-wa { color: #1fa855; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-outline {
  border-color: var(--navy); color: var(--navy);
  padding: 11px 22px; min-height: 46px; font-size: 0.78rem;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-wa { background: var(--wa); color: #0b2e17; padding: 11px 22px; min-height: 46px; font-size: 0.8rem; }
.btn-wa:hover { background: #1fbe5a; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(28, 45, 79, 0.08); border-bottom-color: var(--border); }

.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .nav-wrap { padding: 0 40px; } }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--font-display); font-stretch: 112%;
  font-size: 1.3rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
}

.nav-toggle {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--navy); border-radius: var(--radius);
}
.nav-toggle .material-icons { font-size: 30px; }

.nav-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 20px 28px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 20px 30px rgba(28, 45, 79, 0.1);
}
.nav-menu.open { opacity: 1; transform: translateY(0); visibility: visible; }
.nav-menu a {
  text-decoration: none; color: var(--navy);
  font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 15px 4px; border-bottom: 1px solid var(--border);
  transition: color 0.25s ease;
}
.nav-menu a:hover { color: var(--sage-text); }
.nav-menu .nav-cta {
  margin-top: 18px; border: 0; background: var(--navy); color: #fff; text-align: center;
  padding: 15px 24px; border-radius: var(--radius); transition: background-color 0.25s ease;
}
.nav-menu .nav-cta:hover { background: var(--navy-deep); color: #fff; }

/* El menú completo sólo cabe en una línea a partir de ~1180px */
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; flex-direction: row; align-items: center; gap: clamp(20px, 2.1vw, 30px);
    padding: 0; background: none; border: 0;
    opacity: 1; visibility: visible; transform: none; box-shadow: none;
    max-height: none; overflow: visible;
  }
  .nav-menu a { border: 0; padding: 6px 0; font-size: 0.76rem; position: relative; }
  .nav-menu a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
    background: var(--sage); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-menu .nav-cta { margin: 0 0 0 6px; padding: 12px 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: max(620px, 100svh); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: calc(var(--header-h) + 32px) 0 72px;
  background: var(--navy-ink);
}
.hero-bg {
  position: absolute; left: 0; right: 0; top: -12%; height: 124%; z-index: 0;
  background:
    linear-gradient(180deg, rgba(11, 20, 38, 0.62) 0%, rgba(11, 20, 38, 0.58) 45%, rgba(11, 20, 38, 0.86) 100%),
    url("assets/images/hero-1000.webp") center / cover no-repeat;
  will-change: transform;
}
@media (min-width: 761px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(11, 20, 38, 0.62) 0%, rgba(11, 20, 38, 0.58) 45%, rgba(11, 20, 38, 0.86) 100%),
      url("assets/images/hero-1600.webp") center / cover no-repeat;
  }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0;
  animation: fadeIn 2s ease 0.2s forwards;
  background-image:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
}

.hero-content { position: relative; z-index: 2; max-width: 1100px; padding: 0 20px; }

.signature { display: block; width: 128px; height: auto; margin: 0 auto 26px; overflow: visible; }
@media (min-width: 768px) { .signature { width: 168px; } }
.signature .draw {
  fill: none; stroke-dasharray: 1; stroke-dashoffset: 1;
  stroke-linecap: round; stroke-linejoin: round;
  animation: draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.signature .s-hex { stroke: #fff; stroke-width: 1.5; }
.signature .s-in { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.1; animation-delay: 1.1s; }
.signature .s-in2 { animation-delay: 1.3s; }
.signature .s-in3 { animation-delay: 1.5s; }
.signature .s-cota { stroke: var(--sage-light); stroke-width: 0.8; animation-delay: 1.8s; animation-duration: 1s; }
.signature .s-check { stroke: var(--sage-light); stroke-width: 7; animation-delay: 2.1s; animation-duration: 0.9s; }
.signature .node { fill: #fff; opacity: 0; animation: nodeIn 0.5s ease forwards; }
.signature .cota-txt {
  fill: var(--sage-light); font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.5px;
  opacity: 0; animation: nodeIn 0.6s ease 2.4s forwards;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #e3e9f1; margin-bottom: 22px;
  opacity: 0; animation: fadeInUp 0.9s var(--ease) 0.3s forwards;
}
.hero-kicker::before, .hero-kicker::after { content: ""; width: 26px; height: 1px; background: var(--sage-light); }

.hero h1 {
  color: #fff; font-weight: 800; line-height: 1.04;
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  opacity: 0; animation: fadeInUp 1s var(--ease) 0.5s forwards;
}
.hero h1 em { font-style: normal; color: var(--sage-light); }

.hero-sub {
  max-width: 620px; margin: 26px auto 0;
  font-size: 1.1rem; color: #e3e8ef;
  opacity: 0; animation: fadeInUp 1s var(--ease) 0.7s forwards;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px;
  opacity: 0; animation: fadeInUp 1s var(--ease) 0.9s forwards;
}
@media (max-width: 479px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(#fff, transparent); }
@media (max-height: 700px), (max-width: 600px) { .scroll-hint { display: none; } }

@media (max-width: 600px) {
  .signature { width: 92px; margin-bottom: 18px; }
  .hero-kicker { font-size: 0.66rem; letter-spacing: 0.12em; }
  .hero-kicker::before, .hero-kicker::after { display: none; }
  .hero-sub { font-size: 1rem; margin-top: 20px; }
  .hero-ctas { margin-top: 30px; }
}

/* ---------- Nosotros ---------- */
.intro-grid { display: grid; gap: 56px; align-items: center; margin-bottom: 80px; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 1.1fr 0.9fr; gap: 88px; } }
.intro-grid .section-head { margin-bottom: 0; }

.framed { position: relative; padding: 0 18px 18px 0; }
.framed::before {
  content: ""; position: absolute; top: 18px; left: 18px; right: 0; bottom: 0;
  border: 1px solid var(--sage);
}
.framed img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.framed .badge {
  position: absolute; left: -1px; bottom: 40px;
  background: var(--navy); color: #fff; padding: 13px 18px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.framed .badge::before { content: ""; width: 10px; height: 11px; background: var(--sage-light); clip-path: var(--hex); }

.signoff {
  margin-top: 26px; padding-left: 16px; border-left: 2px solid var(--sage);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: 1.12rem; line-height: 1.45; color: var(--navy);
}

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

.v-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.v-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.v-card h3 { margin-bottom: 10px; }
.v-card p { color: var(--text-light); font-size: 0.97rem; }

.hex-icon {
  width: 56px; height: 62px; clip-path: var(--hex);
  background: rgba(28, 45, 79, 0.07); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.hex-icon .material-icons { font-size: 25px; }
.v-card:hover .hex-icon { background: var(--navy); color: #fff; }

/* ---------- Bandas oscuras ---------- */
.band-dark { background: var(--navy); color: #e9edf3; position: relative; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .container { position: relative; z-index: 1; }

/* Cifras */
.stats { padding: 76px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 20px; text-align: center; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; }
@media (min-width: 900px) {
  .stat + .stat::before {
    content: ""; position: absolute; left: -10px; top: 10%; height: 80%; width: 1px;
    background: rgba(255, 255, 255, 0.16);
  }
}
.stat-num {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat-num small { font-size: 0.5em; color: var(--sage-light); margin-left: 3px; font-weight: 700; }
.stat p {
  margin-top: 14px; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-dark);
}

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.s-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.s-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.s-media { overflow: hidden; aspect-ratio: 3 / 2; position: relative; background: var(--bg-alt); }
.s-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.s-card:hover .s-media img { transform: scale(1.05); }
.s-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.95); color: var(--navy);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 5px 10px; border-radius: var(--radius);
}
.s-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.s-body .hex-icon {
  width: 48px; height: 53px; margin: -56px 0 18px; position: relative;
  background: var(--navy); color: #fff;
}
.s-body .hex-icon .material-icons { font-size: 22px; }
.s-body h3 { margin-bottom: 10px; font-size: 1.22rem; }
.s-body p { color: var(--text-light); font-size: 0.97rem; margin-bottom: 16px; }
.s-list { margin-bottom: 26px; display: grid; gap: 6px; }
.s-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text); }
.s-list li::before { content: ""; width: 7px; height: 8px; background: var(--sage); clip-path: var(--hex); flex-shrink: 0; }
.s-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Proceso ---------- */
.process-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 26px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 11px;
  background: var(--sage-light); clip-path: var(--hex);
}
.step-num {
  font-family: var(--font-mono); font-weight: 500; font-size: 2.4rem; line-height: 1;
  color: var(--sage-light); font-variant-numeric: tabular-nums;
}
.step h3 { margin: 16px 0 10px; }
.step p { color: var(--text-on-dark); font-size: 0.97rem; }

/* ---------- Proyectos ---------- */
.gallery-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 22px 20px;
  background: linear-gradient(transparent, rgba(11, 20, 38, 0.86));
  color: #dfe6ee;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.g-item figcaption strong {
  display: block; margin-top: 4px; color: #fff;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: 1.18rem; letter-spacing: -0.005em; text-transform: none;
}

/* ---------- Testimonios ---------- */
.t-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 30px 32px; position: relative; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.t-quote {
  position: absolute; top: 6px; right: 24px;
  font-family: var(--font-display); font-size: 5.5rem; line-height: 1;
  color: var(--sage); opacity: 0.3;
}
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 18px; }
.stars .material-icons { font-size: 18px; }
.t-card blockquote { font-size: 1.04rem; line-height: 1.7; color: var(--text); margin-bottom: 26px; flex: 1; }
.t-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.t-author .t-avatar {
  width: 48px; height: 53px; clip-path: var(--hex); flex-shrink: 0;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em;
}
.t-author strong { display: block; font-size: 0.95rem; color: var(--text); }
.t-author span { font-size: 0.84rem; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 88px; } }
.faq-wrap .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; text-align: left;
  font-family: var(--font-display); font-stretch: 112%; font-size: 1.08rem; font-weight: 600;
  color: var(--navy); transition: color 0.25s ease;
}
.faq-q:hover { color: var(--sage-text); }
.faq-q .material-icons { transition: transform 0.35s var(--ease); color: var(--sage-text); flex-shrink: 0; }
.faq-q[aria-expanded="true"] .material-icons { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-light); padding: 0 40px 24px 0; font-size: 0.99rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }

.c-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 22px; box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .c-form { padding: 46px; } }
.c-form h3 { margin-bottom: 8px; font-size: 1.3rem; }
.c-form > p { color: var(--text-light); font-size: 0.97rem; margin-bottom: 30px; }
.f-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .f-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--navy);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 15px; width: 100%;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8d95; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(28, 45, 79, 0.1);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: 0.84rem; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.c-form .btn-primary { width: 100%; }

.form-success, .form-error {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 16px 18px; font-size: 0.96rem; color: var(--text);
}
.form-success { border-left: 3px solid var(--sage); background: rgba(111, 138, 120, 0.12); }
.form-success .material-icons { color: var(--sage-text); }
.form-error { border-left: 3px solid var(--danger); background: rgba(179, 38, 30, 0.06); }
.form-error .material-icons { color: var(--danger); }
.form-error-text { margin-bottom: 12px; }

.c-info h3 { margin-bottom: 28px; font-size: 1.3rem; }
.info-list { display: grid; gap: 24px; margin-bottom: 34px; }
.info-list li { display: flex; gap: 18px; align-items: flex-start; }
.info-ico {
  width: 46px; height: 51px; clip-path: var(--hex); flex-shrink: 0;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.info-ico .material-icons { font-size: 20px; }
.info-ico .i-wa { width: 20px; height: 20px; }
.info-list strong {
  display: block; margin-bottom: 2px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--sage-text);
}
.info-list a { text-decoration: none; color: var(--text); transition: color 0.25s ease; }
.info-list a:hover { color: var(--navy); text-decoration: underline; }
.info-list .v { color: var(--text); }
.map { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 300px; border: 0; }

/* ---------- CTA final ---------- */
.cta-final { padding: 104px 0; text-align: center; }
.cta-final h2 { max-width: 780px; margin: 0 auto; }
.cta-final p { max-width: 560px; margin: 20px auto 38px; color: var(--text-on-dark); }
.cta-final .eyebrow { justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-ink); color: #b9c2cf; padding: 76px 0 30px; font-size: 0.95rem; }
.f-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .f-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .f-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
/* El logo tiene texto oscuro e interior transparente: en fondo oscuro va sobre placa clara */
.f-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.f-logo img { height: 72px; width: auto; }
.site-footer h3 {
  font-family: var(--font-mono); font-stretch: normal; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.site-footer h3::before { content: ""; width: 9px; height: 10px; background: var(--sage-light); clip-path: var(--hex); }
.site-footer ul { display: grid; gap: 12px; }
.site-footer a { color: #b9c2cf; text-decoration: none; transition: color 0.25s ease; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px; height: 51px; clip-path: var(--hex);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s ease;
}
.socials a .i-wa { width: 22px; height: 22px; }
.socials a:hover { background: var(--wa); }
.f-bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; gap: 8px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.74rem; color: #8e99ab;
}
@media (min-width: 768px) { .f-bottom { flex-direction: row; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 2000;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.whatsapp-float .i-wa { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Animaciones ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 8px 22px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 8px 22px rgba(0, 0, 0, 0.2); }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.v-card.reveal.visible, .s-card.reveal.visible, .t-card.reveal.visible {
  transition: opacity 0.6s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
