/* ============================================================
   TRES ESTRUCTURAS — Sistema de diseño v1
   Tokens, tipografías y patrón de baldosa según spec §4.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Paleta "Azul Noche y Bronce" — elegida por el dueño (reemplaza a la del spec §4).
     Todos los pares texto/fondo verificados contra WCAG 4.5:1. */
  --tinta:    #182430;  /* azul noche profundo. Fondo de header, texto principal */
  --cal:      #ECEFF0;  /* gris azulado muy claro. Fondo general */
  --papel:    #F9FAFA;  /* blanco de fichas y tarjetas */
  --ocre:     #A68F60;  /* bronce. Acento, chip de alquiler, baldosa (5.0:1 con texto tinta) */
  --ocre-texto: #6D5B39; /* bronce oscurecido para texto: 5.7:1 sobre cal, 6.3:1 sobre papel */
  --ladrillo: #7A4646;  /* vino apagado. Etiqueta de VENTA, alertas (7.2:1 con texto papel) */
  --humo:     #57616A;  /* texto secundario: 5.5:1 sobre cal */
  --wa:       #25D366;  /* verde WhatsApp. EXCLUSIVO del boton de contacto */

  --fuente-display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --fuente-cuerpo:  "Public Sans", system-ui, -apple-system, sans-serif;
  --fuente-datos:   "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --radio: 10px;
  --sombra-ficha: 0 1px 2px rgba(24, 36, 48, .08), 0 4px 14px rgba(24, 36, 48, .07);
  --sombra-ficha-hover: 0 2px 4px rgba(24, 36, 48, .10), 0 10px 26px rgba(24, 36, 48, .13);
  --ancho-max: 1120px;
  --area-tactil: 44px; /* area tactil minima (spec §12) */
}

/* ---------- Reset minimo ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--cal);
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* Foco de teclado visible en todo elemento interactivo (spec §12) */
:focus-visible {
  outline: 3px solid var(--ocre);
  outline-offset: 2px;
  border-radius: 4px;
}

/* prefers-reduced-motion: sin transiciones ni animaciones (spec §12) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Patron de baldosa calcarea (spec §4, elemento de firma) ----------
   Aparece SOLO en: franja del header, estado vacio de filtros, fondo del cartel. */
.baldosa {
  background-color: var(--cal);
  background-image:
    radial-gradient(circle at 0    0,    var(--ocre) 12%, transparent 12.5%),
    radial-gradient(circle at 100% 0,    var(--ocre) 12%, transparent 12.5%),
    radial-gradient(circle at 0    100%, var(--ocre) 12%, transparent 12.5%),
    radial-gradient(circle at 100% 100%, var(--ocre) 12%, transparent 12.5%),
    radial-gradient(circle at 50%  50%,  var(--tinta) 16%, transparent 16.5%);
  background-size: 48px 48px;
}

/* ---------- Utilidades ---------- */
.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: 16px;
}

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

.dato-mono {
  font-family: var(--fuente-datos);
  font-variant-numeric: tabular-nums;
}

/* El atributo hidden gana SIEMPRE, aunque la clase defina display */
[hidden] { display: none !important; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--tinta);
  color: var(--papel);
}

.header__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.header__marca {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: var(--area-tactil);
}

.header__logo { width: 46px; height: auto; flex: none; }

.header__nombre {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  line-height: 1.1;
}

.header__rubro {
  display: block;
  font-family: var(--fuente-cuerpo);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #AEBBC7;
  margin-top: 2px;
}

.header__tel {
  font-family: var(--fuente-datos);
  font-size: .88rem;
  color: var(--papel);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--area-tactil);
  padding-inline: 8px;
  white-space: nowrap;
}

.header__tel:hover { text-decoration: underline; }

/* Franja de baldosa: uno de los tres usos permitidos del patron */
.header__franja { height: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: 34px 10px; }

.hero__titulo {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.5vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  max-width: 22ch;
  text-wrap: balance;
}

