:root {
  --agenda-navy: #003C48;
  --agenda-blue: #003C48;
  --agenda-cyan: #008D99;
  --agenda-teal: #008D99;
  --agenda-teal-dark: #008D99;
  --agenda-coral: #008D99;
  --agenda-text: #003C48;
  --agenda-muted: #003C48;
  --agenda-line: #0FC8D8;
  --agenda-soft: #f3faff;
  --agenda-white: #fff;
  --agenda-shadow: 0 18px 48px rgba(0, 60, 72, .1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.agenda-page {
  color: var(--agenda-text);
  background: var(--agenda-white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

.agenda-main {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.agenda-main img,
.agenda-main svg,
.agenda-main video,
.agenda-main iframe {
  max-width: 100%;
}

.agenda-main a {
  text-decoration: none;
}

.agenda-container {
  width: min(100% - 44px, 1284px);
  margin: 0 auto;
}

/* Cabecera basada en el lenguaje visual del index. */
.agenda-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 141, 153, .18), transparent 24%),
    radial-gradient(circle at 8% 86%, rgba(0, 141, 153, .11), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f3faff 54%, #e8f9fa 100%);
}

.agenda-hero::before,
.agenda-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 60, 72, .1);
  pointer-events: none;
}

.agenda-hero::before {
  top: -210px;
  right: -110px;
  width: 560px;
  height: 560px;
}

.agenda-hero::after {
  right: 190px;
  bottom: -270px;
  width: 440px;
  height: 440px;
}

.agenda-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 70px;
}

.agenda-hero__copy {
  max-width: 760px;
}

.agenda-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #003C48;
  font-size: 12px;
  font-weight: 600;
}

.agenda-breadcrumb a {
  color: var(--agenda-blue);
}

.agenda-breadcrumb i {
  font-size: 9px;
}

.agenda-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--agenda-teal-dark);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.agenda-eyebrow i {
  font-size: 18px;
}

.agenda-hero h1 {
  margin: 0;
  color: var(--agenda-navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(42px, 4vw, 70px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
}

.agenda-hero h1 span {
  display: block;
  color: var(--agenda-blue);
}

.agenda-hero__lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: #003C48;
  font-size: 14px;
  line-height: 1.65;
}

.agenda-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.agenda-hero__benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 60, 72, .13);
  border-radius: 999px;
  color: #003C48;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 5px 15px rgba(0, 60, 72, .05);
  font-size: 12px;
  font-weight: 700;
}

.agenda-hero__benefits i {
  color: var(--agenda-teal-dark);
  font-size: 17px;
}

.agenda-hero__visual {
  position: relative;
  width: 240px;
  height: 200px;
  justify-self: center;
}

.agenda-hero__calendar {
  position: absolute;
  inset: 4px auto auto 0;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 60, 72, .12);
  border-radius: 34px;
  color: var(--agenda-blue);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--agenda-shadow);
  transform: rotate(-5deg);
  font-size: 83px;
}

.agenda-hero__pulse {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 93px;
  height: 93px;
  display: grid;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--agenda-coral), #0FC8D8);
  box-shadow: 0 15px 28px rgba(0, 141, 153, .22);
  font-size: 42px;
}

/* Contenedor de agenda. Sin alturas fijas ni scroll interno. */
.agenda-booking {
  position: relative;
  padding: 52px 0 68px;
  overflow: visible;
  background: #fff;
}

.agenda-booking__heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.agenda-booking__heading > span {
  color: var(--agenda-teal-dark);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.agenda-booking__heading h2 {
  margin: 6px 0 0;
  color: var(--agenda-navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -.035em;
  font-weight: 800;
}

.agenda-booking__heading > i {
  display: block;
  width: 48px;
  height: 4px;
  margin: 15px auto;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--agenda-blue), var(--agenda-teal));
}

