/* =========================================================
   YETAN CAP — Sitio web
   Paleta del logo: #0B4350 / #0D4450 (petróleo) · #1DB7B6 (turquesa)
   Tipografía: Poppins (títulos) · Inter (cuerpo)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  --petrol-900: #072e38;
  --petrol-800: #0b4350;
  --petrol-700: #0d4450;
  --petrol-600: #11576a;
  --teal-700:   #128c8b;
  --teal-600:   #159a99;
  --teal-500:   #1db7b6;
  --teal-400:   #38cfce;
  --teal-100:   #d6f3f2;

  --ink:        #0c2329;
  --body:       #43585c;
  --muted:      #6a7e82;
  --bg:         #ffffff;
  --bg-soft:    #f3f8f8;
  --bg-tint:    #eef6f6;
  --line:       #e2ecec;
  --white:      #ffffff;

  --container: 1440px;
  --radius:    10px;
  --radius-sm: 8px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(12,35,41,.06), 0 4px 14px rgba(12,35,41,.05);
  --shadow-md: 0 8px 28px rgba(12,35,41,.10), 0 2px 8px rgba(12,35,41,.06);
  --shadow-lg: 0 26px 60px rgba(11,67,80,.18), 0 8px 24px rgba(11,67,80,.10);
  --shadow-teal: 0 16px 40px rgba(29,183,182,.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --header-h: 122px;
}

/* ---------- Base ---------- */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.text-grad {
  background: linear-gradient(115deg, var(--petrol-700) 10%, var(--teal-500) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 40px);
}
.section { padding-block: clamp(58px, 8vw, 116px); }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 58px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.section__sub { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }

/* ---------- Buttons (altura 40px) ---------- */
.btn {
  --btn-bg: var(--petrol-800);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: var(--radius);
  font-family: "Inter", sans-serif; font-weight: 600; font-size: .95rem;
  letter-spacing: -0.01em; white-space: nowrap;
  background: var(--btn-bg); color: #fff;
  transition: transform .16s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out);
  will-change: transform;
}
.btn--lg { height: 40px; padding: 0 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900));
  box-shadow: 0 8px 20px rgba(11,67,80,.22);
}
.btn--accent { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); box-shadow: 0 8px 20px rgba(29,183,182,.28); }
.btn--ghost {
  background: transparent; color: var(--petrol-800);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--light { background: #fff; color: var(--petrol-800); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 12px 26px rgba(11,67,80,.30), var(--shadow-teal); transform: translateY(-2px); }
  .btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29,183,182,.4); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal-500); color: var(--teal-700); background: var(--teal-100); }
  .btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.24); }
}

.btn__spinner { display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .btn__label { opacity: .65; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%) translateY(-200%);
  background: var(--petrol-800); color: #fff; padding: 10px 18px; border-radius: 10px;
  z-index: 200; transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(255,255,255,.93); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(12,35,41,.06); }
.header__inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.header__logo { height: 100px; width: auto; }
.header__brand { display: inline-flex; transition: transform .2s var(--ease-out); }
.header__brand:active { transform: scale(.97); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-block; padding: 8px 15px; border-radius: 10px;
  font-weight: 500; font-size: .96rem; color: var(--ink);
  transition: color .2s var(--ease-out), background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .2s var(--ease-out);
}
/* Nuevo hover: pastilla con tinte turquesa + leve elevación */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--teal-700); background: var(--teal-100); transform: translateY(-1px); }
}
/* Indicador de página/sección actual: pastilla rellena con degradado */
.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-500), var(--petrol-700));
  box-shadow: 0 6px 16px rgba(11,67,80,.28);
}
.header__cta { margin-left: 8px; }

/* hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; margin-left: auto; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-out), top .3s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

/* mobile menu drawer */
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 110;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(12,35,41,.18);
  transform: translateX(100%);
  transition: transform .42s var(--ease-drawer);
  padding: 24px 26px 32px;
  display: flex; flex-direction: column;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mobile-menu__logo { height: 32px; width: auto; }
.mobile-menu__close { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); transition: background-color .2s var(--ease-out), transform .15s var(--ease-out); }
.mobile-menu__close:active { transform: scale(.92); }
.mobile-menu__close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--ink);
  padding: 13px 6px; border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease-out), padding-left .25s var(--ease-out);
}
.mobile-menu__link:active { color: var(--teal-600); }
.mobile-menu__cta { margin-top: 22px; }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 105; background: rgba(7,46,56,.42);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.mobile-overlay.is-shown { opacity: 1; }

/* ====================================================
   HERO (con imagen de fondo, texto oscuro)
   ==================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(248,252,252,.96) 0%, rgba(248,252,252,.9) 40%, rgba(248,252,252,.55) 66%, rgba(248,252,252,.12) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(64px, 10vw, 132px); }
.hero__content { max-width: 660px; }
.hero__title { font-size: clamp(2.2rem, 5vw, 4.1rem); font-weight: 700; color: var(--ink); }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--body); max-width: 560px; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { margin-top: 24px; font-size: .92rem; color: var(--petrol-700); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.hero__trust::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(29,183,182,.18); }

/* ====================================================
   STATS
   ==================================================== */
