/* ============================================================
   Dental Solution RD — Hoja de estilos
   Fondo blanco · Verdes suaves tomados del logo DS
   ============================================================ */

:root {
  --verde-claro:  #8DC63F;
  --verde-medio:  #5BB12F;
  --verde-fuerte: #2E8B2E;
  --verde-oscuro: #1B6B2A;
  --verde-texto:  #1F4026;
  --menta-bg:     #F3FAEF;
  --menta-bg-2:   #EAF7E2;
  --gris-texto:   #51604f;
  --blanco:       #ffffff;
  --sombra:       0 10px 30px rgba(46, 139, 46, 0.10);
  --sombra-suave: 0 4px 14px rgba(46, 139, 46, 0.08);
  --radio:        18px;
  --grad-verde:   linear-gradient(135deg, #8DC63F 0%, #4CAF2E 55%, #2E8B2E 100%);
  --fuente:       "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  color: var(--verde-texto);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.contenedor {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primario {
  background: var(--grad-verde);
  color: #fff;
  box-shadow: 0 8px 20px rgba(76, 175, 46, 0.35);
}
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(76, 175, 46, 0.45); }
.btn-claro {
  background: #fff;
  color: var(--verde-fuerte);
  border: 2px solid var(--verde-claro);
}
.btn-claro:hover { background: var(--menta-bg); transform: translateY(-2px); }

/* ---------- Encabezado / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef3ec;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 52px; width: auto; }
.nav__logo-ico { height: 46px !important; width: auto; }
.nav__logo { gap: 8px; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav__menu a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--verde-texto);
  transition: color .2s;
}
.nav__menu a:hover { color: var(--verde-medio); }
.nav__menu a.actual { color: var(--verde-medio); font-weight: 600; }
.nav__toggle { display: none; font-size: 1.7rem; background: none; border: none; color: var(--verde-fuerte); cursor: pointer; }

/* ---------- Hero / Inicio ---------- */
.hero {
  background: radial-gradient(circle at 80% 20%, var(--menta-bg-2) 0%, #ffffff 60%);
  padding: 80px 0 70px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--menta-bg-2);
  color: var(--verde-fuerte);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--verde-medio); }
