/* ==========================================================================
   SKYTHUS — Clean Energy · Hoja de estilos
   Sistema de marca basado en la Guía de Marca (FoRMA)
   Colores:  #343E54 navy · #C5D5E8 sky · #FFFFFF · #E75F11 naranja
   Tipos:    Antonio (títulos) · Public Sans (cuerpo)
   ========================================================================== */

/* ---------- Fuente de marca: Antonio (self-hospedada) ----------
   Solo para títulos y destacados. El cuerpo usa Public Sans. */
@font-face {
  font-family: "Antonio"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/Antonio-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Antonio"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/Antonio-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Antonio"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/Antonio-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Antonio"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/Antonio-Bold.woff2") format("woff2");
}

/* ---------- Fuente de cuerpo: Public Sans (self-hospedada) ---------- */
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/PublicSans-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/PublicSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../assets/fonts/PublicSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/PublicSans-Bold.woff2") format("woff2");
}

/* ---------- Variables de marca ---------- */
:root {
  --navy:        #343E54;
  --navy-deep:   #262E40;
  --navy-900:    #1C2333;
  --sky:         #C5D5E8;
  --sky-soft:    #E9F0F8;
  --orange:      #E75F11;
  --orange-600:  #CE520B;
  --white:       #FFFFFF;

  --ink:         #222A3A;   /* texto principal sobre claro */
  --muted:       #5C6678;   /* texto secundario */
  --line:        #E2E8F1;   /* bordes suaves */

  --font-title:  "Antonio", "Arial Narrow", sans-serif;
  --font-body:   "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 40px -20px rgba(28,35,51,.35);
  --shadow-sm:   0 8px 24px -14px rgba(28,35,51,.30);
  --maxw:        1180px;
  --pad:         clamp(20px, 5vw, 40px);
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.12; margin: 0; }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .78rem; color: var(--orange); margin: 0 0 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  text-transform: uppercase; letter-spacing: .01em; color: var(--navy);
}
.section-title em { font-style: normal; color: var(--orange); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700;
  font-size: .98rem; border: 2px solid transparent; transition: .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(231,95,17,.7); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-900); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #0a3d24; }
