html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Custom animations and base overrides */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in-up { animation: fadeInUp 1s ease-out forwards; }
.animate-fade-in-up-delay-1 { animation: fadeInUp 1.2s ease-out 0.3s forwards; opacity: 0; }
.animate-fade-in-delay-2 { animation: fadeIn 1s ease-out 1s forwards; opacity: 0; }
.hero-zoom { animation: heroZoom 10s linear forwards; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-bounce-slow {
    animation: bounceSlow 2s infinite;
}

.hero, .hero-wrapper, .hero-container {
  overflow: hidden;
}

@keyframes bounceSlow {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* Floating Menu Styles */
.nav-container {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 6px 12px;
    display: flex;
    gap: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .nav-container {
        padding: 16px 19px;
        gap: 21px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
}

@media (min-width: 768px) {
    .nav-item {
        font-size: 10px;
    }
}

.nav-item.active {
    color: white;
}

.nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item span {
    display: none;
}

@media (min-width: 768px) {
    .nav-item span {
        display: block;
    }
}

.nav-item.active::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    filter: blur(10px);
    z-index: -1;
}

/* Scroll reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 767px) {
    #whatsapp-click {
      position: fixed;
      right: 17px;
      bottom: 112px;
      z-index: 9999;
    }
}

/* Desktop */
@media (min-width: 768px) {
    #whatsapp-click {
      position: fixed;
      right: 42px;
      bottom: 54px;
      z-index: 9999;
    }
}

.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
}

/* ===== Mobile nav: mostrar texto SOLO en el item activo (tipo pill) ===== */

/* En mobile: por defecto solo ícono, centrado */
.nav-item {
  flex-direction: column;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 9999px;
}

/* Mantén oculto el label en mobile */
.nav-item span {
  display: none; /* ya lo tienes */
}

/* En mobile: el item activo se convierte en "pill" horizontal con texto */
@media (max-width: 767px) {
  .nav-item.active {
    flex-direction: row;            /* ícono + texto en línea */
    gap: 10px;
    padding: 10px 13px;
    background: rgba(255,255,255,0.12); /* look del pill */
    color: white;
  }

  .nav-item.active span {
    display: inline-block;          /* muestra label solo en activo */
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;           /* en la captura no va ultra "uppercase" */
    opacity: 0.95;
    margin-top: 0;
    white-space: nowrap;
  }

  /* Quita el glow blur del ::after en mobile, porque el pill ya tiene fondo */
  .nav-item.active::after {
    content: none;
  }
}

/* Desktop se mantiene igual: texto visible debajo */
@media (min-width: 768px) {
  .nav-item {
    flex-direction: inherit;
    padding: 0; /* opcional: vuelve al look original si no quieres padding */
    background: transparent;
  }
  .nav-item span {
    display: block; /* ya lo tienes */
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 767px) {
  .masterplan-wrapper {
    height: 80vh;
    border-radius: 24px;
    overflow: hidden;
  }

  .masterplan-wrapper iframe,
  .masterplan-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

/* ===== Contact: layout responsive como referencia (2 cols desktop, stack mobile) ===== */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px){
  .contact-grid{
    grid-template-columns: 1.05fr 0.95fr; /* izquierda ligeramente más ancha */
    gap: 56px;
  }
}

.contact-right{
  display: flex;
  justify-content: flex-end; /* empuja la tarjeta a la derecha en desktop */
}

@media (max-width: 1023px){
  .contact-right{
    justify-content: stretch;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-item svg {
    width: 20px;
    height: 20px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
}

/* ===== Pills (tel/email) ===== */
.contact-pill{
  display:flex;
  align-items:center;
  gap:18px;
  text-decoration:none;
  color:inherit;
}

.contact-icon{
  width:64px;
  height:64px;
  border-radius:9999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  color: #383a3e;
}

.contact-kicker{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(100, 116, 139, 0.9);
}

.contact-value{
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: #383a3e;
  white-space: nowrap;
}

@media (max-width: 767px){
  .contact-value{ font-size: 20px; }
}

.contact-pill:hover .contact-icon{
  transform: translateY(-1px);
  transition: transform .2s ease;
}

/* ===== Desktop: pill activo igual a mobile ===== */
@media (min-width: 768px) {
  /* Asegura layout horizontal en desktop (ícono + texto en línea) */
  .nav-item {
    flex-direction: row;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9999px;
  }

  /* Activo: pill sólido */
  .nav-item.active {
    background: rgba(255,255,255,0.12);  /* mismo look del pill */
    color: #fff;
  }

  /* Si tu CSS anterior agrega un glow con ::after, lo apagamos para que se vea “limpio” */
  .nav-item.active::after {
    content: none;
  }

  /* Texto: visible en desktop */
  .nav-item span {
    display: inline-block;
    margin-top: 0;              /* importante: no lo empujes hacia abajo */
    font-size: 11px;            /* ajusta si lo quieres más grande */
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;       /* si lo quieres como “El Proyecto” */
    white-space: nowrap;
    opacity: 0.95;
  }
}

/* Layer que SOLO invierte la imagen */
.hero-bg {
  transform: scaleX(-1);
  overflow: hidden;
}

/* Layer que SOLO hace el zoom */
.hero-zoom {
  animation: heroZoom 20s ease-in-out infinite;
  will-change: transform;
}

/* Form inline validation */
.form-error{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(220, 38, 38, 0.9); /* rojo elegante */
  font-weight: 600;
}

.is-invalid{
  border-color: rgba(220, 38, 38, 0.35) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
  background: rgba(254, 242, 242, 0.45) !important;
}



/*menu secundatio de preventa desde*/
navfix{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #fff;
  font-family: sans-serif;
  font-size: 12px;
  z-index: 9999;
  background: linear-gradient(90deg, #0f172a 0%, #111827 100%);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.ticker{
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  height: 28px;              /* ajusta a tu gusto */
  display: flex;
  align-items: center;
}

.ticker__text{
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  padding-left: 0;           /* importante */
  margin: 0;                 /* importante */
  letter-spacing: 2px;
  font-weight: 500;
  padding: 5px;
}

@media (max-width: 768px) {
  navfix{
    font-size: 14px;
  }
  .ticker__text{
    letter-spacing: 1.5px;
  }
}

/*Badge en las imagenes de la galería*/
.img-badge{
  position: relative;
}

.img-badge::after{
  content: attr(data-badge);     /* <-- el texto sale del atributo */
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;              /* <-- ajustas tamaño acá */
  line-height: 1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* ===== WhatsApp Premium + Halo Visible ===== */

#whatsapp-click{
  position: fixed;
  overflow: visible;
  isolation: isolate;
  will-change: transform, box-shadow;
}

/* 🔥 HALO PRINCIPAL (este es el que te gustaba) */
#whatsapp-click::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: whatsapp-ring-strong 2.6s ease-out infinite;
}

/* animación halo */
@keyframes whatsapp-ring-strong {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* movimiento principal (más sutil que antes) */
.whatsapp-premium{
  animation: whatsapp-breathe 2.6s ease-in-out infinite;
}

@keyframes whatsapp-breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  }

  40% {
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.65);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  }
}

/* hover elegante */
#whatsapp-click:hover{
  transform: scale(1.08);
  box-shadow: 0 14px 45px rgba(37, 211, 102, 0.7);
}

/* pausa animación en hover */
#whatsapp-click.whatsapp-premium:hover{
  animation-play-state: paused;
}