.hero__bajada {
  margin: 0;
  color: var(--humo);
  font-size: 1.02rem;
  max-width: 52ch;
}

.hero__bajada strong { color: var(--tinta); }

.hero__contador {
  font-family: var(--fuente-datos);
  color: var(--ocre-texto);
  font-weight: 600;
}

/* ============================================================
   FILTROS (pegados arriba al hacer scroll)
   ============================================================ */
.filtros {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cal) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-block: 12px;
  border-bottom: 1px solid rgba(24, 36, 48, .08);
}

.filtros__fila {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filtros__fila + .filtros__fila { margin-top: 8px; }

.filtros__rotulo {
  font-family: var(--fuente-datos);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--humo);
  min-width: 72px;
}

.chip {
  appearance: none;
  border: 1.5px solid rgba(24, 36, 48, .25);
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fuente-cuerpo);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1;
  padding: 0 14px;
  min-height: 38px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.chip:hover { border-color: var(--tinta); }

.chip[aria-pressed="true"] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--papel);
  font-weight: 600;
}

/* ============================================================
   GRILLA DE FICHAS
   1 col mobile / 2 tablet / 3 desktop (spec §7.1)
   ============================================================ */
.grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-block: 22px 48px;
  list-style: none;
  margin: 0;
}

@media (min-width: 640px)  { .grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grilla { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Ficha (tarjeta) ---------- */
.ficha {
  position: relative;
  background: var(--papel);
  border-radius: var(--radio);
  box-shadow: var(--sombra-ficha);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

.ficha:hover { box-shadow: var(--sombra-ficha-hover); transform: translateY(-2px); }

/* Toda la tarjeta clickeable con un solo link que la cubre (spec §7.2) */
.ficha__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ficha__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ficha__link:focus-visible::after {
  outline: 3px solid var(--ocre);
  outline-offset: -3px;
  border-radius: var(--radio);
}

.ficha__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cal);
}

.ficha__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chip de operacion: ocre = alquiler, ladrillo = venta (spec §7.2) */
.ficha__operacion {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--fuente-cuerpo);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

.ficha__operacion--alquiler { background: var(--ocre); color: var(--tinta); }
.ficha__operacion--venta    { background: var(--ladrillo); color: var(--papel); }

/* Indicador chico de 360 en la esquina de la foto */
.ficha__360 {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(24, 36, 48, .82);
  color: var(--papel);
  font-family: var(--fuente-datos);
  font-size: .68rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.ficha__cuerpo { padding: 14px 16px 16px; }

.ficha__codigo {
  font-family: var(--fuente-datos);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--humo);
}

.ficha__titulo {
  font-family: var(--fuente-display);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.25;
  margin: 4px 0 2px;
}

.ficha__zona {
  font-size: .85rem;
  color: var(--humo);
  margin: 0;
}

.ficha__precio {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--ocre-texto);
  margin: 10px 0 0;
  line-height: 1.1;
}

.ficha__precio .ficha__moneda {
  font-size: .95rem;
  font-weight: 600;
}

.ficha__expensas {
  font-size: .8rem;
  color: var(--humo);
  margin: 2px 0 0;
}

/* Fila de datos duros en mono (spec §7.2) */
.ficha__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(24, 36, 48, .18);
  font-family: var(--fuente-datos);
  font-size: .78rem;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}

.ficha__datos abbr { text-decoration: none; }

/* ============================================================
   ESTADO VACIO (uno de los tres usos del patron de baldosa)
   ============================================================ */
.vacio {
  border-radius: var(--radio);
  padding: 3px;
  margin-block: 22px 48px;
}

.vacio__interno {
  background: var(--papel);
  border-radius: calc(var(--radio) - 3px);
  padding: 44px 24px;
  text-align: center;
}

.vacio__titulo {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.vacio__texto {
  color: var(--humo);
  margin: 0 0 20px;
}

.boton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--area-tactil);
  padding: 0 22px;
  border-radius: 8px;
  border: none;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--fuente-cuerpo);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s ease;
}

.boton:hover { opacity: .88; }

