/* =========================================================
   IMPRESIONES AL VUELO - Galería, WhatsApp, Mapas, Redes
   CSS puro. Colores tomados del sitio:
   naranja #ff7e05 · gris oscuro #292d33
   ========================================================= */
:root {
  --iav-naranja: #ff7e05;
  --iav-naranja-oscuro: #e06d00;
  --iav-oscuro: #292d33;
  --iav-wa: #25d366;
}

html.iav-sin-scroll,
html.iav-sin-scroll body { overflow: hidden; }

/* ---------- Tarjetas que abren galería ---------- */
.iav-abre-galeria { cursor: pointer; }
.iav-abre-galeria:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.u-section-3 .iav-abre-galeria .u-image { transition: transform .35s ease, filter .35s ease; }
.u-section-3 .iav-abre-galeria:hover .u-image { filter: brightness(1.08); }
.u-section-3 .iav-abre-galeria .u-container-layout { position: relative; overflow: hidden; }
.iav-badge-fotos {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.6); color: #fff;
  font: 600 .75rem/1 "Open Sans", sans-serif;
  padding: 6px 9px; border-radius: 20px; pointer-events: none;
}

/* ---------- Lightbox ---------- */
.iav-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column;
  background: rgba(20, 22, 26, .96);
  color: #fff; opacity: 0; transition: opacity .2s ease;
  font-family: "Open Sans", sans-serif;
}
.iav-lightbox.is-open { opacity: 1; }
.iav-lightbox[hidden] { display: none; }

.iav-lb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 12px;
}
.iav-lb-titulo {
  margin: 0; font: 700 1.1rem/1.2 Montserrat, sans-serif;
  text-transform: uppercase; letter-spacing: 2px; color: #fff;
}
.iav-lb-contador { font-size: .85rem; color: rgba(255,255,255,.65); }
.iav-lb-cerrar {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.iav-lb-cerrar:hover { background: var(--iav-naranja); }

.iav-lb-escena {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 0 16px;
}
.iav-lb-marco {
  position: relative; flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.iav-lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  transition: opacity .2s;
  user-select: none; -webkit-user-drag: none;
}
.iav-lightbox.is-cargando .iav-lb-img { opacity: .25; }
.iav-lb-spinner {
  position: absolute; width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--iav-naranja);
  animation: iav-giro .8s linear infinite; display: none;
}
.iav-lightbox.is-cargando .iav-lb-spinner { display: block; }
@keyframes iav-giro { to { transform: rotate(360deg); } }

.iav-lb-nav {
  flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--iav-naranja); color: #fff; font-size: 34px; line-height: 1;
  padding-bottom: 4px; cursor: pointer; transition: background .2s, transform .2s;
}
.iav-lb-nav:hover { background: var(--iav-naranja-oscuro); transform: scale(1.06); }
.iav-lightbox.es-unica .iav-lb-nav,
.iav-lightbox.es-unica .iav-lb-tiras { display: none; }