.stats { background: var(--petrol-800); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 120%, rgba(29,183,182,.35), transparent 55%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: clamp(40px, 5vw, 58px); }
.stat { text-align: center; padding: 8px; }
.stat__num { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat__num span { color: var(--teal-400); }
.stat__label { display: block; margin-top: 10px; font-size: .96rem; color: rgba(255,255,255,.78); }

/* ====================================================
   SERVICIOS — versión simple (inicio)
   ==================================================== */
.services { background: var(--bg); }
.services__lite { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.svc-lite {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc-lite:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
}
.svc-lite__icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--teal-100); }
.svc-lite__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-lite h3 { font-size: 1.12rem; margin-bottom: 8px; }
.svc-lite p { font-size: .95rem; }
.services__cta { margin-top: clamp(30px, 4vw, 46px); display: flex; justify-content: center; }

/* ====================================================
   SERVICIOS — versión detallada (página servicios.html)
   ==================================================== */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .service-card:hover .service-card__media img { transform: scale(1.06); }
}
.service-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.service-card__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,67,80,.40)); }
.service-card__index {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  background: rgba(255,255,255,.9); color: var(--petrol-800);
  padding: 5px 12px; border-radius: 8px; backdrop-filter: blur(4px);
}
.service-card__body { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.service-card__title { font-size: 1.4rem; color: var(--ink); }
.service-card__text { color: var(--body); font-size: 1rem; }
.service-card__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 2px; }
.service-card__list li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--body); }
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 13px; height: 13px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' 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='%23000' 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;
  background: var(--teal-600);
}

/* Servicios en detalle — filas alternadas (página servicios.html) */
.services-detail { display: grid; gap: clamp(32px, 4.5vw, 68px); }
.service-row { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .service-row:hover .service-row__media img { transform: scale(1.05); } }
.service-row__no { position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .03em;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--petrol-700)); color: #fff; box-shadow: var(--shadow-md); }
.service-row__content { max-width: 560px; }
.service-row__title { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: 12px; }
.service-row__text { color: var(--body); margin-bottom: 20px; }

/* ====================================================
   NOSOTROS / MISIÓN-VISIÓN  (franja de color, texto blanco)
   ==================================================== */
.about { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--petrol-900) 0%, var(--petrol-800) 55%, var(--petrol-700) 100%); }
.about::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% -10%, rgba(29,183,182,.32), transparent 52%); }
.about__inner { position: relative; max-width: 1000px; }
.about h2, .about h3 { color: #fff; }
.about__lead { margin-top: 16px; font-size: 1.12rem; color: rgba(255,255,255,.84); max-width: 760px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(32px, 4vw, 48px); }
.mv__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 28px 28px;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mv__card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); } }
.mv__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); }
.mv__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mv__card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.mv__card p { font-size: 1rem; color: rgba(255,255,255,.82); }

/* ====================================================
   VALORES  (izquierda: título+texto · derecha: 2 columnas de 3)
   ==================================================== */
.values { background: var(--bg); }
.values__inner { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.values__head { position: sticky; top: calc(var(--header-h) + 24px); }
.values__head .section__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.values__head p { margin-top: 16px; font-size: 1.05rem; color: var(--muted); }
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.value-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--teal-500), var(--petrol-700)); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
  .value-card:hover::before { transform: scaleY(1); }
}
.value-card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--teal-100); }
.value-card__icon svg { width: 23px; height: 23px; fill: none; stroke: var(--teal-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value-card p { font-size: .92rem; }

/* ====================================================
   BENEFICIOS — versión simple (inicio)
   ==================================================== */
.benefits { background: var(--bg-soft); }
.benefits__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.benefits__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.benefits__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); font-size: 1rem; }
.benefits__list svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%;
  background: var(--teal-100); fill: none; stroke: var(--teal-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.benefits__cta { margin-top: 30px; }

/* ====================================================
   BENEFICIOS — versión detallada con imágenes (beneficios.html)
   ==================================================== */
.benefits-full__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.benefit-full { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .benefit-full:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .benefit-full:hover .benefit-full__media img { transform: scale(1.06); }
}
.benefit-full__media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-tint); }
.benefit-full__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.benefit-full__no { position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: .9rem;
  background: rgba(255,255,255,.92); color: var(--petrol-800); padding: 5px 12px; border-radius: 8px; }
.benefit-full__body { padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.benefit-full__body h3 { font-size: 1.2rem; }
.benefit-full__body p { font-size: .96rem; }

/* ====================================================
   CTA BAND  (título/subtítulo en 2 renglones · parallax)
   ==================================================== */
.cta-band { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.cta-band__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(7,46,56,.92), rgba(11,67,80,.78) 55%, rgba(18,140,139,.55)); }
.cta-band__inner { text-align: center; max-width: 720px; margin-inline: auto; padding-block: clamp(64px, 9vw, 118px); }
.cta-band__title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); color: #fff; max-width: 820px; margin-inline: auto; }
.cta-band__text { margin: 16px auto 30px; font-size: 1.1rem; color: rgba(255,255,255,.86); max-width: 560px; }