/* ============================================================
   PIE
   ============================================================ */
.pie {
  background: var(--tinta);
  color: #AEBBC7;
  padding-block: 26px;
  font-size: .85rem;
}

.pie__interno {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.pie a { color: var(--papel); }

.pie__codigo {
  font-family: var(--fuente-datos);
  font-size: .75rem;
}

/* ============================================================
   FICHA DE PROPIEDAD (spec §7.3)
   ============================================================ */
.detalle { padding-block: 0 90px; }

.migas {
  font-size: .82rem;
  color: var(--humo);
  padding-block: 14px 4px;
}
.migas a { color: var(--humo); }
.migas .dato-mono { color: var(--tinta); }

/* ---------- Galeria ---------- */
.galeria {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--tinta);
  touch-action: pan-y; /* el swipe horizontal lo maneja JS */
}

.galeria__pista {
  display: flex;
  transition: transform .3s ease;
}

.galeria__cuadro {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  max-height: 62vh;
}

.galeria__cuadro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.galeria__flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--area-tactil);
  height: var(--area-tactil);
  border-radius: 50%;
  border: none;
  background: rgba(24, 36, 48, .72);
  color: var(--papel);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.galeria__flecha:hover { background: rgba(24, 36, 48, .92); }
.galeria__flecha--ant { left: 10px; }
.galeria__flecha--sig { right: 10px; }

.galeria__contador {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(24, 36, 48, .82);
  color: var(--papel);
  font-family: var(--fuente-datos);
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Pantalla completa */
.galeria-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 14, 20, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}
.galeria-lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
}
.galeria-lightbox .galeria__contador { bottom: 18px; }
.galeria-lightbox__cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: var(--area-tactil);
  height: var(--area-tactil);
  border-radius: 50%;
  border: none;
  background: rgba(233, 237, 232, .14);
  color: var(--papel);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Encabezado de la ficha ---------- */
.detalle__encabezado { padding-block: 18px 6px; }

.detalle__fila-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-operacion {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.chip-operacion--alquiler { background: var(--ocre); color: var(--tinta); }
.chip-operacion--venta { background: var(--ladrillo); color: var(--papel); }

.chip-estado {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--humo);
  color: var(--papel);
}

.detalle__codigo { font-family: var(--fuente-datos); font-size: .82rem; color: var(--humo); }

.detalle__titulo {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.15;
  margin: 10px 0 4px;
  text-wrap: balance;
}

.detalle__ubicacion { color: var(--humo); margin: 0; }

.detalle__precio {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  color: var(--ocre-texto);
  margin: 12px 0 0;
  line-height: 1.05;
}
.detalle__precio .moneda { font-size: .6em; font-weight: 600; }
.detalle__expensas { color: var(--humo); margin: 4px 0 0; font-size: .95rem; }

/* ---------- Boton de WhatsApp (unico uso del verde --wa) ---------- */
.boton-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: #073B1D;
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  font-size: 1rem;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  margin-top: 16px;
}
.boton-wa:hover { filter: brightness(1.05); }
.boton-wa svg { flex: none; }

/* En mobile, fijo abajo y siempre visible (spec §7.3) */
@media (max-width: 639px) {
  .boton-wa--fijo {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 100;
    margin-top: 0;
    box-shadow: 0 6px 22px rgba(7, 59, 29, .35);
  }
}

/* ---------- Secciones ---------- */
.seccion { margin-top: 30px; }
.seccion__titulo {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 14px;
}

/* Datos duros en grilla mono (spec §7.3) */
.datos-duros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(24, 36, 48, .14);
  border: 1px solid rgba(24, 36, 48, .14);
  border-radius: var(--radio);
  overflow: hidden;
}
@media (min-width: 640px) { .datos-duros { grid-template-columns: repeat(4, 1fr); } }

