/* ====================================================================
   CONSULTORIOS ODONTOLÓGICOS CABALLERO
   Idea: un consultorio tranquilo. Lavanda y azul pervinca en lugar del
   celeste "de dentista"; serif editorial para los títulos. Lo central es
   el pedido de turno, que muestra el mensaje tal como va a llegar,
   con motivo y obra social (lo primero que pregunta cualquier consultorio).
   ==================================================================== */
:root {
  --pervinca: #5B5FC7;
  --pervinca-oscuro: #4347A6;
  --lavanda: #F1F1FB;
  --lavanda-2: #E1E2F5;
  --tinta: #1F2140;
  --durazno: #F6B89A;
  --gris: #5D6079;
  --blanco: #FFFFFF;
  --wa: #25D366;

  --fuente-display: "Newsreader", Georgia, serif;
  --fuente: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--fuente); background: var(--blanco); color: var(--tinta); line-height: 1.6; font-size: 1.0625rem; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--durazno); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }

/* Cabecera */
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { font-family: var(--fuente-display); font-weight: 500; font-size: 1.25rem; text-decoration: none; }
.cabecera-tel { font-weight: 600; text-decoration: none; color: var(--pervinca); white-space: nowrap; }

/* ====================================================================
   PRESENTACIÓN + TURNO
   ==================================================================== */
.inicio { background: var(--lavanda); padding: 2rem 0 3.2rem; }
.inicio-grilla { display: grid; gap: 2rem; align-items: start; }
.inicio h1 {
  font-family: var(--fuente-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 8.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
.bajada { max-width: 42ch; color: var(--gris); font-size: 1.12rem; margin-top: 1rem; }

.turno {
  display: grid;
  gap: 0.9rem;
  background: var(--blanco);
  padding: 1.4rem;
  border-radius: 22px;
  border-top: 6px solid var(--durazno);
  box-shadow: 0 18px 40px rgba(67, 71, 166, 0.14);
}
.turno h2 { font-family: var(--fuente-display); font-weight: 500; font-size: 1.8rem; line-height: 1.1; }
.turno label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.turno select, .turno input {
  font: inherit;
  font-weight: 400;
  min-height: 48px;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--lavanda-2);
  border-radius: 12px;
  background: var(--lavanda);
  color: var(--tinta);
  width: 100%;
}
.turno select:focus, .turno input:focus { border-color: var(--pervinca); background: var(--blanco); }
/* Vista previa del mensaje: una burbuja de chat */
.turno-vista {
  position: relative;
  justify-self: end;
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  background: #DCF8C6;
  border-radius: 14px 14px 4px 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.boton-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  border-radius: 12px;
  background: var(--wa);
  color: #0B2915;
  font-weight: 600;
  text-decoration: none;
}
.boton-wa:hover { background: #1FB855; }
.turno-ayuda { font-size: 0.92rem; color: var(--gris); }
.turno-ayuda a { color: var(--pervinca); font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) {
  .inicio { padding: 3.5rem 0 4.5rem; }
  .inicio-grilla { grid-template-columns: 1fr 440px; gap: 4rem; align-items: center; }
  .turno { padding: 1.8rem; }
}

/* ====================================================================
   MOTIVOS
   ==================================================================== */
h2 { font-family: var(--fuente-display); font-weight: 500; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.08; letter-spacing: -0.01em; }
.motivos { padding: 3.4rem 0; }
.motivos h2 { margin-bottom: 1.4rem; }
.motivos-lista { display: grid; gap: 0 2.4rem; }
.motivos-lista li { padding: 1rem 0; border-top: 1px solid var(--lavanda-2); }
.motivos-lista h3 { font-size: 1.12rem; font-weight: 600; color: var(--pervinca-oscuro); }
.motivos-lista p { color: var(--gris); }
@media (min-width: 760px) { .motivos-lista { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .motivos-lista { grid-template-columns: repeat(3, 1fr); } }

/* ====================================================================
   UBICACIÓN Y PIE
   ==================================================================== */
.ubicacion { background: var(--lavanda); padding: 3.2rem 0; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: center; }
.ubicacion h2 { margin-bottom: 0.6rem; }
.ubicacion p { color: var(--gris); margin-bottom: 0.4rem; }
.resenas a { color: var(--tinta); text-underline-offset: 4px; }
.ubicacion-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.boton-contorno { display: inline-flex; align-items: center; min-height: 48px; padding: 0.6rem 1.2rem; border: 1.5px solid var(--pervinca); color: var(--pervinca-oscuro); border-radius: 12px; font-weight: 600; text-decoration: none; }
.boton-contorno:hover { background: var(--blanco); }
#mapa-iframe { width: 100%; height: 300px; border: 0; border-radius: 22px; background: var(--lavanda-2); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.3fr; gap: 3rem; } #mapa-iframe { height: 340px; } }

.pie { background: var(--tinta); color: #B8BAD6; padding: 2rem 0 6rem; font-size: 0.92rem; }
.pie p + p { margin-top: 0.3rem; }
.demo-aviso { font-style: italic; }
.credito a { color: var(--blanco); font-weight: 600; }

.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: var(--wa);
  color: #0B2915;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.flotante span { display: none; }
@media (min-width: 640px) { .flotante { padding: 0.85rem 1.25rem; } .flotante span { display: inline; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
