/* =============================================================================
   landing.css — BioMediScan Landing Page
   ========================================================================== */

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

/* ── 1. Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --brand:        #2AA78F;
  --brand-dark:   #228f79;
  --brand-light:  #f0faf8;
  --brand-tint:   #d1f5ed;
  --accent:       #83458C;
  --accent-dark:  #6d3876;
  --accent-light: #faf2fb;
  --accent-tint:  #f3eaf5;
  --muted:        #626061;
  --muted-light:  #f5f4f4;

  --text-base:    #64748b;
  --text-muted:   #4a5568;
  --text-soft:    #718096;
  --text-head:    #1e293b;

  --radius-sm:    .375rem;
  --radius:       .5rem;
  --radius-lg:    .75rem;
  --radius-xl:    1rem;
  --radius-2xl:   1.25rem;
  --radius-3xl:   1.5rem;
  --radius-pill:  9999px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow:       0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 30px rgba(0,0,0,.12);
  --shadow-brand: 0 8px 28px rgba(42,167,143,.25);

  --nav-h:        4.5rem;
  --transition:   .25s ease;
}

/* ── 2. Base ────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-base);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── 3. Navigation ──────────────────────────────────────────────────────────── */
#navbar {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo-pill {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-pill img {
  height: 2.6rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand);
  border-radius: var(--radius-pill);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

#mobile-menu a {
  display: block;
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid #f9f9f9;
  transition: color var(--transition), background var(--transition);
}

#mobile-menu a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

#burger {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  display: none;
}

/* ── 4. Buttons ─────────────────────────────────────────────────────────────── */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  padding: .72rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-brand);
  white-space: nowrap;
  letter-spacing: .01em;
}

.btn-brand:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(42,167,143,.35);
}

.btn-brand:active { transform: translateY(0); }

.btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  padding: .68rem 1.75rem;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

/* ── 5. Hero ─────────────────────────────────────────────────────────────────── */
.hero-split {
  position: relative;
  min-height: 100vh;
  display: flex;
  background: url('../assets/images/bgbanner.png') right center / cover no-repeat;
}

.hero-split-left {
  flex: 0 0 48%;
  min-height: 100vh;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7rem) 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 4rem) 5rem 4rem max(2.5rem, calc((100vw - 80rem) / 2 + 2.5rem));
  position: relative;
  z-index: 1;
}

.hero-split-content {
  max-width: 28rem;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
}

