/* ======================================================
   UVAC Viajes & Outlet · LANDING PAGES
   Estilos base para vistas públicas (landing_view.php)
   ====================================================== */

:root {
  --uvac-primary: #194291;
  --uvac-secondary: #13a389;
  --uvac-dark: #0f294b;
  --text: #0b1a2b;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .15);
  --header-h: 72px;
}

/* === RESET === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body {
  color: var(--text);
  background: #f8f9fb center/cover no-repeat fixed;
  min-height: 100vh;
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.hamburger-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  display: none;
}
.hamburger-btn svg { width: 24px; height: 24px; fill: #333; }

@media (max-width: 1023px) {
  .hamburger-btn { display: block; }
  #desktop-menu { display: none; }
}

/* === LAYOUT PRINCIPAL === */
.wrap {
  max-width: 1200px;
  margin: 24px auto 100px;
  padding: 0 16px;
}
.layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* === TARJETAS BASE === */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === COLUMNA IZQUIERDA (GALERÍA / IMAGEN) === */
.media-card { padding: 0; overflow: visible; }
.media-sticky {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  z-index: 5;
}
.media {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.media > img,
.gallery-slide {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* === GALERÍA === */
.gallery-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .7s ease, transform .7s ease;
  z-index: 1;
}
.gallery-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 2;
}
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(25, 66, 145, 0.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
  z-index: 5;
}
.gallery-prev:hover, .gallery-next:hover { background: rgba(25, 66, 145, 1); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
@media (max-width: 768px) {
  .gallery-prev, .gallery-next { display: none; }
}

/* Contador e indicador táctil */
.gallery-counter {
  position: absolute;
  bottom: 10px; right: 15px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 6;
}
.swipe-hint {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
  animation: hintFade 3s infinite alternate;
  z-index: 6;
}
@keyframes hintFade { from { opacity: 1; } to { opacity: .4; } }

/* === COLUMNA DERECHA (DETALLES) === */
.details-card {
  padding: 18px 18px 8px;
  overflow: hidden;
}
.eyebrow {
  font-size: 12px;
  color: #6b7a90;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  color: #0f294b;
}
.promo-id {
  margin: 0 12px 10px 0;
  font-size: 12px;
  color: #73839d;
}
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5ff;
  color: #143067;
  border: 1px solid #dbe6ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin: 4px 0 12px;
}
.price-chip i { font-size: 16px; }
.desc {
  font-size: 15px;
  line-height: 1.7;
  color: #2b3a4f;
  margin: 0 0 16px;
}

