/* PA Reservas — front. Réplica de la sección Availability del sitio React. */

.pr { background: #ffffff; font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; color: #241a12; }
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
/* nuestras reglas de display:block/flex (ej. .pr-btn) le ganan al [hidden] nativo
   del navegador porque ambos son estilos de autor con la misma especificidad;
   esto fuerza que [hidden] siempre gane adentro del widget. */
.pr [hidden] { display: none !important; }
.pr__inner { width: 100%; max-width: 1240px; margin-inline: auto; padding: 6rem 1.5rem; }
@media (min-width: 768px) { .pr__inner { padding: 8rem 2.5rem; } }

/* ---------- header ---------- */
.pr__header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .pr__header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.pr__header-left { max-width: 42rem; }
.pr-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #a3431f; font-weight: 500;
}
.pr__title {
  margin: 1rem 0 0; font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.01em; color: #241a12;
}
.pr__sub { margin: 1.5rem 0 0; color: #8a7660; max-width: 28rem; line-height: 1.6; font-size: 1rem; }
.pr__legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.75rem; color: #8a7660; }
.pr__legend-item { display: flex; align-items: center; gap: 0.5rem; }
.pr-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.pr-dot--glacier { background: #e3a85c; }
.pr-dot--primary { background: #a3431f; }
.pr-dot--stone { background: rgba(171,150,120,0.4); }

/* ---------- tabs de planes (hasta 6) ---------- */
.pr__tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #e6d9c4; margin-bottom: 2.5rem; }
@media (min-width: 768px) {
  .pr__tabs[data-count="1"] { grid-template-columns: repeat(1, 1fr); }
  .pr__tabs[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .pr__tabs[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
  .pr__tabs[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
  .pr__tabs[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
  .pr__tabs[data-count="6"] { grid-template-columns: repeat(6, 1fr); }
}
.pr-tab { padding: 1.25rem; text-align: left; background: #ffffff; border: 0; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.pr-tab:hover { background: #faf1e6; }
.pr-tab.is-active { background: #a3431f; }
.pr-tab__badge { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8a7660; }
.pr-tab.is-active .pr-tab__badge { color: #e3a85c; }
.pr-tab__label { margin-top: 0.5rem; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: #241a12; }
.pr-tab.is-active .pr-tab__label { color: #ffffff; }

/* ---------- grilla calendario + aside ---------- */
.pr__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: #e6d9c4; border: 1px solid #e6d9c4; }
@media (min-width: 1024px) { .pr__grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.pr__cal-wrap { background: #ffffff; padding: 1.5rem; display: flex; justify-content: center; min-width: 0; }
@media (min-width: 768px) { .pr__cal-wrap { padding: 2.5rem; } }

/* ---------- calendario ---------- */
.pr-cal { --cell: 2.6rem; width: calc(var(--cell) * 7 + 6px); max-width: 100%; }
@media (min-width: 768px) { .pr-cal { --cell: 3rem; } }
.pr-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pr-cal__caption { font-family: "Fraunces", Georgia, serif; font-size: 1.125rem; text-transform: capitalize; color: #241a12; }
.pr-cal__nav {
  width: 2rem; height: 2rem; border: 1px solid #e6d9c4; background: #fff; color: #a3431f;
  cursor: pointer; transition: all 0.2s; font-size: 0.9rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.pr-cal__nav:hover:not(:disabled) { background: #a3431f; color: #fff; border-color: #a3431f; }
.pr-cal__nav:disabled { opacity: 0.3; cursor: default; }
.pr-cal__weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin-bottom: 0.25rem; }
.pr-cal__wd { text-align: center; color: #ab9678; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.65rem; font-weight: 500; padding: 0.4rem 0; }
.pr-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.pr-day {
  position: relative; height: var(--cell); border: 0; background: transparent;
  font-family: inherit; font-size: 0.875rem; color: #241a12; cursor: default;
  padding: 0 !important; min-width: 0; width: auto;
}
.pr-day--available { color: #a3431f; font-weight: 600; cursor: pointer; }
.pr-day--available::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 999px; background: #e3a85c;
}
.pr-day--available:hover { background: #faf1e6; }
.pr-day--selected { background: #a3431f !important; color: #ffffff !important; }
.pr-day--selected::after { background: #e3a85c; }
.pr-day--blocked { color: rgba(171,150,120,0.6); text-decoration: line-through; }
.pr-day--full { color: rgba(171,150,120,0.8); text-decoration: line-through; }
.pr-day--off { color: rgba(36,26,18,0.25); }
.pr-day--empty { pointer-events: none; }

/* ---------- aside ---------- */
.pr__aside { background: #faf1e6; padding: 2rem; display: flex; flex-direction: column; }
@media (min-width: 768px) { .pr__aside { padding: 2.5rem; } }
.pr__aside-title { margin-top: 0.75rem; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: #241a12; }
.pr__aside-price { margin-top: 0.25rem; font-size: 0.875rem; color: #a3431f; font-weight: 500; }
.pr-hairline { height: 1px; margin-top: 1.5rem; background: linear-gradient(90deg, transparent, #ab9678, transparent); }
.pr__deps-wrap { margin-top: 1.5rem; }
.pr__deps { list-style: none; margin: 0; padding: 0 0.5rem 0 0; max-height: 184px; overflow: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.pr__dep {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.5rem 0.75rem; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.875rem; color: #241a12; transition: background 0.2s; text-align: left;
}
.pr__dep:hover { background: #ffffff; }
.pr__dep.is-selected { background: #a3431f; color: #ffffff; }
.pr__dep-day { font-weight: 500; }
.pr__dep-wd { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: #8a7660; }
.pr__dep.is-selected .pr__dep-wd { color: #e3a85c; }
.pr__dep-full { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ab9678; }
.pr__deps-note { font-size: 0.875rem; color: #8a7660; line-height: 1.6; margin: 0; }

/* ---------- seleccionado + botones ---------- */
.pr__selected { margin-top: auto; padding-top: 2rem; }
.pr__selected-date { margin-top: 0.5rem; font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; color: #241a12; }
.pr__spots { margin-top: 0.25rem; font-size: 0.75rem; color: #8a7660; }
.pr__spots.is-low { color: #b8860b; }
.pr__pax { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.pr__pax-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8a7660; font-weight: 500; }
.pr__pax-ctrl { display: flex; align-items: center; gap: 0; border: 1px solid #a3431f; }
.pr__pax-ctrl button {
  width: 2.2rem; height: 2.2rem; border: 0; background: transparent; color: #a3431f;
  font-size: 1.1rem; cursor: pointer; transition: background 0.2s; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.pr__pax-ctrl button:hover { background: #a3431f; color: #fff; }
.pr__pax-ctrl span { min-width: 2.4rem; text-align: center; font-weight: 500; color: #241a12; }
.pr-btn {
  display: block; width: 100%; text-align: center; padding: 0.875rem 1.5rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.pr-btn--reserve { margin-top: 1.25rem; background: #a3431f; color: #ffffff; border: 1px solid #a3431f; }
.pr-btn--reserve:hover { background: #241a12; border-color: #241a12; color: #ffffff; }
.pr-btn--contact { margin-top: 0.6rem; background: transparent; color: #a3431f; border: 1px solid #a3431f; }
.pr-btn--contact:hover { background: #a3431f; color: #ffffff; }
.pr-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.pr__hint { margin-top: auto; padding-top: 2rem; font-size: 0.75rem; color: #8a7660; }

/* ---------- blindaje contra estilos de botones del theme (Hello pinta rosa el hover/focus) ---------- */
.pr button, .pr button:hover, .pr button:focus, .pr button:active {
  -webkit-appearance: none; appearance: none;
  box-shadow: none !important; outline: none !important; border-radius: 0 !important;
  font-family: inherit;
}
/* .page-content a del tema (specificity 0,1,1) le gana a .pr-btn (0,1,0) y subraya */
.pr .pr-btn, .pr .pr-btn:hover, .pr .pr-btn:focus, .pr .pr-btn:active {
  text-decoration: none !important;
}
.pr .pr__pax-ctrl button { background: transparent !important; color: #a3431f !important; border: 0 !important; }
.pr .pr__pax-ctrl button:hover, .pr .pr__pax-ctrl button:focus, .pr .pr__pax-ctrl button:active {
  background: #a3431f !important; color: #ffffff !important;
}
.pr .pr-tab { background: #ffffff !important; }
.pr .pr-tab:hover, .pr .pr-tab:focus { background: #faf1e6 !important; }
.pr .pr-tab.is-active, .pr .pr-tab.is-active:hover, .pr .pr-tab.is-active:focus { background: #a3431f !important; }
.pr .pr-day, .pr .pr-day:hover, .pr .pr-day:focus { background: transparent; }
.pr .pr-day--available:hover, .pr .pr-day--available:focus { background: #faf1e6 !important; color: #a3431f !important; }
.pr .pr-day--selected, .pr .pr-day--selected:hover, .pr .pr-day--selected:focus { background: #a3431f !important; color: #ffffff !important; }
.pr .pr-day--blocked:hover, .pr .pr-day--full:hover, .pr .pr-day--off:hover,
.pr .pr-day--blocked:focus, .pr .pr-day--full:focus, .pr .pr-day--off:focus { background: transparent !important; color: inherit; }
.pr .pr__dep:hover, .pr .pr__dep:focus { background: #ffffff !important; color: #241a12 !important; }
.pr .pr__dep.is-selected, .pr .pr__dep.is-selected:hover, .pr .pr__dep.is-selected:focus { background: #a3431f !important; color: #ffffff !important; }
.pr .pr-cal__nav { background: #ffffff !important; color: #a3431f !important; }
.pr .pr-cal__nav:hover, .pr .pr-cal__nav:focus { background: #a3431f !important; color: #ffffff !important; }

/* ---------- estado :active (el theme pinta rosa al APRETAR) ---------- */
.pr .pr-cal__nav:active { background: #a3431f !important; color: #ffffff !important; border-color: #a3431f !important; }
.pr .pr-cal__nav:disabled, .pr .pr-cal__nav:disabled:hover,
.pr .pr-cal__nav:disabled:focus, .pr .pr-cal__nav:disabled:active {
  background: #ffffff !important; color: #a3431f !important; border-color: #e6d9c4 !important;
}
.pr .pr-tab:active { background: #faf1e6 !important; }
.pr .pr-tab.is-active:active { background: #a3431f !important; }
.pr .pr-day--available:active { background: #faf1e6 !important; color: #a3431f !important; }
.pr .pr-day--selected:active { background: #a3431f !important; color: #ffffff !important; }
.pr .pr__dep:active { background: #ffffff !important; color: #241a12 !important; }
.pr .pr__dep.is-selected:active { background: #a3431f !important; color: #ffffff !important; }

/* ---------- duración + horarios ---------- */
.pr__aside-duration { margin-top: 2px; font-size: 0.8rem; color: #8a7660; }
.pr__times { margin-top: 14px; }
.pr__times-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8a7660; font-weight: 500;
}
.pr__slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pr .pr-slot {
  padding: 9px 16px; border: 1px solid rgba(163,67,31,0.45) !important; background: transparent !important;
  color: #a3431f !important; font-family: 'Space Grotesk', sans-serif; font-size: 13px; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.15s; border-radius: 0 !important;
}
.pr .pr-slot:hover, .pr .pr-slot:focus, .pr .pr-slot:active {
  border-color: #a3431f !important; background: rgba(163,67,31,0.08) !important; color: #a3431f !important;
}
.pr .pr-slot.is-selected, .pr .pr-slot.is-selected:hover, .pr .pr-slot.is-selected:focus {
  background: #a3431f !important; color: #ffffff !important; border-color: #a3431f !important;
}
.pr .pr-slot.is-full, .pr .pr-slot.is-full:hover {
  opacity: 0.45; text-decoration: line-through; cursor: default;
  border-color: #ab9678 !important; color: #8a7660 !important; background: transparent !important;
}

/* ---------- formulario de contacto (contenedor aparte, mismo ancho) ---------- */
.pr__contact {
  margin-top: 1px; background: #faf1e6; padding: 2.5rem;
}
@media (min-width: 768px) { .pr__contact { padding: 3rem; } }
.pr__contact-title {
  margin: 0.5rem 0 1.5rem; font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: 1.5rem; color: #241a12;
}
.pr__contact-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .pr__contact-row { grid-template-columns: 1fr 1fr; } }
.pr__contact-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.pr__contact-row .pr__contact-field { margin-bottom: 0; }
.pr__contact-field--full { max-width: 100%; }
.pr__contact-field span {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a7660; font-weight: 500;
}
.pr__contact-field input, .pr__contact-field textarea {
  border: 1px solid #d9c7a8; border-radius: 6px; padding: 0.7rem 0.85rem; font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif; color: #241a12; background: #ffffff; resize: vertical;
}
.pr__contact-field input:focus, .pr__contact-field textarea:focus {
  outline: none; border-color: #a3431f; box-shadow: 0 0 0 3px rgba(163,67,31,.15);
}
.pr__contact-recaptcha { margin: 0.5rem 0 1.25rem; }
.pr__contact form .pr-btn { max-width: 260px; }
.pr__contact-msg { margin-top: 1rem; font-size: 0.85rem; }
.pr__contact-msg.is-ok { color: #136c43; }
.pr__contact-msg.is-error { color: #a33; }