.hero-label-icon {
  height: 1.25rem;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.hero-label--light .hero-label-icon {
  filter: brightness(0) invert(1) opacity(.75);
}

.hero-label span:last-child {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-label--center { justify-content: center; }
.hero-label--light span:last-child { color: rgba(255,255,255,.85); }

.hero-split-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-head);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero-split-accent { color: var(--brand); }

.hero-split-desc {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.hero-split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.75rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid var(--brand);
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

.hero-split-right { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-split { display: block; }

  .hero-split-left {
    flex: none;
    width: 100%;
    min-height: auto;
    clip-path: none;
    background: rgba(255,255,255,.92);
    padding: calc(var(--nav-h) + 2.5rem) 1.5rem 2.5rem;
  }

  .hero-split-content { max-width: 100%; }

  .hero-stats-bar {
    position: static;
    bottom: auto;
    padding: 0 1.5rem;
  }

  .about-section { padding-top: 0; }
}

/* Hero stats bar */
.hero-stats-bar {
  position: absolute;
  bottom: -6rem;
  left: 0;
  right: 0;
  padding: 0 1.5rem;
  z-index: 10;
}

@media (max-width: 1023px) {
  .hero-split {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-split-left { min-height: auto; }

  .hero-stats-bar {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 1.5rem 1.5rem 1rem;
    background: #eef7f5;
    z-index: 1;
  }

  .about-section { padding-top: 0; }

  .about-section > div {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-info-desc { display: none; }
  .hero-info-card { padding: 1.25rem 1rem; }
}

.hero-info-card {
  background: var(--brand);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border-top: 3px solid rgba(255,255,255,.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.hero-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.hero-info-icon svg { width: 1.5rem; height: 1.5rem; stroke: #fff; color: #fff; }

.hero-info-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.hero-info-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
}

/* ── 5b. Exam Categories ────────────────────────────────────────────────────── */
.exam-cats-section {
  background: #f8fafc;
  padding: 5rem 0;
}

.exam-cat-col {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(42,167,143,.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.exam-cat-col:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.exam-cat-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-head);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--brand-tint);
}

.exam-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.exam-cat-list li {
  font-size: .825rem;
  font-weight: 500;
  color: var(--brand-dark);
  cursor: default;
  transition: color var(--transition), padding-left var(--transition);
  padding-left: .1rem;
}

.exam-cat-list li:hover {
  color: var(--brand);
  padding-left: .4rem;
}

.exam-cat-subtitle {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  opacity: .75;
  margin-top: -.4rem;
  margin-bottom: .9rem;
}

.exam-cat-list li.exam-cat-subhead {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  opacity: .6;
  margin-top: .7rem;
  cursor: default;
}
.exam-cat-list li.exam-cat-subhead:hover {
  padding-left: 0;
  color: var(--text-muted);
}

.scroll-arrow:hover { color: #fff; }

/* ── 6. Section Utilities ────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: .75rem;
}

.section-tag--brand  { background: var(--brand-tint);  color: var(--brand-dark); }
.section-tag--hero   { background: rgba(255,255,255,.15); color: #fff; }
.section-tag--accent { background: var(--accent-tint); color: var(--accent-dark); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-head);
  letter-spacing: -.02em;
}

.section-subtitle {
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 38rem;
}

/* ── 7. Quiénes Somos ───────────────────────────────────────────────────────── */
.about-section {
  background: url('../assets/images/quienesbg.png') center center / auto no-repeat;
  position: relative;
  padding-top: 4rem;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.68);
}

.about-section > div {
  position: relative;
  z-index: 1;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-grid .img-wide {
  grid-column: span 2;
  height: 12rem;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.about-img-grid .img-half {
  height: 9rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.about-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.about-img-grid .img-wide:hover img,
.about-img-grid .img-half:hover img { transform: scale(1.04); }

.pillar {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.pillar-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon--brand  { background: var(--brand-tint);  color: var(--brand); }
.pillar-icon--accent { background: var(--accent-tint); color: var(--accent); }

.pillar-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pillar-card .pillar-title { margin-bottom: .25rem; }
.pillar-card .pillar-icon  { display: flex; }

.pillar-icon svg { width: 1.1rem; height: 1.1rem; }

.pillar-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-head);
}

.pillar-desc {
  font-size: .75rem;
  color: var(--text-soft);
  margin-top: .1rem;
}

/* ── 8. Services ────────────────────────────────────────────────────────────── */
.service-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(42,167,143,.18);
}

.service-card-img {
  height: 13rem;
  overflow: hidden;
  background: #f8f8f8;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.svc-icon-wrap {
  position: absolute;
  top: calc(13rem - 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--brand);
}

.svc-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(42,167,143,.45);
}

.svc-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #fff;
  color: #fff;
  flex-shrink: 0;
}

.svc-icon-wrap--accent {
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent);
}

.svc-icon-wrap--accent::before {
  border-color: rgba(131,69,140,.4);
}

.service-card-body {
  padding: 3.25rem 1.5rem 1.75rem;
  text-align: center;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .4rem;
}

.service-card-desc {
  font-size: .825rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── 9. Appointment Form ────────────────────────────────────────────────────── */
#cita .bg-white {
  border-radius: var(--radius-2xl);
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.form-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-head);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42,167,143,.14);
}

.form-input::placeholder { color: #a0aec0; }

/* ── 10. Contact Cards ──────────────────────────────────────────────────────── */
.contact-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.contact-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-icon svg { width: 1.4rem; height: 1.4rem; }

.contact-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .35rem;
}

.contact-card-text {
  font-size: .825rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── 11. Map Section ────────────────────────────────────────────────────────── */
#map {
  border-radius: var(--radius-xl);
  border: 1px solid #e8e8e8;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.location-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.location-info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.location-info-card .loc-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-info-card .loc-icon svg { width: 1.2rem; height: 1.2rem; }

.location-info-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: .25rem;
}

.location-info-text {
  font-size: .8rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── 12. Footer ─────────────────────────────────────────────────────────────── */
.footer-root {
  background: #0f172a;
  color: #94a3b8;
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 22rem;
  color: #94a3b8;
}

.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  font-size: .85rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--brand); }

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .85rem;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .75rem;
  color: #64748b;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--brand); }

/* ── 13. Scroll-reveal Animation ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-stagger.visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay:.05s; }
.reveal-stagger.visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay:.15s; }
.reveal-stagger.visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay:.25s; }
.reveal-stagger.visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay:.35s; }
.reveal-stagger.visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay:.45s; }
.reveal-stagger.visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay:.55s; }
.reveal-stagger.visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay:.65s; }
.reveal-stagger.visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay:.75s; }
.reveal-stagger.visible > *:nth-child(9)  { opacity:1; transform:none; transition-delay:.85s; }
.reveal-stagger.visible > *:nth-child(10) { opacity:1; transform:none; transition-delay:.95s; }

/* ── 14. Tailwind gray overrides ────────────────────────────────────────────── */
.text-gray-400,
.text-gray-500,
.text-gray-600 { color: var(--text-soft) !important; }

.text-gray-700,
.text-gray-800,
.text-gray-900 { color: var(--text-head) !important; }

/* ── 15. Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #burger    { display: block; }
  .nav-links { display: none; }

  .about-img-grid .img-wide { height: 10rem; }
  .about-img-grid .img-half { height: 7.5rem; }

  .stat-card { padding: 1rem; }
  .stat-num  { font-size: 2rem; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1.25rem; }
}
