html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #0f172a;
  --secondary-color: #047857;
  /* Verde Esmeralda Oscuro para contraste */
  --accent-color: #e2e8f0;
  --background-color: #ffffff;
  --text-color: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --container-width: 1200px;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: -1.5rem auto 3rem;
}

.text-center {
  text-align: center;
}

/* Sticky Navigation */
.main-nav {
  position: sticky;
  top: 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1010;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

/* Hamburguer Animation */
.mobile-nav-toggle.active .hamburger {
  background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Nav Links Base */
.nav-link {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}

/* Desktop Styles */
@media (min-width: 992px) {
  .main-nav {
    pointer-events: none;
  }

  .nav-pills {
    display: flex;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 15px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    pointer-events: auto;
    gap: 5px;
    position: relative;
    filter: url("#goo");
  }

  .nav-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    height: calc(100% - 16px);
    background-color: var(--secondary-color);
    /* Emerald 200 - Light green for accessibility */
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform-origin: center;
  }

  .nav-indicator.moving {
    animation: undulate-pill 0.5s ease-in-out;
  }

  .nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .nav-link.active {
    color: #eee;
    /* Dark text for contrast against light indicator */
    background-color: transparent;
    font-weight: 700;
  }
}

/* Mobile Styles */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-pills {
    position: fixed;
    top: -5em;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 100px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    list-style: none;
    z-index: 1005;
  }

  .nav-pills.active {
    right: 0;
  }

  .nav-indicator {
    display: none;
  }

  .nav-link {
    padding: 15px 25px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-color);
    width: 100%;
  }

  .nav-link.active {
    color: var(--secondary-color);
  }

  .lang-switcher {
    margin-top: 0;
    margin-bottom: 5px;
    padding-top: 0;
    order: -1;
    align-self: flex-start;
    margin-left: 0;
    align-items: flex-start;
    width: 100%;
  }

  .lang-current {
    padding: 12px 20px;
    font-size: 1.1rem;
    justify-content: flex-start;
  }

  .lang-dropdown {
    left: 0;
    right: auto;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes undulate-pill {
  0% {
    transform: scaleY(1) translateY(0);
    border-radius: 10px;
  }

  25% {
    transform: scaleY(1.1) translateY(-3px);
    border-radius: 8px 12px 8px 12px;
  }

  50% {
    transform: scaleY(0.9) translateY(2px);
    border-radius: 12px 8px 12px 8px;
  }

  75% {
    transform: scaleY(1.05) translateY(-1px);
    border-radius: 9px 11px 9px 11px;
  }

  100% {
    transform: scaleY(1) translateY(0);
    border-radius: 10px;
  }
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: auto;
  align-self: center;
  display: flex;
  align-items: center;
  z-index: 1011;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-color);
  transition: all 0.2s ease;
}

.lang-current:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  min-width: 100%;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background-color: #f1f5f9;
}

/* Sections */
section {
  padding: 80px 0;
}

/* Header / Hero */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../assets/img/hero.webp');
  background-size: cover;
  background-position: center 0%;
  background-attachment: fixed;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 20px;
}

