/* =========================================================
   BIOS SANTE — Hoja de estilos principal
   Paleta: Azul médico · Verde clínico · Blanco
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary:   #0066B2;
  --blue-dark:      #003D6B;
  --blue-deeper:    #002848;
  --green-clinical: #00A859;
  --green-dark:     #007A40;
  --cyan-accent:    #00B8D4;
  --white:          #FFFFFF;
  --off-white:      #F8FAFC;
  --gray-100:       #F1F5F9;
  --gray-200:       #E2E8F0;
  --gray-400:       #94A3B8;
  --gray-500:       #64748B;
  --gray-700:       #475569;
  --text-dark:      #0F172A;
  --text-mid:       #1E293B;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:      0 20px 25px rgba(0,0,0,.10), 0 8px 10px rgba(0,0,0,.04);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --transition:     .25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--gray { background: var(--gray-100); }
.section--dark { background: var(--blue-deeper); color: var(--white); }
.section--blue { background: var(--blue-primary); color: var(--white); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-clinical);
  margin-bottom: 12px;
}

.section-label--white { color: var(--cyan-accent); }

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-700);
  max-width: 620px;
  margin-bottom: 56px;
}

.section-subtitle--white { color: rgba(255,255,255,.8); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,102,178,.35);
}

.btn-white {
  background: var(--white);
  color: var(--blue-primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green-clinical);
  color: var(--white);
  border-color: var(--green-clinical);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,168,89,.3);
}

.btn svg { flex-shrink: 0; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gray-200);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 48px;
  width: auto;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
}

.navbar__logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
}

.navbar__logo-tagline {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--gray-500);
  text-transform: uppercase;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--blue-primary);
  background: rgba(0,102,178,.07);
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__whatsapp {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--green-clinical);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.navbar__whatsapp:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.navbar__toggle span {
  display: block;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 55%, #005a9e 100%);
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,184,212,.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0,168,89,.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 80px 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,168,89,.18);
  border: 1px solid rgba(0,168,89,.4);
  color: #4ade80;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-clinical);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--cyan-accent);
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 36px;
}

.hero__stat-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--cyan-accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: transform var(--transition);
}

.hero__card:hover { transform: translateX(-6px); }

.hero__card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.hero__card-icon--blue   { background: rgba(0,184,212,.2); }
.hero__card-icon--green  { background: rgba(0,168,89,.2); }
.hero__card-icon--orange { background: rgba(251,146,60,.2); }

.hero__card-title {
  font-weight: 700;
  color: var(--white);
  font-size: .9375rem;
  margin-bottom: 4px;
}

.hero__card-text {
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

/* =============================================
   PILLARS (3 pilares)
   ============================================= */
.pillars {
  background: var(--white);
  padding: 0;
  margin-top: -1px;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  padding: 48px 40px;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}

.pillar:last-child { border-right: none; }

.pillar:hover { background: var(--gray-100); }

.pillar__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.pillar__icon--blue  { background: rgba(0,102,178,.1); }
.pillar__icon--green { background: rgba(0,168,89,.1); }
.pillar__icon--cyan  { background: rgba(0,184,212,.1); }

.pillar__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.pillar__text {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* =============================================
   SERVICES OVERVIEW (Home)
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(0,102,178,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* =============================================
   WHY US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why__feature {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.why__feature:hover {
  background: rgba(255,255,255,.1);
  transform: translateX(6px);
}

.why__feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0,184,212,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.why__feature-title {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  font-size: .9375rem;
}

.why__feature-text {
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.why__visual {
  position: relative;
}

.why__big-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.why__big-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--cyan-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.why__big-stat-label {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

.why__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.why__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,168,89,.15);
  border: 1px solid rgba(0,168,89,.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.why__badge-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-clinical);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
  color: var(--white);
}

.why__badge-text {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

/* =============================================
   INFRASTRUCTURE STRIP
   ============================================= */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.infra-item {
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
  transition: background var(--transition);
}

.infra-item:hover { background: var(--gray-100); }

.infra-item__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.infra-item__title {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: .9375rem;
  margin-bottom: 6px;
}

.infra-item__text {
  font-size: .8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* =============================================
   CERTIFICATIONS BADGE
   ============================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.cert-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.cert-card__seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,102,178,.35);
}

.cert-card__seal--green {
  background: linear-gradient(135deg, var(--green-clinical), var(--green-dark));
  box-shadow: 0 6px 20px rgba(0,168,89,.3);
}

.cert-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.cert-card__text {
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0,102,178,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: .9375rem;
}

.contact-info__sub {
  font-size: .84rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-xl);
}

.form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-mid);
}

