/* ═══════════════════════════════════════════════
   GSA Consultores Integrales HSEQ SAS
   styles.css — Diseño principal
   Paleta: Azul #3D74B9 · Rojo #F05B5B · Navy #0d2a52 · Gris #4A4A4A
═══════════════════════════════════════════════ */

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

:root {
  --blue:      #3D74B9;
  --blue-dark: #2d5a94;
  --blue-light:#e8f0fb;
  --navy:      #0d2a52;
  --navy-deep: #081f3f;
  --red:       #F05B5B;
  --red-dark:  #d94444;
  --white:     #FFFFFF;
  --gray:      #4A4A4A;
  --gray-light:#f5f6f8;
  --gray-mid:  #e0e4ec;
  --wa-green:  #25D366;
  --wa-dark:   #128C7E;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);

  --transition: .25s ease;
  --font:    'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;

  --container: 1240px;
  --nav-h: 76px;
  --topbar-h: 42px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── UTILITIES ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.highlight { color: var(--red); }

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--lg { padding: .9rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; border-radius: var(--radius); }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover, .btn--red:focus-visible { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(240,91,91,.4); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--white { background: var(--white); color: var(--red-dark); }
.btn--white:hover, .btn--white:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--whatsapp { background: var(--wa-green); color: var(--white); border-radius: var(--radius); }
.btn--whatsapp:hover, .btn--whatsapp:focus-visible { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,.4); }

.btn--service {
  background: transparent;
  color: var(--blue);
  border: none;
  padding: .35rem 0;
  font-size: .85rem;
  margin-top: auto;
  align-self: flex-start;
}
.btn--service:hover, .btn--service:focus-visible { color: var(--red); gap: .75rem; }

.btn .icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: currentColor; }
.btn--white svg, .btn--ghost svg { width: 1.1em; height: 1.1em; }

/* ─── BADGES ────────────────────────────────── */
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.badge--new { background: var(--red); color: var(--white); font-size: .68rem; padding: .15rem .55rem; position: absolute; top: 1rem; right: 1rem; }

/* ─── SECTION HEADER ────────────────────────── */
.section__header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 3rem; }
.section__header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gray); margin-block: .5rem .75rem; line-height: 1.2; }
.section__header p { color: #6a6a7a; font-size: 1.05rem; }

.section__header--left { text-align: left; margin-inline: 0; max-width: 560px; }
.section__rule { display: block; width: 64px; height: 4px; background: var(--red); border-radius: 4px; margin-top: 1rem; }

.section__tag {
  display: inline-block;
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section__tag--light { color: #ffb3b3; }

/* ─── SCROLL ANIMATIONS ─────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .15s; } .delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; } .delay-4 { animation-delay: .6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════ */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__contact { display: flex; align-items: center; gap: 1.5rem; }
.topbar__contact li { display: flex; align-items: center; gap: .4rem; }
.topbar__contact svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.topbar__contact a { transition: color var(--transition); }
.topbar__contact a:hover { color: var(--white); }

.topbar__social { display: flex; align-items: center; gap: .6rem; }
.topbar__social span { opacity: .7; }
.topbar__social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.topbar__social a:hover { background: var(--blue); transform: translateY(-2px); }
.topbar__social svg { width: 15px; height: 15px; fill: var(--white); }

/* ═══════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.nav__logo img { height: 50px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  font-size: .9rem; font-weight: 600; color: var(--gray);
  transition: color var(--transition); padding: .25rem 0;
  display: inline-flex; align-items: center; gap: .25rem;
  position: relative; background: none;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red); transition: width var(--transition);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--blue); }
.nav__link:hover::after { width: 100%; }

.nav__caret { width: 11px; height: 7px; transition: transform var(--transition); }

/* Dropdown */
.nav__has-dropdown { position: relative; }
.nav__submenu {
  position: absolute; top: calc(100% + 14px); left: 0;
  min-width: 250px; background: var(--white);
  border: 1px solid var(--gray-mid); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav__has-dropdown:hover .nav__submenu,
.nav__has-dropdown.open .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__has-dropdown:hover .nav__caret,
.nav__has-dropdown.open .nav__caret { transform: rotate(180deg); }
.nav__submenu a {
  display: block; padding: .55rem .8rem; font-size: .875rem;
  border-radius: var(--radius-sm); color: var(--gray); transition: background var(--transition), color var(--transition);
}
.nav__submenu a:hover { background: var(--blue-light); color: var(--blue); }

.nav__cta { color: var(--white); }
.nav__cta::after { display: none; }

/* Hamburger */
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: .4rem; border-radius: var(--radius-sm); }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--gray); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

/* Imagen a la derecha */
.hero__image {
  position: absolute;
  inset: 0 0 0 42%;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(13,42,82,.7) 30%, rgba(13,42,82,.15) 100%);
}

.hero__content { position: relative; z-index: 2; padding-block: 3.5rem; }
.hero__text { max-width: 600px; }

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.5px;
  text-transform: uppercase;
}
.hero__rule { display: block; width: 70px; height: 4px; background: var(--red); border-radius: 4px; margin: 1.5rem 0; }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.12rem); color: rgba(255,255,255,.88); margin-bottom: 2rem; max-width: 480px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Pilares verticales a la derecha */
.hero__pillars {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 1.5rem;
}
.hero__pillars li {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: var(--white); text-align: center; font-size: .68rem; font-weight: 600;
  line-height: 1.2; text-transform: uppercase; letter-spacing: .5px;
}
.hero__pillars svg {
  width: 34px; height: 34px;
  padding: 7px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════════════
   SERVICES GRID
═══════════════════════════════════════════════ */
.services { background: var(--white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--gray-mid);
  display: flex; flex-direction: column; gap: .35rem;
  text-align: center; align-items: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--blue); }