.hero p { font-size: 1.12rem; color: var(--gris-texto); margin-bottom: 30px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art {
  background: var(--grad-verde);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra);
}
.hero__art img { filter: drop-shadow(0 12px 24px rgba(0,0,0,.15)); }
.hero__art--foto { padding: 14px; background: #fff; box-shadow: var(--sombra); }
.hero__art--foto img { border-radius: 18px; width: 100%; height: 440px; object-fit: cover; filter: none; }
.nav__logo-txt { font-size: 1.35rem; color: var(--verde-fuerte); }
.nav__logo-txt strong { color: var(--verde-claro); }

/* ---------- Encabezado de página interior ---------- */
.page-hero {
  background: radial-gradient(circle at 80% 20%, var(--menta-bg-2) 0%, #ffffff 62%);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid #eef3ec;
}
.page-hero .seccion__eyebrow { display: block; margin-bottom: 8px; }
.page-hero h1 { font-size: 2.7rem; font-weight: 700; }
.page-hero p { color: var(--gris-texto); font-size: 1.08rem; max-width: 640px; margin: 12px auto 0; }
.breadcrumb { font-size: 0.86rem; color: var(--gris-texto); margin-top: 14px; }
.breadcrumb a { color: var(--verde-medio); }

/* ---------- Secciones genéricas ---------- */
.seccion { padding: 80px 0; }
.seccion--menta { background: var(--menta-bg); }
.seccion__head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.seccion__eyebrow {
  color: var(--verde-medio);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.seccion__head h2 { font-size: 2.3rem; font-weight: 700; margin: 10px 0 14px; }
.seccion__head p { color: var(--gris-texto); font-size: 1.05rem; }

/* ---------- Quiénes somos ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.about__foto {
  background: var(--grad-verde);
  border-radius: 24px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra);
}
.about__foto img { max-height: 240px; }
.about__foto--real { padding: 0; overflow: hidden; }
.about__foto--real img { max-height: none; width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 24px; }
.about__txt h2 { font-size: 2.2rem; margin-bottom: 16px; }
.about__txt p { color: var(--gris-texto); margin-bottom: 16px; }
.about__valores { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.about__valores li { display: flex; gap: 12px; align-items: flex-start; }
.about__valores .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--menta-bg-2);
  color: var(--verde-fuerte);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}

/* ---------- Servicios ---------- */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servicio {
  background: #fff;
  border: 1px solid #eef3ec;
  border-radius: var(--radio);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.servicio:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: var(--verde-claro); }
.servicio__icono {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--menta-bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.servicio h3 { font-size: 1.18rem; margin-bottom: 8px; }
.servicio p { color: var(--gris-texto); font-size: 0.96rem; }
.servicio--destacado {
  background: var(--grad-verde);
  color: #fff;
  border: none;
}
.servicio--destacado .servicio__icono { background: rgba(255,255,255,.2); }
.servicio--destacado p { color: rgba(255,255,255,.92); }

/* ---------- Banda CTA ---------- */
.cta-banda {
  background: var(--grad-verde);
  border-radius: 26px;
  padding: 50px;
  text-align: center;
  color: #fff;
  box-shadow: var(--sombra);
}
.cta-banda h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banda p { opacity: .95; margin-bottom: 26px; }
.cta-banda .btn-claro { color: var(--verde-fuerte); }

/* ---------- Contacto ---------- */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contacto__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid #eef3ec;
  border-radius: 14px;
  margin-bottom: 16px;
}
.contacto__item .ico {
  width: 46px; height: 46px;
  background: var(--menta-bg-2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contacto__item h4 { font-size: 1rem; margin-bottom: 2px; }
.contacto__item p, .contacto__item a { color: var(--gris-texto); font-size: 0.96rem; }
.contacto__mapa {
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid #eef3ec;
}
.contacto__mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--verde-texto);
  color: #d6e6d8;
  padding: 50px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}
.footer__logo img { height: 60px; background: #fff; border-radius: 12px; padding: 8px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.02rem; }
.footer a { color: #d6e6d8; font-size: 0.94rem; line-height: 2; }
.footer a:hover { color: var(--verde-claro); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.86rem;
  color: #a9c2ab;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #25D366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Galería de casos ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.galeria__item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}
.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria__item:hover img { transform: scale(1.06); }
.galeria__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(27,107,42,.92));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 26px 16px 14px;
}
.galeria__item--ancho { grid-column: span 2; grid-row: span 2; }

/* ============================================================
   Página Solicitud de Cita (sin nav)
   ============================================================ */
.cita-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--menta-bg-2) 0%, #ffffff 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.cita-card {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--sombra);
  padding: 46px 40px;
  text-align: center;
}
.cita-card img.logo { height: 90px; margin: 0 auto 22px; }
.cita-card h1 { font-size: 1.9rem; margin-bottom: 10px; }
.cita-card h1 span { color: var(--verde-medio); }
.cita-card .sub { color: var(--gris-texto); margin-bottom: 30px; font-size: 1.05rem; }
.cita-form {
  border-top: 1px solid #eef3ec;
  padding-top: 28px;
}
.cita-form iframe { width: 100%; border: 0; min-height: 640px; }
.cita-placeholder {
  border: 2px dashed var(--verde-claro);
  background: var(--menta-bg);
  border-radius: 14px;
  padding: 40px 24px;
  color: var(--verde-fuerte);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .contacto__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .about__foto { min-height: 260px; }
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .hero__art--foto img { height: 320px; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 20px;
    border-bottom: 1px solid #eef3ec;
    box-shadow: var(--sombra-suave);
    display: none;
  }
  .nav__menu.activo { display: flex; }
  .nav__menu li { width: 100%; padding: 10px 0; border-bottom: 1px solid #f2f6f0; }
  .nav__menu .btn { margin-top: 10px; text-align: center; }
}
@media (max-width: 560px) {
  .servicios__grid, .footer__grid { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .galeria__item--ancho { grid-column: span 1; grid-row: span 1; }
  .hero h1 { font-size: 2rem; }
  .cta-banda, .cita-card { padding: 32px 22px; }
}
