/* ============================================================
   Dental América — Playa del Carmen
   Palette: azul profundo, azul claro (acento), blanco.
   (El acento rojo se eliminó por completo — ver notas de cambios
   en el README — todo lo que antes era rojo ahora es azul claro.)
   ============================================================ */

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

:root {
  --blue-deep: #0b3d78;
  --blue: #1a5aa8;
  --blue-light: #e8f4fb;
  --accent: #4fb8e8;       /* light blue accent — replaces the old red trim */
  --accent-dark: #2f96c9;  /* light blue, hover/darker state */
  --white: #ffffff;
  --gray-ink: #23303f;
  --gray-soft: #64748b;
  --gray-bg: #f5f9fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 120, 0.10);
  --max-width: 1160px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section { padding: 72px 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-weight: 700;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; color: var(--gray-ink); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--gray-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--blue-deep); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(79,184,232,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-deep); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ---------- Location header (formerly "topbar") ----------
   Spec: increase height of the first header by 1 inch (96px)
   vs. the original single-line bar (~33px), so it now holds
   two lines of copy comfortably. */
.location-header {
  background: var(--blue-deep);
  color: var(--white);
  min-height: 129px; /* ~33px original + 96px (1in) */
  display: flex;
  align-items: center;
}
.location-header .wrap { width: 100%; text-align: center; padding-top: 18px; padding-bottom: 18px; }
.location-header .location-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.location-header .location-sub {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #cfe6f8;
  font-weight: 500;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-deep);
}
.logo .flag-dot { display: flex; gap: 3px; }
.logo .flag-dot span { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.logo .flag-dot span:nth-child(1) { background: var(--blue); }
.logo .flag-dot span:nth-child(2) { background: var(--white); border: 1px solid #ccc; }
.logo .flag-dot span:nth-child(3) { background: var(--accent); }

nav.menu { display: flex; gap: 28px; align-items: center; }
nav.menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.menu a:hover, nav.menu a.active { color: var(--blue); border-bottom-color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue-deep);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-deep); margin: 4px 0; }

/* ---------- Contact strip ----------
   Spec: exactly one phone contact strip, labeled "teléfono
   principal". WhatsApp intentionally not rendered here — see
   js/script.js SHOW_WHATSAPP flag. */
.contact-strip {
  background: var(--blue-light);
  border-bottom: 1px solid #d7e3f7;
  padding: 10px 0;
  text-align: center;
}
.contact-strip .wrap { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-strip .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--blue);
}
.contact-strip a {
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.98rem;
}
.contact-strip a:hover { color: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, rgba(11,61,120,0.82), rgba(11,61,120,0.92)), url("../images/hero-plaza-entrance.jpg") center/cover no-repeat;
  padding: 80px 0 90px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3rem); }
.hero .eyebrow { border-color: var(--white); color: var(--white); }
.hero p.lead { color: #e7eefc; font-size: 1.05rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-landmark-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 26px;
  backdrop-filter: blur(2px);
}
.hero-landmark-card strong { color: var(--white); }
.hero-landmark-card p { color: #dbe6f8; margin: 6px 0 0; font-size: 0.92rem; }

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  border: 4px solid var(--white);
}
.hero-photo img { width: 100%; height: 320px; object-fit: cover; }
.hero-photo-caption {
  background: var(--white);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
}

/* ---------- Second strip (simplified per spec) ---------- */
.value-strip {
  background: var(--blue-deep);
  padding: 34px 0;
  text-align: center;
}
.value-strip h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  margin: 0;
  text-transform: capitalize;
}
.value-strip .hours {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- Location / landmark section ---------- */
.location {
  background: var(--gray-bg);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.landmark-list { list-style: none; margin: 20px 0; padding: 0; }
.landmark-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed #d7dfe9;
}
.landmark-list li:last-child { border-bottom: none; }
.landmark-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--blue);
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Services (now lives on servicios.html) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e6ecf5;
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-top-color 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); border-top-color: var(--accent); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.service-card p { color: var(--gray-soft); font-size: 0.92rem; margin: 0; }

/* ---------- About / Reception ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.about-photo img { width: 100%; height: 360px; object-fit: cover; }

/* ---------- FAQ (now lives on preguntas-frecuentes.html) ---------- */
.faq { background: var(--blue-deep); color: var(--white); }
.faq .section-head h2 { color: var(--white); }
.faq .section-head p { color: #cfdcf3; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1rem;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 20px;
  color: #dbe6f8;
  font-size: 0.94rem;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 18px; }

/* ---------- Lower call-to-action (the "main button") ----------
   Per spec: a prominent CTA in the blue scheme, placed further
   down the page rather than competing with the hero. */
.main-cta {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: var(--white);
  text-align: center;
}
.main-cta h2 { color: var(--white); }
.main-cta p { color: #dbe9fb; max-width: 560px; margin: 0 auto 24px; }
.main-cta .btn-primary { font-size: 1.05rem; padding: 16px 34px; }

/* Floating shortcut to the same CTA, for long scroll pages */
.main-cta-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: var(--accent);
  color: var(--blue-deep);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(11,61,120,0.28);
  font-size: 1.4rem;
  border: 3px solid var(--white);
}
.main-cta-float:hover { background: var(--accent-dark); color: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #071f3d;
  color: #b9c8e0;
  padding: 50px 0 26px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h3 { color: var(--white); font-size: 1rem; font-family: var(--font-head); }
.footer-grid a, .footer-grid p { color: #b9c8e0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8fa2c2;
}

/* ---------- Placeholder banner ---------- */
.placeholder-note {
  background: #eef7fc;
  border: 1px dashed var(--accent);
  color: #0b3d78;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Dirección confirmada (no es un placeholder — se ve como dato firme) */
.address-line {
  background: var(--blue-light);
  border-left: 4px solid var(--accent);
  color: var(--blue-deep);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 14px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .about-grid, .location-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.menu, .nav-cta .btn-blue { display: none; }
  .menu-toggle { display: inline-block; }
  body.nav-open nav.menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 18px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .location-header { min-height: 150px; }
}