.service-card--featured { border-color: var(--blue); background: linear-gradient(160deg, #fff 78%, var(--blue-light)); }

.service-card__icon { width: 56px; height: 56px; margin-bottom: .4rem; }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.02rem; color: var(--navy); line-height: 1.25; }
.service-card__sub { font-size: .78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; margin-top: -.15rem; }
.service-card p:not(.service-card__sub) { font-size: .85rem; color: #6a6a7a; line-height: 1.5; flex: 1; margin-block: .4rem; }

/* ═══════════════════════════════════════════════
   STATS BAND + CTA
═══════════════════════════════════════════════ */
.stats { background: var(--white); padding-block: 0 4rem; }
.stats__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: -2.5rem;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 2.5rem 2rem;
}
.stats__item { color: rgba(255,255,255,.85); text-align: left; }
.stats__icon { width: 30px; height: 30px; margin-bottom: .6rem; color: var(--red); }
.stats__icon svg { width: 100%; height: 100%; }
.stats__num {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 800; color: var(--white);
  line-height: 1.1; margin-bottom: .35rem;
}
.stats__item dd { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.4; }

.stats__cta {
  background: var(--red);
  padding: 2.5rem 2.25rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  max-width: 340px;
}
.stats__cta h3 { font-size: 1.3rem; font-weight: 800; color: var(--white); line-height: 1.25; }
.stats__cta .btn svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════
   DIAGNÓSTICO 360°
═══════════════════════════════════════════════ */
.diag { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue) 100%); color: var(--white); }
.diag__inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.diag__text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-block: .5rem 1rem; line-height: 1.2; }
.diag__lead { font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
.diag__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
.diag__columns h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; opacity: .7; margin-bottom: .75rem; }
.diag__list { display: flex; flex-direction: column; gap: .4rem; }
.diag__list li { font-size: .9rem; padding-left: 1.2rem; position: relative; color: rgba(255,255,255,.9); }
.diag__list li::before { content: '✓'; position: absolute; left: 0; color: rgba(255,255,255,.6); font-size: .8rem; }
.diag__list--red li::before { color: #ffaaaa; }
.diag__delivery { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }
.diag__delivery svg { width: 20px; height: 20px; flex-shrink: 0; stroke: rgba(255,255,255,.7); fill: none; }

.diag__visual { display: flex; align-items: center; justify-content: center; min-width: 260px; }
.diag__ring { position: relative; width: 220px; height: 220px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diag__ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 3px solid rgba(240,91,91,.4); }
.diag__ring-label { font-size: 2.5rem; font-weight: 900; color: var(--white); letter-spacing: -2px; z-index: 1; }
.diag__ring-items { position: absolute; inset: -20px; border-radius: 50%; }
.diag__ring-items span { position: absolute; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .5px; width: max-content; }
.diag__ring-items span:nth-child(1) { top: -8px; left: 50%; transform: translateX(-50%); }
.diag__ring-items span:nth-child(2) { top: 22px; right: -10px; }
.diag__ring-items span:nth-child(3) { top: 88px; right: -28px; }
.diag__ring-items span:nth-child(4) { bottom: 22px; right: -2px; }
.diag__ring-items span:nth-child(5) { bottom: -8px; left: 50%; transform: translateX(-50%); }
.diag__ring-items span:nth-child(6) { bottom: 22px; left: -12px; }
.diag__ring-items span:nth-child(7) { top: 88px; left: -22px; }

/* ═══════════════════════════════════════════════
   ABOUT (Nosotros con imagen)
═══════════════════════════════════════════════ */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media::before { content: ''; position: absolute; inset: -14px -14px 14px 14px; border: 2px solid var(--blue-light); border-radius: var(--radius-lg); z-index: -1; }
.about__badge-float { position: absolute; right: -18px; bottom: 28px; background: var(--white); padding: 1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--red); text-align: center; }
.about__badge-float strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--blue); line-height: 1; }
.about__badge-float span { font-size: .72rem; color: #6a6a7a; }
.about__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); margin-block: .5rem 1rem; line-height: 1.2; }
.about__lead { font-size: 1.05rem; color: var(--gray); margin-bottom: 1rem; }
.about__text p { color: #6a6a7a; margin-bottom: 1rem; }
.about__list { display: flex; flex-direction: column; gap: .65rem; margin: 1.5rem 0 2rem; }
.about__list li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; font-weight: 500; color: var(--gray); }
.about__list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--wa-green); background: #e7f9ee; border-radius: 50%; padding: 3px; }