.iav-lb-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px 18px;
}
.iav-lightbox.es-unica .iav-lb-bottom { justify-content: center; }
.iav-lb-tiras { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.iav-lb-tira {
  flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent;
  border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; opacity: .55;
  transition: opacity .2s, border-color .2s;
}
.iav-lb-tira img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iav-lb-tira.es-video { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; background: #2a2d33; }
.iav-lb-video { background: #000; }
.iav-lb-tira:hover { opacity: .9; }
.iav-lb-tira.is-activa { opacity: 1; border-color: var(--iav-naranja); }
.iav-lb-cotizar {
  flex: none; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--iav-naranja); color: #fff;
  font: 700 .875rem/1 "Open Sans", sans-serif; letter-spacing: 1px; text-transform: uppercase;
  padding: 15px 26px; transition: background .2s;
}
.iav-lb-cotizar:hover { background: #000; }

@media (max-width: 767px) {
  .iav-lb-top { padding: 10px 12px; }
  .iav-lb-titulo { font-size: .95rem; letter-spacing: 1px; }
  .iav-lb-escena { padding: 0 6px; gap: 0; position: relative; }
  .iav-lb-nav {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 42px; height: 42px; font-size: 28px; background: rgba(255,126,5,.85);
  }
  .iav-lb-nav:hover { transform: translateY(-50%); }
  .iav-lb-prev { left: 8px; }
  .iav-lb-next { right: 8px; }
  .iav-lb-bottom { flex-direction: column; align-items: stretch; padding: 10px 12px 16px; gap: 10px; }
  .iav-lb-tiras { justify-content: flex-start; }
  .iav-lb-tira { width: 52px; height: 52px; }
  .iav-lb-cotizar { width: 100%; }
}

/* ---------- Selector de sucursal WhatsApp ---------- */
.iav-wa {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s ease;
}
.iav-wa.is-open { opacity: 1; }
.iav-wa[hidden] { display: none; }
.iav-wa-caja {
  position: relative; width: 100%; max-width: 400px;
  background: #fff; color: #111; border-radius: 15px;
  padding: 28px 24px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border-top: 6px solid var(--iav-naranja);
  transform: translateY(14px); transition: transform .2s ease;
  font-family: "Open Sans", sans-serif;
}
.iav-wa.is-open .iav-wa-caja { transform: none; }
.iav-wa-caja h3 { margin: 0 34px 6px 0; font: 700 1.25rem/1.25 Montserrat, sans-serif; }
.iav-wa-caja p { margin: 0 0 18px; color: #555; font-size: .95rem; }
.iav-wa-cerrar {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: #f1f1f1; color: #333;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.iav-wa-cerrar:hover { background: #e4e4e4; }
.iav-wa-opcion {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  margin-top: 10px; padding: 14px 16px; cursor: pointer;
  background: #fff; border: 2px solid #eee; border-radius: 11px; color: #111;
  font-family: inherit; transition: border-color .2s, background .2s;
}
.iav-wa-opcion:hover, .iav-wa-opcion:focus-visible { border-color: var(--iav-naranja); background: #fff7ef; outline: none; }
.iav-wa-icono {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--iav-wa); color: #fff;
}
.iav-wa-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.iav-wa-txt b { font: 700 1.05rem/1.2 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.iav-wa-txt small { color: #666; font-size: .85rem; }
.iav-wa-flecha { font-size: 26px; color: var(--iav-naranja); line-height: 1; }

/* ---------- Mapas de sucursales ---------- */
.iav-mapa {
  width: 100%; background: #fff; border-radius: 15px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.18); text-align: left;
}
.iav-mapa-tabs { display: flex; }
.iav-mapa-tab {
  flex: 1; border: 0; cursor: pointer; padding: 16px 10px;
  background: #f3f3f3; color: #555;
  font: 700 .875rem/1 Montserrat, sans-serif; letter-spacing: 2px; text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: background .2s, color .2s;
}
.iav-mapa-tab:hover { color: #111; }
.iav-mapa-tab.is-activa { background: #fff; color: var(--iav-naranja); border-bottom-color: var(--iav-naranja); }
.iav-mapa iframe { display: block; width: 100%; height: 360px; border: 0; background: #e8e8e8; }
.iav-mapa-link {
  display: block; padding: 14px 16px; text-align: center;
  background: var(--iav-oscuro); color: #fff !important; text-decoration: none;
  font: 700 .8rem/1 "Open Sans", sans-serif; letter-spacing: 2px; text-transform: uppercase;
  transition: background .2s;
}
.iav-mapa-link:hover { background: #000; }
.iav-ver-mapa {
  display: inline-block; margin-top: 6px; color: #fff !important;
  font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase;
  border-bottom: 2px solid #fff; text-decoration: none;
}
.iav-ver-mapa:hover { opacity: .8; }

/* ---------- Redes sociales clicables ---------- */
.iav-red { display: contents; cursor: pointer; }
.iav-red img, .iav-red p { cursor: pointer; transition: transform .25s ease; }
.iav-red:hover img { transform: scale(1.06); }
.iav-red:hover p { text-decoration: underline; }

/* ---------- Logo en el navbar ---------- */
.u-header .u-image-1 { width: 64px; height: 64px; margin: 8px auto 0 0; }
.u-header .u-logo-image-1 { object-fit: contain; }
.u-header .u-menu-1 { margin-top: -50px; }

/* ---------- Botones de WhatsApp (verde oficial) ---------- */
a.u-btn.u-button-style.iav-btn-wa,
a.u-btn.u-button-style.iav-btn-wa[class*="u-border-"] {
  display: flex !important; width: max-content; max-width: 100%; align-items: center; justify-content: center; gap: 10px;
  background-color: #25d366 !important; background-image: none !important;
  border: 2px solid #25d366 !important; color: #fff !important;
  border-radius: 50px !important;
  font-weight: 700; letter-spacing: 1px; text-transform: none !important; font-size: 1rem !important;
  padding: 14px 32px !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
a.u-btn.u-button-style.iav-btn-wa:hover,
a.u-btn.u-button-style.iav-btn-wa:focus-visible,
a.u-btn.u-button-style.iav-btn-wa:active,
a.u-btn.u-button-style.iav-btn-wa[class*="u-border-"]:hover {
  background-color: #128c7e !important; border-color: #128c7e !important; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 140, 126, .4);
}
.iav-btn-wa .iav-wa-svg { width: 24px; height: 24px; flex: none; }
