/* Oaxaca Renta · detalle del auto
   Medidas de airbnb.mx/rooms/… (28-oct-2026): contenedor de 1120 px, título 26 px, fotos en cuadrícula
   (una grande y cuatro chicas) de ~480 px con radio 12, tarjeta de reserva fija a 80 px del borde
   superior, botón Reservar en píldora de 48 px. */

.solo-lector {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

[data-pagina="detalle"] .enc[data-modo="mini"] .enc__fondo { background: var(--blanco); }

.detalle {
  width: 100%; max-width: calc(1120px + 2 * var(--margen)); margin: 0 auto;
  padding: calc(var(--alto-fila) + 20px) var(--margen) 72px;
}

.detalle__volver {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 8px;
  color: var(--texto-2); font-weight: 500;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.detalle__volver span { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .detalle__volver:hover { background: var(--gris-1); color: var(--texto); } }

.detalle__cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.detalle__cabeza h1 { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; }
.detalle__cabeza h1 span { font-weight: 400; color: var(--texto-2); }
.detalle__acciones { display: flex; gap: 4px; flex: none; }
.accion {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  transition: background-color var(--dur-fast) ease;
}
.accion > span:first-child { width: 16px; height: 16px; }
.accion[aria-pressed="true"] svg { fill: var(--acento); stroke: var(--acento); }
@media (hover: hover) and (pointer: fine) { .accion:hover { background: var(--gris-1); } }

/* Fotos: huecos hasta que cada empresa suba las suyas */
.fotos {
  position: relative;
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  height: clamp(280px, 28vw, 400px); margin-top: 20px;
  border-radius: var(--r-12); overflow: hidden;
}
.foto { background: #EFEFEF; display: grid; place-items: center; }
.foto--principal { grid-row: 1 / 3; }
.foto__silueta { width: 26%; color: #CDCDCD; }
.foto--principal { position: relative; }
/* Logo de la empresa en la esquina de la foto, como en la tarjeta de resultados (29-oct-2026). */
.foto__logo { right: 16px; bottom: 16px; width: 112px; height: 38px; }
.foto__img { width: 80%; height: 70%; }
.foto__nota { position: absolute; left: 16px; bottom: 16px; padding: 4px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .9); color: var(--texto-2); font-size: 12px; }
.fotos__botones { display: none; }
/* Según cuántas fotos hay (29-oct-2026): una sola va a lo ancho; de 2 a 4, la principal y las demás en columna. */
.fotos--una { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 2 / 1; max-height: 400px; }
.fotos--una .foto--principal { grid-row: auto; }
.fotos--una .foto__img { width: 70%; height: 72%; }
.fotos--columna { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(var(--extras), 1fr); }
.fotos--columna .foto--principal { grid-row: 1 / -1; }
/* Las fotos que sube la empresa llenan su cuadro; la del catálogo (recorte sin fondo) va contenida. */
.foto__img--propia, .fotos--una .foto__img--propia { width: 100%; height: 100%; object-fit: cover; }

/* Dos columnas desde arriba: fotos e información a la izquierda, tarjeta de precio fija a la derecha */
.detalle__cuerpo {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 0 clamp(40px, 5vw, 72px);
}
.detalle__info { min-width: 0; }

.bloque { padding: 32px 0; border-bottom: 1px solid var(--borde); }
.bloque--primero { padding-top: 24px; }
.bloque--ultimo { border-bottom: 0; }
.bloque h2 { font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }
.bloque--primero h2 { margin-bottom: 4px; }
.detalle__specs { margin: 0; font-size: 16px; color: var(--texto); }
.detalle__texto { margin: 0; font-size: 16px; line-height: 24px; }

.empresa { display: flex; align-items: center; gap: 16px; }
.empresa__inicial {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--texto); color: var(--blanco); font-size: 20px; font-weight: 700;
}
.empresa > span:last-child { display: flex; flex-direction: column; }
.empresa strong { font-size: 16px; font-weight: 600; }
.empresa > span:last-child > span { color: var(--texto-2); }

.destacados { display: grid; gap: 24px; }
.destacado { display: flex; gap: 24px; align-items: flex-start; }
.destacado__icono { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.destacado > span:last-child { display: flex; flex-direction: column; }
.destacado strong { font-size: 16px; font-weight: 600; }
.destacado > span:last-child > span { color: var(--texto-2); }

.incluyes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.incluye { display: flex; gap: 16px; align-items: flex-start; }
.incluye__icono { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.incluye > span:last-child { display: flex; flex-direction: column; }
.incluye strong { font-size: 16px; font-weight: 500; }
.incluye > span:last-child > span { color: var(--texto-2); }
.incluye[data-estado="no"] strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.incluye[data-estado="nd"] .incluye__icono, .incluye[data-estado="nd"] strong { color: var(--texto-3); }

/* Comparación con las demás empresas */
.comparar__contexto { margin: 4px 0 16px; font-size: 13px; color: var(--texto-2); }
.comparar { border-top: 1px solid var(--borde-2); margin-bottom: 20px; }
.comparar li { border-bottom: 1px solid var(--borde-2); }
.comparar__fila {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; align-items: center; gap: 16px;
  padding: 14px 12px; margin: 0 -12px; border-radius: 12px;
  transition: background-color var(--dur-fast) ease;
}
li.comparar__fila { grid-template-columns: minmax(0, 1fr) auto auto 16px; background: var(--gris-1); margin: 4px -12px; border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { a.comparar__fila:hover { background: var(--gris-1); } }
.comparar__auto { display: flex; flex-direction: column; min-width: 0; }
.comparar__auto strong { font-weight: 600; }
.comparar__auto span { color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comparar__incluye { display: flex; gap: 8px; color: var(--texto-2); }
.comparar__incluye > span { width: 18px; height: 18px; }
.comparar__precio { display: grid; justify-items: end; min-width: 112px; text-align: right; }
.comparar__precio strong { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.comparar__precio small { font-size: 12px; color: var(--texto-2); }
.comparar__marca {
  margin-top: 4px; padding: 2px 6px; border-radius: 6px;
  background: rgb(242 242 242 / .9); color: var(--texto-2);
  font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap;
}
.comparar__marca--ahorro { background: var(--bien-fondo); color: var(--bien); }
.comparar__marca--actual { background: var(--texto); color: var(--blanco); }
.comparar__flecha { width: 12px; height: 12px; color: var(--texto-3); }

/* Mapa de la oficina */
.detalle__mapa { height: 360px; border-radius: var(--r-12); overflow: hidden; isolation: isolate; background: #ECEEF0; margin-top: 16px; }
.detalle__pie-mapa { margin: 10px 0 0; font-size: 13px; color: var(--texto-2); }
.punto__boton--fijo { cursor: default; }

/* Antes de reservar */
.saber { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.saber > div > span { display: block; width: 24px; height: 24px; margin-bottom: 12px; }
.saber strong { font-size: 16px; font-weight: 600; }
.saber p { margin: 6px 0 0; color: var(--texto-2); line-height: 20px; }

/* Tarjeta de reserva */
.detalle__lado { position: relative; padding-top: 48px; }
.reserva {
  position: sticky; top: calc(var(--alto-fila) + 24px);
  padding: 24px; border: 1px solid var(--borde); border-radius: var(--r-12);
  box-shadow: 0 6px 16px rgb(0 0 0 / .12); background: var(--blanco);
}
.reserva__precio { font-size: 16px; color: var(--texto); margin-bottom: 20px; }
.reserva__total { font-size: 22px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.reserva__caja {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid #B0B0B0; border-radius: 10px; overflow: hidden;
}
.reserva__celda {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-align: left;
  min-height: 56px; transition: background-color var(--dur-fast) ease;
}
.reserva__celda + .reserva__celda { border-left: 1px solid #B0B0B0; }
.reserva__celda--ancha { grid-column: 1 / 3; border-left: 0 !important; border-top: 1px solid #B0B0B0; }
.reserva__celda small { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.reserva__celda span { font-size: 14px; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { button.reserva__celda:hover { background: var(--gris-1); } }

/* .boton-reservar vive en cuenta.css: también lo usa el diálogo de acceso en todas las pantallas */
.reserva__aviso { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--texto-2); }

.desglose { margin: 20px 0 0; }
.desglose > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.desglose dt { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--borde); }
.desglose dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.desglose__total { margin-top: 12px; padding-top: 18px !important; border-top: 1px solid var(--borde); font-weight: 700; }
.desglose__total dt { text-decoration: none; }
.reserva .nota { margin-top: 14px; }
.reserva__fuente { margin: 16px 0 0; font-size: 12px; line-height: 16px; color: var(--texto-2); }

.empujon {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  padding: 16px 20px; border: 1px solid var(--borde); border-radius: var(--r-12);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.empujon__icono { width: 24px; height: 24px; flex: none; color: var(--bien); }
.empujon__flecha { width: 12px; height: 12px; flex: none; margin-left: auto; color: var(--texto-3); }
@media (hover: hover) and (pointer: fine) { .empujon:hover { border-color: var(--texto); } }

.detalle__vacio { padding: 120px 0; }

.barra-reserva { display: none; }

/* Tableta */
@media (max-width: 1127px) {
  .detalle__cuerpo { grid-template-columns: minmax(0, 1fr) 320px; gap: 0 40px; }
  .saber { grid-template-columns: 1fr; gap: 20px; }
}

/* Teléfono: fotos a sangre con botones encima, una columna y barra de reservar abajo */
@media (max-width: 743px) {
  [data-pagina="detalle"] .barra-inferior { display: none; }
  .detalle { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
  .detalle__volver, .detalle__cabeza .detalle__acciones { display: none; }
  .detalle__cabeza { order: -1; padding: 24px 0 0; }
  .detalle__cabeza h1 { font-size: 24px; line-height: 28px; }
  .detalle { display: flex; flex-direction: column; }
  .detalle__info { display: flex; flex-direction: column; }
  .fotos { order: -2; margin: 0 -24px; height: 300px; aspect-ratio: auto; max-height: none; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .fotos .foto:not(.foto--principal) { display: none; }
  .foto--principal { grid-row: auto; }
  .fotos__botones {
    position: absolute; inset: 12px 16px auto 16px;
    display: flex; justify-content: space-between;
  }
  .fotos__botones span { display: flex; gap: 12px; }
  .fotos__botones .circulo { width: 36px; height: 36px; }
  .fotos__botones .circulo svg { width: 16px; height: 16px; }
  .fotos__botones [aria-pressed="true"] svg { fill: var(--acento); stroke: var(--acento); }
  .detalle__cuerpo { order: 3; display: block; padding: 0 24px; margin-top: 0; }
  .detalle__lado { display: none; }
  .incluyes { grid-template-columns: 1fr; }
  .comparar__incluye { display: none; }
  .comparar__fila, li.comparar__fila { grid-template-columns: minmax(0, 1fr) auto 12px; }
  li.comparar__fila { grid-template-columns: minmax(0, 1fr) auto; }
  .comparar__precio { min-width: 0; }
  .detalle__mapa { height: 240px; }

  .barra-reserva {
    position: fixed; inset: auto 0 0 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: var(--blanco); border-top: 1px solid var(--borde-2);
  }
  .barra-reserva__precio { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
  .barra-reserva .reserva__total { font-size: 16px; }
  .barra-reserva .enlace { margin: 2px 0 0; padding: 0; font-size: 13px; }
  .boton-reservar--chico { width: auto; margin: 0; padding: 0 28px; flex: none; }
  .avisos { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
.comparar__auto strong { display: flex; align-items: center; gap: 8px; }
.comparar__auto .comparar__mismo {
  padding: 1px 6px; border-radius: 6px; background: #E8EEF9; color: #2D4F9E;
  font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap;
}

/* ---------- Reservas aquí (registrada) frente a externo (scraping): etiquetas del catálogo (30-oct-2026) ---------- */

.boton-reservar--externo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--texto);
}
.boton-reservar--externo span { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .boton-reservar--externo:hover { filter: none; background: #000; } }

.comparar__auto strong .etiqueta { padding: 1px 7px 1px 5px; font-size: 11px; vertical-align: 1px; }
.comparar__auto strong .etiqueta__icono { height: 11px; }

.barra-reserva__ref { font-size: 11px; font-weight: 700; color: var(--texto-2); text-transform: uppercase; letter-spacing: .03em; }
.barra-reserva__ref .etiqueta { padding: 1px 7px 1px 5px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.barra-reserva__ref .etiqueta__icono { height: 11px; }

/* Etiquetas sobre la foto del detalle (las mismas de la tarjeta); en teléfono las tapan los botones. */
.foto__etiquetas { position: absolute; top: 16px; left: 16px; z-index: 1; }
@media (max-width: 743px) { .foto__etiquetas { display: none; } }

/* ---------- Cambio de opción: destello y botón «Información actualizada» ---------- */

.destello { animation: destello 1100ms var(--ease-out); }
@keyframes destello {
  0% { outline: 2px solid var(--acento); outline-offset: 2px; }
  100% { outline: 2px solid transparent; outline-offset: 6px; }
}

.ir-arriba {
  position: fixed; left: 50%; top: calc(var(--alto-fila) + 14px); z-index: 45;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); height: 52px; padding: 0 20px 0 14px;
  border-radius: var(--r-pildora); background: var(--texto); color: var(--blanco);
  box-shadow: 0 8px 24px rgb(0 0 0 / .25); text-align: left;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px) scale(.98);
  transition: opacity var(--dur-exit) var(--ease-in), transform var(--dur-exit) var(--ease-in), visibility 0s linear var(--dur-exit);
}
.ir-arriba[data-visible] {
  opacity: 1; visibility: visible; transform: translateX(-50%);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility 0s;
}
.ir-arriba:active { transform: translateX(-50%) scale(.97); }
.ir-arriba__icono { width: 28px; height: 28px; padding: 6px; flex: none; border-radius: 50%; background: rgb(255 255 255 / .16); }
.ir-arriba > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ir-arriba small { font-size: 11px; color: rgb(255 255 255 / .7); }
.ir-arriba [data-ir-arriba-texto] { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 743px) {
  .ir-arriba { top: calc(12px + env(safe-area-inset-top)); }
  .barra-reserva .boton-reservar--externo { padding: 0 18px; }
}

/* ---------- Página de la empresa y reglas de apartado ---------- */

/* «Lo renta …» lleva a la página de la empresa */
.empresa--enlace {
  margin: -12px; padding: 12px; border-radius: var(--r-12);
  transition: background-color var(--dur-fast) ease;
}
.empresa--enlace > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.empresa--enlace > span:nth-child(2) > span { color: var(--texto-2); }
.empresa .empresa__ir {
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px; flex: none;
  font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
.empresa .empresa__ir > span { color: inherit; }
.empresa__ir span { width: 10px; height: 10px; }
@media (hover: hover) and (pointer: fine) { .empresa--enlace:hover { background: var(--gris-1); } }
@media (max-width: 743px) { .empresa__ir { font-size: 0; gap: 0; } .empresa__ir span { width: 12px; height: 12px; } }

.reserva__clases { margin-bottom: 12px; }
.reserva__no {
  display: flex; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r-12);
  background: #FFF4E0; color: #6B4300; font-size: 14px; line-height: 20px;
}
.reserva__no > span:first-child { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.boton-reservar--cambiar { background: var(--texto); }
@media (hover: hover) and (pointer: fine) { .boton-reservar--cambiar:hover { filter: none; background: #000; } }
.barra-reserva__ref--no { color: #8A5300; text-transform: none; letter-spacing: 0; }

/* ---------- Estado del precio y cobertura desglosada (estándar de datos, 29-oct-2026) ---------- */
.precio-estado {
  display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 4px 10px;
  margin: 0 0 20px; padding: 12px 14px; border-radius: 12px;
  background: var(--gris-1); font-size: 14px; line-height: 20px;
}
.precio-estado > span:first-child { width: 20px; height: 20px; }
.precio-estado strong { font-weight: 600; }
.precio-estado > span:last-child { grid-column: 2 / 4; color: var(--texto-2); }
.precio-estado--final { background: var(--bien-fondo); }
.precio-estado--final > span:first-child, .precio-estado--final strong { color: var(--bien); }
.precio-estado--falta { background: var(--alerta-fondo); }
.precio-estado--falta > span:first-child, .precio-estado--falta strong { color: var(--alerta); }
.incluye__visto { margin: 16px 0 0; font-size: 12px; line-height: 16px; color: var(--texto-3); }
.desglose__alterno dt, .desglose__alterno dd { font-weight: 400; color: var(--texto-2); font-size: 14px; }
.desglose__alterno { padding-top: 0 !important; }
.comparar__incluye > span[data-incluye="falta"] { color: var(--alerta); }
.comparar__leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -8px 0 16px; font-size: 12px; color: var(--texto-2); }
.comparar__leyenda > span { display: inline-flex; align-items: center; gap: 4px; }
.comparar__leyenda svg { width: 14px; height: 14px; }
.comparar__leyenda [data-incluye="falta"] { color: var(--alerta); }
@media (max-width: 743px) { .comparar__leyenda { display: none; } }