/* ═══════════════════════════════════════════════
   WHY CHOOSE US
═══════════════════════════════════════════════ */
.why { background: var(--gray-light); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.why__card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-mid); transition: box-shadow var(--transition), transform var(--transition); }
.why__card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why__icon { width: 60px; height: 60px; margin-inline: auto; margin-bottom: 1rem; }
.why__icon svg { width: 100%; height: 100%; }
.why__card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }
.why__card p { font-size: .875rem; color: #6a6a7a; }

.certs { text-align: center; }
.certs__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--navy); }
.certs__grid { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: center; }
.cert-badge { padding: .4rem 1rem; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--blue-light); color: var(--blue); border: 1.5px solid rgba(61,116,185,.25); transition: background var(--transition), color var(--transition); }
.cert-badge:hover { background: var(--blue); color: var(--white); }
.cert-badge--red { background: #fde8e8; color: var(--red-dark); border-color: rgba(240,91,91,.25); }
.cert-badge--red:hover { background: var(--red); color: var(--white); }

/* ═══════════════════════════════════════════════
   CASES
═══════════════════════════════════════════════ */
.cases { background: var(--white); }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.case-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); transition: box-shadow var(--transition), transform var(--transition); }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-card__sector { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 99px; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.case-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: .6rem; line-height: 1.3; }
.case-card p { font-size: .875rem; color: #6a6a7a; margin-bottom: 1rem; }
.case-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.case-card__tags li { font-size: .75rem; padding: .15rem .6rem; border-radius: 99px; background: var(--gray-mid); color: var(--gray); }

/* ═══════════════════════════════════════════════
   APPOINTMENT / FORM
═══════════════════════════════════════════════ */
.appointment { background: var(--gray-light); }
.appointment__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.appointment__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-block: .5rem 1rem; line-height: 1.2; }
.appointment__text p { color: #6a6a7a; margin-bottom: 1.5rem; }
.appointment__contact { display: flex; flex-direction: column; gap: .75rem; }
.appointment__link { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--blue); font-weight: 500; transition: color var(--transition); }
.appointment__link svg { width: 18px; height: 18px; flex-shrink: 0; fill: var(--blue); }
.appointment__link:hover { color: var(--blue-dark); }

.appointment__form { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--gray-mid); box-shadow: var(--shadow-sm); }
.form__group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form__group label { font-size: .875rem; font-weight: 600; color: var(--gray); }
.form__group label span { color: var(--red); }
.form__group input, .form__group select, .form__group textarea {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm); font: inherit; font-size: .9rem; color: var(--gray);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%234A4A4A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 14px; padding-right: 2.5rem; cursor: pointer;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,116,185,.18); }
.form__group textarea { resize: vertical; min-height: 80px; }
.form__note { text-align: center; font-size: .78rem; color: #8a8aa0; margin-top: .75rem; line-height: 1.4; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { margin-bottom: 1rem; height: 54px; width: auto; }
.footer__brand p { font-size: .875rem; margin-bottom: .75rem; opacity: .75; }
.footer__address { font-style: normal; font-size: .8rem; opacity: .6; line-height: 1.6; }
.footer__nav h4, .footer__contact h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 1rem; opacity: .9; }
.footer__nav ul, .footer__contact ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a, .footer__contact a { font-size: .875rem; opacity: .7; display: flex; align-items: center; gap: .5rem; transition: opacity var(--transition); }
.footer__nav a:hover, .footer__contact a:hover { opacity: 1; }
.footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.footer__hours { margin-top: 1rem; font-size: .78rem; opacity: .5; }
.footer__bottom { padding-block: 1.25rem; text-align: center; }
.footer__bottom p { font-size: .78rem; opacity: .45; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════════════ */
.wa-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.55);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.5s infinite;
}
.wa-fab svg { width: 30px; height: 30px; fill: var(--white); }
.wa-fab:hover, .wa-fab:focus-visible { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.7); animation: none; }
.wa-fab__tooltip { position: absolute; right: 68px; background: var(--gray); color: var(--white); font-size: .78rem; font-weight: 600; white-space: nowrap; padding: .35rem .75rem; border-radius: var(--radius-sm); pointer-events: none; opacity: 0; transition: opacity var(--transition); }
.wa-fab__tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-width: 0; border-left-color: var(--gray); }
.wa-fab:hover .wa-fab__tooltip { opacity: 1; }
@keyframes pulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.55); } 50% { box-shadow: 0 4px 36px rgba(37,211,102,.85); } }

