/* ============================================================
   Corporativo Cosetl Rivera — Stylesheet
   ============================================================ */

/* ---- Variables ---- */
:root {
  --blue-900: #013770;
  --blue-700: #054BA6;
  --blue-600: #035AA6;
  --blue-50:  #EAF2FB;
  --green-500: #ABD904;
  --green-400: #BFD962;
  --green-700: #7FA303;
  --gray-50:  #F8F9FB;
  --gray-100: #F2F2F2;
  --gray-200: #E5E7EB;
  --gray-300: #CBD2DA;
  --gray-500: #6B7280;
  --gray-700: #2F3742;
  --ink:      #1A1F2B;
  --white:    #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(15,30,60,.06);
  --shadow-md: 0 8px 24px rgba(15,30,60,.08);
  --shadow-lg: 0 18px 48px rgba(15,30,60,.12);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --container: 1240px;
  --container-narrow: 1080px;

  --ff-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---- Type ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
.eyebrow {
  font-family: var(--ff-head);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--green-500); }
.section-title {
  margin-bottom: 14px;
  text-wrap: pretty;
}
.section-lede {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
}
.center-head { text-align: center; margin-bottom: 56px; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: var(--container-narrow); }
section { padding: 96px 0; position: relative; }
section.tight { padding: 72px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green-500);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(171,217,4,.35);
}
.btn-primary:hover { background: var(--green-700); color: var(--white); box-shadow: 0 10px 24px rgba(171,217,4,.45); }
.btn-header-cta { padding-left: 46px; padding-right: 46px; }
.btn-secondary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-secondary:hover { background: var(--blue-900); }
.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: var(--white); color: var(--blue-700); }
.btn-outline-blue {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: transparent;
}
.btn-outline-blue:hover { background: var(--blue-700); color: var(--white); }
.btn-link {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--blue-700);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s ease, color .2s ease;
}
.btn-link:hover { gap: 14px; color: var(--green-700); }

/* ---- Top utility bar ---- */
.topbar {
  background: var(--blue-700);
  color: var(--white);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.92); transition: color .15s; }
.topbar a:hover { color: var(--green-500); }
.topbar-info { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social .label { font-weight: 600; opacity: .85; margin-right: 4px; }
.topbar-social a {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.topbar-social a:hover { background: var(--green-500); color: var(--ink); }

/* ---- Header ---- */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 56px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav a:hover, .nav a.active { color: var(--blue-700); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--green-500); border-radius: 2px;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  background: var(--blue-700); color: var(--white);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(1,26,68,.92) 0%, rgba(3,90,166,.78) 55%, rgba(3,90,166,.4) 100%),
    url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 0 200px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 90% 20%, rgba(171,217,4,.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .eyebrow.on-dark { margin-bottom: 18px; }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(1,26,68,.4));
}

/* Hero stats badge */
.hero-badge {
  position: absolute;
  bottom: 30px; left: 30px;
  background: var(--green-500);
  color: var(--ink);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-family: var(--ff-head);
  z-index: 3;
}
.hero-badge strong { display: block; font-size: 1.7rem; line-height: 1; }
.hero-badge span { font-size: .82rem; font-weight: 600; }

/* ---- Value props (overlapping hero) ---- */
.value-props {
  margin-top: -120px;
  position: relative;
  z-index: 5;
  padding: 0 0 96px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.value-card {
  padding: 36px 28px;
  border-right: 1px solid var(--gray-100);
  position: relative;
  transition: background .25s ease, color .25s ease;
}
.value-card:last-child { border-right: none; }
.value-card .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: background .25s ease, color .25s ease;
}
.value-card .icon svg { width: 28px; height: 28px; }
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { color: var(--gray-500); font-size: .95rem; }
.value-card.feature { background: var(--blue-700); color: rgba(255,255,255,.88); }
.value-card.feature h3 { color: var(--white); }
.value-card.feature .icon { background: rgba(255,255,255,.16); color: var(--green-500); }
.value-card:hover { background: var(--gray-50); }
.value-card.feature:hover { background: var(--blue-900); }

/* ---- Quiénes somos / who-we-are ---- */
.who {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: start;
}
.who-text h2 { margin-bottom: 20px; text-wrap: pretty; }
.who-text p { margin-bottom: 16px; color: var(--gray-500); }
.who-points {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.who-points li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0;
}
.who-points li svg {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--green-500);
  margin-top: 3px;
}
.who-points li strong { color: var(--ink); }
.who-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 180px;
  gap: 14px;
}
.who-collage > div {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-200);
}
.who-collage > div:first-child {
  grid-row: span 2;
  height: 100%;
}
.who-collage img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Mision/Vision/Valores ---- */
.mvv {
  background: var(--gray-100);
}
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.mvv-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue-700);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mvv-card:nth-child(2) { border-top-color: var(--green-500); }
.mvv-card:nth-child(3) { border-top-color: var(--blue-600); }
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mvv-card .icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 50%;
  margin-bottom: 22px;
}
.mvv-card:nth-child(2) .icon { background: rgba(171,217,4,.18); color: var(--green-700); }
.mvv-card .icon svg { width: 32px; height: 32px; }
.mvv-card h3 { margin-bottom: 14px; font-size: 1.35rem; }
.mvv-card p { color: var(--gray-500); }
.mvv-card ul { margin-top: 8px; }
.mvv-card ul li {
  padding: 6px 0;
  display: flex;
  gap: 10px;
  font-size: .95rem;
}
.mvv-card ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* ---- Servicios cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 4px; height: 0;
  background: var(--green-500);
  transition: height .3s ease;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-card:hover::before { height: 100%; }