.agenda-booking__heading p {
  margin: 0;
  color: var(--agenda-muted);
  font-size: 14px;
  line-height: 1.55;
}

.agenda-booking__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 24px;
  color: #003C48;
  font-size: 12px;
  font-weight: 700;
}

.agenda-booking__steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agenda-booking__steps b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--agenda-blue), var(--agenda-teal));
  font-size: 11px;
}

.agenda-booking__steps > i {
  color: #008D99;
  font-size: 11px;
}

.agenda-type-choice {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.agenda-type-choice[hidden],
[data-medical-booking-flow][hidden] {
  display: none !important;
}

.agenda-type-choice__option {
  min-height: 190px;
  padding: 28px 22px;
  border: 1px solid rgba(0, 141, 153, .22);
  border-radius: 22px;
  color: var(--agenda-text);
  background: #fff;
  box-shadow: var(--agenda-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.agenda-type-choice__option:hover,
.agenda-type-choice__option:focus-visible {
  transform: translateY(-4px);
  border-color: var(--agenda-cyan);
  box-shadow: 0 20px 45px rgba(0, 141, 153, .16);
  outline: none;
}

.agenda-type-choice__option > i {
  margin-bottom: 5px;
  color: var(--agenda-teal);
  font-size: 38px;
}

.agenda-type-choice__option strong {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 18px;
}

.agenda-type-choice__option span {
  color: var(--agenda-muted);
  font-size: 12px;
}

[data-medical-booking-flow] {
  scroll-margin-top: 120px;
}

.agenda-widget {
  overflow-anchor: none;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  min-height: 590px;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 30px);
  overflow: visible;
  border: 1px solid var(--agenda-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 141, 153, .07), transparent 27%),
    #fff;
  box-shadow: var(--agenda-shadow);
}

.agenda-widget__frame {
  width: 100%;
  max-width: 100%;
  min-height: 528px;
  display: block;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.agenda-embed-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--agenda-text);
  background: transparent;
  font-family: "Inter", Arial, sans-serif;
}

#siliconriver-app {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 528px;
  overflow: visible !important;
  color: var(--agenda-text);
  font-family: "Inter", Arial, sans-serif;
}

#siliconriver-app:empty {
  display: grid;
  place-items: center;
}

#siliconriver-app:empty::before {
  content: "Cargando agenda médica…";
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #0FC8D8;
  border-radius: 999px;
  color: var(--agenda-teal-dark);
  background: #eefafa;
  font-size: 13px;
  font-weight: 700;
}

#siliconriver-app,
#siliconriver-app > *,
#siliconriver-app form,
#siliconriver-app section,
#siliconriver-app main {
  max-width: 100%;
  min-width: 0;
}

#siliconriver-app *,
#siliconriver-app *::before,
#siliconriver-app *::after {
  box-sizing: border-box;
}

#siliconriver-app img,
#siliconriver-app svg,
#siliconriver-app video {
  max-width: 100%;
}

/* Paleta Medisis aplicada al código de Silicon River. */
#siliconriver-app .ring-primary {
  --tw-ring-color: rgb(0 141 153 / var(--tw-ring-opacity)) !important;
}

#siliconriver-app .ring-orange-300 {
  --tw-ring-opacity: 1 !important;
  --tw-ring-color: rgb(15 200 216 / var(--tw-ring-opacity)) !important;
}

#siliconriver-app .scrollbar-thumb-primary {
  --scrollbar-thumb: rgb(0 141 153) !important;
}

#siliconriver-app .text-amber-900,
#siliconriver-app .text-orange-500,
#siliconriver-app .text-primary,
#siliconriver-app .text-amber-600 {
  --tw-text-opacity: 1 !important;
  color: rgb(0 141 153 / var(--tw-text-opacity)) !important;
}

#siliconriver-app .bg-amber-100,
#siliconriver-app .bg-orange-100 {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(15 200 216 / var(--tw-bg-opacity)) !important;
}

