/* Scoped repairs for the calendar and signup dialog; keeps the existing visual system. */
#calendario .calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  align-items: stretch;
}

#calendario .calendar-grid > .calendar-weekday {
  display: block !important;
  grid-column: auto !important;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

#calendario .calendar-grid > .calendar-spacer { min-height: 84px; }

#calendario .calendar-grid > .calendar-day {
  display: flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100% !important;
  min-width: 0;
  min-height: 84px;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

#calendario .calendar-grid > .calendar-day b,
#calendario .calendar-grid > .calendar-day span {
  display: block !important;
  width: 100%;
  min-width: 0;
}

dialog.lead-dialog {
  position: fixed !important;
  inset: 0 !important;
  width: min(760px, calc(100vw - 32px)) !important;
  max-width: 760px !important;
  max-height: min(90dvh, 900px) !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: auto !important;
  border: 1px solid #603c72 !important;
  border-radius: 20px !important;
  background: #0d0b12 !important;
  color: #fff !important;
  box-shadow: 0 24px 90px #000b !important;
}

dialog.lead-dialog::backdrop { background: #050308cc; backdrop-filter: blur(5px); }

dialog.lead-dialog form {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 4vw, 38px) !important;
}

#lead-form .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 16px;
  width: 100%;
}

#lead-form .form-grid > label {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
  color: #e4dbea;
  font-size: .86rem;
  line-height: 1.4;
}

#lead-form .form-grid input,
#lead-form .form-grid select,
#lead-form .form-grid textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #4b3655;
  border-radius: 9px;
  background: #17111c;
  color: #fff;
  padding: 12px;
  font: inherit;
}

#lead-form .form-grid textarea { min-height: 105px; }
#lead-form .form-grid .full-field { grid-column: 1 / -1; }
#lead-form .form-grid .consent { flex-direction: row !important; align-items: flex-start; }
#lead-form .form-grid .consent input { width: auto; min-height: 0; margin-top: 3px; }
#lead-form .form-grid :focus-visible { outline: 2px solid #e100ff; outline-offset: 2px; }

.mode-cards .mode-home {
  grid-column: 1 / -1;
  border-color: #603c72;
  background: linear-gradient(100deg, #100e15, #1b0d24);
}

.mode-home .mode-copy { max-width: 860px; }

.format-compare > div {
  grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr)) !important;
}

.choice strong > small {
  display: block;
  color: #b8a9c2;
  font-size: .62rem;
  font-weight: 500;
  text-align: right;
}

.home-approval-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #704288;
  border-radius: 9px;
  background: #201128;
  color: #e8ddec;
  font-size: .82rem;
  line-height: 1.55;
}

.home-approval-note strong { color: #f1b8ff; }

/* Brand symbol stays optically centered and consistent in both WhatsApp touchpoints. */
.whatsapp-widget .whatsapp-float { display: grid !important; place-items: center !important; }
.whatsapp-brand-icon { display: none !important; }
.whatsapp-widget .whatsapp-float::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: url("assets/whatsapp-mark.svg") center / contain no-repeat;
}
.whatsapp-greeting-mark svg { display: none; }
.whatsapp-greeting-mark::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: url("assets/whatsapp-mark.svg") center / contain no-repeat;
}

.guarantee-band {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 84px) 0;
  border-block: 1px solid #4b2162;
  background: #100b16 url("assets/guarantee-bg-version-a.webp") center / cover no-repeat;
  isolation: isolate;
}

.guarantee-band::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7,6,12,.94), rgba(15,8,22,.82) 58%, rgba(7,6,12,.7));
}

.guarantee-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.guarantee-inner h2 { max-width: 800px; margin: 8px 0 14px; }
.guarantee-inner h2 em { color: #e100ff; font-style: normal; }
.guarantee-inner p:not(.eyebrow) { max-width: 740px; margin: 0; color: #e2dce8; line-height: 1.7; }
.guarantee-whimsy { display: block; margin-top: 12px; color: #d6bbdf; font-size: .9rem; font-style: italic; }
.guarantee-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 172px;
  border: 1px solid #db47ff;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 0 8px #e100ff12, 0 0 42px #e100ff38, inset 0 0 35px #8500a52e;
}
.guarantee-seal::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: inherit;
  content: "";
}
.guarantee-seal strong { font-size: 4.4rem; font-weight: 800; line-height: .72; letter-spacing: -.08em; }
.guarantee-seal .guarantee-days { margin-top: 12px; color: #fff; font-size: .88rem; font-weight: 700; letter-spacing: .18em; line-height: 1; text-transform: uppercase; }
.guarantee-seal small { margin-top: 12px; color: #e7b5f4; font-size: .58rem; font-weight: 600; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }

.hero-art.hero-video {
  display: flex;
  align-items: center;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  background: #09070e;
}
.hero-art.hero-video::before,
.hero-art.hero-video::after { display: none; }
.hero-video-frame { width: 100%; aspect-ratio: 16 / 9; }
.hero-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 700px) {
  #lead-form .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #lead-form .form-grid .full-field { grid-column: auto; }
  #calendario .calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 5px; }
  #calendario .calendar-grid > .calendar-spacer { min-height: 60px; }
  #calendario .calendar-grid > .calendar-day { min-height: 60px; padding: 7px 4px; }
  #calendario .calendar-grid > .calendar-day span { display: none !important; }
  #calendario .calendar-grid > .calendar-day.has-slot::after { content: "Reservar"; display: block; margin-top: 5px; color: #e4dbea; font-size: .62rem; line-height: 1.2; }
  #calendario .calendar-grid > .calendar-day.calendar-past::after { content: ""; }
  #calendario .calendar-grid > .calendar-day b { font-size: 1rem; }
  .guarantee-inner { grid-template-columns: 1fr; gap: 22px; }
  .guarantee-seal { width: 138px; height: 138px; }
  .guarantee-seal strong { font-size: 3.5rem; }
  .guarantee-seal .guarantee-days { margin-top: 10px; font-size: .76rem; }
  .guarantee-seal small { margin-top: 9px; font-size: .51rem; }
  .hero-art.hero-video { min-height: 0; aspect-ratio: 16 / 9; }
  .mode-cards .mode-home { grid-column: auto; }
  .format-compare > div { grid-template-columns: 1fr 1fr 1fr !important; }
  .format-compare > div > span:first-child,
  .format-compare .compare-head > span:first-child { grid-column: 1 / -1 !important; }
  .format-compare .compare-head > strong { grid-row: 2; }
  .format-switch { overflow-x: auto; }
  .format-switch button { min-width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget .whatsapp-float { animation: none; }
  .whatsapp-notification { animation: none; }
}