.hero h1 {
  font-size: 4rem;
  white-space: nowrap;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Building Scheme Section */
.building-section {
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../assets/img/hero.webp');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

.building-section .section-title {
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.building-section .section-subtitle {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.building-scheme {
  display: grid;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.floor {
  display: grid;
  gap: 10px;
}

/* Specific grids for floors */
.floor-4 {
  grid-template-columns: repeat(3, 1fr);
  width: 75%;
  /* Attics are narrower visually if setback */
  margin: 0 auto 25px auto;
}

.floor-standard {
  grid-template-columns: repeat(4, 1fr);
}

.floor-ground {
  grid-template-columns: 1fr;
}

.flat-unit,
.ground-unit {
  background-color: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 30px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Ground floor styling */
.ground-unit {
  background-color: var(--primary-color);
  color: var(--white);
  cursor: default;
  padding: 20px;
  font-weight: bold;
  position: relative;
}

.ground-unit.sold {
  background-color: rgba(15, 23, 42, 0.4);
  /* Based on primary color but translucent */
  border-color: rgba(15, 23, 42, 0.4);
}

/* Interaction */
.flat-unit:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
  z-index: 20;
  /* Ensure tooltip stays on top of other units/ribbons */
}

.flat-unit.sold {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(203, 213, 225, 0.4);
}

.flat-unit.sold .flat-name {
  opacity: 1;
  /* Keep text opaque */
}

/* Maintain transparency on hover for sold boxes */
.flat-unit.sold:hover {
  background-color: rgba(5, 150, 105, 0.4);
  border-color: rgba(5, 150, 105, 0.4);
}



.flat-info {
  position: absolute;
  bottom: 100%;
  /* Position above the unit */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  /* Move little bit up */
  background-color: #0f172a;
  /* Force dark background */
  color: #ffffff;
  /* Force white text */
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid white;
  width: max-content;
  min-width: 120px;
  z-index: 100;
  /* High z-index */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;

  /* Hiding state */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.flat-unit:hover .flat-info {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}


/* Building Progress */
.building-progress {
  margin-top: 50px;
  text-align: center;
  padding: 0 10px;
}

.progress-separator {
  border: none;
  height: 2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  max-width: 800px;
  margin: 0 auto 50px auto;
  position: relative;
  overflow: visible;
}

.progress-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.progress-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.8);
}

.progress-image-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(15, 23, 42, 0.5);
  transition: transform var(--transition-speed);
}

.progress-image-container:hover {
  transform: scale(1.01);
}

.progress-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9);
  transition: filter var(--transition-speed);
}

.progress-image:hover {
  filter: brightness(1);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  width: 95%;
  max-width: 900px;
  max-height: 95vh;
  border-radius: 8px;
  overflow: hidden;
  /* Prevent full modal scroll */
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--accent-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  /* Prevent header shrinking */
  background: white;
  /* Ensure opaque background */
  z-index: 10;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  overflow-y: auto;
  /* Enable scroll here */
}

.modal-info h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.modal-specs ul {
  list-style: none;
  margin-bottom: 2rem;
}

.modal-specs li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.modal-specs li::before {
  content: "✓";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

.modal-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toggle-view {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.view-btn {
  background: var(--accent-color);
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}

.view-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.plan-image {
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  /* Prevent scroll */
  border-radius: 4px;
  display: none;
  cursor: zoom-in;
  transition: opacity 0.3s;
  object-fit: contain;
  margin: 0 auto;
  /* Center if narrower */
}

.plan-image.active {
  display: block;
}


/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

footer a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .floor-standard {
    grid-template-columns: repeat(2, 1fr);
  }

  .floor-4 {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  /* Keep 3 on top on mobile? Or stack? Let's keep 3 small ones or stack 1 */
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 500px) {
  .floor-4 {
    grid-template-columns: 1fr;
  }

  .floor-standard {
    grid-template-columns: 1fr;
  }
}

/* Ribbon Styles */
.flat-unit {
  position: relative;
}

.ribbon-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  /* Match unit border radius */
  pointer-events: none;
  /* Click through to unit */
  z-index: 5;
}

.ribbon {
  position: absolute;
  top: 15px;
  right: -25px;
  width: 100px;
  background-color: #dc2626;
  /* Red accessible */
  color: white;
  text-align: center;
  font-size: 0.7rem;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 5;
  text-transform: uppercase;
  padding: 2px 0;
}

/* Sold State in Modal */
.sold-badge {
  display: inline-block;
  background-color: #dc2626;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 10px;
  font-size: 1rem;
  vertical-align: middle;
}

/* Hero Address */
.hero-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
  font-size: 1rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-address svg {
  flex-shrink: 0;
}

/* Availability Progress Bar */
/* Availability Section */
.availability-section {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
}

.availability-label {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Availability Progress Bar */
.availability-bar {
  width: 100%;
  height: 40px;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.availability-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  transition: width 0.5s ease;
  border-radius: 20px;
}

.availability-text {
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Promotion Info Section */
.promo-info-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.promo-description {
  color: var(--text-color);
}

.promo-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.promo-description p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #4b5563;
  text-align: justify;
}


/* Characteristics Column */
.promo-characteristics {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-characteristics h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.characteristics-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.characteristic-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 4px 0;
}

.char-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
}

.characteristic-item span:last-child {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .promo-characteristics {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Ubicación & Conexiones Section */
.location-section {
  padding: 80px 0;
  background-color: #fff;
}

.location-section .section-title {
  color: var(--secondary-color);
}

.location-header {
  text-align: center;
  margin-bottom: 20px;
}

.location-address-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: #4b5563;
  font-size: 1.1rem;
}

.location-address-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
}

.location-info h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.location-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.location-services-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.location-list {
  list-style: none;
  padding: 0;
}

.location-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.location-split li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.location-distance {
  text-align: right;
  white-space: nowrap;
}

.location-description {
  padding-top: 16px;
  text-align: justify;
}

.location-description p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #4b5563;
  text-align: justify;
}

.investment-section {
  padding: 80px 0;
  background-color: #feffea;
}

.section-wave {
  width: 100%;
  line-height: 0;
  background-color: #fff;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

.section-wave path {
  fill: #feffea;
}

.investment-content {
  max-width: 1000px;
  margin: 0 auto;
}

.investment-content::after {
  content: "";
  display: block;
  clear: both;
}

.investment-image {
  float: right;
  width: 240px;
  max-width: 420px;
  margin: 0 0 24px 32px;
}

.investment-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.investment-text p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: justify;
}

.location-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.locations-heading {
  margin: 20px 0;
  font-weight: bold;
  color: var(--primary-color);
}

.highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

.map-wrapper {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .location-grid {
    gap: 0;
  }

  .location-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .location-services-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .location-split li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .location-distance {
    text-align: right;
    white-space: nowrap;
  }

  .investment-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
  }

  .map-wrapper {
    height: 400px;
  }
}

