@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #FDF6EC;
  --cream-dark: #F5EBD8;
  --terracotta: #C75B39;
  --terracotta-light: #E07A5A;
  --terracotta-dark: #A04428;
  --teal: #1A7D7A;
  --teal-light: #2BA8A4;
  --teal-dark: #125856;
  --navy: #1B2A4A;
  --navy-light: #2D4470;
  --gold: #D4A843;
  --gold-light: #E8C36A;
  --charcoal: #2C2C2C;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; color: var(--navy); line-height: 1.2; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══ HEADER ═══ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(253,246,236,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--navy);
}
.logo-icon {
  width: 40px; height: 40px; background: var(--terracotta);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.nav a:hover { color: var(--terracotta); }
.header-cta {
  background: var(--terracotta); color: white; padding: 10px 24px;
  border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); border: none; cursor: pointer;
}
.header-cta:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px 0; transition: var(--transition); }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero-havana.png') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.75) 0%, rgba(199,91,57,0.4) 50%, rgba(26,125,122,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 700px; padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  padding: 8px 20px; border-radius: 50px; color: white;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-badge .dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: white; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-light); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 36px; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--terracotta); color: white; padding: 16px 36px;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: var(--transition); border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  color: white; padding: 16px 36px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition); cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat h3 { font-size: 2rem; color: var(--gold-light); margin-bottom: 4px; }
.hero-stat p { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 400; }

/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--navy); padding: 24px 0; overflow: hidden;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 500; white-space: nowrap; letter-spacing: 1px; text-transform: uppercase; }

/* ═══ SECTIONS ═══ */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--terracotta); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.section-label::before, .section-label::after { content: ''; width: 24px; height: 1px; background: var(--terracotta); }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ═══ WHY CUBA SECTION ═══ */
.why-cuba { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.feature-card {
  background: var(--cream); padding: 40px 32px; border-radius: var(--radius-lg);
  transition: var(--transition); border: 1px solid transparent; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--teal));
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--cream-dark); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-icon.terracotta { background: rgba(199,91,57,0.1); color: var(--terracotta); }
.feature-icon.teal { background: rgba(26,125,122,0.1); color: var(--teal); }
.feature-icon.gold { background: rgba(212,168,67,0.1); color: var(--gold); }
.feature-icon.navy { background: rgba(27,42,74,0.1); color: var(--navy); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--text-light); }

/* ═══ PROPERTY CATEGORIES ═══ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 300px; cursor: pointer; transition: var(--transition);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.9) 0%, rgba(27,42,74,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.category-overlay h3 { color: white; font-size: 1.4rem; margin-bottom: 4px; }
.category-overlay span { color: var(--gold-light); font-size: 0.9rem; font-weight: 500; }

/* ═══ FEATURED PROPERTIES ═══ */
.properties-section { background: var(--white); }
.properties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }
.property-card {
  background: var(--cream); border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--cream-dark);
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.property-image {
  position: relative; height: 240px; overflow: hidden;
}
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.property-card:hover .property-image img { transform: scale(1.05); }
.property-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px; border-radius: 50px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.property-badge.new { background: var(--teal); color: white; }
.property-badge.featured { background: var(--gold); color: var(--navy); }
.property-badge.exclusive { background: var(--terracotta); color: white; }
.property-info { padding: 24px; }
.property-info h3 { font-size: 1.2rem; margin-bottom: 8px; }
.property-location { display: flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.property-meta { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.property-meta span { font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.property-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--cream-dark); }
.property-price { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--terracotta); }
.property-link { color: var(--teal); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }
.property-link:hover { gap: 8px; }

/* ═══ INVESTMENT SECTION ═══ */
.investment-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white; position: relative; overflow: hidden;
}
.investment-section::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(199,91,57,0.15), transparent 70%);
  border-radius: 50%;
}
.investment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.investment-content h2 { color: white; font-size: clamp(2rem, 3vw, 2.5rem); margin-bottom: 20px; }
.investment-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; }
.investment-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.inv-stat {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  padding: 24px; border-radius: var(--radius); transition: var(--transition);
}
.inv-stat:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.inv-stat h3 { font-size: 2rem; color: var(--gold-light); margin-bottom: 4px; }
.inv-stat p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.investment-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.investment-image img { width: 100%; height: 400px; object-fit: cover; }