.btn--wa:hover { background: #1fbf5c; transform: translateY(-2px); }

/* ==========================================================================
   LOGO / MARCA
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__img { height: 44px; width: auto; display: block; }
.brand__img--footer { height: 42px; }
@media (max-width: 520px) { .brand__img { height: 38px; } }
.brand__word {
  font-family: var(--font-title); font-weight: 700;
  font-size: 1.6rem; letter-spacing: .01em; line-height: .9;
  display: flex; align-items: center;
}
.brand__word .sky  { color: var(--navy); }
.brand__word .thus { color: var(--navy); font-weight: 400; }
.brand__spark { width: .74em; height: .74em; margin: 0 .06em -0.04em; }
.brand__spark path { fill: var(--orange); }
.brand__tag {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: .5rem; letter-spacing: .34em; color: var(--muted);
  text-transform: uppercase; margin-top: 3px; padding-left: 2px;
}
.brand--light .sky, .brand--light .thus { color: #fff; }
.brand--light .brand__tag { color: var(--sky); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-weight: 600; font-size: .96rem; color: var(--navy); position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .22s;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; padding: 6px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(231,95,17,.28), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(197,213,232,.22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero__bg { /* foto de dron de fondo */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero::before { /* capa oscura para legibilidad del texto */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(28,35,51,.94) 0%, rgba(28,35,51,.82) 40%, rgba(38,46,64,.55) 72%, rgba(38,46,64,.35) 100%);
}
.hero::after { /* patrón sutil de paneles */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .16; pointer-events: none;
  background-image:
    linear-gradient(rgba(197,213,232,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,213,232,.35) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 380px at 78% 30%, #000, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: clamp(56px, 9vw, 108px) 0 clamp(64px, 9vw, 112px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(197,213,232,.14); border: 1px solid rgba(197,213,232,.28);
  color: var(--sky); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge b { color: #fff; }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.5rem);
  text-transform: uppercase; letter-spacing: .005em; line-height: 1.24;
}
.hero h1 .accent { color: var(--orange); font-style: normal; }
.hero__sub { color: var(--sky); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 46ch; margin: 22px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 22px; font-size: .9rem; color: rgba(197,213,232,.85); display: flex; align-items: center; gap: 8px; }

/* Tarjeta flotante de "ahorro" en el hero */
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(197,213,232,.22);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.hero__card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--sky); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.hero__meter { height: 10px; border-radius: 999px; background: rgba(197,213,232,.2); overflow: hidden; margin: 8px 0 6px; }
.hero__meter i { display: block; height: 100%; width: 94%; background: linear-gradient(90deg, var(--orange), #ffa35e); border-radius: 999px; }
.hero__card .row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--sky); }
.hero__card .big { font-family: var(--font-title); font-weight: 700; font-size: 2.6rem; color: #fff; margin: 16px 0 2px; line-height: 1; }
.hero__card .big span { color: var(--orange); }
.hero__card .cap { font-size: .82rem; color: rgba(197,213,232,.8); }

/* ==========================================================================
   BARRA DE STATS
   ========================================================================== */
.stats { background: var(--navy-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 40px 0; }
.stat { text-align: center; padding: 8px 12px; }
.stat__ic { display: flex; align-items: center; justify-content: center; height: 42px; margin: 0 auto 10px; color: var(--orange); }
.stat__ic svg { width: 38px; height: 38px; }
.stat__ic img { height: 42px; width: auto; object-fit: contain; }

.stat b { display: block; font-family: var(--font-title); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; }
.stat b span { color: #fff; }
.stat p { margin: 4px 0 0; color: var(--sky); font-size: .92rem; letter-spacing: .02em; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.cards { display: grid; gap: 22px; margin-top: 46px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .22s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); margin-bottom: 18px;
}
.card:hover .card__icon { background: var(--orange); color: #fff; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; color: var(--navy); text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ==========================================================================
   SEGMENTOS (Residencial / Comercial / Industrial)
   ========================================================================== */
.segments { background: var(--sky-soft); }
.segments__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 46px; }
.segments__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin-inline: auto; }
.segment__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.segment {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease; color: inherit;
  flex: 1 1 340px; max-width: 373px;
}
.segment[href]:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.segment[href]:hover .segment__img img { transform: scale(1.05); }
.segment__img img { transition: transform .35s ease; }
.segment__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-weight: 700; font-size: .95rem; padding-top: 6px;
}
.segment__link svg { width: 18px; height: 18px; transition: transform .22s ease; }
.segment[href]:hover .segment__link svg { transform: translateX(4px); }
.segment__img {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), var(--navy-900));
  position: relative; display: grid; place-items: center; color: rgba(197,213,232,.7);
}
.segment__img .ph { text-align: center; font-size: .82rem; letter-spacing: .05em; }
.segment__img .ph svg { width: 46px; height: 46px; opacity: .6; margin-bottom: 6px; }
.segment__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--orange); color: #fff;
  font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.segment__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.segment__body h3 { color: var(--navy); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 8px; }
.segment__body p { color: var(--muted); margin: 0 0 16px; font-size: .96rem; }
.segment__body ul { list-style: none; margin: 0; padding: 0; }
.segment__body li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .94rem; }
.segment__body li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: var(--orange); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; margin-top: 46px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit__ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: var(--sky-soft); color: var(--orange); display: grid; place-items: center;
}
.benefit__ic svg { width: 24px; height: 24px; }
.benefit h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; text-transform: none; }
.benefit p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   PROCESO
   ========================================================================== */
.process { background: var(--navy); color: #fff; }
.process .section-title { color: #fff; }
.process .lead { color: var(--sky); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__n {
  font-family: var(--font-title); font-weight: 700; font-size: 2.6rem; color: var(--orange);
  line-height: 1; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 6px; color: #fff; }
.step p { color: var(--sky); font-size: .93rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; right: -11px; width: 22px; height: 2px; background: rgba(197,213,232,.35);
}

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--navy-900));
  display: grid; place-items: center; color: rgba(197,213,232,.6); box-shadow: var(--shadow);
  position: relative; align-self: start;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__media .ph { text-align: center; font-size: .85rem; padding: 20px; }
.about__media .ph svg { width: 60px; height: 60px; opacity: .55; margin-bottom: 10px; }
.about__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sky-soft);
  color: var(--navy); font-weight: 600; font-size: .88rem; padding: 8px 15px; border-radius: 999px;
}
.chip svg { width: 16px; height: 16px; color: var(--orange); }