.form-label span { color: var(--blue-primary); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: all var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,102,178,.12);
}

.form-input.error,
.form-textarea.error { border-color: #ef4444; }

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 28px;
  letter-spacing: .02em;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,102,178,.35);
}

.form-submit:active { transform: translateY(0); }

.form-notice {
  font-size: .78rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Alert messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: flex; align-items: center; gap: 10px; }
.alert--success { background: rgba(0,168,89,.1); border: 1px solid rgba(0,168,89,.3); color: var(--green-dark); }
.alert--error   { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: #b91c1c; }

/* Honeypot */
.hp-field { display: none !important; visibility: hidden; }

/* =============================================
   MAP
   ============================================= */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   SCHEDULE STRIP
   ============================================= */
.schedule-strip {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  padding: 48px 0;
}

.schedule-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.schedule-item {
  text-align: center;
}

.schedule-item__days {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-accent);
  margin-bottom: 4px;
}

.schedule-item__hours {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.schedule-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.2);
}

/* =============================================
   TEAM / NOSOTROS
   ============================================= */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-primary), var(--cyan-accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(0,102,178,.12);
}

.timeline-item__year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-item__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.timeline-item__text {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.value-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card__text {
  font-size: .84rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Mission/Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mv-card {
  padding: 40px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--blue-primary);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.mv-card--vision { border-color: var(--green-clinical); }

.mv-card__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.mv-card--vision .mv-card__label { color: var(--green-clinical); }

.mv-card__text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.75;
  font-style: italic;
}

/* =============================================
   SERVICES DETAIL PAGE
   ============================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child { border-bottom: none; }

.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.service-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.service-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-step__title {
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.service-step__text {
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.service-visual-box {
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-dark));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-visual-box__emoji {
  font-size: 4rem;
  margin-bottom: 8px;
}

.service-visual-box__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.service-visual-box__text {
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  font-size: .9375rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(0,184,212,.18);
  color: var(--cyan-accent);
  border: 1px solid rgba(0,184,212,.3);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* =============================================
   CERTIFICATIONS PAGE
   ============================================= */
.norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.norm-table th {
  background: var(--blue-dark);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}

.norm-table tr:nth-child(even) { background: var(--gray-100); }

.norm-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: top;
}

.norm-table td:first-child {
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-accent);
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--blue-deeper);
  color: rgba(255,255,255,.85);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.footer__brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand-text {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--blue-primary);
  transform: translateY(-2px);
}

.footer__col-title {
  font-weight: 700;
  color: var(--white);
  font-size: .9375rem;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--cyan-accent); }

.footer__contact-item {
  margin-bottom: 14px;
}


.footer__contact-text {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

.footer__contact-text a:hover { color: var(--cyan-accent); }

.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer__legal a:hover { color: rgba(255,255,255,.8); }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-float__tooltip {
  background: var(--white);
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
  pointer-events: none;
}

.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: all var(--transition);
  color: var(--white);
  font-size: 1.75rem;
}

.wa-float__btn:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37,211,102,.55);
}

/* Pulse ring */
.wa-float__btn::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37,211,102,.4);
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* =============================================
   PAGE TRANSITIONS / ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp .65s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: .05s; }
