/* ====================================================
   HS Prevención Integral — Landing Page Styles
   ==================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --primary:        #0D2B4E;
  --primary-light:  #1A4A7A;
  --primary-dark:   #071A30;
  --accent:         #F59E0B;
  --accent-dark:    #D97706;
  --accent-light:   #FEF3C7;
  --surface:        #F0F4F8;
  --dark:           #0A1929;
  --text:           #1E293B;
  --text-light:     #475569;
  --muted:          #94A3B8;
  --white:          #FFFFFF;
  --border:         #E2E8F0;

  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,.05);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.1),  0 8px 10px -6px rgba(0,0,0,.05);

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: all 0.5s cubic-bezier(.4,0,.2,1);

  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --container:  1200px;
  --nav-height: 72px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--surface); }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.45);
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,43,78,.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,43,78,.4);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 1px 20px rgba(0,0,0,.1);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 50px !important; width: auto !important; transition: var(--transition); }

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-link { color: var(--text); }

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(13,43,78,.06);
}

.nav-link.nav-cta {
  background: var(--accent);
  color: var(--primary-dark) !important;
  font-weight: 600;
  padding: 9px 20px;
}
.nav-link.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--white);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle { color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 14s ease-out forwards;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,26,48,.88) 0%,
    rgba(13,43,78,.75) 60%,
    rgba(13,43,78,.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .7s .3s ease both;
}

.accent-text {
  color: var(--accent);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .7s .45s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .7s .6s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  animation: bounce 2s ease infinite;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--accent); }

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--primary);
  padding: 32px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 16px 24px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image { position: relative; }

.img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.img-wrapper:hover img { transform: scale(1.04); }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.about-badge i { font-size: 1.8rem; }
.about-badge strong { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 0.8rem; font-weight: 500; }

.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-body {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

.about-features { display: flex; flex-direction: column; gap: 12px; }

.feature-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-check {
  color: var(--accent-dark);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-row span:last-child {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transition: transform .3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.service-icon-wrap i {
  font-size: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---------- MISIÓN / VISIÓN / VALORES (Tab layout) ---------- */
.mvv-section {
  background: var(--surface);
  padding: 80px 0;
}

.mvv-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 300px;
}

.mvv-tabs-col {
  background: var(--primary);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mvv-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-left: 4px;
}

.mvv-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: left;
  width: 100%;
}

.mvv-tab-btn:hover { background: rgba(255,255,255,.08); color: var(--white); }

.mvv-tab-btn.active {
  background: rgba(245,158,11,.15);
  color: var(--accent);
  font-weight: 600;
}

.tab-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: var(--transition);
}

.mvv-tab-btn.active .tab-icon { background: rgba(245,158,11,.2); }

.tab-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.mvv-tab-btn.active .tab-arrow,
.mvv-tab-btn:hover .tab-arrow { opacity: 1; transform: translateX(0); }

.mvv-panels-col {
  background: var(--white);
  padding: 40px 44px;
}

.mvv-panel { display: none; animation: fadePanel .25s ease; }
.mvv-panel.active { display: block; }

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mvv-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.mvv-panel > p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 560px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.value-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: var(--transition);
}

.value-chip:hover { background: var(--accent-light); }

.value-chip-icon {
  width: 28px; height: 28px;
  background: var(--accent-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.value-chip-icon i { font-size: 0.78rem; color: var(--accent-dark); }

.value-chip-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.value-chip-text span { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }

/* ---------- TRAINING ---------- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.training-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.training-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

.training-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.training-icon-box {
  padding: 44px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.training-icon-box i { font-size: 3.5rem; color: var(--white); }

.color-legal   { background: linear-gradient(135deg, #1E3A5F, #1D4ED8); }
.color-risks   { background: linear-gradient(135deg, #92400E, #D97706); }
.color-fire    { background: linear-gradient(135deg, #B91C1C, #DC2626); }
.color-culture { background: linear-gradient(135deg, #065F46, #059669); }
.color-brigade { background: linear-gradient(135deg, #C2410C, #EA580C); }
.color-medical { background: linear-gradient(135deg, #0369A1, #0284C7); }

.training-body { padding: 28px; }

.training-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.training-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.training-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.training-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.training-list li i {
  font-size: 0.75rem;
  color: var(--accent-dark);
  flex-shrink: 0;
}

/* ---------- QUOTE SECTION ---------- */
.quote-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(245,158,11,.06);
}

.quote-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(245,158,11,.04);
}

.quote-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quote-icon-large {
  font-size: 3rem;
  color: var(--accent);
  opacity: .5;
  margin-bottom: 24px;
  line-height: 1;
}

.quote-text {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,.95);
  line-height: 1.65;
  margin-bottom: 36px;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info { text-align: left; }
.author-info strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}
.author-info span {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}

/* ---------- CONTACT ---------- */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  text-align: center;
  min-width: 200px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-card a {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
  transition: color .2s;
}
.contact-card a:hover { color: var(--accent-dark); }