/* ═══════════════════════════════════════════════
   TEAM CARDS (perfiles individuales)
═══════════════════════════════════════════════ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__photo {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue-light);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .4rem;
}
.team-card__info p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: .85rem;
}
.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.team-card__tags span {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 100px;
  background: var(--blue-light);
  color: var(--blue-dark);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════
   AI SECTION
═══════════════════════════════════════════════ */
.ai-section {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}
.ai-section .section__tag { background: rgba(255,255,255,.12); color: var(--white); }
.ai-section h2 { color: var(--white); }
.ai-section p, .ai-section .about__lead { color: rgba(255,255,255,.85); }
.ai-section .about__list li { color: rgba(255,255,255,.9); }
.ai-section .about__list svg path { fill: var(--red); }
.ai-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ai-section__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,.45);
}
.ai-section__img-wrap img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  filter: brightness(.85) saturate(1.1);
}
.ai-section__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(61,116,185,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
}
.ai-section__badge div { display: flex; flex-direction: column; }
.ai-section__badge strong { font-size: 1rem; font-family: var(--font-display); }
.ai-section__badge span { font-size: .78rem; opacity: .8; }

/* ═══════════════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════════════ */
.testimonials { background: var(--gray-light); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testi-card__stars { color: #f5a623; font-size: 1.1rem; letter-spacing: .1em; }
.testi-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray);
  font-style: italic;
  flex: 1;
}
.testi-card footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--gray-light);
  padding-top: 1rem;
}
.testi-card__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-card__name {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
}
.testi-card__role {
  display: block;
  font-size: .8rem;
  color: var(--gray);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .topbar__email { display: none; }
  .hero__pillars { display: none; }
  .hero__image { inset: 0 0 0 35%; }
  .stats__inner { grid-template-columns: 1fr; }
  .stats__cta { max-width: none; }
  .diag__inner { grid-template-columns: 1fr; }
  .diag__visual { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__media { max-width: 480px; margin-inline: auto; }
  .ai-section__inner { grid-template-columns: 1fr; gap: 3rem; }
  .ai-section__visual { order: -1; }
  .ai-section__img-wrap img { height: 380px; }
  .appointment__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Topbar compacto */
  .topbar { height: auto; padding-block: .4rem; font-size: .75rem; }
  .topbar__inner { flex-direction: column; gap: .35rem; }

  /* Nav mobile */
  .nav__hamburger { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--white);
    flex-direction: column; justify-content: flex-start; padding: 1.5rem; gap: .25rem;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { font-size: 1.05rem; padding: .75rem 0; width: 100%; border-bottom: 1px solid var(--gray-light); }
  .nav__has-dropdown { width: 100%; }
  .nav__submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav__has-dropdown.open .nav__submenu { display: block; }
  .nav__cta-wrap { width: 100%; margin-top: .5rem; }
  .nav__cta { width: 100%; justify-content: center; }

  /* Hero: imagen de fondo completa */
  .hero { min-height: auto; }
  .hero__image { inset: 0; }
  .hero__image::after { background: linear-gradient(180deg, rgba(13,42,82,.92), rgba(13,42,82,.82)); }
  .hero__content { padding-block: 3rem; text-align: center; }
  .hero__text { margin-inline: auto; }
  .hero__rule { margin-inline: auto; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Stats: 1 col */
  .stats { padding-bottom: 3rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; padding: 2rem 1.5rem; }
  .stats__cta { padding: 2rem 1.5rem; text-align: center; align-items: center; }

  /* Grids */
  .services__grid, .why__grid, .cases__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .team-card__tags { justify-content: center; }
  .ai-section__img-wrap img { height: 280px; }
  .diag__columns { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  .section { padding-block: 3.5rem; }
  .appointment__form { padding: 1.25rem; }
  .about__badge-float { right: 12px; bottom: 12px; padding: .75rem 1rem; }
  .about__badge-float strong { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .wa-fab { animation: none; }
}
