/* ----------------------------------------------------
   HIDALGO PRIME - LUXURY REAL ESTATE STYLESHEET
   ---------------------------------------------------- */

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

:root {
  /* Color Palette */
  --bg-dark: #071220;
  --bg-navy-header: #0A1828;
  --bg-navy-deep: #0D1E32;
  --bg-navy-card: #12253E;
  
  --gold-primary: #C59B3F;
  --gold-hover: #D8AA49;
  --gold-light: #F4E8CD;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  --gold-gradient-hover: linear-gradient(135deg, #E5BE48 0%, #C9971C 100%);
  
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  
  --bg-body: #FAF9F6;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-dark: #1E3A5F;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(10, 24, 40, 0.14);
  --shadow-glow: 0 0 25px rgba(197, 155, 63, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1280px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* ----------------------------------------------------
   TOP CONTACT HEADER BAR
   ---------------------------------------------------- */
.top-header {
  background-color: #050D18;
  color: #94A3B8;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0;
}

.top-header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-info-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-info-item svg {
  color: var(--gold-primary);
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}

.top-info-item span.label {
  font-weight: 600;
  color: #E2E8F0;
  margin-right: 0.15rem;
}

.top-info-item a:hover {
  color: var(--gold-primary);
}

/* ----------------------------------------------------
   MAIN NAVBAR
   ---------------------------------------------------- */
.main-header {
  background-color: var(--bg-navy-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(197, 155, 63, 0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.brand-logo-img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  color: #E2E8F0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-contact-nav {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
  padding: 0.65rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-contact-nav:hover {
  background-color: var(--gold-primary);
  color: #0A1828;
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
}

/* ----------------------------------------------------
   HERO SECTION (MINIMAL & IMAGE-PROMINENT)
   ---------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 560px;
  background: linear-gradient(180deg, rgba(7, 18, 32, 0.55) 0%, rgba(13, 30, 50, 0.4) 100%), url('assets/images/portada.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem 6.5rem 1.5rem;
  color: #FFFFFF;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 580px;
}

.hero-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
  color: var(--gold-primary);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
}

.hero-description {
  font-size: 0.95rem;
  color: #F1F5F9;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  max-width: 480px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

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

.btn-primary {
  background: var(--gold-gradient);
  color: #0A1828;
  padding: 0.55rem 1.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(197, 155, 63, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 63, 0.5);
}

.btn-secondary {
  background: rgba(10, 24, 40, 0.7);
  color: #FFFFFF;
  padding: 0.55rem 1.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ----------------------------------------------------
   FLOATING SEARCH BAR
   ---------------------------------------------------- */
.search-wrapper {
  max-width: var(--max-width);
  margin: -3.5rem auto 4rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 100;
}

.search-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-right: 1px solid #EEF2F6;
  padding-right: 1rem;
}

.filter-group:nth-child(4) {
  border-right: none;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-select {
  width: 100%;
  padding: 0.5rem 1.8rem 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  font-weight: 500;
}

.select-icon {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: var(--gold-primary);
  width: 16px;
  height: 16px;
}

.btn-search {
  background: var(--gold-gradient);
  color: #FFFFFF;
  padding: 1.1rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
}

.btn-search svg, .btn-search span {
  color: #FFFFFF;
  stroke: #FFFFFF;
}

.btn-search:hover {
  background: var(--gold-gradient-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(197, 155, 63, 0.4);
}

/* ----------------------------------------------------
   FEATURED PROPERTIES SECTION
   ---------------------------------------------------- */
.section-properties {
  max-width: var(--max-width);
  margin: 0 auto 5rem auto;
  padding: 0 1.5rem;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bg-navy-header);
}

.section-link {
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.section-link:hover {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Property Card */
.property-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #0E223D;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 18, 32, 0.88);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  text-transform: uppercase;
  border-left: 3px solid var(--gold-primary);
}

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

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-navy-header);
  margin-bottom: 1rem;
}

.card-features {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feature-item svg {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  margin-top: auto;
}

/* ----------------------------------------------------
   SERVICES SECTION
   ---------------------------------------------------- */
.section-services {
  background-color: #FAF9F6;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.services-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold-primary);
  border: 1px solid rgba(197, 155, 63, 0.3);
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--gold-primary);
  color: #0A1828;
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
}

.service-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-navy-header);
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------
   FEATURED ZONES / LOCATIONS SECTION
   ---------------------------------------------------- */
.section-zones {
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.zone-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.zone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.zone-card:hover .zone-img {
  transform: scale(1.08);
}

.zone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 32, 0.1) 40%, rgba(7, 18, 32, 0.88) 100%);
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.zone-name {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.zone-arrow {
  color: var(--gold-primary);
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.zone-card:hover .zone-arrow {
  transform: translateX(4px);
}

/* ----------------------------------------------------
   STATS & METRICS BANNER (DARK NAVY)
   ---------------------------------------------------- */
.stats-banner {
  background-color: var(--bg-navy-header);
  color: #FFFFFF;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid rgba(197, 155, 63, 0.2);
  border-bottom: 1px solid rgba(197, 155, 63, 0.2);
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  color: var(--gold-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.55;
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ----------------------------------------------------
   CTA CONTACT BANNER
   ---------------------------------------------------- */
.cta-wrapper {
  max-width: var(--max-width);
  margin: 3.5rem auto 4.5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 50;
}

.cta-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.2rem 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-phone-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1828;
  flex-shrink: 0;
}

.cta-phone-icon svg {
  width: 28px;
  height: 28px;
}

.cta-text-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  margin-bottom: 0.2rem;
}

.cta-text-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-cta {
  background: var(--gold-gradient);
  color: #0A1828;
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 63, 0.4);
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  padding-top: 4.5rem;
  border-top: 1px solid rgba(197, 155, 63, 0.15);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(197, 155, 63, 0.4);
  background: rgba(10, 24, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gold-primary);
  color: #0A1828;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 155, 63, 0.35);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--gold-primary);
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  background-color: #040A12;
  padding: 1.2rem 1.5rem;
  font-size: 0.78rem;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span.developer {
  font-weight: 600;
  color: var(--text-light-muted);
}

.footer-bottom span.developer strong {
  color: var(--gold-primary);
}

/* ----------------------------------------------------
   MODALS (PROPERTY DETAILS & CONTACT)
   ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 32, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 850px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  background: var(--bg-navy-header);
  color: #FFFFFF;
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-primary);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-light-muted);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

/* Property Detail Grid inside modal */
.modal-prop-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.modal-prop-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.modal-prop-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  margin-bottom: 0.5rem;
}

.modal-prop-specs {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 63, 0.15);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-navy-header);
  color: #FFFFFF;
  border-left: 4px solid var(--gold-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (NATIVE MOBILE APP UI FEEL)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .search-box {
    grid-template-columns: repeat(2, 1fr);
  }
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (CLEAN NATIVE MOBILE APP UI)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .search-box {
    grid-template-columns: repeat(2, 1fr);
  }
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Prevent any canvas overflow */
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .top-header {
    display: none !important;
  }

  /* Header: ONLY Logo on left, Hamburger on right */
  .main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .nav-container {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Hide contact button in top bar on mobile as requested */
  .btn-contact-nav {
    display: none !important;
  }

  .brand-logo {
    gap: 0.6rem;
  }

  .brand-logo-img {
    height: 42px;
    max-width: 200px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #FFFFFF;
    padding: 0.2rem;
    cursor: pointer;
  }

  .mobile-toggle svg {
    width: 24px;
    height: 24px;
  }

  .nav-links {
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    height: calc(100vh - 54px);
    background: rgba(10, 24, 40, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Left-Aligned Minimal Hero Section */
  .hero-section {
    min-height: 360px;
    padding: 2.8rem 1.2rem 4.5rem 1.2rem;
    background: linear-gradient(180deg, rgba(7, 18, 32, 0.48) 0%, rgba(13, 30, 50, 0.38) 100%), url('assets/images/portada.png') center/cover no-repeat;
    display: flex;
    align-items: center;
  }

  .hero-container {
    padding: 0 0.5rem;
    width: 100%;
  }

  .hero-content {
    max-width: 290px;
    margin: 0;
    text-align: left;
  }

  .hero-tagline {
    font-size: 0.58rem;
    letter-spacing: 1.8px;
    margin-bottom: 0.35rem;
    color: var(--gold-primary);
  }

  .hero-title {
    font-size: 1.25rem;
    line-height: 1.22;
    margin-bottom: 0.45rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-align: left;
  }

  .hero-description {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #F1F5F9;
    margin-bottom: 0.85rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    text-align: left;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    padding: 0.38rem 0.9rem;
    font-size: 0.62rem;
    width: auto;
    max-width: 185px;
    justify-content: center;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  /* Clean Soft Floating Search Box */
  .search-wrapper {
    margin: -2.8rem auto 2rem auto;
    padding: 0 0.85rem;
  }

  .search-box {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 18px; /* Smooth rounded shape */
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
  }

  .filter-group {
    border-right: none;
    border-bottom: none;
    padding: 0;
    gap: 0.15rem;
    background: #F8FAFC;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #F1F5F9;
  }

  .filter-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748B;
  }

  .filter-select {
    font-size: 0.75rem;
    padding: 0.15rem 1rem 0.15rem 0;
    color: var(--text-dark);
  }

  .select-icon {
    width: 12px;
    height: 12px;
  }

  .btn-search {
    grid-column: 1 / -1;
    padding: 0.65rem;
    font-size: 0.75rem;
    justify-content: center;
    border-radius: 50px; /* Pill button */
    margin-top: 0.2rem;
  }

  /* Compact Clean Sections */
  .section-properties, .section-zones {
    margin: 0 auto 2.5rem auto;
    padding: 0 0.85rem;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
  }

  .section-subtitle {
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    margin-bottom: 0.1rem;
  }

  .section-title {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .section-link {
    font-size: 0.72rem;
  }

  /* Soft Clean Property Cards */
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .property-card {
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #F1F5F9;
  }

  .card-image-wrap {
    height: 160px;
  }

  .badge-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    top: 0.5rem;
    left: 0.5rem;
    border-radius: 20px;
  }

  .card-content {
    padding: 0.85rem;
  }

  .card-title {
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
  }

  .card-features {
    gap: 0.7rem;
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .feature-item svg {
    width: 13px;
    height: 13px;
  }

  .card-price {
    font-size: 1rem;
  }

  /* Clean Services Section */
  .section-services {
    padding: 2.2rem 0.85rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.4rem;
  }

  .service-card {
    padding: 1rem 0.6rem;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
  }

  .service-icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 0.6rem;
  }

  .service-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .service-title {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .service-desc {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  /* Clean Zones Grid */
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.2rem;
  }

  .zone-card {
    height: 135px;
    border-radius: 14px;
  }

  .zone-overlay {
    padding: 0.75rem;
  }

  .zone-name {
    font-size: 0.8rem;
  }

  .zone-arrow {
    width: 14px;
    height: 14px;
  }

  /* Compact Stats Section */
  .stats-banner {
    padding: 2.2rem 0.85rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .stat-item {
    padding: 0 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-icon svg {
    width: 28px;
    height: 28px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .stat-desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* Soft CTA Card */
  .cta-wrapper {
    margin: 2.5rem auto 3.5rem auto;
    padding: 0 0.85rem;
  }

  .cta-box {
    padding: 1.2rem 1rem;
    border-radius: 18px;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }

  .cta-left {
    flex-direction: row;
    gap: 0.75rem;
  }

  .cta-phone-icon {
    width: 38px;
    height: 38px;
  }

  .cta-phone-icon svg {
    width: 18px;
    height: 18px;
  }

  .cta-text-title {
    font-size: 0.95rem;
  }

  .cta-text-subtitle {
    font-size: 0.72rem;
  }

  .btn-cta {
    width: 100%;
    padding: 0.65rem 1.2rem;
    font-size: 0.72rem;
    border-radius: 50px;
  }

  /* Footer */
  .site-footer {
    padding-top: 2.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.85rem 2rem 0.85rem;
  }

  .footer-col-title {
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
  }

  .footer-links a, .footer-contact-item {
    font-size: 0.75rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
    font-size: 0.68rem;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-card {
    border-radius: 18px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-title {
    font-size: 0.98rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-prop-img {
    height: 180px;
    border-radius: 12px;
  }

  .modal-prop-price {
    font-size: 1.25rem;
  }

  .toast {
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    border-radius: 50px;
  }
}

/* ----------------------------------------------------
   PAGE MINI HERO & MULTI-PAGE STYLES
   ---------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, rgba(7, 18, 32, 0.75) 0%, rgba(13, 30, 50, 0.85) 100%), url('assets/images/portada.png') center/cover no-repeat;
  padding: 3.8rem 1.5rem;
  color: #FFFFFF;
  text-align: center;
  border-bottom: 1px solid rgba(197, 155, 63, 0.2);
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.page-hero-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Modern Minimal Filter Bar for Propiedades Page */
.propiedades-filter-section {
  max-width: var(--max-width);
  margin: -2.5rem auto 3rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 100;
}

.modern-filter-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(10, 24, 40, 0.1);
  border: 1px solid var(--border-light);
}

.filter-row-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.85rem;
  outline: none;
  background: #F8FAFC;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 63, 0.15);
  background: #FFFFFF;
}

.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  color: var(--gold-primary);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.results-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-count {
  background: var(--gold-light);
  color: #0A1828;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 2.5rem 1rem;
  }
  .page-hero-title {
    font-size: 1.45rem;
  }
  .page-hero-subtitle {
    font-size: 0.68rem;
  }
  .propiedades-filter-section {
    margin: -1.8rem auto 2rem auto;
    padding: 0 0.85rem;
  }
  .modern-filter-card {
    padding: 1rem;
    border-radius: 16px;
  }
  .filter-row-top {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .search-input-wrap {
    grid-column: 1 / -1;
  }
}

/* ----------------------------------------------------
   SINGLE PROPERTY DETAIL PAGE (propiedad.html)
   ---------------------------------------------------- */
.single-prop-layout {
  max-width: var(--max-width);
  margin: 3rem auto 5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
}

.prop-gallery-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.prop-gallery-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.prop-gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  background: #F8FAFC;
  overflow-x: auto;
}

.prop-thumb {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.prop-thumb.active, .prop-thumb:hover {
  opacity: 1;
  border-color: var(--gold-primary);
}

.prop-detail-box {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.prop-price-large {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  margin-bottom: 0.5rem;
}

.specs-grid-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: #F8FAFC;
  border-radius: 14px;
  border: 1px solid #F1F5F9;
  text-align: center;
}

.spec-item-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.spec-item-big svg {
  color: var(--gold-primary);
  width: 22px;
  height: 22px;
}

.spec-item-big span.val {
  font-weight: 800;
  font-size: 1rem;
  color: var(--bg-navy-header);
}

.spec-item-big span.lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.prop-sidebar-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 90px;
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #F1F5F9;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1828;
  font-weight: 800;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .single-prop-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 1.2rem auto 2.5rem auto;
    padding: 0 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .prop-gallery-card, .prop-detail-box, .prop-sidebar-card {
    border-radius: 16px;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .prop-gallery-main {
    height: 220px;
  }

  .prop-gallery-thumbs {
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .prop-thumb {
    width: 65px;
    height: 48px;
  }

  .prop-price-large {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
  }

  .specs-grid-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    margin: 1rem 0;
  }

  .spec-item-big svg {
    width: 18px;
    height: 18px;
  }

  .spec-item-big span.val {
    font-size: 0.88rem;
  }

  .spec-item-big span.lbl {
    font-size: 0.68rem;
  }

  .prop-sidebar-card {
    position: static;
  }

  .about-grid, .services-page-grid, .contact-page-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
}

/* ----------------------------------------------------
   BLOG & SINGLE POST STYLING
   ---------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(197, 155, 63, 0.4);
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 24, 40, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-primary);
  border: 1px solid rgba(197, 155, 63, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.blog-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.blog-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* Single Post Reader Layout */
.single-post-container {
  max-width: 1240px;
  margin: 3rem auto 6rem auto;
  padding: 0 1.5rem;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: sticky;
  top: 100px;
}

.post-sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  overflow: hidden;
}

.post-editorial-header {
  margin-bottom: 2rem;
}

.post-title-main {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  line-height: 1.25;
  margin: 0.8rem 0 1.4rem 0;
  letter-spacing: -0.5px;
}

.post-author-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 1.4rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.post-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.post-content-body {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 3rem 2.8rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.85;
}

.post-content-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  margin: 2.2rem 0 1rem 0;
  letter-spacing: -0.3px;
  border-left: 3px solid var(--gold-primary);
  padding-left: 0.8rem;
}

.post-content-body h4 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--bg-navy-header);
  margin: 1.6rem 0 0.8rem 0;
}

.post-content-body p {
  margin-bottom: 1.4rem;
}

.lead-paragraph {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--bg-navy-header);
  line-height: 1.7;
}

.blog-callout-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--bg-navy-header);
  border-radius: 0 16px 16px 0;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}

.blog-callout-box h4 {
  margin-top: 0;
  color: var(--gold-primary);
}

.vision-hidalgo-card {
  background: linear-gradient(135deg, #0A1828 0%, #0F2037 100%);
  border: 1px solid rgba(197, 155, 63, 0.35);
  border-radius: 20px;
  padding: 2rem;
  margin: 2.5rem 0;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(10, 24, 40, 0.2);
}

.vision-badge {
  display: inline-block;
  background: rgba(197, 155, 63, 0.2);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.vision-hidalgo-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #F8FAFC;
  margin: 0;
}

.blog-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.comp-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.2rem;
  font-size: 0.95rem;
}

.comp-item.highlight {
  background: rgba(197, 155, 63, 0.08);
  border-color: var(--gold-primary);
}

.blog-checklist, .blog-numbered-list {
  padding-left: 1.4rem;
  margin-bottom: 1.8rem;
}

.blog-checklist li, .blog-numbered-list li {
  margin-bottom: 0.7rem;
}

@media (max-width: 992px) {
  .single-post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .post-content-body {
    padding: 1.8rem 1.2rem;
    font-size: 0.98rem;
  }
  .post-title-main {
    font-size: 1.5rem;
  }
  .blog-comparison-box {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
   FLOATING WHATSAPP BUTTON (BOTTOM-LEFT)
==================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.floating-whatsapp-btn svg {
  stroke: #FFFFFF;
  stroke-width: 2.2;
  transition: transform 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 6px 15px rgba(0, 0, 0, 0.2);
  background: #20BA5A;
  color: #FFFFFF;
}

.floating-whatsapp-btn:hover svg {
  transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    left: 20px;
    padding: 0.8rem;
    border-radius: 50%;
  }
  .floating-wa-text {
    display: none;
  }
}





/* ====================================================
   WHATSAPP BUTTONS & FLOATING WIDGET (HIGH VISIBILITY)
==================================================== */
.btn-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  padding: 0.85rem 1.6rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.btn-whatsapp span, .btn-whatsapp {
  color: #FFFFFF !important;
}

.btn-whatsapp svg, .btn-whatsapp i {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  fill: none !important;
}

.btn-whatsapp:hover {
  background: #20BA5A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5) !important;
  color: #FFFFFF !important;
}

.floating-whatsapp-btn {
  position: fixed !important;
  bottom: 28px !important;
  left: 28px !important;
  z-index: 99999 !important;
  background: #25D366 !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.75rem 1.25rem 0.75rem 1rem !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(8px) !important;
}

.floating-whatsapp-btn svg {
  stroke: #FFFFFF !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  transition: transform 0.3s ease !important;
}

.floating-whatsapp-btn .floating-wa-text {
  color: #FFFFFF !important;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6), 0 6px 15px rgba(0, 0, 0, 0.25) !important;
  background: #20BA5A !important;
  color: #FFFFFF !important;
}

.floating-whatsapp-btn:hover svg {
  transform: scale(1.12) rotate(6deg) !important;
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px !important;
    left: 20px !important;
    padding: 0.85rem !important;
    border-radius: 50% !important;
  }
  .floating-wa-text {
    display: none !important;
  }
}