.svc-card .icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 22px;
  transition: background .25s ease, transform .3s ease;
}
.svc-card:hover .icon { background: var(--green-500); color: var(--ink); transform: rotate(-4deg); }
.svc-card .icon svg { width: 30px; height: 30px; }
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { color: var(--gray-500); margin-bottom: 22px; font-size: .95rem; }

/* ---- CTA banner ---- */
.cta-banner {
  background:
    linear-gradient(120deg, rgba(1,55,112,.95) 0%, rgba(3,90,166,.88) 100%),
    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; max-width: 800px; margin-inline: auto; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ---- Stats banner ---- */
.stats-banner {
  background: var(--blue-900);
  background-image:
    linear-gradient(120deg, rgba(1,55,112,.94), rgba(3,75,166,.88)),
    url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat .num {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--green-500);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat .label {
  font-size: .92rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.18);
}

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tst-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tst-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--green-500);
  line-height: .8;
  position: absolute;
  top: 20px; right: 26px;
  opacity: .35;
}
.tst-stars { color: #f5b400; margin-bottom: 14px; letter-spacing: 2px; font-size: 1.1rem; }
.tst-card p {
  color: var(--gray-700);
  margin-bottom: 20px;
  font-style: italic;
}
.tst-meta {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
}
.tst-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid; place-items: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.tst-name { font-family: var(--ff-head); font-weight: 700; color: var(--ink); font-size: .95rem; }
.tst-role { font-size: .82rem; color: var(--gray-500); }
.tst-tag {
  margin-left: auto;
  font-family: var(--ff-head);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

/* ---- Sectores atendidos ---- */
.sectors {
  background: var(--gray-100);
  padding: 70px 0;
}
.sectors-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--gray-500);
  transition: color .2s ease;
}
.sector-item:hover { color: var(--blue-700); }
.sector-item .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--blue-700);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.sector-item .icon svg { width: 28px; height: 28px; }

/* ---- Contacto ---- */
.contact {
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--gray-500); margin-bottom: 36px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-list .icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius);
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong {
  display: block;
  font-family: var(--ff-head);
  color: var(--ink);
  font-size: .95rem;
  margin-bottom: 2px;
}
.contact-list span, .contact-list a { color: var(--gray-500); font-size: .95rem; }
.contact-list a:hover { color: var(--blue-700); }
.contact-form {
  background: var(--gray-100);
  padding: 40px;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--green-500);
}
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.contact-form .form-lede {
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: .95rem;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-family: var(--ff-head);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: .02em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(5,75,166,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.contact-form .btn { width: 100%; margin-top: 8px; }
.contact-form .form-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--gray-500);
  text-align: center;
}

/* Map */
.map-wrap {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.map-wrap iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
}

/* ---- Footer ---- */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px;
  background: var(--green-500);
  border-radius: 2px;
}
.footer-brand img {
  height: 60px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.footer-brand p { font-size: .92rem; line-height: 1.7; margin-bottom: 18px; }
.footer-social {
  display: flex; gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--white);
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--green-500); color: var(--ink); }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .93rem;
  transition: color .15s, padding-left .15s;
  display: inline-block;
}
.footer-links a:hover { color: var(--green-500); padding-left: 6px; }
.footer-contact li {
  display: flex; gap: 12px; margin-bottom: 14px;
  font-size: .93rem;
  align-items: flex-start;
}
.footer-contact svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--green-500);
  margin-top: 4px;
}
.footer-contact a:hover { color: var(--green-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--green-500); }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: #25D366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Page banner (interior pages) ---- */
.page-banner {
  background:
    linear-gradient(115deg, rgba(1,55,112,.92), rgba(3,90,166,.78)),
    url('https://images.unsplash.com/photo-1664575602554-2087b04935a5?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.breadcrumb a:hover { color: var(--green-500); }
.breadcrumb span { margin: 0 8px; }

/* ---- Service detail blocks (servicios.html) ---- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}
.svc-detail:last-child { border-bottom: none; }
.svc-detail.reverse .svc-detail-img { order: 2; }
.svc-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/4;
  position: relative;
  background: var(--gray-200);
}
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail-img .badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--green-500);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .9rem;
}
.svc-detail-text .num {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-500);
  line-height: 1;
  opacity: .8;
  margin-bottom: 8px;
  display: block;
}
.svc-detail-text h2 { margin-bottom: 18px; }
.svc-detail-text p.intro { font-size: 1.05rem; color: var(--gray-500); margin-bottom: 24px; }
.svc-detail-text h4 {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 28px 0 14px;
}
.svc-includes { display: grid; gap: 10px; margin-bottom: 26px; }
.svc-includes li {
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
}
.svc-includes svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--green-500);
  margin-top: 4px;
}
.svc-target {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 24px;
}
.svc-target strong { color: var(--blue-700); display: block; margin-bottom: 4px; font-family: var(--ff-head); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Animations ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  section { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .who { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .svc-detail { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .svc-detail.reverse .svc-detail-img { order: 0; }
}

@media (max-width: 880px) {
  .topbar .container { justify-content: center; text-align: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 24px; gap: 18px; box-shadow: var(--shadow-md); align-items: stretch; }
  .nav.open { display: flex; }
  .nav .btn { width: 100%; }
  .nav-toggle { display: inline-grid; }
  .header-cta-desktop { display: none; }
  .value-props { margin-top: -60px; padding-bottom: 70px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-card { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .value-card:nth-child(odd) { border-right: 1px solid var(--gray-100); }
  .mvv-grid, .services-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 140px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { border-right: none !important; }
  .who-collage { grid-template-rows: 200px 160px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}
