:root {
  --navy: #063b64;
  --blue: #0f6cb0;
  --blue-dark: #084e84;
  --ink: #14273a;
  --muted: #5a6b7d;
  --bg: #ffffff;
  --bg-muted: #f1f6fb;
  --border: #dbe6f1;
  --shadow: 0 1px 2px rgba(6, 59, 100, 0.06), 0 8px 24px rgba(6, 59, 100, 0.08);
  --shadow-lg: 0 2px 4px rgba(6, 59, 100, 0.06),
    0 18px 40px rgba(6, 59, 100, 0.14);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 108, 176, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1fbe5b;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
}

.lang-switch a.active {
  background: var(--blue);
  color: #fff;
}

.lang-switch a:not(.active):hover {
  background: var(--bg-muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
      135deg,
      rgba(15, 108, 176, 0.86) 0%,
      rgba(6, 59, 100, 0.92) 100%
    ),
    url("../img/hero.webp") center 30% / cover no-repeat;
  color: #fff;
  padding: 6rem 0 7rem;
  text-align: center;
}

/* Soft light glow to give the flat gradient some depth. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 72% 18%,
    rgba(255, 255, 255, 0.18),
    transparent 45%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 56px;
  display: block;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.phone-pill:hover {
  background: rgba(255, 255, 255, 0.24);
}

.flag {
  font-size: 1.3rem;
  line-height: 1;
}

.flag-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.phone-number {
  font-weight: 600;
}

/* Trust strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.trust-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem 1.5rem;
}

.trust-items li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-icon {
  width: 26px;
  height: 26px;
  color: var(--blue);
  flex: none;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

/* Scroll-reveal (only when JS flags support; no-JS keeps content visible) */
.reveal-on .section > .container {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on .section > .container.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on .section > .container {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin: 0 0 0.6rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 0.9rem auto 0;
  background: var(--blue);
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0.4rem auto 2.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Services */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.service-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(150deg, #1f7ebf 0%, #0c5c98 50%, #053356 100%);
  box-shadow: 0 12px 22px rgba(6, 59, 100, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Subtle top-left sheen for a dimensional, app-icon feel */
.service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.28),
    transparent 50%
  );
  pointer-events: none;
}

.service-icon svg {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 1.5px 3px rgba(2, 32, 56, 0.55));
}

.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 28px rgba(6, 59, 100, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.service-name {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.service-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1fa855;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-cta .channel-icon {
  width: 1.05em;
  height: 1.05em;
}

.service-cta:hover {
  color: #157a3e;
}

/* Gallery */
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-open:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.9rem 0.7rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(
    to top,
    rgba(6, 59, 100, 0.85),
    rgba(6, 59, 100, 0)
  );
}

/* Video: horizontal thumbnail cards that open the clip vertically on play */
.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.video-thumb {
  position: relative;
  display: block;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(15, 108, 176, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 6px 18px rgba(6, 59, 100, 0.4);
  transition: transform 0.18s ease, background 0.18s ease;
}

.video-open:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--blue);
}

.video-caption {
  display: block;
  padding: 0.8rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Video modal (vertical playback) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 30, 52, 0.92);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
}

.video-modal-player {
  max-height: 82vh;
  max-width: 100%;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-caption {
  color: #fff;
  font-weight: 600;
  margin: 0.8rem 0 0;
}

.video-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-weight: 500;
}