/* Valores en lista ordenada (vertical) */
.values-list { list-style: none; margin: 26px 0 0; padding: 0; max-width: 420px; }
.values-list li {
  display: flex; align-items: center; gap: 14px; padding: 13px 4px;
  border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.values-list li:last-child { border-bottom: none; }
.values-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--orange); }

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials { background: var(--sky-soft); }
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.tcard { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.tcard .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 12px; }
.tcard p { font-size: 1rem; color: var(--ink); margin: 0 0 18px; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-title); }
.tcard .who b { display: block; color: var(--navy); font-size: .96rem; }
.tcard .who span { color: var(--muted); font-size: .84rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; margin-top: 40px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px;
  background: #fff; overflow: hidden; transition: .2s;
}
.faq details[open] { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: 0 0 auto; width: 24px; height: 24px; position: relative; transition: .25s; color: var(--orange); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .plus::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.faq summary .plus::after { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: .25s; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }

/* ==========================================================================
   CTA / CONTACTO
   ========================================================================== */
.contact { background: var(--navy); color: #fff; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact .section-title { color: #fff; }
.contact .lead { color: var(--sky); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact__list .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: rgba(197,213,232,.12); display: grid; place-items: center; color: var(--orange); }
.contact__list .ic svg { width: 22px; height: 22px; }
.contact__list b { color: #fff; display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.contact__list a, .contact__list span { color: #fff; font-size: 1.05rem; }
/* Mapa de Google Maps embebido, con estilo de tarjeta de marca */
.map-card {
  margin-top: 28px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .14); line-height: 0;
}
.map-card iframe { width: 100%; height: 280px; border: 0; display: block; }
@media (max-width: 720px) { .map-card iframe { height: 240px; } }
.contact__list a:hover { color: var(--orange); }

.form {
  background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); color: var(--ink);
  box-shadow: var(--shadow);
}
.form h3 { font-family: var(--font-title); text-transform: uppercase; color: var(--navy); font-size: 1.5rem; margin-bottom: 6px; }
.form .sub { color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(231,95,17,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn--wa { width: 100%; justify-content: center; margin-top: 8px; }
.form .privacy { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---- Pop-up de cotización (modal) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 16px; overflow-y: auto;
  background: rgba(28, 35, 51, .62); backdrop-filter: blur(3px);
  animation: modalIn .28s ease both;
}
.modal-overlay[hidden] { display: none; }
.modal-dialog { position: relative; width: 100%; max-width: 440px; margin: auto; }
.modal-dialog .form { margin: 0; animation: modalPop .34s cubic-bezier(.2, .9, .3, 1.15) both; }
.modal-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--navy); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .55); transition: .18s;
}
.modal-close:hover { background: var(--orange); transform: rotate(90deg); }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .modal-overlay { padding: 20px 12px; align-items: center; }
  .modal-close { top: 6px; right: 6px; width: 36px; height: 36px; background: rgba(0, 0, 0, .4); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-dialog .form { animation: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-900); color: var(--sky); padding: 60px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer p { color: rgba(197,213,232,.75); font-size: .94rem; }
.footer h4 { font-family: var(--font-body); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--orange); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(197,213,232,.1); display: grid; place-items: center; color: var(--sky); transition: .2s; }
.footer__social a:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(197,213,232,.15);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: rgba(197,213,232,.6);
}