/* === BOTONES Y CTA === */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: var(--uvac-primary);
  box-shadow: 0 6px 14px rgba(25,66,145,.25);
  transition: transform .15s ease, box-shadow .15s ease;
  flex: 1 1 20px;
  min-height: 48px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(25,66,145,.28);
}
.btn-whatsapp { background: #25D366; box-shadow: 0 6px 14px rgba(37,211,102,.22); }
.btn-share { background: #0ea5e9; box-shadow: 0 6px 14px rgba(14,165,233,.22); }
.btn-lead { background: var(--uvac-secondary); box-shadow: 0 6px 14px rgba(19,163,137,.25); }

@media (max-width: 1023px) {
  .title { font-size: 22px; }
  .details-card .cta-row { display: none; }
}

/* === TABLA DE INFORMACIÓN === */
.info h2 {
  margin: 6px 0 10px;
  font-size: 18px;
  color: var(--uvac-dark);
}
.grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  border-top: 1px solid #eef1f5;
  padding-top: 12px;
}
.row {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef1f5;
}
.row:last-child { border-bottom: 0; }
.label { color: #6a7a92; font-size: 13px; }
.value { color: #17263e; font-size: 14px; font-weight: 500; }
.tours { margin: 6px 0 0; padding-left: 18px; }
.tours li { margin: 6px 0; }

/* === FICHA DE ACCIÓN (CTA MOBILE) === */
.action-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 30px 24px;
  margin: 28px 0 36px;
  text-align: center;
}
.action-card h3 {
  font-size: 22px;
  color: var(--uvac-dark);
  font-weight: 600;
  margin-top: 0;
}
.action-card p {
  color: #4b5565;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-action {
  min-width: 200px;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.btn-action i { font-size: 18px; }
@media (min-width: 1024px) {
  .action-card { display: none !important; }
}
@media (max-width: 768px) {
  .action-card { padding: 22px 16px; margin: 20px 0; }
  .action-buttons { flex-direction: column; gap: 10px; }
  .btn-action { width: 100%; max-width: none; }
}

/* === MODAL FORMULARIO LEADS === */
.lead-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 1100;
  padding: 40px 16px;
}
.lead-modal.hidden { display: none; }

.lead-modal-content {
  background: rgba(255,255,255,.96);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  position: relative;
  animation: fadeIn .3s ease;
  margin: auto;
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #444;
}
.lead-modal-content h2 {
  font-size: 22px;
  color: var(--uvac-dark);
  margin-top: 0;
}
.lead-modal-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}
#uvacLeadForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
#uvacLeadForm label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
#uvacLeadForm input,
#uvacLeadForm select,
#uvacLeadForm textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccd3e2;
  font-size: 14px;
  font-family: inherit;
}
#uvacLeadForm textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 60px;
}
.btn-enviar {
  grid-column: 1 / -1;
  background: var(--uvac-secondary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease;
}
.btn-enviar:hover { background: #0f806d; }

/* Mensaje éxito */
.form-success {
  text-align: center;
  color: var(--uvac-dark);
  padding: 40px 0;
}
.form-success i {
  font-size: 48px;
  color: var(--uvac-secondary);
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .lead-modal { align-items: stretch; padding: 20px 12px; }
  .lead-modal-content {
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px 18px;
  }
  #uvacLeadForm { grid-template-columns: 1fr; }
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === OVERLAY DE ÉXITO === */
.lead-overlay-success {
  position: fixed;
  inset: 0;
  background: rgba(25,66,145,0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  font-family: 'Poppins', sans-serif;
}
.lead-overlay-success.active {
  opacity: 1;
  pointer-events: auto;
}
.lead-overlay-success i {
  font-size: 64px;
  margin-bottom: 16px;
  color: #13a389;
  animation: pop .6s ease;
}
@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.info h2 {
  margin: 6px 0 10px;
  font-size: 18px;
  color: var(--uvac-dark);
}
.grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  border-top: 1px solid #eef1f5;
  padding-top: 12px;
}
.row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef1f5;
}
.row:last-child { border-bottom: 0; }
.label {
  color: #6a7a92;
  font-size: 13px;
}
.value {
  color: #17263e;
  font-size: 14px;
  font-weight: 500;
}
.tours {
  margin: 6px 0 0;
  padding-left: 18px;
}
.tours li {
  margin: 6px 0;
}


.lead-overlay-success {
  position: fixed;
  inset: 0;
  background: rgba(25, 66, 145, 0.9);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lead-overlay-success.active {
  opacity: 1;
}
.lead-overlay-success.hidden {
  display: none;
}
.lead-overlay-success i {
  font-size: 60px;
  color: #13a389;
  margin-bottom: 12px;
}
.lead-overlay-success h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.lead-overlay-success p {
  font-size: 15px;
  max-width: 360px;
  line-height: 1.5;
}


/* === FICHA DE ACCIÓN UVAC === */
.action-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 30px 24px;
  margin: 28px 0 36px;
  text-align: center;
  display: none; /* Oculta por defecto en escritorio */
}
.action-card h3 {
  margin-top: 0;
  font-size: 22px;
  color: var(--uvac-dark, #0f294b);
  font-weight: 600;
}
.action-card p {
  color: #4b5565;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-action {
  flex: 1 1 20px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.btn-action i { font-size: 18px; }

/* Colores base reutilizan variables globales */
.btn-primary { background: var(--uvac-primary, #194291); }
.btn-primary:hover { background: #12336e; }

.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1eb954; }

.btn-lead { background: var(--uvac-secondary, #b50606); }
.btn-lead:hover { background: #9e2424; }

.btn-share { background: #0ea5e9; }
.btn-share:hover { background: #0780b7; }

/* Mostrar solo en pantallas móviles */
@media (max-width: 1023px) {
  .action-card { display: block; }
}

.btn.btn-lead {
	background-color: #b00101;
}

/* === MENÚ BASE === */
#main-menu {
  flex: 1;
}
#main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main-menu > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
#main-menu li {
  position: relative;
}
#main-menu a {
  display: block;
  text-decoration: none;
  color: #22304a;
  font-size: 15px;
  padding: 10px 8px;
  font-weight: 500;
  transition: color .2s;
}
#main-menu a:hover {
  color: var(--uvac-primary, #194291);
}
#main-menu .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  border-radius: 10px;
  padding: 8px 0;
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 1001;
}
#main-menu li:hover > .sub-menu {
  display: block;
}
#main-menu .sub-menu li a {
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
}

/* === MÓVIL === */
@media (max-width: 1023px) {
  #main-menu > ul {
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    overflow-y: auto;
    box-shadow: 10px 0 24px rgba(0,0,0,.18);
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1100;
    padding: 24px 12px;
  }
  #main-menu.open > ul {
    transform: translateX(0);
  }
  #main-menu .sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding-left: 16px;
  }
  #main-menu li {
    border-bottom: 1px solid #eee;
  }
}

/* ======================================================
   AJUSTES LANDING PROMOS: precios, vigencia, cotización
   ====================================================== */

/* Utilidad genérica para alternar bloques desde JS */
.u-hidden { display: none !important; }

/* === PRECIO REGULAR VS PRECIO EN OFERTA === */
.price-block {
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: #f8faff;
  border: 1px solid #dbe6ff;
  border-radius: 14px;
}
.price-block .price-label {
  display: inline-block;
  min-width: 150px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.price-regular {
  color: #d92b2b;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.price-regular .price-label { color: #d92b2b; }
.price-regular s { text-decoration-thickness: 2px; }
.price-offer {
  color: var(--uvac-primary);
  font-size: 16px;
  margin-bottom: 8px;
}
.price-offer .price-label { color: var(--uvac-primary); }
.price-offer strong {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.price-offer .price-type {
  color: #5a6a82;
  font-size: 13px;
  font-weight: 500;
}
.price-savings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdecec;
  color: #b91c1c;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

/* === RELOJ DE VIGENCIA (expira a las 72 h) === */
.promo-timer { margin: 0 0 14px; }
.action-card .promo-timer { margin-bottom: 18px; }
.promo-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.promo-countdown strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.promo-expired {
  background: #fdecec;
  border: 1px solid #f5b5b5;
  color: #a61b1b;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.promo-expired-label {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}
.promo-expired-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: #7f1d1d;
}
.btn.btn-reactivar {
  background: #25D366;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .25);
  flex: 0 0 auto;
  display: inline-flex;
}
.btn.btn-reactivar:hover { background: #1eb954; }

/* === BOTÓN VER EN TIENDA (secundario, delineado) === */
.btn.btn-store,
.btn-action.btn-store {
  background: #fff;
  color: var(--uvac-primary);
  border: 2px solid var(--uvac-primary);
  box-shadow: none;
}
.btn.btn-store:hover,
.btn-action.btn-store:hover {
  background: #eef3ff;
  box-shadow: 0 6px 14px rgba(25, 66, 145, .15);
}

/* === FORMULARIO BREVE: SOLICITAR CONTACTO DE UN AGENTE === */
.quick-contact {
  background: #f8faff;
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  padding: 18px;
  margin: 4px 0 18px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.quick-contact.qc-flash {
  border-color: var(--uvac-primary);
  box-shadow: 0 0 0 4px rgba(25, 66, 145, .18);
}
.quick-contact h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--uvac-dark);
}
.quick-contact h3 i { color: var(--uvac-primary); }
.quick-contact > p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #4b5565;
}
.qc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}
.qc-fields input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccd3e2;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.qc-submit {
  background: var(--uvac-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s ease;
}
.qc-submit:hover { background: #12336e; }
.qc-submit:disabled { opacity: .7; cursor: wait; }
.qc-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8a97ab;
}
.qc-error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
}
.qc-success {
  font-size: 15px;
  color: #14532d;
}
.qc-success i { color: var(--uvac-secondary, #13a389); margin-right: 6px; }
/* Honeypot: fuera de pantalla, los humanos no lo ven */
.qc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
@media (max-width: 768px) {
  .qc-fields { grid-template-columns: 1fr; }
  .price-block .price-label {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }
}

/* === Formulario de contacto: colapsable (se abre con "Cotízalo") === */
.quick-contact { position: relative; animation: qcReveal .35s ease; }
.quick-contact.qc-collapsed { display: none; }
@keyframes qcReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qc-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #8a97ab;
  padding: 4px;
  transition: color .2s ease;
}
.qc-close:hover { color: var(--uvac-dark); }