#siliconriver-app .hover\:ring-orange-300:hover {
  --tw-ring-opacity: .3 !important;
  --tw-ring-color: rgb(15 200 216 / var(--tw-ring-opacity)) !important;
}

#siliconriver-app .hover\:bg-orange-400:hover {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(0 141 153 / var(--tw-bg-opacity)) !important;
}

#siliconriver-app .hover\:bg-primary:hover,
#siliconriver-app .bg-primary {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(0 141 153 / var(--tw-bg-opacity)) !important;
}

#siliconriver-app :is(h1, h2, h3, h4, h5, h6) {
  color: #008D99 !important;
}

#siliconriver-app .border-orange-300 {
  --tw-border-opacity: 1 !important;
  border-color: rgb(15 200 216 / var(--tw-border-opacity)) !important;
}

#siliconriver-app .border-orange-200 {
  --tw-border-opacity: 1 !important;
  border-color: rgb(15 200 216 / var(--tw-border-opacity)) !important;
}

#siliconriver-app .focus-visible\:border-primary:focus-visible,
#siliconriver-app .focus\:border-primary:focus {
  --tw-border-opacity: 1 !important;
  border-color: rgb(0 141 153 / var(--tw-border-opacity)) !important;
}

#siliconriver-app .focus-visible\:ring-offset-orange-300:focus-visible {
  --tw-ring-offset-color: #0FC8D8 !important;
}

#siliconriver-app .focus\:ring-orange-300:focus {
  --tw-ring-opacity: 1 !important;
  --tw-ring-color: rgb(15 200 216 / var(--tw-ring-opacity)) !important;
}

#siliconriver-app .vc-highlight {
  background: #008D99 !important;
}

#siliconriver-app .vc-day-content:hover,
#siliconriver-app .vc-day-content:focus {
  box-shadow: inset 0 0 0 2px #008D99 !important;
  background: none !important;
}

#siliconriver-app .bg-orange-50 {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(231 247 247 / var(--tw-bg-opacity)) !important;
}

#siliconriver-app .bg-orange-200 {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(15 200 216 / var(--tw-bg-opacity)) !important;
}

/* Sustituye los anchos y desplazamientos fijos del código original. */
#siliconriver-app .sm\:mt-0 {
  margin-left: 0 !important;
}

#siliconriver-app .w-\[280px\] {
  width: min(100%, 400px) !important;
  max-width: 100% !important;
}

.agenda-error {
  min-height: 528px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--agenda-text);
  text-align: center;
}

.agenda-error i {
  color: var(--agenda-coral);
  font-size: 40px;
}

.agenda-error strong {
  color: var(--agenda-navy);
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

.agenda-error span {
  color: var(--agenda-muted);
  font-size: 13px;
}

.agenda-booking__help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px auto 0;
  color: var(--agenda-muted);
  font-size: 12px;
  text-align: center;
}

.agenda-booking__help i,
.agenda-booking__help a {
  color: var(--agenda-blue);
}

.agenda-booking__help a {
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .agenda-hero__inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
  }

  .agenda-hero__visual {
    width: 168px;
    height: 152px;
  }

  .agenda-hero__calendar {
    width: 131px;
    height: 131px;
    border-radius: 26px;
    font-size: 61px;
  }

  .agenda-hero__pulse {
    width: 67px;
    height: 67px;
    border-width: 5px;
    font-size: 30px;
  }
}