/* ═══ NEIGHBORHOODS ═══ */
.neighborhoods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.neighborhood-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 280px; transition: var(--transition); cursor: pointer;
}
.neighborhood-card.large { grid-column: span 2; }
.neighborhood-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.neighborhood-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.neighborhood-card:hover img { transform: scale(1.05); }
.neighborhood-info {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.85) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.neighborhood-info h3 { color: white; font-size: 1.4rem; margin-bottom: 4px; }
.neighborhood-info p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ═══ FAQ ═══ */
.faq-section { background: var(--white); }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--cream-dark); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; color: var(--navy); text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--terracotta); }
.faq-icon { font-size: 1.5rem; transition: var(--transition); color: var(--terracotta); flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 0 24px; color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.testimonial-card {
  background: var(--white); padding: 36px; border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark); transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: '"'; position: absolute; top: 20px; right: 28px;
  font-family: 'DM Serif Display', serif; font-size: 5rem;
  color: var(--terracotta); opacity: 0.1; line-height: 1;
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text); margin-bottom: 20px; font-style: italic; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
}
.testimonial-author-info h4 { font-size: 0.95rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.testimonial-author-info span { font-size: 0.8rem; color: var(--text-light); }

/* ═══ CTA SECTION ═══ */
.cta-section {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: white; text-align: center; padding: 100px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px; background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-section h2 { color: white; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.btn-white {
  background: white; color: var(--terracotta); padding: 16px 36px;
  border-radius: 50px; font-weight: 700; font-size: 1rem;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline-white {
  background: transparent; color: white; padding: 16px 36px;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.5); transition: var(--transition); cursor: pointer;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }

/* ═══ FOOTER ═══ */
.footer { background: var(--navy); color: white; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 16px; line-height: 1.8; }
.footer-col h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; padding: 6px 0; transition: var(--transition); }
.footer-col a:hover { color: white; padding-left: 6px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: white; }

/* ═══ WHATSAPP WIDGET ═══ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition); cursor: pointer;
  animation: wa-pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ═══ MOBILE NAV ═══ */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(253,246,236,0.98);
  backdrop-filter: blur(20px); z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.mobile-menu .close-btn { position: absolute; top: 20px; right: 24px; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--navy); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 968px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-stats { gap: 24px; }
  .investment-grid { grid-template-columns: 1fr; }
  .neighborhoods-grid { grid-template-columns: 1fr 1fr; }
  .neighborhood-card.large { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary, .btn-white, .btn-outline-white { width: 100%; justify-content: center; text-align: center; }
  .neighborhoods-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .categories-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 24px; }
}

/* ═══ REGIONAL SEO / NEIGHBORHOOD NAV ═══ */
.neighborhood-nav {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.neighborhood-nav span { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.neighborhood-nav-item {
  background: var(--white); border: 1px solid var(--cream-dark);
  padding: 8px 20px; border-radius: 50px; font-weight: 500; font-size: 0.85rem;
  color: var(--text); transition: var(--transition);
}
.neighborhood-nav-item:hover {
  background: var(--terracotta); color: white; border-color: var(--terracotta);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

/* Enriched Location details */
.neighborhood-card { position: relative; }
.neighborhood-detail-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,42,74,0.95) 0%, rgba(27,42,74,0.3) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  opacity: 1; transition: var(--transition);
}
.neighborhood-card:hover .neighborhood-detail-overlay {
  background: linear-gradient(to top, rgba(27,42,74,0.98) 0%, rgba(27,42,74,0.5) 100%);
}
.neighborhood-details-text {
  font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-top: 8px;
  line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.neighborhood-card:hover .neighborhood-details-text {
  max-height: 100px;
}
.neighborhood-card-stats {
  display: flex; gap: 16px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 8px;
  font-size: 0.8rem; color: var(--gold-light); font-weight: 600;
}

/* Property card micro-linking */
.property-card-geo-link {
  color: var(--teal); font-weight: 600; transition: var(--transition);
}
.property-card-geo-link:hover { color: var(--terracotta); text-decoration: underline; }