/* Memoria de Calidades Styles */
.qualities-section {
  padding: 80px 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../assets/img/hero.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--white);
}

.qualities-section .section-title {
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.qualities-section .section-subtitle {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.qualities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.quality-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.quality-card:hover {
  transform: translateY(-5px);
}

.quality-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.quality-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quality-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}

.quality-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Sales Office Section */
.sales-office-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.sales-office-section .section-title {
  color: white;
}

.sales-office-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 40px auto 0;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sales-office-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  /* Changed from secondary-color for contrast on dark bg */
}

.sales-office-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.2rem;
}

.sales-office-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sales-office-item svg {
  color: var(--secondary-color);
  flex-shrink: 0;
}

.sales-office-item a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sales-office-item a:hover {
  color: var(--secondary-color);
}

.sales-office-map {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
}

.schedule-info {
  text-align: left;
}

#modalContactBtn {
  width: 50%;
  display: block;
  margin: 0 auto;
}

.pulse-slow {
  animation: pulse-animation 3s infinite ease-in-out;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

#modalPrice {
  color: var(--secondary-color);
  margin: 0 0 20px 0;
  font-size: 1.5rem;
}

.legal-content {
  max-width: 800px;
}

.legal-text-body {
  display: block;
  padding: 0 30px 40px 30px;
  text-align: left;
  overflow-y: auto;
}

.legal-text-body h1 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
}

.legal-text-body h2 {
  font-size: 1.2rem;
  margin: 25px 0 10px;
  color: var(--primary-color);
}

.legal-text-body p {
  margin-bottom: 15px;
  color: var(--text-color);
  line-height: 1.6;
}

.legal-text-body ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-text-body li {
  margin-bottom: 8px;
}

.legal-text-body hr {
  border: 0;
  height: 1px;
  background: var(--accent-color);
  margin: 30px 0;
}

.legal-text-body a {
  color: var(--secondary-color);
  font-weight: 600;
}
