/* CSS Reset & Variables */
:root {
  --primary: #1E3A8A;
  /* Deep Blue */
  --primary-light: #3B82F6;
  --secondary: #0F172A;
  /* Slate */
  --accent: #D97706;
  /* Elegant Gold/Amber */
  --text-main: #334155;
  --text-light: #64748B;
  --bg-main: #FFFFFF;
  --bg-light: #F8FAFC;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.bg-light {
  background-color: var(--bg-light);
}

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

/* Typography Utility */
h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: #152c6f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-text {
  color: var(--primary-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-text:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary);
}

.logo span {
  color: var(--primary-light);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a.btn {
  color: white;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.btn:hover {
  color: white;
}

/* Blog Specific */
.blog-hero {
  padding: 8rem 0 4rem;
  background-color: var(--secondary);
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
}

.blog-hero .breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.blog-hero .breadcrumb a {
  color: white;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding-top: 80px;
  /* navbar offset */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* SEO Intro */
.seo-intro {
  padding: 6rem 2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-weight: 500;
  color: var(--text-main);
  margin-top: 0.5rem;
}

/* Barrios Section */
.barrios-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.barrios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.barrio-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.barrio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.barrio-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  z-index: 2;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Benefits (Glassmorphism) */
.benefits-section {
  padding: 6rem 0;
  background-image: url('https://images.unsplash.com/photo-1613545325278-f24b0cae1224?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.benefits-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.benefits-wrapper h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

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

.benefit-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-item h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--text-main);
  font-size: 0.95rem;
}

/* FAQ */
.faq-section {
  padding: 6rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-light);
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* CTA */
.final-cta {
  padding: 6rem 2rem;
  background-color: var(--primary);
  color: white;
}

.final-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 4rem 0 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--primary-light);
  font-style: italic;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #94A3B8;
}

.footer-links ul li a:hover {
  color: var(--primary-light);
}

.footer-contact p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.external-link {
  color: var(--primary-light);
  font-weight: 500;
}

.external-link:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748B;
  font-size: 0.8rem;
}

/* Animations & Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Responsive Elements */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple mobile approach */
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .benefits-wrapper {
    padding: 2rem;
  }
}

/* Barrio Pages Specific */
.hero-barrio {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero-barrio h1 {
  font-size: 3.5rem;
  color: white;
}

.hero-barrio h1 span {
  color: var(--accent);
}

.barrio-detail {
  padding: 6rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.detail-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.feature::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-barrio h1 {
    font-size: 2.5rem;
  }
}

/* ===== PROPERTY CARDS (Barrio Pages) ===== */
.property-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.prop-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.property-card:hover .prop-img img {
  transform: scale(1.06);
}

.prop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.prop-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.prop-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prop-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.prop-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.prop-features span {
  background: var(--bg-light);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.82rem;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: auto;
}

.btn-block:hover {
  background: #152c6f;
  transform: translateY(-2px);
}

/* Blog cards */
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-read-more {
  margin-top: auto;
  display: inline-block;
  padding-top: 1rem;
}