/* Turismo en Ushuaia - prototipo reversible de modo oscuro (solo vista previa).
   Activacion: html[data-teu-theme="dark"]. El modo claro conserva el sitio original.
   2026-11-19. No alterar imagenes, mapas, badges con identidad externa ni CTA de conversion. */
html[data-teu-theme="dark"] {
  color-scheme: dark;
  --teu-night-bg: #101b2b;
  --teu-night-surface: #192a40;
  --teu-night-elev: #20334b;
  --teu-night-text: #eaf2fb;
  --teu-night-muted: #afc0d3;
  --teu-night-border: #3c526d;
  --teu-night-link: #a5d8ff;
  --bs-body-bg: var(--teu-night-bg);
  --bs-body-color: var(--teu-night-text);
  --bs-emphasis-color: #fff;
  --bs-heading-color: var(--teu-night-text);
  --bs-secondary-bg: var(--teu-night-surface);
  --bs-tertiary-bg: var(--teu-night-elev);
  --bs-border-color: var(--teu-night-border);
  --bs-link-color: var(--teu-night-link);
  --bs-link-hover-color: #d1ebff;
  --bs-secondary-color: var(--teu-night-muted);
}
html[data-teu-theme="dark"] body,
html[data-teu-theme="dark"] body.bg-white,
html[data-teu-theme="dark"] .bg-white,
html[data-teu-theme="dark"] .bg-light,
html[data-teu-theme="dark"] .bg-warning {
  background-color: var(--teu-night-bg) !important;
  color: var(--teu-night-text);
}
html[data-teu-theme="dark"] .bg-warning,
html[data-teu-theme="dark"] .bg-light { background-color: var(--teu-night-surface) !important; }
html[data-teu-theme="dark"] .text-dark,
html[data-teu-theme="dark"] .text-black,
html[data-teu-theme="dark"] .text-primary:not(.btn),
html[data-teu-theme="dark"] .text-body { color: var(--teu-night-text) !important; }
html[data-teu-theme="dark"] .text-muted,
html[data-teu-theme="dark"] .text-secondary,
html[data-teu-theme="dark"] .text-body-secondary { color: var(--teu-night-muted) !important; }
html[data-teu-theme="dark"] :is(a:not(.btn), .menu a:not(.btn)):not(.text-white) { color: var(--teu-night-link); }
html[data-teu-theme="dark"] :is(p, li, blockquote, small):not(.text-white):not(.text-light):not(.btn) { color: var(--teu-night-text); }
html[data-teu-theme="dark"] :is(h1,h2,h3,h4,h5,h6):not(.text-white):not(.text-light) { color: var(--teu-night-text); }
html[data-teu-theme="dark"] :is(.card,.card-body,.dropdown-menu,.accordion-item,.offcanvas,.modal-content,.list-group-item,.table,.form-control,.form-select,.input-group-text) {
  background-color: var(--teu-night-surface);
  color: var(--teu-night-text);
  border-color: var(--teu-night-border);
}
html[data-teu-theme="dark"] :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]),
html[data-teu-theme="dark"] .form-control,
html[data-teu-theme="dark"] .form-select {
  background-color: var(--teu-night-elev);
  color: var(--teu-night-text);
  border-color: var(--teu-night-border);
}
html[data-teu-theme="dark"] :is(input,textarea)::placeholder { color: var(--teu-night-muted); opacity: 1; }
html[data-teu-theme="dark"] .btn-outline-primary {
  color: var(--teu-night-link);
  border-color: #648bb3;
}
html[data-teu-theme="dark"] .btn-outline-primary:hover { background:#2b4663; color:#fff; }
html[data-teu-theme="dark"] .border,
html[data-teu-theme="dark"] .border-top,
html[data-teu-theme="dark"] .border-bottom { border-color: var(--teu-night-border) !important; }
html[data-teu-theme="dark"] :is(.table,.table-striped) { --bs-table-bg: var(--teu-night-surface); --bs-table-color: var(--teu-night-text); --bs-table-border-color: var(--teu-night-border); }
html[data-teu-theme="dark"] section.menu,
html[data-teu-theme="dark"] section.menu nav,
html[data-teu-theme="dark"] section.menu .nav-planifica,
html[data-teu-theme="dark"] section.menu .nav-scroll {
  background: var(--teu-night-surface) !important;
  color: var(--teu-night-text);
}
html[data-teu-theme="dark"] section.menu { border-bottom: 1px solid var(--teu-night-border); }
html[data-teu-theme="dark"] section.menu .logoteu a { display:inline-flex; padding:3px 5px; border-radius:7px; background:#f7f9fc; }
html[data-teu-theme="dark"] section.menu .item-nav-text,
html[data-teu-theme="dark"] section.menu .item-nav-text a,
html[data-teu-theme="dark"] section.menu .menu-hamb a,
html[data-teu-theme="dark"] section.menu .cart-status a { color: var(--teu-night-link) !important; }
html[data-teu-theme="dark"] section.prefooter,
html[data-teu-theme="dark"] .prefooter { background: var(--teu-night-surface) !important; color:var(--teu-night-text); }
html[data-teu-theme="dark"] :is(.entry-content,.post-content,.contenido,.wp-block-group) { color:var(--teu-night-text); }
html[data-teu-theme="dark"] .wp-block-quote,
html[data-teu-theme="dark"] .wp-block-table td { border-color:var(--teu-night-border); }
/* Modo oscuro especifico del prototipo Alojamiento 2.0. */
html[data-teu-theme="dark"] .teu-ad2 {
  --ad2-navy: #c3e4ff;
  --ad2-ink: #eaf2fb;
  --ad2-muted: #b1bfd0;
  --ad2-border: #3c526d;
  --ad2-bg: #192a40;
  --ad2-white: #192a40;
  color:var(--ad2-ink);
  background:var(--teu-night-bg);
}
html[data-teu-theme="dark"] .teu-ad2 :is(.ad2-iconbtn,.ad2-inlinebutton,.ad2-spacecard,.ad2-policy,.ad2-relcard,.ad2-inquiry,.ad2-reviewsnapshot,.ad2-directreminder,.ad2-sectionnav,.ad2-foodcard,.ad2-poi-card,.ad2-activitycard,.ad2-reviewcard,.ad2-review-upcoming,.ad2-upcoming-pill,.ad2-mobilebar) {
  background:var(--teu-night-surface);
  color:var(--teu-night-text);
  border-color:var(--teu-night-border);
}
html[data-teu-theme="dark"] .teu-ad2 :is(.ad2-statpill,.ad2-featureico,.ad2-amenity .ad2-dot,.ad2-spacecard .ad2-roomicon,.ad2-poi-icon) {
  background:var(--teu-night-elev);
  color:var(--teu-night-link);
  border-color:var(--teu-night-border);
}
html[data-teu-theme="dark"] .teu-ad2 :is(.ad2-gallery-all,.ad2-counter button,.ad2-nearby-tabs button,.ad2-dategrid,.ad2-dategrid label,.ad2-guestrow) {
  background:var(--teu-night-elev);
  color:var(--teu-night-text);
  border-color:var(--teu-night-border);
}
html[data-teu-theme="dark"] .teu-ad2 .ad2-nearby-tabs button[aria-selected="true"] {
  background:#315170;
  color:#fff;
  border-color:#82b4e0;
}
html[data-teu-theme="dark"] .teu-ad2 .ad2-sectionnav a.is-active,
html[data-teu-theme="dark"] .teu-ad2 .ad2-sectionnav a:hover { background:var(--teu-night-elev); }
html[data-teu-theme="dark"] .teu-ad2 :is(p,.ad2-meta,.ad2-nearby-intro,.ad2-review-intro,.ad2-shortdesc,.ad2-nearby-note,.ad2-food-distance,.ad2-poi-body p,.ad2-review-quant,.ad2-review-footnote,.ad2-conversion,.ad2-wa-note,.ad2-snapshotdate,.ad2-price-caption,.ad2-guestrow>span,.ad2-dategrid input,.ad2-dategrid label,.ad2-meta .ad2-review-top,.ad2-directreminder strong,.ad2-review-rating,.ad2-food-link,.ad2-poi-body a,.ad2-activitycard a) {
  color:var(--teu-night-muted) !important;
}
html[data-teu-theme="dark"] .teu-ad2 :is(h1,h2,h3,.ad2-price-big,.ad2-review-rating strong) { color:var(--teu-night-text); }
html[data-teu-theme="dark"] .teu-ad2 a:not(.ad2-action) { color:var(--teu-night-link); }
html[data-teu-theme="dark"] .teu-ad2 .ad2-action { color:#fff !important; background:#cf4e46; }
html[data-teu-theme="dark"] .teu-ad2 .ad2-gallery .ad2-gallery-all { background:var(--teu-night-elev); color:var(--teu-night-text); border-color:var(--teu-night-border); }
html[data-teu-theme="dark"] .teu-ad2 .ad2-lightbox,
html[data-teu-theme="dark"] .teu-ad2 .ad2-lightbox :is(button,.ad2-lb-controls) { color:#fff; }
html[data-teu-theme="dark"] .teu-ad2 .ad2-lightbox :is(.ad2-lb-prev,.ad2-lb-next) { background:#fff; color:#193b58; }
html[data-teu-theme="dark"] .teu-ad2 .ad2-foodverified { background:#173f37; color:#a5edcf; }
html[data-teu-theme="dark"] .teu-ad2 .ad2-mapbox { border-color:var(--teu-night-border); }
/* Selector de modo: icono de alcance, accesible y sin interferir con WPML, menu ni chat. */
#teu-theme-mode-control {
  width:31px; height:31px; min-width:31px; padding:0;
  border:1px solid #c9d5e1; border-radius:9px;
  background:#fff; color:#2a415d;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:17px; line-height:1; cursor:pointer; margin-right:7px;
  transition: background .15s,border-color .15s,transform .15s;
}
#teu-theme-mode-control:hover { transform:translateY(-1px); border-color:#8cacc8; }
#teu-theme-mode-control:focus-visible { outline:3px solid #f28d82; outline-offset:2px; }
html[data-teu-theme="dark"] #teu-theme-mode-control {
  background:var(--teu-night-elev); border-color:#7593b2; color:#ffda88;
}
@media(max-width:767px) { #teu-theme-mode-control { width:29px; height:29px; min-width:29px; margin-right:4px; font-size:16px; } }
/* Evitar animaciones forzadas para personas con sensibilidad al movimiento. */
@media(prefers-reduced-motion:reduce) { #teu-theme-mode-control { transition:none; } }

/* Selector siempre visible en el encabezado: HTML del tema, no depende de inserción JS. */
#teu-theme-mode-control.teu-theme-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 92px;
  height: 35px;
  padding: 0 10px;
  margin-right: 9px;
  flex: 0 0 auto;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}
#teu-theme-mode-control.teu-theme-mode-button [data-teu-mode-icon] {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
#teu-theme-mode-control.teu-theme-mode-button .teu-mode-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
@media (min-width: 768px) and (max-width: 1199px), (max-width: 350px) {
  #teu-theme-mode-control.teu-theme-mode-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
    margin-right: 5px;
  }
  #teu-theme-mode-control.teu-theme-mode-button .teu-mode-label {
    display: none;
  }
}

/* Control discreto en el pie de pagina: solo SVG, sin texto ni posicion fija. */
footer .teu-color-mode-footer-placement {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 8px;
  margin-top: 2px;
}
footer #teu-theme-mode-control.teu-theme-mode-button,
html[data-teu-theme="dark"] footer #teu-theme-mode-control.teu-theme-mode-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #f5f8fd;
  box-shadow: none;
  line-height: 1;
}
footer #teu-theme-mode-control.teu-theme-mode-button:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.88);
}
footer #teu-theme-mode-control.teu-theme-mode-button .teu-mode-label { display: none; }
footer #teu-theme-mode-control .teu-mode-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
footer #teu-theme-mode-control .teu-mode-sun { display: none; }
html[data-teu-theme="dark"] footer #teu-theme-mode-control .teu-mode-sun { display: block; }
html[data-teu-theme="dark"] footer #teu-theme-mode-control .teu-mode-moon { display: none; }
@media (max-width: 767px) {
  footer .teu-color-mode-footer-placement { justify-content: center; }
}