@media (max-width: 767.98px) {
  .agenda-container {
    width: min(100% - 30px, 1284px);
  }

  .agenda-hero {
    min-height: 0;
  }

  .agenda-hero__inner {
    min-height: 0;
    display: block;
    padding-top: 28px;
    padding-bottom: 32px;
    text-align: center;
  }

  .agenda-breadcrumb,
  .agenda-eyebrow,
  .agenda-hero__benefits {
    justify-content: center;
  }

  .agenda-breadcrumb {
    margin-bottom: 18px;
  }

  .agenda-hero h1 {
    font-size: 38px;
  }

  .agenda-hero__lead {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.55;
  }

  .agenda-hero__benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 18px;
  }

  .agenda-hero__benefits span {
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .agenda-hero__visual {
    display: none;
  }

  .agenda-booking {
    padding: 32px 0 46px;
  }

  .agenda-booking__heading {
    margin-bottom: 18px;
  }

  .agenda-booking__heading h2 {
    font-size: 28px;
  }

  .agenda-booking__heading p {
    font-size: 12px;
  }

  .agenda-booking__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    max-width: 280px;
    margin-bottom: 18px;
  }

  .agenda-booking__steps span {
    justify-content: flex-start;
  }

  .agenda-booking__steps > i {
    display: none;
  }

  .agenda-widget {
    min-height: 500px;
    padding: 10px;
    border-radius: 16px;
  }

  .agenda-widget__frame {
    min-height: 478px;
  }

  #siliconriver-app {
    min-height: 478px;
  }

  #siliconriver-app .w-\[280px\] {
    width: 100% !important;
    max-width: 300px !important;
    font-size: 12px !important;
  }

  #siliconriver-app .font-normal,
  #siliconriver-app .sm\:text-sm {
    font-size: 12px !important;
  }

  #siliconriver-app .pl-10 {
    padding-left: 20px !important;
  }

  #siliconriver-app .w-5 {
    display: none !important;
  }

  .agenda-booking__help {
    align-items: flex-start;
    font-size: 11px;
  }
}

@media (max-width: 479.98px) {
  .agenda-hero h1 {
    font-size: 34px;
  }

  .agenda-widget {
    width: calc(100% + 10px);
    margin-left: -5px;
    padding: 7px;
  }

  .agenda-type-choice {
    grid-template-columns: 1fr;
  }

  .agenda-type-choice__option {
    min-height: 145px;
  }
}

/* La selección inicial cabe completa en pantallas medianas y teléfonos. */
@media (max-width: 991.98px), (max-width: 1366px) and (max-height: 760px) {
  .agenda-page--choosing .agenda-hero,
  .agenda-page--choosing .agenda-hero__inner {
    min-height: 0;
  }

  .agenda-page--choosing .agenda-hero__inner {
    display: block;
    padding-top: 16px;
    padding-bottom: 18px;
    text-align: center;
  }

  .agenda-page--choosing .agenda-breadcrumb,
  .agenda-page--choosing .agenda-hero__lead,
  .agenda-page--choosing .agenda-hero__benefits,
  .agenda-page--choosing .agenda-hero__visual {
    display: none;
  }

  .agenda-page--choosing .agenda-eyebrow {
    justify-content: center;
    margin-bottom: 5px;
    font-size: 11px;
  }

  .agenda-page--choosing .agenda-hero h1 {
    font-size: clamp(27px, 5vw, 36px);
    line-height: 1.05;
    letter-spacing: -.04em;
  }

  .agenda-page--choosing .agenda-hero h1 span {
    display: inline;
  }

  .agenda-page--choosing .agenda-booking {
    padding: 18px 0 22px;
  }

  .agenda-page--choosing .agenda-booking__heading {
    margin-bottom: 14px;
  }

  .agenda-page--choosing .agenda-booking__heading h2 {
    margin-top: 3px;
    font-size: clamp(22px, 4vw, 30px);
  }

  .agenda-page--choosing .agenda-booking__heading > i {
    height: 3px;
    margin: 8px auto;
  }

  .agenda-page--choosing .agenda-type-choice {
    gap: 12px;
  }

  .agenda-page--choosing .agenda-type-choice__option {
    min-height: 126px;
    padding: 16px 14px;
    border-radius: 17px;
  }

  .agenda-page--choosing .agenda-type-choice__option > i {
    margin-bottom: 1px;
    font-size: 31px;
  }

  .agenda-page--choosing .agenda-type-choice__option strong {
    font-size: 16px;
  }
}