/* ==========================================================================
   PÁGINA DE PROYECTOS
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 84px); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(197,213,232,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(197,213,232,.4) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(600px 300px at 70% 20%, #000, transparent 75%);
}
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); text-transform: uppercase; }
.page-hero .accent { color: var(--orange); font-style: normal; }
.crumbs { color: var(--sky); font-size: .9rem; margin-bottom: 18px; }
.crumbs a:hover { color: var(--orange); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 40px; }
.filter {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600;
  padding: 9px 20px; border-radius: 999px; font-size: .92rem; transition: .18s;
}
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: .22s; display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.project__img {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy), var(--navy-900));
  display: grid; place-items: center; color: rgba(197,213,232,.6); position: relative;
}
.project__img .ph { text-align: center; font-size: .8rem; }
.project__img .ph svg { width: 44px; height: 44px; opacity: .5; margin-bottom: 6px; }
.project__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__cat { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--orange); color: #fff; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }
.project__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project__body h3 { color: var(--navy); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 6px; }
.project__loc { color: var(--muted); font-size: .9rem; margin: 0 0 16px; display: flex; align-items: center; gap: 6px; }
.project__loc svg { width: 15px; height: 15px; color: var(--orange); }
.project__meta { margin-top: auto; display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.project__meta div { flex: 1; }
.project__meta b { font-family: var(--font-title); font-size: 1.35rem; color: var(--navy); display: block; line-height: 1; }
.project__meta span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ==========================================================================
   CLIENTES — carrusel infinito de logos
   ========================================================================== */
.clients { background: var(--sky-soft); padding: clamp(48px, 7vw, 80px) 0; }
.marquee { position: relative; overflow: hidden; margin-top: 40px; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--sky-soft), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--sky-soft), transparent); }
.marquee__track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-item {
  flex: 0 0 auto; height: 92px; min-width: 160px; padding: 16px 28px;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: .25s ease;
}
.logo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-item img { max-height: 54px; max-width: 150px; width: auto; object-fit: contain; }
/* Marcador provisional (por si falta algún logo) */
.logo-ph {
  padding: 14px 26px; border: 2px dashed #B9C7DA; border-radius: 12px;
  color: var(--navy); font-weight: 700; font-size: .95rem; white-space: nowrap; background: #fff;
}

/* Fila de certificaciones (estática, pequeña) */
.certs-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 40px; margin-top: 40px;
}
.certs-row img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .25s ease; }
.certs-row img:hover { filter: none; opacity: 1; }
.certs-cap {
  text-align: center; margin-top: 26px; color: var(--muted); font-size: .9rem;
  letter-spacing: .04em;
}

/* ==========================================================================
   MEMBRESÍAS / CERTIFICACIONES
   ========================================================================== */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.cred {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: .22s ease;
}
.cred:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: transparent; }
.cred__logo {
  flex: 0 0 68px; width: 68px; height: 68px; border-radius: 12px; background: var(--sky-soft);
  display: grid; place-items: center; overflow: hidden;
}
.cred__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cred__logo .ph { font-size: .62rem; color: var(--muted); text-align: center; line-height: 1.2; padding: 4px; }
.cred b { display: block; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.cred span { color: var(--muted); font-size: .86rem; }

/* ==========================================================================
   MARCAS QUE TRABAJAMOS
   ========================================================================== */
.brands__group { margin-top: 42px; }
.brands__title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
.brands__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.brands__title svg { width: 20px; height: 20px; color: var(--orange); }
.brands__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 90px; display: grid; place-items: center; padding: 14px; transition: .22s ease;
}
.brand-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.brand-card img { max-height: 52px; max-width: 100%; object-fit: contain; }
.brand-card .ph { color: var(--muted); font-weight: 600; font-size: .88rem; text-align: center; }

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.75);
  transition: transform .22s ease, box-shadow .22s ease;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.09); box-shadow: 0 14px 32px -8px rgba(37,211,102,.9); }
.wa-float::after { /* halo pulsante */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.wa-float__tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.wa-float:hover .wa-float__tip { opacity: 1; }
@media (max-width: 520px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float__tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   ANIMACIÓN AL HACER SCROLL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 420px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .segments__grid, .benefits__grid, .steps, .tgrid, .projects { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .about__media { max-width: 440px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--dark { display: none; }
  .nav__toggle { display: block; }
  .site-header.open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px var(--pad) 26px; gap: 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards--4, .segments__grid, .benefits__grid, .steps, .tgrid, .projects { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