.contact-card-wa { border-color: #25D366; }
.contact-card-wa i { color: #25D366 !important; }
.contact-card-wa:hover { border-color: #25D366; box-shadow: 0 8px 24px rgba(37,211,102,.15); }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition);
}

.whatsapp-float:hover {
  background: #128C7E;
  color: var(--white);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}

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

.footer-brand img { height: 48px !important; width: auto !important; margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.87rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,.4); }

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of grids */
.services-grid .reveal:nth-child(1) { transition-delay: .05s; }
.services-grid .reveal:nth-child(2) { transition-delay: .10s; }
.services-grid .reveal:nth-child(3) { transition-delay: .15s; }
.services-grid .reveal:nth-child(4) { transition-delay: .20s; }
.services-grid .reveal:nth-child(5) { transition-delay: .25s; }
.services-grid .reveal:nth-child(6) { transition-delay: .30s; }

.training-grid .reveal:nth-child(1) { transition-delay: .05s; }
.training-grid .reveal:nth-child(2) { transition-delay: .15s; }
.training-grid .reveal:nth-child(3) { transition-delay: .25s; }

/* ---------- KEYFRAMES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

/* ---------- Tablet ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .about-grid        { grid-template-columns: 1fr; gap: 48px; }
  .about-image       { max-width: 520px; margin: 0 auto; }
  .about-badge       { right: 0; }

  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .training-grid,
  .training-grid-2   { grid-template-columns: repeat(2, 1fr); }

  .mvv-layout        { grid-template-columns: 200px 1fr; }

  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Mobile ≤ 768px ---------- */
@media (max-width: 768px) {

  /* ---- Nav burger ---- */
  .nav-toggle { display: flex; align-items: center; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 28px;
    gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    /* closed state */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.4,0,.2,1),
                opacity   .25s ease;
    z-index: 998;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    color: var(--text) !important;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(13,43,78,.07);
    color: var(--primary) !important;
  }
  .nav-link.nav-cta {
    margin-top: 6px;
    text-align: center;
    color: var(--primary-dark) !important;
  }

  /* When menu is open, give navbar a solid bg so it doesn't bleed through */
  .navbar.transparent.menu-open {
    background: var(--white);
    box-shadow: 0 1px 20px rgba(0,0,0,.1);
  }
  .navbar.transparent.menu-open .nav-link:not(.nav-cta) { color: var(--text) !important; }
  .navbar.transparent.menu-open .nav-toggle { color: var(--text); }

  /* ---- Spacing ---- */
  .section      { padding: 64px 0; }
  .container    { padding: 0 20px; }

  /* ---- Hero ---- */
  .hero-content { padding: calc(var(--nav-height) + 28px) 20px 60px; }
  .hero-title   { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { gap: 12px; }

  /* ---- Stats ---- */
  .stat-number  { font-size: 2.4rem; }
  .stat-label   { font-size: 0.8rem; }
  .stat-item    { padding: 14px 16px; }
  .stat-divider { width: 1px; height: 44px; }

  /* ---- About ---- */
  .about-grid   { grid-template-columns: 1fr; gap: 44px; }
  .about-image  { max-width: 100%; }
  .img-wrapper  { aspect-ratio: 16/9; }
  .about-badge  { right: 8px; bottom: -14px; }

  /* ---- Services ---- */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card  { padding: 26px 20px; }

  /* ---- MVV tabs ---- */
  .mvv-layout {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }
  .mvv-tabs-col {
    flex-direction: row;
    padding: 12px 16px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mvv-tabs-col::-webkit-scrollbar { display: none; }
  .mvv-kicker  { display: none; }
  .tab-arrow   { display: none; }
  .mvv-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    gap: 6px;
  }
  .tab-icon    { width: 28px; height: 28px; font-size: 0.8rem; }
  .mvv-panels-col { padding: 24px 22px; min-height: 200px; }
  .mvv-panel h3  { font-size: 1.15rem; }
  .mvv-panel > p { font-size: 0.92rem; }
  .values-grid   { grid-template-columns: 1fr; gap: 8px; }

  /* ---- Training ---- */
  .training-grid,
  .training-grid-2 { grid-template-columns: 1fr; }
  .training-icon-box { padding: 32px 24px; }

  /* ---- Quote ---- */
  .quote-section    { padding: 64px 0; }
  .quote-text       { font-size: 1.1rem; }
  .quote-author     { flex-direction: column; text-align: center; }
  .author-info      { text-align: center; }

  /* ---- Contact ---- */
  .contact-cards    { flex-direction: column; align-items: center; }
  .contact-card     { width: 100%; max-width: 340px; }

  /* ---- Footer ---- */
  .footer           { padding-top: 56px; }
  .footer-grid      { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-tagline   { max-width: 100%; }
  .footer-bottom    { text-align: center; }

  /* ---- WhatsApp float ---- */
  .whatsapp-float   { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.5rem; }
}

/* ---------- Small mobile ≤ 480px ---------- */
@media (max-width: 480px) {
  :root { --nav-height: 64px; }

  .section    { padding: 52px 0; }
  .container  { padding: 0 16px; }

  .section-title    { font-size: 1.55rem; }
  .section-subtitle { font-size: 0.92rem; }

  .hero-title    { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Stats wrap into 3 in a single row, hide dividers */
  .stats-grid   { gap: 0; }
  .stat-item    { padding: 12px 8px; }
  .stat-number  { font-size: 1.9rem; }
  .stat-label   { font-size: 0.72rem; }
  .stat-divider { width: 1px; height: 36px; }

  /* About badge inline below image */
  .about-badge {
    position: static;
    margin-top: 12px;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .service-card  { padding: 22px 16px; }

  .quote-section { padding: 52px 0; }
  .quote-text    { font-size: 1rem; }

  .mvv-panels-col { padding: 20px 16px; }

  .footer-grid   { gap: 20px; }
  .footer        { padding-top: 44px; }
}