.animate-in:nth-child(2) { animation-delay: .15s; }
.animate-in:nth-child(3) { animation-delay: .25s; }
.animate-in:nth-child(4) { animation-delay: .35s; }
.animate-in:nth-child(5) { animation-delay: .45s; }

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero__inner       { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .hero__visual      { display: none; }
  .why-grid          { grid-template-columns: 1fr; }
  .why__visual       { display: none; }
  .footer__grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .service-detail    { grid-template-columns: 1fr; gap: 36px; }
  .service-detail--reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .navbar__menu,
  .navbar__cta  { display: none; }

  .navbar__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 32px;
    box-shadow: var(--shadow-xl);
    gap: 4px;
    border-top: 1px solid var(--gray-200);
  }

  .navbar__cta.open {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    z-index: 999;
    gap: 10px;
  }

  .navbar__toggle { display: flex; }

  .pillars__grid    { grid-template-columns: 1fr; }
  .pillar           { border-right: none; }
  .contact-grid     { grid-template-columns: 1fr; }
  .form-card        { padding: 32px 24px; }
  .form-row         { grid-template-columns: 1fr; }
  .mv-grid          { grid-template-columns: 1fr; }
  .hero__stats      { gap: 24px; flex-wrap: wrap; }
  .footer__grid     { grid-template-columns: 1fr; }
  .footer__bottom   { flex-direction: column; text-align: center; }
  .schedule-grid    { gap: 32px; }
  .schedule-divider { width: 60px; height: 1px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cert-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   HERO BACKGROUND IMAGE
   ============================================= */
.hero--bg {
  position: relative;
}

.hero--bg .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .18;
  mix-blend-mode: luminosity;
  pointer-events: none;
  will-change: transform;
}

/* =============================================
   IMAGE CARDS / PHOTO GRID
   ============================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,29,61,.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.photo-card:hover .photo-card__overlay { opacity: 1; }

.photo-card__label {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
}

.photo-card--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* =============================================
   FEATURE IMAGE SPLIT
   ============================================= */
.img-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.img-split--reverse { direction: rtl; }
.img-split--reverse > * { direction: ltr; }

.img-split__visual {
  position: relative;
}

.img-split__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: block;
  object-fit: cover;
  height: 420px;
  transition: transform .5s ease, box-shadow .5s ease;
}

.img-split__img:hover {
  transform: scale(1.02);
  box-shadow: 0 28px 48px rgba(0,0,0,.18);
}

/* Floating badge on image */
.img-split__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  z-index: 2;
}

.img-split__badge-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.img-split__badge-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
}

.img-split__badge-label {
  font-size: .78rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* =============================================
   INFRASTRUCTURE GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-200);
}

.gallery-item--main {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  will-change: transform;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,29,61,.8), transparent);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder when image not available */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-dark));
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  text-align: center;
  padding: 20px;
}

.gallery-placeholder__icon { font-size: 2.5rem; opacity: .6; }
.gallery-placeholder__text { font-weight: 500; line-height: 1.5; }

/* =============================================
   NOSOTROS IMAGE SECTION
   ============================================= */
.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 480px;
  display: block;
  box-shadow: var(--shadow-xl);
}

.about-img-years {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-img-years__num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.about-img-years__label {
  font-size: .65rem;
  font-weight: 600;
  text-align: center;
  opacity: .9;
  letter-spacing: .04em;
}

/* =============================================
   LIGHTWEIGHT EFFECTS (no performance impact)
   ============================================= */

/* Gradient border animation on feature cards */
@keyframes border-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shimmer loading effect for images */
.img-shimmer {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Subtle float animation for accent elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Glow pulse for CTA buttons */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,102,178,0); }
  50%       { box-shadow: 0 0 20px 6px rgba(0,102,178,.25); }
}

.btn-primary:focus-visible,
.btn-primary.glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Typed cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.cursor-blink::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--cyan-accent);
}

/* Image reveal overlay */
.img-reveal-wrap {
  position: relative;
  overflow: hidden;
}

.img-reveal-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-primary);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform .8s cubic-bezier(.77,0,.18,1);
  z-index: 1;
}

.img-reveal-wrap.revealed::after {
  transform: scaleX(0);
}

/* Highlight underline on section labels */
.section-label {
  position: relative;
  display: inline-block;
}

/* Stats counter up effect style */
.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-primary);
}

