/* Países: mismo componente, superficie clara o verde según el formulario. */
body.rp-country-open { overflow: hidden; }
.rp-country-field { position: relative; display: block; min-width: 0; width: 100%; }
:is(.sitio-reservas, .rp) select.rp-country-native {
  position: absolute !important; width: 1px !important; height: 1px !important;
  min-width: 0 !important; min-height: 0 !important; margin: 0 !important;
  padding: 0 !important; border: 0 !important; opacity: 0; clip-path: inset(50%); pointer-events: none;
}
:is(.rp-country-field, .rp-country-dialog) {
  --country-bg: #fbf8f1; --country-ink: #24211b; --country-muted: #6e665a;
  --country-line: rgba(36,33,27,.16); --country-hover: #e6ede4;
  --country-accent: #3c5a43; --country-selected: #3c5a43;
  font-family: -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
}
.rp-form-card .rp-country-field, .rp-country-dialog.rp-country-dark {
  --country-bg: #293329; --country-ink: #f8f5ed; --country-muted: #c5cec2;
  --country-line: rgba(255,255,255,.2); --country-hover: #374636;
  --country-accent: #cfab6a; --country-selected: #435f49;
}
:is(.sitio-reservas, .rp) .rp-country-trigger {
  display: flex; align-items: center; gap: 9px; box-sizing: border-box;
  width: 100%; min-width: 0; min-height: 47px; padding: 12px 13px;
  border: 1px solid var(--country-line); border-radius: 11px;
  background: var(--country-bg); color: var(--country-ink);
  font: 400 15px/1.4 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  text-align: left; cursor: pointer; transition: border-color .16s, background .16s;
}
.rp-form-card .rp-country-trigger { background: rgba(255,255,255,.06); }
.rp-country-trigger .rp-country-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-country-code { flex: none; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.rp-country-trigger > .rp-country-code { color: var(--country-muted); }
.rp-country-trigger svg, .rp-country-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rp-country-trigger[aria-expanded="true"] { border-color: var(--country-accent); background: var(--country-hover); }
.rp-country-trigger:focus-visible { outline: 2px solid var(--country-accent); outline-offset: 3px; }
.rp-country-trigger:disabled { cursor: not-allowed; opacity: .6; }
.rp-country-dialog {
  position: fixed; inset: auto; margin: 0; padding: 16px; box-sizing: border-box;
  max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px);
  border: 1px solid var(--country-line); border-radius: 18px;
  background: var(--country-bg); color: var(--country-ink);
  box-shadow: 0 18px 55px #14201633; font-size: 15px; line-height: 1.4; overflow: hidden;
}
.rp-country-dialog[open] { display: flex; flex-direction: column; gap: 10px; animation: rp-country-enter .15s ease-out; }
.rp-country-dialog:not([open]) { display: none; }
.rp-country-dialog::backdrop { background: rgba(25,31,24,.12); }
.rp-country-dialog * { box-sizing: border-box; }
.rp-country-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.rp-country-dialog h2 { margin: 0; color: var(--country-ink); font: 600 26px/1.2 'Cormorant Garamond',Georgia,serif; }
.rp-country-dialog .rp-country-close {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  padding: 0; border: 1px solid var(--country-line); border-radius: 50%;
  background: transparent; color: var(--country-ink); cursor: pointer;
}
.rp-country-dialog .rp-country-search {
  display: block; flex: none; margin: 0; width: 100%; min-height: 46px; padding: 11px 13px;
  color: var(--country-ink); background: transparent; border: 1px solid var(--country-line);
  border-radius: 10px; font: 400 16px/1.4 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
}
.rp-country-search::placeholder { color: var(--country-muted); opacity: 1; }
.rp-country-count { margin: 0; color: var(--country-muted); font-size: 13px; flex: none; }
.rp-country-list { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; scrollbar-width: thin; scrollbar-color: var(--country-accent) var(--country-bg); padding-right: 4px; }
.rp-country-dialog .rp-country-option {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 44px; padding: 10px 12px; width: 100%; border: 0; border-radius: 9px;
  background: transparent; color: var(--country-ink); cursor: pointer; text-align: left;
  font: 400 15px/1.4 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
}
.rp-country-option > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rp-country-dialog .rp-country-option:is(:hover, .is-active) { background: var(--country-hover); }
.rp-country-dialog .rp-country-option[aria-selected="true"] { background: var(--country-selected); color: #fff; }
.rp-country-dialog :focus-visible { outline: 2px solid var(--country-accent); outline-offset: 2px; }
.rp-country-search:focus-visible { outline-offset: 0; }
.rp-form-card .rp-field { font-size: 14px; }
.rp-form-card .rp-field input:not([type="hidden"]), .rp-modal-body .rp-field input:not([type="hidden"]) { min-height: 47px; box-sizing: border-box; }
@media (max-width: 560px) {
  .rp .rp-form-row-phone, .sitio-reservas .telefono-internacional { grid-template-columns: minmax(0,1fr); }
  :is(.sitio-reservas, .rp) .rp-country-trigger { font-size: 16px; }
}
@keyframes rp-country-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rp-country-dialog[open] { animation: none; }
  .rp-country-trigger { transition: none; }
}
