/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #00C9A7;
  --teal-dark: #00a589;
  --dark:      #0D1B2A;
  --dark2:     #0f2233;
  --light-bg:  #EAF5F3;
  --white:     #ffffff;
  --gray:      #4a5568;
  --gray-lt:   #6b7685;
  --border:    #dce8e5;
  --font-h:    'Montserrat', sans-serif;
  --font-b:    'Open Sans', sans-serif;
  --max-w:     1140px;
  --radius:    12px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); color: var(--dark); background: var(--white); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(0,201,167,.12);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 220px; }
.nav-logo-icon {
  width: 38px; height: 38px; background: var(--dark); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-icon svg { width: 22px; height: 22px; }
.nav-logo-text { line-height: 1; }
.nav-logo-text strong {
  font-family: var(--font-h); font-size: 15px; font-weight: 800; letter-spacing: .5px;
  color: var(--dark);
}
.nav-logo-text strong span { color: var(--teal); }
.nav-logo-text small { display: block; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray-lt); margin-top: 1px; }
nav ul { list-style: none; display: flex; align-items: center; gap: 8px; }
nav ul a {
  font-family: var(--font-h); font-size: 13px; font-weight: 600;
  color: var(--gray); padding: 6px 12px; border-radius: 6px;
  transition: color .2s, background .2s;
}
nav ul a:hover { color: var(--teal-dark); background: rgba(0,201,167,.07); }
nav ul a.active { color: var(--teal-dark); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  padding: 28px 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 180px; }
.footer-logo-icon {
  width: 34px; height: 34px; background: rgba(0,201,167,.15); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,201,167,.3);
}
.footer-logo-icon svg { width: 18px; }
.footer-logo-text strong { font-family: var(--font-h); font-size: 13px; font-weight: 800; color: var(--white); letter-spacing: .5px; }
.footer-logo-text strong span { color: var(--teal); }
.footer-logo-text small { display: block; font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.5); }
footer p { font-size: 12px; color: rgba(255,255,255,.65); }

/* ── HERO BASE ── */
.hero {
  position: relative; min-height: 400px;
  display: flex; align-items: center;
  background: linear-gradient(to right, rgba(10,24,38,.93) 48%, rgba(10,24,38,.5)),
              url('https://tecnomedconsulting.com/assets/img-home-ppal.webp') center/cover no-repeat;
  padding: 80px 0;
}
.hero.light-text h1 { color: var(--white); }
.hero .container { position: relative; z-index: 2; }

/* ── SECTION HELPERS ── */
.section { padding: 80px 0; }
.section-light { background: var(--light-bg); }
.section-dark  { background: var(--dark); }
.section-white { background: var(--white); }

.section-title {
  font-family: var(--font-h); font-size: 28px; font-weight: 800;
  color: var(--dark); text-align: center; margin-bottom: 8px;
}
.section-title.light { color: var(--white); }
.section-title span  { color: var(--teal); }
.section-sub { font-size: 14px; color: var(--gray); text-align: center; margin-bottom: 48px; line-height: 1.6; }
.section-sub.light { color: rgba(255,255,255,.6); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card h3 { font-family: var(--font-h); font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.card p  { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ── ICON CIRCLE ── */
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,201,167,.12); border: 1.5px solid rgba(0,201,167,.3);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon-circle svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle.small { width: 40px; height: 40px; }
.icon-circle.small svg { width: 18px; height: 18px; }

/* ── CHECK LIST ── */
.check-list { list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.check-dot {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background: var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.check-dot svg { width: 10px; height: 10px; stroke: white; fill: none; stroke-width: 2.5; }
.check-list h4 { font-family: var(--font-h); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.check-list p  { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── CTA BOX ── */
.cta-wrap { background: var(--dark); padding: 56px 32px; }
.cta-box {
  max-width: 720px; margin: 0 auto;
  background: var(--teal); border-radius: 18px; padding: 52px 48px; text-align: center;
}
.cta-box h2 { font-family: var(--font-h); font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 0; }
.cta-box p  { font-size: 14px; color: rgba(13,27,42,.7); margin: 12px 0 28px; }
.btn-dark {
  display: inline-block; background: var(--dark); color: var(--white);
  font-family: var(--font-h); font-size: 14px; font-weight: 700;
  padding: 14px 36px; border-radius: 8px; transition: background .2s, transform .2s;
}
.btn-dark:hover { background: #1a3045; transform: translateY(-2px); }
.btn-teal {
  display: inline-block; background: var(--teal); color: var(--dark);
  font-family: var(--font-h); font-size: 14px; font-weight: 700;
  padding: 14px 36px; border-radius: 8px; transition: background .2s, transform .2s;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-align { align-items: center; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; opacity: 0; }
.delay-2 { animation-delay: .2s; opacity: 0; }
.delay-3 { animation-delay: .3s; opacity: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--white); padding: 16px 20px 20px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  nav ul.open { display: flex; }
  nav ul a { display: block; padding: 10px 16px; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 320px; padding: 60px 0; }
  .section-title { font-size: 22px; }
  .cta-box { padding: 36px 24px; }
  .cta-box h2 { font-size: 22px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex; align-items: center;
  gap: 0; margin-left: 8px; margin-top: 3px;
  overflow: hidden; flex-shrink: 0;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-h); font-size: 12px; font-weight: 700;
  color: var(--gray); padding: 5px 10px;
  transition: background .15s, color .15s;
  letter-spacing: .4px;
}
.lang-btn:hover { background: rgba(0,201,167,.07); color: var(--teal); }
.lang-btn.lang-active {
  color: var(--teal-dark);
}
.lang-sep {
  width: 1px; height: 18px; background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .lang-toggle { margin-left: 0; margin-right: 8px; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.reveal-left {
  transform: translateX(-32px);
}
.reveal.reveal-right {
  transform: translateX(32px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}
/* Delays escalonados para grids */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── BOTÓN SCROLL TO TOP ─────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,201,167,.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
  z-index: 999;
  pointer-events: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}
#scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 900px) {
  #scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
