/* =========================================================
   GASTREND — Dr. Gustavo Machuca
   Palette: deep plum/purple (brand primary) + emerald teal (brand accent)
   sourced from real logo, team uniforms, and current ad campaigns.
   ========================================================= */

:root {
  --primary: #5B2A73;
  --primary-dark: #3E1D52;
  --primary-light: #7A4693;
  --teal: #1FAE8C;
  --teal-dark: #158066;
  --bg-mint: #EAF7F3;
  --bg-white: #FFFFFF;
  --bg-plum-soft: #F5EFF8;
  --text-dark: #2B2438;
  --text-muted: #6B5F76;
  --border: #E4D9EC;
  --gold-star: #E8A33D;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(59, 25, 74, 0.10);
  --shadow-sm: 0 4px 14px rgba(59, 25, 74, 0.08);
  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(31, 174, 140, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

p { color: var(--text-muted); }

.section {
  padding: 72px 0;
}

.section-mint { background: var(--bg-mint); }
.section-plum { background: var(--bg-plum-soft); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head p { margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 174, 140, 0.3);
}
.btn-primary:hover { background: var(--teal-dark); }

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

.btn-outline-dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-dark:hover { background: var(--bg-plum-soft); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Icons ---------- */
.icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-plum-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge.teal { background: rgba(31,174,140,0.12); color: var(--teal-dark); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a { color: var(--text-dark); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 20px 20px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 14px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--teal-dark) 130%);
  color: #fff;
  padding: 60px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(31,174,140,0.35), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow {
  background: rgba(255,255,255,0.14);
  color: #B9F3E4;
}

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: #6FE3C3; }

.hero-copy p {
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-media {
  position: relative;
  padding-bottom: 34px;
}

.hero-media-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.hero-badge-card {
  position: absolute;
  left: 18px;
  bottom: 0;
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 190px;
}

.hero-badge-card .stars { color: var(--gold-star); display: flex; gap: 2px; }
.hero-badge-card .stars .icon { stroke: none; fill: currentColor; width: 13px; height: 13px; }
.hero-badge-card strong { font-family: var(--font-display); display: block; font-size: 1.15rem; color: var(--primary-dark); line-height: 1.1; }
.hero-badge-card span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 26px 0 46px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}
.trust-item span { font-size: 0.78rem; color: var(--text-muted); }

/* .hero-stat span / .trust-item span / .hero-badge-card span are descendant
   selectors meant only for the small caption text — without this override
   they also catch the .stat-number span nested inside <strong> for the big
   animated figure, shrinking it down to caption size. Reset it explicitly. */
.hero-stat strong .stat-number,
.trust-item strong .stat-number,
.hero-badge-card strong .stat-number {
  font-size: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
}

@media (min-width: 700px) {
  .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin: 0; }

.service-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 26px;
}
.service-list-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.service-list-card li:last-child { border-bottom: none; }
.service-list-card .icon { color: var(--teal-dark); width: 20px; height: 20px; }

.service-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 30px;
}
@media (min-width: 640px) {
  .service-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.why-card {
  text-align: center;
  padding: 10px;
}
.why-card .icon-badge { margin: 0 auto 18px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-plum-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.team-photo img.crop-top { object-position: center 5%; }
.team-photo .icon { width: 64px; height: 64px; stroke-width: 1.2; }

.team-info { padding: 20px 18px 26px; }
.team-info h3 { margin-bottom: 4px; }
.team-info .role { color: var(--teal-dark); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; }
.team-info .pending-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9C6B2F;
  background: #FBF0DD;
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 6px;
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-dark);
  aspect-ratio: 9 / 16;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}

.video-card .video-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, #17222a 130%);
  opacity: 0.95;
}

.video-card .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.video-card:hover .play-btn { background: rgba(255,255,255,0.28); }
.video-card .play-btn .icon { width: 22px; height: 22px; stroke: none; fill: #fff; }

.video-card .video-meta {
  position: relative;
  padding: 18px;
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent 70%);
}
.video-card .video-meta strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.video-card .video-meta span { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

.video-pending-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 18px;
}

.video-embed {
  display: flex;
  justify-content: center;
}
.video-embed .instagram-media { margin: 0 auto !important; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
}
.review-card .stars { color: var(--gold-star); display: flex; gap: 3px; margin-bottom: 12px; }
.review-card .stars .icon { width: 16px; height: 16px; stroke: none; fill: currentColor; }
.review-card p { color: var(--text-dark); font-size: 0.92rem; font-style: italic; }
.review-card .reviewer { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--primary-dark); }

/* ---------- Location / hours ---------- */
.info-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 30px;
}

.info-card .icon-badge { margin-bottom: 16px; }

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { font-weight: 600; color: var(--primary-dark); }

.pending-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9C6B2F;
  background: #FBF0DD;
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 14px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 34px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Social row ---------- */
.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social-btn .icon { width: 20px; height: 20px; color: var(--teal-dark); }

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-social .icon { width: 19px; height: 19px; }
.footer-social-center { justify-content: center; margin: 0 auto 26px; }
footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-links a:hover { color: #6FE3C3; }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact .icon { width: 18px; height: 18px; color: #6FE3C3; margin-top: 2px; }
.footer-credit-link { color: #6FE3C3; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31,174,140,0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 26px; height: 26px; stroke: none; fill: #fff; }

/* ---------- Pending banner ---------- */
.pending-banner {
  background: #FBF0DD;
  color: #7A4E14;
  text-align: center;
  font-size: 0.82rem;
  padding: 10px 16px;
}
.pending-banner strong { font-weight: 700; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 4px;
}
