/* ============================================================
   BaniGastro — Gastroenterología y Especialidades
   Design system: tokens, base, components
   ============================================================ */

@font-face {
  font-family: "Sifonn";
  src: url("../fonts/Sifonn.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Garet";
  src: url("../fonts/Garet-Variable.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Garet Book";
  src: url("../fonts/Garet-Book.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand palette — extracted from BaniGastro's brand sheet */
  --blue-900: #0a3049;
  --blue-800: #0f6798; /* primary */
  --blue-600: #44678f;
  --blue-500: #5180ae;
  --blue-300: #92bbdf;
  --blue-100: #deeef6;
  --coral-600: #ff4231; /* primary accent / CTA */
  --coral-500: #ef6148;
  --coral-400: #fe6562;
  --sand-100: #ebeae8;
  --white: #ffffff;
  --ink: #12222c;
  --ink-soft: #45575f;

  --font-display: "Sifonn", "Garet", sans-serif;
  --font-body: "Garet", "Garet Book", -apple-system, sans-serif;

  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-card: 0 18px 40px -20px rgba(10, 48, 73, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(10, 48, 73, 0.25);

  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--blue-900);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--coral-600);
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }
.bg-pale { background: var(--blue-100); }
.bg-sand { background: var(--sand-100); }
.bg-deep { background: var(--blue-900); color: var(--white); }
.bg-deep h2, .bg-deep h3 { color: var(--white); }
.bg-deep p { color: rgba(255,255,255,0.78); }

/* ---------- Blobs / signature shapes (brand's own graphic vernacular) ---------- */
.blob-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  opacity: 0.5;
}
.blob.b-blue { background: var(--blue-300); }
.blob.b-coral { background: var(--coral-400); }
.blob.b-pale { background: var(--blue-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral-600);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(255,66,49,0.55); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--blue-900);
}
.btn-outline:hover { background: var(--blue-900); color: var(--white); }
.bg-deep .btn-outline { color: var(--white); }
.bg-deep .btn-outline:hover { background: var(--white); color: var(--blue-900); }
.btn-white { background: var(--white); color: var(--blue-900); box-shadow: var(--shadow-soft); }
.btn-white:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,103,152,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--blue-900);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--coral-600); color: var(--coral-600); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 11px 20px; font-size: 0.8rem; white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-900);
  margin: 4px auto;
  transition: all 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 90px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--blue-100) 0%, #f4f9fc 55%, var(--white) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-copy .tagline { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--blue-900);
}
.hero-stats div span { font-size: 0.85rem; color: var(--ink-soft); }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* small page hero (interior pages) */
.page-hero {
  padding: 56px 0 64px;
  background: linear-gradient(160deg, var(--blue-100), var(--white));
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; max-width: 780px; }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--blue-600);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15,103,152,0.06);
}

.icon-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--blue-100);
  color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* Specialty card */
.specialty-card { display: flex; flex-direction: column; height: 100%; }
.specialty-card h3 { margin-bottom: 8px; }
.specialty-card .hours {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(15,103,152,0.2);
  font-size: 0.85rem;
  color: var(--blue-800);
}

/* Service pill list */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.service-item .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral-600);
  flex-shrink: 0;
}
.service-item.featured {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
}
.service-item.featured .dot { background: var(--coral-400); margin-top: 6px; }
.service-item.featured strong { font-family: var(--font-display); font-size: 1.05rem; }
.service-item.featured .badge-new {
  display: inline-block;
  background: var(--coral-600);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 10px;
  vertical-align: middle;
}

/* Team card */
.team-card { text-align: left; overflow: hidden; padding: 0; }
.team-card .photo { aspect-ratio: 4/5; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 20px 22px 24px; }
.team-card .role {
  font-size: 0.82rem;
  color: var(--coral-600);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  display: block;
}
.team-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.team-card p { font-size: 0.92rem; margin: 0; }

/* Values */
.value-card { text-align: center; }
.value-card .icon-badge { margin: 0 auto 18px; }

/* Timeline / mission-vision */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.mv-card { border-radius: var(--radius-lg); padding: 38px; }
.mv-card.mission { background: var(--blue-900); color: var(--white); }
.mv-card.mission h3 { color: var(--white); }
.mv-card.vision { background: var(--coral-600); color: var(--white); }
.mv-card.vision h3 { color: var(--white); }
.mv-card p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin: 0; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: center; }
.founder-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/5; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue-900);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(15,103,152,0.1); font-size: 0.95rem; }
.hours-table td:first-child { color: var(--blue-900); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.02em; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  background: #25d366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.6);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Booking form */
.booking-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.booking-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--blue-100);
  background: var(--blue-100);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-800);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.booking-form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.booking-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

.contact-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.contact-card .map { aspect-ratio: 16/10; background: var(--blue-100); }
.contact-card .map iframe { width: 100%; height: 100%; border: 0; }
.contact-card .details { padding: 30px; background: var(--white); }
.contact-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sand-100); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row strong { display: block; font-family: var(--font-display); font-size: 0.85rem; color: var(--blue-900); margin-bottom: 3px; }
.contact-row span { font-size: 0.9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.82); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid img { height: 34px; margin-bottom: 16px; }
.footer-grid p { color: rgba(255,255,255,0.62); font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.68); transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--coral-400); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--coral-600); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w { max-width: 680px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.mt-lg { margin-top: 64px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--coral-600);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-actions .btn-outline { display: none; }
}

@media (max-width: 980px) {
  .hero-grid, .founder-grid, .booking-wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }
  section { padding: 60px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile nav open state */
.site-header.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 20px 24px 30px;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
