/* ============================================
   OAXAQUEÑO INMOBILIARIO - REDISEÑO 2025
   HTML5 + Tailwind CSS + JavaScript
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* --- Custom Properties --- */
:root {
  --color-primary: #00395d;
  --color-primary-dark: #01243d;
  --color-primary-light: #005fa0;
  --color-accent: #A70571;
  --color-accent-dark: #8a045d;
  --color-accent-light: #c90685;
  --color-text: #121212;
  --color-text-light: #4a4a5a;
  --color-text-muted: #7a7a8a;
  --color-bg: #FFFFFF;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #f0f2f5;
  --color-border: #e2e5e9;
  --font-family: 'Bricolage Grotesque', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 30px -5px rgba(0, 73, 119, 0.3);
  --shadow-accent: 0 10px 30px -5px rgba(167, 5, 113, 0.3);
}

/* --- Base Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 250px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* Desktop Menu */
.nav-menu {
  display: none;
  list-style: none;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu a, .nav-menu button {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--color-primary);
  background: rgba(0, 73, 119, 0.05);
}

.nav-menu a.active {
  color: var(--color-primary);
  background: rgba(0, 73, 119, 0.08);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  left: 0.75rem;
  right: 0.75rem;
}

/* ============================================
   DROPDOWN SUBMENU (Desktop)
   ============================================ */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a, .nav-item-dropdown > button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item-dropdown > a .dropdown-arrow, .nav-item-dropdown > button .dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover > a .dropdown-arrow, .nav-item-dropdown:hover > button .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 73, 119, 0.15);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 101;
  list-style: none;
}

.nav-item-dropdown:hover > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: 0;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-submenu li a:hover {
  background: rgba(0, 73, 119, 0.05);
  color: var(--color-primary);
}

.nav-submenu li a.active {
  background: rgba(0, 73, 119, 0.08);
  color: var(--color-primary);
}

.nav-submenu li a::after {
  display: none;
}

.nav-submenu .sub-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  padding: 0.5rem 1rem 0.25rem;
  pointer-events: none;
}

.nav-submenu .sub-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.25rem 0.75rem;
}

