/* ============================================================
   COMPONENTS.CSS — Nav, Cards, Modal, Botones, Floating WA
============================================================ */

/* ---- Nav logo ---- */
.nav-logo img { height: 40px; width: auto; }
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--t-fast);
  letter-spacing: 0.03em;
}
.nav-link:hover { color: var(--color-gold-light); }
.nav-link--active { color: var(--color-gold-light) !important; }
.nav-link--cta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--color-wa);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-link--cta:hover { background: var(--color-wa-dark); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
}
@media (min-width: 900px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-link {
  display: block;
  padding: var(--sp-4) var(--container-pad);
  font-size: var(--fs-base);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--t-fast), background var(--t-fast);
}
.mobile-link:hover { color: var(--color-white); background: rgba(255,255,255,0.04); }
.mobile-link--cta {
  color: var(--color-wa) !important;
  font-weight: 600;
}

/* ---- Valor card ---- */
.valor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--t-base), transform var(--t-base);
}
.valor-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.valor-icon {
  width: 52px;
  height: 52px;
  color: var(--color-gold-light);
  margin-bottom: var(--sp-5);
}
.valor-icon svg { width: 100%; height: 100%; }
.valor-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}
.valor-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }

/* ---- Modelo card ---- */
.modelo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.modelo-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.modelo-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.modelo-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.modelo-card:hover .modelo-card__image { transform: scale(1.05); }
.modelo-card__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: rgba(27,79,138,0.85);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}
.modelo-card__body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
}
.modelo-card__name {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--color-gold-light);
  letter-spacing: 0.08em;
}
.modelo-card__desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }
.modelo-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
}
.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  padding: 3px 10px;
}
.spec-item svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  z-index: var(--z-modal);
}
.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-size: 1.75rem;
  color: var(--text-muted);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: white; }
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-4) var(--sp-5) 0;
  gap: var(--sp-2);
}
.modal-tab {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  border-radius: var(--r-md) var(--r-md) 0 0;
  transition: color var(--t-fast), border-color var(--t-fast);
  margin-bottom: -1px;
}
.modal-tab:hover { color: var(--text-primary); }
.modal-tab.is-active { color: var(--color-gold-light); border-bottom-color: var(--color-gold); }
.modal-panel { display: none; padding: var(--sp-5); }
.modal-panel.is-active { display: block; }
.modal-panel[hidden] { display: none; }

/* Lightbox */
.lightbox-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-md);
  overflow: hidden;
}
.lightbox-img-wrap { flex: 1; min-height: 280px; max-height: 55vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-height: 55vh; width: 100%; object-fit: contain; }
.lightbox-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lightbox-nav--prev { left: var(--sp-3); }
.lightbox-nav--next { right: var(--sp-3); }
.lightbox-nav:hover { background: rgba(27,79,138,0.85); }
.lightbox-thumbs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
}
.lightbox-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}
.lightbox-thumb.is-active,
.lightbox-thumb:hover { opacity: 1; border-color: var(--color-gold); }

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.plan-item img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border-subtle); }
.plan-item p { font-size: var(--fs-sm); color: var(--text-muted); text-align: center; margin-top: var(--sp-2); }

/* Tour modal */
.tour-modal-wrap {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tour-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8);
  text-align: center;
}
.tour-play-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  color: white;
  font-size: var(--fs-md);
  transition: opacity var(--t-fast);
}
.tour-play-btn:hover { opacity: 0.8; }
.tour-play-btn svg { width: 80px; height: 80px; }
.tour-modal-video { width: 100%; max-height: 65vh; }

/* Modal footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.modal-model-name {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--color-gold-light);
  letter-spacing: 0.1em;
}
.modal-model-specs { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-1); }

/* ---- Amenidades ---- */
.amenidades-img-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.amenidades-img-main img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.amenidades-features { display: flex; flex-direction: column; gap: var(--sp-6); }
.amenidad-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.amenidad-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--color-gold-light);
  background: rgba(155,136,96,0.1);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenidad-icon svg { width: 100%; height: 100%; }
.amenidad-item h3 { font-family: var(--font-serif); font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.amenidad-item p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }
.amenidades-strip-item { border-radius: var(--r-lg); overflow: hidden; }
.amenidades-strip-item img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-lg); }

/* ---- Tours ---- */
.tour-card { cursor: pointer; }
.tour-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-card);
}
.tour-card__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tour-card:hover .tour-card__thumb { transform: scale(1.05); }
.tour-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base);
}
.tour-card:hover .tour-card__overlay { background: rgba(0,0,0,0.5); }
.tour-card__play {
  width: 72px;
  height: 72px;
  transition: transform var(--t-fast);
}
.tour-card__play svg { width: 100%; height: 100%; }
.tour-card:hover .tour-card__play { transform: scale(1.1); }
.tour-card__label {
  padding: var(--sp-3) var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.tour-card__label strong { color: var(--color-gold-light); }

/* Tour player */
.tour-player-wrap {
  margin-top: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tour-player-wrap[hidden] { display: none; }
.tour-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-subtle);
}
.tour-player-label { font-size: var(--fs-sm); color: var(--color-gold-light); font-weight: 500; }
.tour-player-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--t-fast), color var(--t-fast);
}
.tour-player-close:hover { background: rgba(255,255,255,0.1); color: white; }
.tour-player-video { width: 100%; max-height: 60vh; display: block; }

/* ---- Ubicación ---- */
.ubicacion-address {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-6);
  color: var(--text-primary);
}
.ubicacion-proximidad { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.ubicacion-proximidad li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.ubicacion-proximidad li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-gold-light); }
.map-container { border-radius: var(--r-lg); overflow: hidden; height: 420px; border: 1px solid var(--border-subtle); }
.map-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.map-placeholder-inner { text-align: center; }
.map-placeholder-inner p { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-secondary); }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Contacto ---- */
.contacto-content .section-eyebrow { text-align: left; }
.contacto-content .section-title { text-align: left; }
.contacto-desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  max-width: 50ch;
  line-height: 1.65;
}
.trust-items { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.trust-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-gold-light); }
.contacto-wa-btn { font-size: var(--fs-md); padding: 1rem 2rem; }
.contacto-phone {
  margin-top: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.contacto-phone a { color: var(--color-gold-light); }
.contacto-phone a:hover { text-decoration: underline; }
.contacto-logo-wrap { text-align: center; }
.contacto-logo { width: clamp(160px, 30%, 280px); margin: 0 auto; }
.contacto-developer { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.contacto-developer strong { color: var(--color-gold-light); }

/* ---- Footer ---- */
.footer-logo { height: 48px; width: auto; margin-bottom: var(--sp-3); }
.footer-tagline { font-size: var(--fs-sm); color: var(--text-muted); }
.footer-heading { font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--color-gold-light); margin-bottom: var(--sp-4); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-link { font-size: var(--fs-sm); color: var(--text-secondary); transition: color var(--t-fast); }
.footer-link:hover { color: var(--color-gold-light); }
.footer-address { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--sp-2); }
.footer-legal {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.footer-legal p { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- Floating WhatsApp ---- */
.floating-wa {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-floating);
  width: 58px;
  height: 58px;
  background: var(--color-wa);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.floating-wa[hidden] { display: none; }
.floating-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
}
.floating-wa svg { width: 28px; height: 28px; }
.floating-wa-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(28,28,30,0.95);
  color: white;
  font-size: var(--fs-xs);
  padding: 5px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  border: 1px solid var(--border-subtle);
}
.floating-wa:hover .floating-wa-tooltip { opacity: 1; }