/* ====================================================
   PAGE HERO (subpáginas)
   ==================================================== */
.page-hero { position: relative; overflow: hidden; color: #fff; text-align: left;
  background: linear-gradient(135deg, var(--petrol-900), var(--petrol-800) 60%, var(--petrol-700));
  padding-top: calc(var(--header-h) + clamp(24px, 3.2vw, 42px)); padding-bottom: clamp(28px, 3.4vw, 46px); }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(29,183,182,.3), transparent 50%); }
.page-hero__inner { position: relative; max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.page-hero p { margin-top: 16px; color: rgba(255,255,255,.84); font-size: 1.12rem; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: .9rem; color: rgba(255,255,255,.66); }
.breadcrumb a { transition: color .2s var(--ease-out); }
.breadcrumb a:hover { color: var(--teal-400); }

/* ====================================================
   FOOTER  (con formulario de contacto · fondo oscurecido)
   ==================================================== */
.site-footer { position: relative; overflow: hidden; color: rgba(255,255,255,.76);
  background: linear-gradient(150deg, #061f27 0%, #0a3a45 52%, #072e38 100%); }
.site-footer::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 8%, rgba(29,183,182,.18), transparent 46%); pointer-events: none; }
.footer-contact { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 5vw, 72px);
  align-items: start; padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(40px, 5vw, 60px); }
.footer-contact h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.footer-contact__lead { margin-top: 14px; font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 440px; }
.footer-contact__list { margin-top: 30px; display: grid; gap: 18px; }
.footer-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.footer-contact__ic { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(29,183,182,.16); }
.footer-contact__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact__k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); font-weight: 600; }
.footer-contact__v { display: block; margin-top: 3px; font-weight: 500; color: #fff; font-size: 1rem; transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-contact__v:hover { color: var(--teal-400); } }
.footer-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.footer-map iframe { display: block; width: 100%; height: 230px; border: 0; filter: grayscale(.15) contrast(1.02); }

/* form */
.form { display: grid; gap: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 34px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 7px; }
.form__group label { font-size: .88rem; font-weight: 600; color: #fff; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.95); color: var(--ink);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.form textarea { resize: vertical; min-height: 108px; }
.form input::placeholder, .form textarea::placeholder { color: #7d8f92; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(29,183,182,.22);
}
.form input:user-invalid, .form textarea:user-invalid { border-color: #e88; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: .82rem; color: rgba(255,255,255,.6); text-align: center; }
.form__status { border-radius: var(--radius-sm); padding: 13px 16px; font-size: .95rem; font-weight: 500; }
.form__status.is-success { background: rgba(29,183,182,.18); color: #baf3f2; border: 1px solid var(--teal-500); }
.form__status.is-error { background: rgba(255,120,120,.14); color: #ffd0d0; border: 1px solid #e08a8a; }

.footer__grid { position: relative; display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px);
  padding-block: 44px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .96; }
.footer__tagline { font-size: .96rem; max-width: 360px; }
.footer__legal { margin-top: 16px; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer__title { color: #fff; font-size: 1rem; font-family: "Poppins", sans-serif; margin-bottom: 16px; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { font-size: .95rem; transition: color .2s var(--ease-out), padding-left .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--teal-400); padding-left: 5px; } }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ====================================================
   BACK TO TOP
   ==================================================== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 89;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--petrol-800); display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .2s var(--ease-out);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--teal-600); } }

/* ====================================================
   REVEAL
   ==================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1080px) {
  .services__lite { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: block; }
  .about__inner { max-width: none; }
  .mv { grid-template-columns: 1fr 1fr; }
  .values__inner { grid-template-columns: 1fr; gap: 26px; }
  .values__head { position: static; }
  .benefits__inner { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .benefits-full__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}
@media (max-width: 760px) {
  .services__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 22px; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .footer-map iframe { height: 210px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --header-h: 90px; }
  .header__logo { height: 60px; }
  /* Hero móvil: imagen vertical + degradado superior para legibilidad; espacio abajo para ver a las personas */
  .hero__bg::after { background: linear-gradient(180deg, rgba(248,252,252,.96) 0%, rgba(248,252,252,.8) 38%, rgba(248,252,252,.32) 66%, rgba(248,252,252,.08) 100%); }
  .hero__bg img { object-position: center bottom; }
  .hero__inner { padding-top: clamp(24px, 5vw, 40px); padding-bottom: clamp(470px, 128vw, 600px); }
  /* Móvil: cuerpos de texto 2px más pequeños (los títulos no cambian) */
  .hero__lead, .section__sub, .about__lead, .footer-contact__lead,
  .cta-band__text, .page-hero p { font-size: 15px; }
  p, li, .service-card__text, .svc-lite p, .mv__card p, .value-card p,
  .benefits__list li, .benefit-full__body p, .footer__tagline, .footer__links a { font-size: 14px; }
  .form__row { grid-template-columns: 1fr; }
  .services__lite, .values__grid, .benefits__list, .benefits-full__grid { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  /* Botones del banner: alineados a la izquierda, sin ocupar todo el ancho */
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 0 0 auto; width: auto; }
}