/* CTA Buttons */
.nav-cta-group {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .nav-cta-group {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* Mobile Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.mobile-menu a.active {
  color: var(--color-primary);
}

/* ============================================
   MOBILE DROPDOWN ACCORDION MENU
   ============================================ */

/* Mobile dropdown header (clickable) */
.mobile-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  user-select: none;
  transition: var(--transition);
}

.mobile-dropdown-header:hover {
  color: var(--color-primary);
}

.mobile-dropdown-header .mobile-dropdown-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.mobile-dropdown-header:hover .mobile-dropdown-title {
  color: var(--color-primary);
}

.mobile-dropdown-header .mobile-dropdown-arrow {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Expanded state */
.mobile-dropdown.active .mobile-dropdown-header .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile dropdown panel */
.mobile-dropdown-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.mobile-dropdown.active .mobile-dropdown-panel {
  max-height: 400px;
  opacity: 1;
}

/* Sub-items inside dropdown */
.mobile-dropdown-panel a {
  display: block;
  padding: 0.75rem 0 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-bottom: none;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.mobile-dropdown-panel a::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.35;
  transition: var(--transition);
}

.mobile-dropdown-panel a:hover {
  color: var(--color-primary);
  padding-left: 1.5rem;
}

.mobile-dropdown-panel a:hover::before {
  opacity: 0.8;
}

/* Direct links (non-dropdown items) in mobile menu */
.mobile-menu .mobile-direct-link a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.mobile-menu .mobile-direct-link a:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.mobile-menu .mobile-direct-link a.active {
  color: var(--color-primary);
}

.mobile-menu .mobile-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu .mobile-cta .btn {
  width: 100%;
  padding: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 39, 62, 0.95) 25%, rgba(66, 104, 59, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 100px;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-label svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: #ffd700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-alt {
  background: var(--color-bg-alt);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0, 73, 119, 0.15);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge-primary {
  background: var(--color-primary);
  color: white;
}

.card-badge-accent {
  background: var(--color-accent);
  color: white;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.card-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-footer {
  margin-top: auto;
}

.card-footer .btn {
  width: 100%;
}

/* Feature Card (icon + text) */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(0, 73, 119, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 73, 119, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--color-accent);
  color: white;
}

.feature-icon-zm {
  width: 64px;
  height: 64px;
  background: rgba(0, 73, 119, 0.08);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #243B2B;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-zm {
  background: #A73F24;
  color: white;
}

.feature-icon svg {
  width: 34px;
  height: 34px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================
   PROPERTY LISTING ROW
   ============================================ */
.property-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .property-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .property-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion-item {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: rgba(0, 73, 119, 0.2);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: var(--transition);
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.accordion-body p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--color-accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text);
  background: white;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 73, 119, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ============================================
   BLOG
   ============================================ */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.blog-card-category {
  padding: 0.25rem 0.625rem;
  background: rgba(167, 5, 113, 0.08);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

.blog-card-link:hover {
  color: var(--color-accent);
  gap: 0.6rem;
}

/* Blog Categories Filter */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.blog-filter button {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  background: white;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-filter button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00355a 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(177, 218, 255);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact p svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.process-step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.process-step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.process-step-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================
   STATS
   ============================================ */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-section-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.cta-section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-section-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ============================================
   IMAGE GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .gallery-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   AMENITIES GRID
   ============================================ */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .amenities-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.amenity-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.amenity-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================
   TABLE
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.data-table th {
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 3rem 0;
}

.divider-gradient {
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1px;
  margin: 2rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.privacy-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
}

.privacy-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.privacy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content ul li {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */
@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .show-mobile {
    display: none !important;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, #e8e8e8 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .main-nav,
  .mobile-menu,
  .cookie-banner,
  .whatsapp-float,
  .footer-socials,
  .btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
  }
}

/* ============================================
   PROPERTY DETAIL PAGE
   ============================================ */

/* Property Hero Gallery */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  max-height: 480px;
}

.property-gallery .gallery-main {
  grid-row: 1 / 3;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.property-gallery .gallery-main img,
.property-gallery .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-gallery .gallery-main:hover img,
.property-gallery .gallery-thumb:hover img {
  transform: scale(1.03);
}

.property-gallery .gallery-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.gallery-overlay:hover {
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .property-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 120px;
    max-height: none;
  }
  .property-gallery .gallery-main {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }
}

/* Property Quick Info */
.property-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.property-quick-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.property-quick-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* Property Price Tag */
.property-price-tag {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.property-price-tag small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Property Detail Grid */
.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .property-detail-grid {
    grid-template-columns: 1fr 360px;
  }
}

/* Property Specs Table */
.property-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .property-specs {
    grid-template-columns: 1fr 1fr;
  }
}

.property-spec-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.property-spec-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.property-spec-item .spec-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-spec-item .spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Property Sidebar */
.property-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Agent Card */
.agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.agent-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.agent-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-light);
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   GALLERY MODAL / LIGHTBOX
   ============================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: white;
  flex-shrink: 0;
}

.gallery-modal-header span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.gallery-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-modal-close svg {
  width: 24px;
  height: 24px;
}

.gallery-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 4rem;
  overflow: hidden;
}

.gallery-modal-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem 4rem;
}

.gallery-modal-slide.active {
  opacity: 1;
  z-index: 1;
}

.gallery-modal-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.gallery-modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-modal-nav svg {
  width: 24px;
  height: 24px;
}

.gallery-modal-nav.prev {
  left: 1rem;
}

.gallery-modal-nav.next {
  right: 1rem;
}

.gallery-modal-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  flex-shrink: 0;
  justify-content: center;
}

.gallery-modal-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.gallery-modal-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-modal-thumb.active {
  border-color: white;
}

.gallery-modal-thumb:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.gallery-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .gallery-modal-body {
    padding: 0 3rem;
  }
  .gallery-modal-slide {
    padding: 1rem 3rem;
  }
  .gallery-modal-nav {
    width: 40px;
    height: 40px;
  }
  .gallery-modal-nav.prev {
    left: 0.5rem;
  }
  .gallery-modal-nav.next {
    right: 0.5rem;
  }
}

/* ============================================
   WHATSAPP FORM BUTTON
   ============================================ */
.btn-whatsapp {
  background: #1faa52 ;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #158e41;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.4);
}

/* Map embed */
.map-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  min-height: 500px;
}

/* Articulo */
.articulo {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.articulo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.articulo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articulo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 39, 62, 0.95) 25%, rgba(66, 104, 59, 0.15) 100%);
}

.articulo-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 100px;
  width: 100%;
}

.articulo-label svg {
  width: 16px;
  height: 16px;
}

