/* 
   Casa Emprendimientos - Updated Brand Styles 
   Estilo: Moderno, Corporativo, Ecológico (Inspired by Quatro & Lawnx)
*/

:root {
  /* Updated Color Palette */
  --primary-color: #0073c1;
  /* Azul Corporativo */
  --primary-dark: #005a9e;
  --primary-light: #e6f1f9;

  --secondary-color: #308612;
  /* Verde Corporativo */
  --secondary-hover: #266b0e;

  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --text-light: #ffffff;

  --bg-body: #ffffff;
  --bg-light: #f5f5f7;
  --bg-dark: #1d1d1f;

  /* UI Spacing & Radius */
  --container-xl: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 12px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 120px;
  /* Offset for sticky header (120px total) */
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* --- Typography --- */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-left {
  text-align: left;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 193, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-white {
  background-color: white;
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: var(--bg-light);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  background-color: var(--secondary-color);
  color: white;
}

.btn-sm:hover {
  background-color: var(--secondary-hover);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* --- Top Bar --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  z-index: 1001;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-social {
  display: flex;
  gap: 20px;
}

.top-bar-social a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.top-bar-social a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.top-bar-contact a {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-contact i {
  color: #25d366;
  font-size: 1.1rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 40px;
  width: 100%;
  height: 80px;
  background: var(--primary-color); /* More transparent */
  backdrop-filter: blur(12px); /* Stronger blur */
  -webkit-backdrop-filter: blur(12px);
  z-index: 1001;
  display: flex;
  align-items: center;
  transition:
    all 0.4s ease,
    top 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.sticky {
  top: 0;
  height: 70px; /* Slightly smaller on scroll */
  background: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Soft shadow only when sticky */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: auto;
  max-height: 160px; /* Increased from 55px to make it more visible */
  width: auto;
  transition: transform 0.3s ease;
  object-fit: contain; /* Ensure it doesn't distort */
}

.navbar.sticky .logo img {
  max-height: 145px; /* Shrink logo slightly on scroll */
}

.nav-links {
  display: flex;
  gap: 40px; /* Increased spacing */
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600; /* Bolder text */
  color: white;
  transition: color 0.3s;
  position: relative;
  letter-spacing: 0.5px;
}

/* Underline Animation */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3ea7ec;
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #3ea7ec;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle,
.mobile-actions {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white; /* Contrast on blue navbar */
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: white;
}

/* --- Hero Section with Ken Burns Effect --- */
.hero {
  position: relative;
  height: 113vh; /* Taller hero */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Important for containing the scale animation */
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: brightness(0.9);
  /* Solo transicionamos la opacidad para evitar tirones con el transform de la animación */
  transition: opacity 2.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
  /* La animación se encarga de todo el movimiento de forma independiente */
  animation: kenBurnsSmooth 25s ease-in-out infinite alternate;
}

@keyframes kenBurnsSmooth {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Mesh gradient for a more premium cinematic look */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 75%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2; /* Encima de las imágenes */
}

.hero-content {
  position: relative;
  z-index: 10; /* Encima del overlay */
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 20px;
}

/* Hero Navigation & Dots */
.hero-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10;
}

.hero-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-nav-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

@media (max-width: 800px) {
  .hero-nav {
    display: none;
  } /* Hide arrows on mobile for cleaner look */
}

.hero-tag {
  display: inline-block;
  background: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Hero Tag Animation */
  opacity: 0;
  animation: fadeInDown 1s ease-out forwards 0.3s;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  /* H1 Animation */
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.6s;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0; /* Reset opacity for animation */
  /* P Animation */
  animation: fadeInUp 1s ease-out forwards 0.9s;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 1.2s;
}

/* Keyframes for Hero Content */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  } /* p opacity 0.9 */
}
/* Override specific opacity for H1 and Buttons if needed */
.hero h1 {
  animation-name: fadeInUpFull;
}
.hero-buttons {
  animation-name: fadeInUpFull;
}

@keyframes fadeInUpFull {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-project-badge {
  position: absolute;
  top: 80px;
  right: 5%;
  z-index: 10;
  max-width: 250px; /* Un poco más grande para compensar la falta de fondo */
  background: none; /* Quitamos el fondo blanco */
  padding: 0;
  border: none;
  box-shadow: none;
  opacity: 0;
  animation:
    fadeInRight 1s ease-out forwards 1.2s,
    float-badge 4s ease-in-out infinite 2.2s;
  pointer-events: none; /* Para que no interfiera con clicks */
}

.hero-project-badge img {
  width: 100%;
  height: auto;
  /* Aplicamos un filtro para que el logo se vuelva blanco/brillante y resalte */
  filter: drop-shadow(0 0 15px rgb(153, 231, 157))
    drop-shadow(0 0 5px rgba(57, 214, 70, 0.4));
}

@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustment for the badge */
@media (max-width: 800px) {
  .hero-project-badge {
    display: none; /* Ocultamos el logo en móviles */
  }
}

/* --- Shine Effect for Buttons --- */
.shiny-btn {
  position: relative;
  overflow: hidden;
}

.shiny-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
}

.shiny-btn:hover::after {
  animation: shine 0.75s;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

/* --- Hover Zoom for Images --- */
.hover-zoom-container {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hover-zoom-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-zoom-container:hover .hover-zoom-img {
  transform: scale(1.1);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white; /* Ensure icon stays white */
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: white;
}

.faq-answer p {
  padding: 20px;
  padding-top: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--secondary-color);
}
.toast.error {
  border-color: #dc3545;
}

.toast i {
  font-size: 1.2rem;
}

.toast.success i {
  color: var(--secondary-color);
}
.toast.error i {
  color: #dc3545;
}

.toast-content h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

/* --- Elegant Decorations --- */

/* Organic Blob Background for Image */
.project-image-highlight {
  position: relative;
  z-index: 1;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Section Waves */
.custom-shape-divider-bottom,
.custom-shape-divider-top {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.custom-shape-divider-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-top {
  top: 0;
}

.custom-shape-divider-bottom svg,
.custom-shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px; /* Default height */
}

@media (min-width: 768px) {
  .custom-shape-divider-bottom svg,
  .custom-shape-divider-top svg {
    height: 100px;
  }
}

/* Color Modifiers */
.shape-fill-white {
  fill: #ffffff;
}

.shape-fill-light {
  fill: #f5f5f7; /* Matches bg-light */
}

/* Ensure sections are relative for the absolute dividers */
.hero,
.section,
.financing-banner {
  position: relative;
}

/* Add padding to sections with waves to prevent content overlap */
.wave-padding-top {
  padding-top: 80px;
}
.wave-padding-bottom {
  padding-bottom: 80px;
}

/* Fix Navbar for Larger Logo */
.navbar {
  min-height: 80px;
  padding: 10px 0;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.mv-item h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mv-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.value-tag {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.pl-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 15px;
}

.pl-badge .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.pl-badge .text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.project-img {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  margin-bottom: 8px;
  color: var(--primary-color);
}

.location-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.project-info .desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.amenities-list {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.amenities-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.amenities-list li i {
  color: var(--secondary-color);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.project-footer .price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* --- Financing Banner --- */
.financing-banner {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Background ornament */
.financing-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

.financing-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.financing-content .text {
  flex: 1;
  min-width: 300px;
}

.financing-content .text h2 {
  font-size: 3rem; /* Much larger */
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.financing-content .text p {
  font-size: 1.4rem; /* Larger */
  opacity: 0.95;
  font-weight: 500;
  margin-bottom: 0;
}

.financing-decoration-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  padding: 20px;
}

.financing-content .action .btn {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.financing-content .action .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.money-icon-float {
  position: relative;
  width: 200px; /* Much larger container */
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.money-icon-float i {
  position: absolute;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  animation: float-icon 4s ease-in-out infinite;
}

.money-icon-float i.dollar {
  font-size: 7.5rem; /* Massive dollar */
  color: #4cd137;
  z-index: 2;
}

.money-icon-float i.gold {
  font-size: 4rem; /* Larger coin */
  color: #f1c40f;
  top: -10px;
  right: -10px;
  animation-delay: 0.5s;
  z-index: 3;
}

.money-icon-float i.silver {
  font-size: 3.5rem; /* Larger coin */
  color: #dcdde1;
  bottom: -10px;
  left: -10px;
  animation-delay: 1s;
  z-index: 1;
}

@keyframes float-icon {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@media (max-width: 800px) {
  .financing-decoration-wrapper {
    order: -1;
    width: 100%;
    margin-bottom: 20px;
  }
  .financing-content .text h2 {
    font-size: 2.2rem;
  }
  .financing-content .text p {
    font-size: 1.1rem;
  }
  .financing-content {
    text-align: center;
    justify-content: center;
  }
}

/* --- Payment Methods --- */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.bank-card {
  background: white;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.bank-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-card);
}

.bank-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.yape-card .bank-icon {
  color: #742284;
}

.bank-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.bank-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  word-break: break-all;
}

/* --- Multimedia (Reuse basic styles but cleaner) --- */
.carousel-slide {
  display: flex;
  height: 100%;
  /* Fill container */
  background-color: #f0f0f0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Show full page */
  flex-shrink: 0;
  /* Crucial for carousel logic */
}

/* Aspect ratio for the container wrapper to match 16:9 roughly */
.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/9;
  /* Modern CSS for container sizing */
  height: auto;
  /* Allow aspect-ratio to dictate */
}

#prevBtn,
#nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#prevBtn:hover,
#nextBtn:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

#prevBtn {
  left: 15px;
}

#nextBtn {
  right: 15px;
}

/* --- Maps --- */
.maps-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.map-placeholder {
  height: auto;
  background: #f0f0f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.map-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.map-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Benefits Section --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.benefit-card h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* --- Animations & Transitions --- */

/* Base settings for scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements (like cards) */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* Different directions */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up effect */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Keyframes for continuous animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(48, 134, 18, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(48, 134, 18, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(48, 134, 18, 0);
  }
}

.pulse-btn {
  animation: pulse-glow 2s infinite;
}

/* Enhancements for existing elements */
.hero-content {
  opacity: 0; /* Initially hidden, handled by JS load */
  animation: heroFadeIn 1s ease-out forwards 0.5s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.nav-links .btn-nav:hover {
  transform: scale(1.05);
}

.project-features-list {
  list-style: none;
  margin: 20px 0;
}

.project-features-list li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-features-list i {
  color: var(--primary-color);
}

/* --- Contact & Footer --- */
.contact-container-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.info-item div {
  flex: 1;
  min-width: 0;
  /* Crucial for text wrapping in flex */
}

.info-item p {
  word-break: break-word;
  /* Breaks long emails */
  overflow-wrap: break-word;
}

.info-item i {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* --- Customers Section --- */
.collage-wrapper {
  margin-top: 40px;
  background: white;
  padding: 15px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary-color);
  transition: transform 0.4s ease;
}

.collage-wrapper:hover {
  transform: translateY(-8px);
}

.collage-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 10px);
  display: block;
}

.clean-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.full-width {
  width: 100%;
}

.footer {
  background: var(--bg-dark);
  color: white;
  padding: 20px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 10px;
}

.footer-brand h3 {
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #aaa;
}

.footer-links ul li a:hover {
  color: white;
}

.social-icons a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #666;
}

.contact-info-col h4 {
  margin-bottom: 0px;
}

.project-image-highlight {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  background: white;
  padding: 10px;
  border-top: 3px solid var(--primary-color);
}

#contacto {
  background-color: var(--bg-light);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 800px) {
  .about-grid,
  .contact-container-split,
  .financing-content,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    margin-bottom: 30px;
  }

  /* Mobile Navigation Improvements */
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .mobile-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.2s;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
    text-decoration: none;
  }

  .mobile-wa-icon:active {
    transform: scale(0.95);
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: white; /* Ensure it stays white on mobile blue navbar */
    cursor: pointer;
  }

  /* Enhanced Mobile Menu */
  .nav-links {
    position: fixed;
    top: 80px; /* Top Bar (40px) + Navbar (80px) */
    right: 0;
    height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 100%;
    /* Full width for better presence */
    max-width: none;
    /* Remove constraint */
    padding: 40px 20px;
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0.3s,
      top 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Integrate seamlessly */
    transform: translateX(100%);
    visibility: hidden;
    align-items: center;
    /* Center items */
    justify-content: center;
    /* Center vertically */
    gap: 30px;
    /* More space between links */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10000; /* Ensure it's above hero content */
  }

  .navbar.sticky .nav-links {
    top: 70px; /* Match sticky navbar height */
    height: calc(100vh - 70px);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.3rem;
    /* Larger text */
    display: block;
    padding: 12px;
    color: var(--primary-color); /* Fix: was white on white background */
    font-weight: 700;
  }

  /* Hide the desktop button inside the mobile menu if redundant, or style it */
  .nav-links .btn-nav {
    display: none;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.3s ease-in-out,
      visibility 0s linear 0s;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .clean-form {
    padding: 20px 15px;
    width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-container-split {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  /* Carousel height handled by aspect-ratio now */

  .pl-badge {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .container.financing-content {
    padding: 0 15px;
    justify-content: center;
    text-align: center;
  }

  .container.footer-content {
    padding: 0 15px;
    justify-content: center;
    text-align: center;
  }

  h4 {
    margin-bottom: 1rem;
  }

  .project-image-highlight {
    width: 100%;
    margin-top: 30px;
  }
}

/* --- Responsive Video --- */
.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .map-placeholder {
    height: auto;
  }
}

/* --- Sticky Sidebar Form (Clean White Card) --- */
.desktop-sticky-form {
  display: none; /* Strictly hidden on mobile */
  position: fixed;
  top: 160px;
  right: 2%;
  width: 350px;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.desktop-sticky-form.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1150px) {
  /* Show sticky form ONLY on Desktop */
  .desktop-sticky-form {
    display: block;
  }

  /* Hide the bottom contact form on Desktop (redundant) */
  .contact-form-col {
    display: none !important;
  }

  /* Center the contact info since form is gone on Desktop */
  .contact-container-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .contact-info-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .info-item {
    width: 100%;
    max-width: 400px;
    justify-content: flex-start; /* Keep icon/text relation */
    text-align: left;
  }
}

.sticky-clean-card {
  background: white;
  border-radius: 16px; /* Smooth corners */
  padding: 30px 25px; /* More breathing room */
  box-shadow: 0 20px 60px rgba(0, 50, 100, 0.15); /* Premium shadow */
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

/* Subtle accent line at top */
.sticky-clean-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-color);
}

.clean-form-sticky .form-row-compact {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.clean-form-sticky .form-group-compact {
  margin-bottom: 15px;
}

.clean-form-sticky .form-group-compact.half {
  flex: 1;
}

.clean-form-sticky label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.clean-form-sticky input,
.clean-form-sticky textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid transparent;
  background-color: #f7f9fc; /* Slight background for inputs */
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: #333;
}

.clean-form-sticky input:focus,
.clean-form-sticky textarea:focus {
  background-color: white;
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 100, 200, 0.1);
}

/* Offset containers on desktop to avoid overlapping with form */
@media (min-width: 1150px) {
  .container {
    margin-left: 5% !important;
    margin-right: calc(350px + 6%) !important;
    max-width: 900px !important;
  }

  .navbar .container,
  .footer .container,
  .hero .container,
  .top-bar .container,
  .main-layout .container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1200px !important;
  }
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-top: 5px;
  display: block;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.form-group-compact.error .error-msg,
.form-group.error .error-msg {
  height: 18px;
}

.fas fa-bars,
fas fa-times {
  color: white;
}

/* --- Interactive Map Public --- */
.map-container-public {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-wrapper-public {
  background: #edfaf1;
  height: 600px;
  max-height: 80vh;
  width: 100%;
  position: relative;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  touch-action: none;
  cursor: grab;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* Zoom Controls */
.map-zoom-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 30;
}

.map-zoom-controls button {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  pointer-events: auto;
}

.map-zoom-controls button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.map-zoom-controls button:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .map-zoom-controls {
    top: auto;
    bottom: 20px;
    right: 20px;
    flex-direction: row;
  }
  
  .map-zoom-controls button {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
  }
}

.corte-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.corte-card { 
  flex: 0 1 380px; /* No crece para llenar la fila, permite encogerse, base de 380px */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  background: white;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.corte-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.map-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 4400px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.map-wrapper-public:active {
  cursor: grabbing;
}

.map-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 20;
  color: var(--primary-color);
  font-weight: 600;
}

.map-loader i {
  font-size: 2rem;
  margin-bottom: 15px;
}

.map-content-public {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  transform: translateZ(0);
  contain: layout style paint;
}

/* Performance States */
.map-wrapper-public.zoomed-out .lot-dot-public {
  opacity: 0;
  pointer-events: none;
}

.map-wrapper-public.is-panning .lot-dot-public,
.map-wrapper-public.is-panning .custom-tooltip-public {
  pointer-events: none !important;
}

.map-img-public {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none !important;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

.lot-dot-public {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  cursor: pointer;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  z-index: 20;
  will-change: opacity;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pulsing effect for available lots */
.lot-dot-public:not(.sold):not(.reserved):not(.public)::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  opacity: 0;
  animation: dot-pulse 2s infinite;
  will-change: transform, opacity;
}

@keyframes dot-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.lot-dot-public:hover {
  transform: translate(-50%, -50%) scale(1.6);
  z-index: 100;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.lot-dot-public.sold {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.lot-dot-public.reserved {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.lot-dot-public.public {
  background: linear-gradient(135deg, #9ca3af, #4b5563);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legend-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-item .dot.available {
  background-color: var(--secondary-color);
}
.legend-item .dot.reserved {
  background-color: #f59e0b;
}
.legend-item .dot.sold {
  background-color: #ef4444;
}
.legend-item .dot.public {
  background-color: #9ca3af;
}

/* Tooltip Styles */
/* Premium Tooltip */
.custom-tooltip-public {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  pointer-events: none;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
  font-family: "Montserrat", sans-serif;
  max-width: 90vw;
}

.custom-tooltip-public.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip-close-hint {
  display: none;
  text-align: center;
  color: #cbd5e1;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .tooltip-close-hint {
    display: block;
  }
}

.custom-tooltip-public h4 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}

.tooltip-status-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-disponible {
  background: #dcfce7;
  color: #166534;
}
.status-vendido {
  background: #fee2e2;
  color: #991b1b;
}
.status-reservado {
  background: #fef3c7;
  color: #92400e;
}
.status-publico {
  background: #f3f4f6;
  color: #1f2937;
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.tooltip-row i {
  width: 16px;
  color: var(--secondary-color);
}

.tooltip-label {
  color: #64748b;
  font-weight: 500;
  flex: 1;
}

.tooltip-value {
  color: #1e293b;
  font-weight: 700;
}

.tooltip-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 768px) {
  .map-wrapper-public {
    height: 450px;
    max-height: 60vh;
  }

  .map-logo-bg {
    width: 450px;
    top: -600px;
    left: 1400px;
    bottom: 5%;
    right: 5%;
    transform: none;
    opacity: 0.15;
  }

  .custom-tooltip-public {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 20px 20px 20px 20px;
    transform: translate(-50%, 20px);
  }

  .custom-tooltip-public.show {
    transform: translate(-50%, 0);
  }
}