.stat-card__value {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: .875rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 72px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan-accent), var(--green-clinical));
  width: 0%;
  z-index: 1001;
  transition: width .1s linear;
}

/* =============================================
   RESPONSIVE — IMAGES
   ============================================= */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item--main { grid-row: auto; }
  .img-split { grid-template-columns: 1fr; gap: 40px; }
  .img-split--reverse { direction: ltr; }
  .img-split__img { height: 300px; }
  .img-split__badge { bottom: -14px; right: 14px; }
}

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-card--tall { grid-row: auto; }
  .about-img-wrap img { height: 300px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 220px; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* =============================================
   MOTION — gallery stagger entrance
   ============================================= */
.gallery-item {
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .5s ease, transform .5s ease;
}

.gallery-item--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =============================================
   MOTION — tilt card base
   ============================================= */
.service-card,
.cert-card,
.hero__card,
.pillar,
.infra-item {
  transform-style: preserve-3d;
}

/* =============================================
   MOTION — magnetic button smoothing
   ============================================= */
.btn-primary,
.btn-white,
.btn-green {
  transition: transform .2s cubic-bezier(.4,0,.2,1),
              background var(--transition),
              box-shadow var(--transition),
              color var(--transition);
}

/* =============================================
   MOTION — typewriter cursor blink
   ============================================= */
.hero__title em {
  border-right: 2px solid var(--cyan-accent);
  padding-right: 3px;
  animation: blink-cursor .75s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--cyan-accent); }
  50%       { border-color: transparent; }
}

/* =============================================
   MOTION — hero grid background pan
   ============================================= */
@keyframes grid-pan {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero::after {
  animation: grid-pan 8s linear infinite;
}

/* =============================================
   MOTION — page-hero subtle zoom
   ============================================= */
.page-hero {
  overflow: hidden;
}

/* =============================================
   MOTION — photo card glow on hover
   ============================================= */
.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 2px var(--blue-primary);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.photo-card:hover::after {
  opacity: 1;
}

/* =============================================
   MOTION — hero badge pulse ring
   ============================================= */
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,168,89,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(0,168,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,168,89,0); }
}

.hero__badge-dot {
  animation: pulse-dot 2s ease-in-out infinite, ring-pulse 2.5s ease-out infinite;
}

/* =============================================
   MOTION — navbar link underline slide
   ============================================= */
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--blue-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: scaleX(1);
}

/* =============================================
   MOTION — why feature slide
   ============================================= */
.why__feature {
  cursor: default;
}

/* =============================================
   MOTION — cert-card seal rotate on hover
   ============================================= */
.cert-card:hover .cert-card__seal {
  transform: rotate(8deg) scale(1.1);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

/* =============================================
   MOTION — service-card icon bounce
   ============================================= */
.service-card:hover .service-card__icon {
  animation: icon-bounce .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes icon-bounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3) rotate(-5deg); }
  100% { transform: scale(1); }
}

/* =============================================
   MOTION — infra-item icon spin on hover
   ============================================= */
.infra-item:hover .infra-item__icon {
  display: inline-block;
  animation: icon-spin .5s ease;
}

@keyframes icon-spin {
  0%   { transform: rotate(0deg)  scale(1); }
  50%  { transform: rotate(15deg) scale(1.2); }
  100% { transform: rotate(0deg)  scale(1); }
}

/* =============================================
   MOTION — wa-float entrance + pulse
   ============================================= */
.wa-float__btn {
  animation: wa-entrance .6s cubic-bezier(.34,1.56,.64,1) forwards,
             wa-pulse 3s ease-in-out 2s infinite;
}

@keyframes wa-entrance {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.4); }
  50%       { box-shadow: 0 8px 32px rgba(37,211,102,.7); }
}

/* =============================================
   MOTION — scroll progress gradient animation
   ============================================= */
@keyframes progress-glow {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

.scroll-progress {
  animation: progress-glow 2s ease-in-out infinite;
}

/* =============================================
   REDUCE MOTION — respect user prefs
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg-img { transform: none !important; }
}