@media (max-width: 479.98px) {
  .agenda-page--choosing .agenda-container {
    width: min(100% - 24px, 1284px);
  }

  .agenda-page--choosing .agenda-hero__inner {
    padding-top: 11px;
    padding-bottom: 12px;
  }

  .agenda-page--choosing .agenda-eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .agenda-page--choosing .agenda-hero h1 {
    font-size: 25px;
  }

  .agenda-page--choosing .agenda-booking {
    padding: 13px 0 16px;
  }

  .agenda-page--choosing .agenda-booking__heading {
    margin-bottom: 10px;
  }

  .agenda-page--choosing .agenda-booking__heading > span {
    font-size: 10px;
  }

  .agenda-page--choosing .agenda-booking__heading h2 {
    font-size: 21px;
  }

  .agenda-page--choosing .agenda-booking__heading p {
    font-size: 11px;
  }

  .agenda-page--choosing .agenda-type-choice {
    gap: 9px;
  }

  .agenda-page--choosing .agenda-type-choice__option {
    min-height: 94px;
    padding: 10px 12px;
    gap: 4px;
  }

  .agenda-page--choosing .agenda-type-choice__option > i {
    font-size: 25px;
  }

  .agenda-page--choosing .agenda-type-choice__option strong {
    font-size: 14px;
  }

  .agenda-page--choosing .agenda-type-choice__option span {
    font-size: 10px;
  }
}

/* Tras elegir medicina, el main queda dedicado completamente al formulario. */
.agenda-page--medical .agenda-hero,
.agenda-page--medical .agenda-booking__heading,
.agenda-page--medical .agenda-booking__steps,
.agenda-page--medical .agenda-booking__help {
  display: none !important;
}

.agenda-page--medical .agenda-booking {
  min-height: calc(100svh - 140px);
  padding: 10px 0 24px;
}

.agenda-page--medical .agenda-container {
  width: min(100% - 20px, 1220px);
}

.agenda-page--medical .agenda-widget {
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .agenda-page--choosing .agenda-hero {
    display: none;
  }

  .agenda-page--choosing .agenda-main {
    min-height: calc(100svh - 114px);
    display: flex;
    flex-direction: column;
  }

  .agenda-page--choosing .agenda-booking {
    min-height: calc(100svh - 114px);
    flex: 1 1 auto;
    display: flex;
    padding: 18px 0 calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .agenda-page--choosing .agenda-booking > .agenda-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .agenda-page--choosing .agenda-type-choice {
    flex: 1 1 auto;
    grid-template-rows: repeat(2, minmax(130px, 1fr));
  }

  .agenda-page--choosing .agenda-type-choice__option {
    min-height: 130px;
    padding: 18px 16px;
  }

  .agenda-page--choosing .agenda-type-choice__option > i {
    font-size: 32px;
  }

  .agenda-page--choosing .agenda-type-choice__option strong {
    font-size: 16px;
  }

  .agenda-page--choosing .agenda-type-choice__option span {
    font-size: 11px;
  }

  .agenda-page--medical .agenda-booking {
    min-height: calc(100svh - 114px);
    padding: 4px 0 12px;
  }

  .agenda-page--medical .agenda-container {
    width: min(100% - 8px, 1220px);
  }

  .agenda-page--medical .agenda-widget {
    width: 100%;
    margin: 0;
    border-radius: 12px;
  }
}

@media (max-width: 479.98px) {
  .agenda-page--choosing .agenda-booking {
    padding-top: 15px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .agenda-page--choosing .agenda-type-choice {
    grid-template-rows: repeat(2, minmax(108px, 1fr));
    gap: 12px;
  }

  .agenda-page--choosing .agenda-type-choice__option {
    min-height: 108px;
    padding: 16px 14px;
    gap: 7px;
  }
}