.about-media {
  position: relative;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* Dentist feature (Dr. Godinez) */
.dentist {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.dentist-play {
  position: relative;
  max-width: 300px;
}

.dentist-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.dentist-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dentist-name {
  margin: 0;
  color: var(--navy);
  font-size: 1.6rem;
}

.dentist-role {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.dentist-bio {
  margin: 0 0 1.3rem;
  color: var(--ink);
}

.cedula-badge {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.cedula-icon {
  width: 26px;
  height: 26px;
  color: var(--blue);
  flex: none;
  margin-top: 2px;
}

.cedula-text strong {
  display: block;
  color: var(--navy);
}

.cedula-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cross-border (San Diego) band */
.crossborder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: #fff;
}

.crossborder .section-title {
  color: #fff;
}

.crossborder .section-lead {
  color: #fff;
  opacity: 0.9;
}

.crossborder-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cb-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cb-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.cb-item p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.crossborder-cta {
  text-align: center;
  margin-top: 2.2rem;
}

.crossborder-note {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Business hours (in location card) */
.location-hours h4 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1rem;
}

.location-hours ul {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.location-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.location-hours li span:first-child {
  font-weight: 500;
  color: var(--ink);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.channel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy);
}

.channel-whatsapp {
  color: #25d366;
}

/* FAQ */
.container-narrow {
  max-width: 800px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-more {
  text-align: center;
  margin-top: 2rem;
}

.faq-more-q {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.response-time {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.response-time::before {
  content: "● ";
  color: #1fa855;
  font-size: 0.7em;
  vertical-align: middle;
}

.response-time-inline {
  margin-top: 0.9rem;
}

/* Follow us */
.follow-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.follow-icon {
  width: 22px;
  height: 22px;
}

.follow-instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.follow-tiktok {
  background: #111;
}

/* Payment methods */
.payment {
  margin-top: 1.8rem;
}

.payment-title {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1rem;
}

.payment-cards {
  display: flex;
  gap: 0.6rem;
}

.pay-card {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(6, 59, 100, 0.12);
}

.payment-currencies {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Location */
.location {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.map-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

/* The iframe ignores pointer events so a tap anywhere on the map follows the
   surrounding link into the visitor's maps app for directions. */
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  pointer-events: none;
}

.map-cta {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(6, 59, 100, 0.35);
  white-space: nowrap;
}

.map-link:hover .map-cta {
  background: var(--blue-dark);
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.location-building {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
  margin-bottom: 0.4rem;
}

.location-name {
  margin: 0;
  color: var(--navy);
  font-size: 1.3rem;
}

.location-building-info {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.location-building-info a {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.location-building-info a:hover {
  text-decoration: underline;
}

.location-address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.location-info .btn {
  align-self: flex-start;
}

.contact-form {
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 108, 176, 0.18);
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

/* Honeypot: off-screen, not display:none (so bots still see/fill it) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error page (404) */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
}

.error-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}

.error-code {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.error-title {
  margin: 0;
  color: var(--navy);
}

.error-text {
  margin: 0 0 1rem;
  color: var(--muted);
}

.form-status.ok {
  color: var(--blue-dark);
}

.form-status.error {
  color: #c0392b;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d8e6e8;
  padding: 1.8rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  align-self: flex-start;
  display: block;
}

.footer-brand p {
  margin: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-links a {
  display: inline-flex;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.social-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.channel-icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
  flex: none;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.whatsapp-float-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

/* Sticky mobile call/WhatsApp bar (mobile only) */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  gap: 1px;
  background: var(--border);
  box-shadow: 0 -4px 16px rgba(6, 59, 100, 0.15);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.mobile-cta-call {
  background: var(--navy);
  color: #fff;
}

.mobile-cta-wa {
  background: #25d366;
  color: #fff;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 30, 52, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #fff;
  font-weight: 600;
  margin-top: 0.8rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Maps app chooser (bottom sheet) */
.no-scroll {
  overflow: hidden;
}

.maps-chooser {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.maps-chooser[hidden] {
  display: none;
}

.maps-chooser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 59, 100, 0.45);
}

.maps-chooser-sheet {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 -10px 30px rgba(6, 59, 100, 0.25);
  animation: maps-sheet-up 0.2s ease-out;
}

@keyframes maps-sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.maps-chooser-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.maps-option {
  display: block;
  width: 100%;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.maps-option:hover {
  background: #e7f0fa;
}

.maps-cancel {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  /* Keep the header CTA compact so longer labels (e.g. EN) don't oversize it */
  .nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .nav-right {
    gap: 0.6rem;
  }
  .about,
  .contact,
  .location,
  .dentist {
    grid-template-columns: 1fr;
  }
  .dentist-play {
    max-width: 260px;
    margin: 0 auto;
  }
  /* On mobile, the sticky bottom bar replaces the floating button */
  .mobile-cta-bar {
    display: flex;
  }
  .whatsapp-float {
    display: none;
  }
  body {
    padding-bottom: 60px;
  }
}

/* Accessible, intentional keyboard focus */
:focus-visible {
  outline: 3px solid rgba(15, 108, 176, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