.articulo h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 1.15rem;
}

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-bottom: 0.75rem; }
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.article-category { display: inline-block; padding: 0.35rem 0.875rem; background: var(--color-accent); color: white; border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.article-cover-title { font-size: 2rem; font-weight: 800; line-height: 1.2; max-width: 800px; }
.article-content-wrapper { max-width: 700px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-body { font-size: 1.25rem; line-height: 1.85; color: var(--color-text); }

.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-highlight { background: linear-gradient(135deg, rgba(0,73,119,0.06) 0%, rgba(167,5,113,0.06) 100%); border-left: 4px solid var(--color-primary); padding: 1.5rem 1.75rem; border-radius: 0 12px 12px 0; margin: 2rem 0; }
.article-highlight p:last-child { margin-bottom: 0; }

.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 2rem 0; border-radius: 12px; overflow: hidden; }
.article-gallery img { width: 100%; height: 200px; object-fit: cover; cursor: pointer; transition: transform 0.3s ease; }
.article-gallery img:hover { transform: scale(1.03); }
.article-gallery .gallery-main { grid-column: 1 / -1; height: 300px; }

.info-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.info-card { background: white; border: 1px solid var(--color-border); border-radius: 12px; padding: 1.5rem; text-align: center; transition: var(--transition); }
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary); }
.info-card-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; color: white; }
.info-card h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; }
.info-card p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; line-height: 1.5; }

.cta-box { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); border-radius: 16px; padding: 2.5rem 2rem; text-align: center; color: white; margin: 3rem 0; }
.cta-box h3 { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: 1rem; }
.cta-box .btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.related-posts { background: var(--color-bg-alt); padding: 4rem 0; }
.related-posts .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-subtitle { color: var(--color-text-muted); font-size: 1rem; max-width: 600px; margin-top: 0.5rem; }

.author-box { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--color-bg-alt); border-radius: 12px; margin: 2.5rem 0; border: 1px solid var(--color-border); }
.author-box-avatar { width: 56px; height: 56px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.25rem; flex-shrink: 0; }
.author-box h4 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.25rem; }
.author-box p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

.share-bar { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 2rem 0; }
.share-bar span { font-size: 0.85rem; font-weight: 600; color: var(--color-text-light); }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); background: white; color: var(--color-text-light); transition: var(--transition); cursor: pointer; }
.share-btn:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

@media (min-width: 768px) {
  .article-cover { height: 520px; }
  .article-cover-content { padding: 3rem 2rem; }
  .article-cover-title { font-size: 2.75rem; }
  .article-content-wrapper { padding: 4rem 2rem; }
  .article-body { font-size: 1.1rem; }
  .article-gallery img { height: 240px; }
  .article-gallery .gallery-main { height: 400px; }
}
@media (min-width: 1024px) {
  .article-cover-title { font-size: 3.25rem; }
}

/* Gestoría specific styles */
.tramite-card { background: white; border: 1px solid var(--color-border); border-radius: 16px; padding: 1.75rem; transition: var(--transition); display: flex; gap: 1rem; align-items: flex-start; }
.tramite-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary); }
.tramite-card-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,73,119,0.08), rgba(167,5,113,0.08)); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.tramite-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.8rem;line-height: 1.3; }
.tramite-card p { font-size: 0.9rem; line-height: 1.6; margin: 0; }

.pain-section { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: white; border-radius: 20px; padding: 3rem 2rem; }
.pain-section h2 { color: white; }
.pain-section p { color: #ffffff; }

.benefit-highlight { background: linear-gradient(135deg, rgba(167,5,113,0.06), rgba(0,73,119,0.06)); border: 2px dashed var(--color-accent); border-radius: 16px; padding: 2rem; text-align: center; }

.cta-whatsapp-lg { display: inline-flex; align-items: center; gap: 0.75rem; background: #25D366; color: white; padding: 1rem 2rem; border-radius: 100px; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: var(--transition); box-shadow: 0 10px 30px rgba(37,211,102,0.3); }
.cta-whatsapp-lg:hover { background: #1faa52; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37,211,102,0.4); }

.step-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.step-number { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #72034d, var(--color-accent)); color: white; font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h4 { font-size: 1.5rem; font-weight: 500; color:#ffffff; margin-bottom: 0.25rem;line-height: 1.3; }
.step-content p { color:#ffffff; margin-bottom: 0.8rem;}

@media (min-width: 768px) {
    .tramite-card { padding: 2rem; }
    .pain-section { padding: 3.5rem; }
}

.servicio-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--color-primary);
}
.servicio-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}
.servicio-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.servicio-card p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

.hero-accent-bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    margin: 1.5rem 0;
}

.cta-whatsapp-xl {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 12px 40px rgba(37,211,102,0.35);
}
.cta-whatsapp-xl:hover {
    background: #1faa52;
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(37,211,102,0.45);
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


