/* =========================================================
   UBR NANACAMILPA — ESTILOS
   Cambia las variables de color al inicio para ajustar la paleta.
   ========================================================= */

/* Colores institucionales y tonos de apoyo usados en toda la página. */
:root {
  --ink: #20245e;
  --muted: #5e6985;
  --teal: #0752ad;
  --teal-dark: #063f8b;
  --mint: #e7f3ff;
  --peach: #ed3b8a;
  --paper: #f5f8fc;
  --line: #d9e3f0;
  --white: #fff;
  --shadow: 0 18px 48px rgba(20, 54, 111, .10);
}

/* Configuración general y tipografía base. */
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.5;
}

/* Barra superior con marcas institucionales y enlace del personal. */
.site-header {
  min-height: 86px;
  max-width: 1180px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e6edf6;
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: inherit;
  text-decoration: none;
}
/* Alineación y tamaño de los dos logotipos institucionales. */
.logo-pair { display: flex; align-items: center; gap: 7px; }
.logo-image {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong {
  color: #25245d;
  font-size: 14px;
  letter-spacing: -.025em;
}
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.staff-link { color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.staff-link:hover { text-decoration: underline; }

/* Presentación principal y horario de la UBR. */
main { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 54px;
}
.hero-copy { padding: 20px 0; }
.eyebrow {
  margin: 0 0 12px;
  color: #0876bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #24245f;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.hero-copy > p:not(.eyebrow) { max-width: 490px; margin: 0; color: var(--muted); font-size: 16px; }
.hours { display: flex; gap: 13px; align-items: center; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hours > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--teal);
  background: var(--mint);
  font-size: 21px;
}
.hours strong { color: var(--ink); font-size: 13px; }

/* Ilustración decorativa hecha con formas CSS. */
.hero-art {
  display: block;
  width: 100%;
  position: relative;
  height: 300px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  border-radius: 16px 70px 16px 16px;
  background: linear-gradient(135deg, #0a4eaa 0%, #087dbb 58%, #12b4d3 100%);
}
.sun { position: absolute; top: 38px; right: 70px; width: 116px; height: 116px; border-radius: 50%; background: var(--peach); }
.ground { position: absolute; right: -20px; bottom: -45px; left: -20px; height: 105px; border-radius: 50% 50% 0 0; background: #7ac8d9; }
.figure { position: absolute; bottom: 72px; border-radius: 55px 55px 22px 22px; }
.figure-one { left: 31%; width: 96px; height: 139px; background: #fff; transform: rotate(-4deg); }
.figure-one::before, .figure-two::before { position: absolute; top: -39px; left: 21px; width: 54px; height: 54px; border-radius: 50%; background: #f1bd9d; content: ""; }
.figure-one::after { position: absolute; top: 25px; left: 35px; width: 118px; height: 20px; border-radius: 20px; background: var(--peach); content: ""; transform: rotate(18deg); }
.figure-two { bottom: 73px; left: 59%; width: 82px; height: 110px; background: #f3c4a4; transform: rotate(7deg); }
.figure-two::before { background: #26336e; }
.art-leaf { position: absolute; bottom: 48px; width: 22px; height: 60px; border-radius: 100% 0 100% 0; background: #7dd5c6; }
.leaf-one { left: 12%; transform: rotate(-35deg); }
.leaf-two { right: 10%; transform: rotate(45deg); }

/* Tarjeta y encabezado del formulario de cita. */
.booking-card {
  margin-bottom: 40px;
  padding: 34px 38px 30px;
  border: 1px solid #edf1ee;
  border-top: 4px solid var(--teal);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: #24245f; font-size: 25px; font-weight: 700; letter-spacing: -.025em; }
.step-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 30px; color: var(--muted); background: #f5f8f6; font-size: 11px; white-space: nowrap; }
.step-pill span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 10px; font-weight: 700; }
.step-pill i { width: 16px; height: 1px; display: block; background: #cbd9d3; }

/* Campos de selección, fecha, contacto y motivo. */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 19px; }
.date-grid { grid-template-columns: .72fr 1.28fr; }
.field { display: flex; flex-direction: column; gap: 8px; color: #315656; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #0785c5; box-shadow: 0 0 0 3px #0785c51a; }
.field select:disabled { color: #839494; background: #f6f8f6; }
.field textarea { min-height: 84px; resize: vertical; }
.reason-field { margin-bottom: 17px; }
.optional { color: #80918f; font-weight: 400; }
.divider { height: 1px; margin: 22px 0; background: #edf1ee; }

/* Botones de horario y estado seleccionado. */
.times { display: flex; flex-wrap: wrap; gap: 8px; min-height: 45px; }
.time-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 12px; cursor: pointer; }
.time-button:hover, .time-button.selected { border-color: var(--teal); color: #fff; background: var(--teal); }
.empty-state { padding: 8px 0; color: #8a9b98; font-size: 12px; font-weight: 400; }

/* Consentimiento, botón de envío y aviso de que es una maqueta. */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: var(--muted); font-size: 12px; }
.consent input { margin: 3px 0 0; accent-color: var(--teal); }
.submit-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 10px; color: #fff; background: var(--teal); font-size: 14px; font-weight: 700; cursor: pointer; }
.submit-button:hover { background: var(--teal-dark); }
.submit-button span { font-size: 18px; }
.privacy-note { margin: 12px 0 0; color: #899895; font-size: 11px; text-align: center; }

/* Tres pasos informativos debajo del formulario. */
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 5px 0 52px; }
.info-row > div { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--mint); font-size: 11px; font-weight: 800; }
.info-row h3 { margin: 0 0 4px; font-size: 13px; }
.info-row p { margin: 0; color: var(--muted); font-size: 12px; }

/* Pie de página y mensaje emergente de interacción. */
footer { max-width: 1180px; display: flex; justify-content: space-between; gap: 18px; margin: auto; padding: 20px 28px 28px; border-top: 1px solid var(--line); color: #758985; font-size: 11px; }
.toast { position: fixed; z-index: 5; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 12px; color: #fff; background: #173b3c; box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Diseño para celulares y tabletas angostas. */
@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 10px 18px; }
  .brand { gap: 9px; }
  .logo-placeholder { width: 42px; height: 42px; font-size: 7px; }
  .logo-image { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 9px; }
  .staff-link { max-width: 90px; font-size: 10px; text-align: right; }
  main { padding: 0 18px; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 34px; }
  .hero-copy { padding: 8px 0; }
  .hero h1 { font-size: 43px; }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .hero-art { height: 220px; border-radius: 28px 72px 28px 28px; }
  .booking-card { padding: 25px 20px 22px; border-radius: 18px; }
  .section-heading { display: block; }
  .step-pill { display: inline-flex; margin-top: 15px; }
  .form-grid, .date-grid { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
  .info-row { grid-template-columns: 1fr; gap: 18px; padding-bottom: 36px; }
  footer { display: block; padding: 18px; }
  footer span { display: block; margin: 4px 0; }
  .hours { margin-top: 20px; }
}

/* Respeta la preferencia del dispositivo por menos animaciones. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