.dato-duro { background: var(--papel); padding: 12px 14px; }
.dato-duro dt {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--humo);
  margin: 0 0 2px;
}
.dato-duro dd {
  font-family: var(--fuente-datos);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.descripcion {
  max-width: 62ch;
  white-space: pre-line;
}

/* Video con carga diferida (spec §10) */
.video-fachada {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--tinta);
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  display: block;
}
.video-fachada img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-fachada__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(24, 36, 48, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--papel);
  pointer-events: none;
}
.video-fachada:hover .video-fachada__play { background: var(--tinta); }
.video-marco { aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; }
.video-marco iframe, .video-marco video { width: 100%; height: 100%; border: 0; display: block; }

/* Amenities */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--papel);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 500;
}
.amenity svg { flex: none; color: var(--ocre-texto); }

/* Ubicacion */
.ubicacion {
  background: var(--papel);
  border-radius: var(--radio);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 560px;
}
.ubicacion svg { flex: none; color: var(--ladrillo); margin-top: 2px; }
.ubicacion p { margin: 0; }
.ubicacion .nota { color: var(--humo); font-size: .85rem; margin-top: 4px; }

/* Otras propiedades de la zona */
.relacionadas .grilla { padding-block: 0; }

/* Propiedad cerrada / no encontrada */
.no-disponible {
  text-align: center;
  padding: 60px 20px 30px;
  max-width: 560px;
  margin-inline: auto;
}
.no-disponible h1 {
  font-family: var(--fuente-display);
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.no-disponible p { color: var(--humo); margin: 0 0 22px; }

/* ============================================================
   VISOR 360 (spec §8)
   ============================================================ */
.visor360 {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--tinta);
}

.visor360__inicio {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.visor360__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(233, 237, 232, .16);
  color: var(--papel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visor360__play:hover { background: rgba(233, 237, 232, .28); }

.visor360__sello {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ocre);
  color: var(--tinta);
  font-weight: 600;
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.visor360__pista { color: #AEBBC7; font-size: .88rem; margin: 0; }

.visor360__estado {
  color: var(--papel);
  padding: 18px;
  margin: 0;
  text-align: center;
}
.visor360__estado a { color: var(--ocre); }

.visor360__lienzo { display: block; width: 100%; cursor: grab; }
.visor360__lienzo:active { cursor: grabbing; }

.visor360__controles {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.visor360__controles button {
  min-width: var(--area-tactil);
  min-height: var(--area-tactil);
  border: none;
  border-radius: 8px;
  background: rgba(24, 36, 48, .8);
  color: var(--papel);
  font-size: .95rem;
  cursor: pointer;
  padding-inline: 10px;
}
.visor360__controles button:hover { background: var(--tinta); }
.visor360__controles button.activo { background: var(--ocre); color: var(--tinta); }
.visor360:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.visor360:fullscreen .visor360__lienzo { width: 100vw; }

/* ============================================================
   CHAT FLOTANTE (spec §9.1) — unico uso del verde --wa
   ============================================================ */
.chat-flotante {
  position: fixed;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: #073B1D;
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(7, 59, 29, .35);
}
.chat-flotante:hover { filter: brightness(1.05); }
.chat-flotante svg { flex: none; }

/* Mobile: barra fija al pie, ancho completo (no compite con el gesto de volver) */
@media (max-width: 639px) {
  .chat-flotante {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 54px;
    border-radius: 12px;
    font-size: 1rem;
  }
  /* La barra ocupa el pie: dejamos aire al final de la pagina */
  body { padding-bottom: 78px; }
}

/* Desktop: circulo abajo a la derecha que se expande al pasar el mouse */
@media (min-width: 640px) {
  .chat-flotante {
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    overflow: hidden;
    transition: width .25s ease;
    white-space: nowrap;
  }
  .chat-flotante .chat-flotante__texto {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width .25s ease, opacity .2s ease;
  }
  .chat-flotante:hover,
  .chat-flotante:focus-visible {
    width: auto;
    padding-inline: 20px;
  }
  .chat-flotante:hover .chat-flotante__texto,
  .chat-flotante:focus-visible .chat-flotante__texto {
    max-width: 280px;
    opacity: 1;
  }
}
