/* Estilos personalizados para SolDeCieneguilla */
/* Tipografías, colores de marca y base */

:root {
  --brand-primary: #2e7d32;
  /* verde bosque */
  --brand-accent: #d4a017;
  /* dorado cálido */
  --brand-dark-surface: #1e2420;
  /* pizarra verdosa */
  --brand-light-surface: #f6f7f4;
  /* marfil suave */
  --brand-muted: #6b7a70;
  /* gris salvia */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.18);
  --radius-card: 1.25rem;
  --transition-ui: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Skeleton Loading Helpers */
.skeleton-wrapper {
  background-color: #e2e5e7;
  position: relative;
  overflow: hidden;
}

.skeleton-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
  z-index: 5;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.img-loading {
  opacity: 0;
}

.img-loaded {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

[data-bs-theme="dark"] .skeleton-wrapper {
  background-color: #2c332e;
}

[data-bs-theme="dark"] .skeleton-loader {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}


body {
  font-family: var(--font-body);
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  text-wrap: balance;
}

/* Esquema de color para dark mode nativo (scrollbar, inputs) */
[data-bs-theme="dark"] {
  color-scheme: dark;
}

.btn {
  font-family: var(--font-body);
}

/* ==============================
   NAVBAR PREMIUM — REDESIGN RADICAL
   ============================== */

/* Animación de entrada al cargar */
@keyframes navbarSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.navbar.navbar-dark.bg-dark {
  animation: navbarSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    background-color 0.35s ease,
    backdrop-filter  0.35s ease,
    box-shadow       0.35s ease,
    padding          0.35s ease;
  /* Estado inicial: 100% transparente sobre el hero */
  background-color: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

/* Estado scrolled: glassmorphism denso */
.navbar.navbar-dark.bg-dark.navbar--scrolled {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 32px rgba(0,0,0,0.22);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

[data-bs-theme="dark"] .navbar.navbar-dark.bg-dark.navbar--scrolled {
  background-color: rgba(18, 22, 19, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

[data-bs-theme="light"] .navbar.navbar-dark.bg-dark.navbar--scrolled {
  background-color: rgba(245, 247, 242, 0.90) !important;
  border-bottom: 1px solid rgba(30, 36, 32, 0.10);
}

/* En modo claro: textos oscuros */
[data-bs-theme="light"] .navbar.navbar-dark :is(.navbar-brand, .nav-link) {
  color: var(--brand-dark-surface) !important;
}

/* Toggler hamburguesa (modo claro) */
[data-bs-theme="light"] .navbar.navbar-dark .navbar-toggler {
  border-color: rgba(30, 36, 32, .20);
  background-color: rgba(30, 36, 32, .05);
}
[data-bs-theme="light"] .navbar.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(30,36,32,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ——— Brand ——— */
.navbar .brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter   0.25s ease;
}
.navbar-brand:hover .brand-logo {
  transform: scale(1.1) rotate(-4deg);
  filter: drop-shadow(0 3px 8px rgba(212,160,23,0.45));
}

/* Nombre de la marca: gradiente dorado en hover */
.navbar-brand .brand-name {
  background: linear-gradient(90deg, #fff 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.3s ease;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
[data-bs-theme="light"] .navbar-brand .brand-name {
  background: linear-gradient(90deg, var(--brand-dark-surface) 0%, var(--brand-dark-surface) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-brand:hover .brand-name {
  background: linear-gradient(90deg, #d4a017 0%, #f0c040 60%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ——— Nav links ——— */
.navbar .navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.navbar :is(.navbar-brand, .nav-link) {
  transition: color 0.2s ease;
}
.navbar :is(.navbar-brand, .nav-link):hover {
  color: var(--brand-accent) !important;
}

.navbar .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.75rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar .nav-link:hover {
  background-color: rgba(255,255,255,0.07);
}
[data-bs-theme="light"] .navbar .nav-link:hover {
  background-color: rgba(30,36,32,0.06);
}

/* Underline accent animado */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
  transition: width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.28s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: calc(100% - 1.5rem);
  left: 0.75rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--brand-dark-surface);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 10px;
  }
  [data-bs-theme="light"] .navbar-collapse {
    background-color: var(--brand-light-surface);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
}

/* Dot indicator para el link activo */
.navbar .nav-link.active {
  color: #fff !important;
}
[data-bs-theme="light"] .navbar .nav-link.active {
  color: var(--brand-dark-surface) !important;
}

/* Separador vertical entre links y toggle */
.navbar .nav-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.18);
  margin: 0 0.35rem;
  border-radius: 2px;
}
[data-bs-theme="light"] .navbar .nav-sep {
  background: rgba(30,36,32,0.15);
}

/* ——— Theme toggle rediseñado ——— */
.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #fff;
  border-radius: 999px;
  padding: 0.32rem 1rem 0.32rem 0.75rem;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    border-color     0.22s ease,
    color            0.22s ease,
    transform        0.18s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow       0.22s ease;
  white-space: nowrap;
  overflow: hidden;
}
.theme-toggle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.theme-toggle-btn:hover::before { opacity: 1; }
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transform: translateY(-1px) scale(1.02);
}
.theme-toggle-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

/* Ícono con giro al cambiar */
.theme-toggle-btn #themeIcon {
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  color: var(--brand-accent);
}
.theme-toggle-btn.is-switching #themeIcon {
  transform: rotate(360deg);
}

/* Modo claro */
[data-bs-theme="light"] .theme-toggle-btn {
  background: rgba(30, 36, 32, 0.07);
  border-color: rgba(30, 36, 32, 0.20);
  color: var(--brand-dark-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-bs-theme="light"] .theme-toggle-btn:hover {
  background: rgba(30, 36, 32, 0.13);
  border-color: rgba(30, 36, 32, 0.30);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
[data-bs-theme="light"] .theme-toggle-btn #themeIcon {
  color: var(--brand-accent);
}

[data-bs-theme="light"] .navbar .text-white {
  color: var(--brand-dark-surface) !important;
}

.footer-logo {
  height: 40px;
  width: auto;
}

/* Hero */
.hero {
  min-height: 88vh;
  padding-top: 5rem;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 100svh;
  }
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100%;
}

.hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Doble capa: gradiente inferior dramático + lateral oscuro */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.20) 55%, transparent 100%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.25) 65%, rgba(46, 125, 50, 0.15) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero Badge de Ubicación */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
}

/* Título grande del Hero */
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* Subtítulo del Hero */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Botón Hero premium verde */
.btn-hero {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-hero:hover, .btn-hero:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.55);
  color: #fff;
  background: linear-gradient(135deg, #256427 0%, #2e7d32 100%);
}
.btn-hero:active {
  transform: translateY(0);
}

/* Scroll Indicator animado */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  text-decoration: none;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color 0.2s ease;
}
.hero-scroll-indicator:hover {
  color: #fff;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator { animation: none; }
}

/* ================================
   SLIDER NATIVO — casa.html
   ================================ */
.native-slider {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  width: 100%;
  margin-bottom: 1.5rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: var(--bs-secondary-bg, #1e1e2e);
}
.native-slider:active, .native-slider.is-grabbing { cursor: grabbing !important; }

/* Cinta de imágenes — todas pegadas en fila */
.ns-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.ns-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.ns-slide .skeleton-wrapper {
  width: 100%; height: 100%;
  position: relative;
}
.ns-slide .skeleton-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  pointer-events: none;
}

/* Botones prev/next */
.ns-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.ns-btn:hover { background: rgba(0,0,0,0.70); transform: translateY(-50%) scale(1.1); }
.ns-btn-prev { left: 0.75rem; }
.ns-btn-next { right: 0.75rem; }

[data-bs-theme="light"] .ns-btn { background: rgba(255,255,255,0.55); color: #111; }
[data-bs-theme="light"] .ns-btn:hover { background: rgba(255,255,255,0.85); }

/* Contador de imágenes */
.carousel-img-counter {
  position: absolute;
  bottom: 0.85rem; right: 0.85rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none; user-select: none;
}


/* ================================
   CATEGORÍAS CARDS — REDISEÑO
   ================================ */
.section-categorias .container-fluid {
  max-width: 1440px;
  margin-inline: auto;
}

.category-card {
  position: relative;
  aspect-ratio: 16 / 9;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover {
  transform: scale(1.01);
}

.category-card :is(.carousel, .carousel-inner, .carousel-item) {
  width: 100%;
  height: 100%;
}

.category-card .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}

.category-card:hover .carousel-item.active img {
  transform: scale(1.04);
}

.carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .8s ease-in-out;
  transform: none;
}

.carousel.carousel-fade .carousel-item.active,
.carousel.carousel-fade .carousel-item-next.carousel-item-start,
.carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.carousel.carousel-fade .active.carousel-item-start,
.carousel.carousel-fade .active.carousel-item-end {
  opacity: 0;
}

/* Overlay degradado de abajo hacia arriba */
.category-card .category-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Contenido posicionado abajo-izquierda */
.category-card .category-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.category-card .category-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.category-card .category-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  text-align: left;
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
}

.category-card .category-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.20);
  border-radius: 50%;
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

.category-card:hover .category-arrow {
  background: rgba(255,255,255,0.35);
  transform: translateX(4px);
}

.category-card .category-amenities {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.category-card .category-amenity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.category-card .category-amenity i {
  font-size: 0.85rem;
}

.category-pequenas .category-overlay {
  background: linear-gradient(to top, rgba(180, 120, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
}

.category-grandes .category-overlay {
  background: linear-gradient(to top, rgba(0, 60, 140, 0.75) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
}

/* Features grid dentro de las cards */
.features-grid {
  grid-template-columns: 1fr 1fr;
}

.features-grid li {
  color: var(--bs-secondary-color);
}

/* Nueva grilla de especificaciones estilo moderno */
.specs-divider {
  border-color: var(--brand-muted);
  opacity: .35;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.specs-grid .spec-icon {
  font-size: 1.5rem;
  opacity: .9;
}

.specs-grid .spec-label {
  color: var(--bs-secondary-color);
  font-size: .875rem;
  margin-top: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.specs-grid .spec-value {
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 1199.98px) {
  .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .specs-grid .spec-icon {
    font-size: 1.25rem;
  }

  .specs-grid .spec-label,
  .specs-grid .spec-value {
    font-size: .8125rem;
  }
}

/* CTA íconos */
/* Íconos de llamada a la acción con hover adaptativo al tema */
.cta-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--bs-body-color);
}

.cta-icon i {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-icon:hover i {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.cta-icon .bi-whatsapp {
  color: #25D366;
  border-color: #25D366;
}

.cta-icon .bi-facebook {
  color: #1877F2;
  border-color: #1877F2;
}

.cta-icon .bi-instagram {
  color: #E1306C;
  border-color: #E1306C;
}

.cta-icon .bi-tiktok {
  color: #EE1D52;
  border-color: #EE1D52;
}

.cta-icon:hover .bi-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-color: #25D366;
}

.cta-icon:hover .bi-facebook {
  background-color: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

.cta-icon:hover .bi-instagram {
  background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border-color: #d6249f;
}

.cta-icon:hover .bi-tiktok {
  background-color: #EE1D52;
  color: #fff;
  border-color: #EE1D52;
}

/* Footer */
/* Estado hover sutil para enlaces del pie */
footer a {
  opacity: .9;
}

footer a:hover {
  opacity: 1;
}

[data-bs-theme="dark"] footer a,
[data-bs-theme="dark"] footer .text-secondary {
  color: rgba(255, 255, 255, .88) !important;
}

[data-bs-theme="dark"] footer a:hover {
  color: #fff !important;
}

[data-bs-theme="light"] footer a,
[data-bs-theme="light"] footer .text-secondary {
  color: rgba(30, 36, 32, .85) !important;
}

/* Footer por tema */
[data-bs-theme="light"] footer.bg-dark {
  background-color: #fff !important;
  color: var(--bs-body-color) !important;
  border-top: 1px solid var(--bs-border-color);
}

[data-bs-theme="light"] footer.bg-dark a {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="light"] footer.bg-dark a:hover {
  color: var(--brand-primary) !important;
}

[data-bs-theme="light"] footer.bg-dark .text-white {
  color: var(--brand-dark-surface) !important;
}

[data-bs-theme="light"] footer.bg-dark .text-secondary {
  color: var(--bs-secondary-color) !important;
}

[data-bs-theme="dark"] footer.bg-dark {
  background-color: var(--brand-dark-surface) !important;
}

.card {
  --bs-card-border-radius: 1rem;
  --bs-card-inner-border-radius: 1rem;
}

.card {
  background-color: var(--brand-light-surface);
  overflow: hidden;
}

[data-bs-theme="dark"] .card {
  background-color: #222a24;
}

/* Hover rojo para enlaces de texto dentro de tarjetas */
.card .text-reset.text-decoration-none:hover {
  color: var(--brand-primary) !important;
}

.card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Paleta de botones y badges */
.btn-danger {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.btn-danger:hover {
  background-color: #b8860b;
  border-color: #b8860b;
}

.btn-outline-secondary {
  color: var(--brand-muted);
  border-color: var(--brand-muted);
}

.btn-outline-secondary:hover {
  background-color: var(--brand-muted);
  color: #fff;
}

.badge.text-bg-danger {
  background-color: var(--brand-accent) !important;
  color: #fff !important;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  border-radius: 999px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
  padding: .5rem .875rem;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .whatsapp-float i {
    line-height: 1;
  }
}

/* Animación de scroll eliminada */

/* Offset para páginas con navbar fija y encabezado sin hero */
.content-offset {
  padding-top: 6rem;
}

/* Reveal animations usando Bootstrap's fade */
.fade-slow {
  transition: opacity .6s ease-out, transform .6s ease-out !important;
  will-change: opacity, transform;
}

.fade:not(.show) {
  opacity: 0;
}

.fade.show {
  opacity: 1;
}

.fade-up:not(.show) {
  transform: translateY(24px);
}

.fade-left:not(.show) {
  transform: translateX(-18px);
}

.fade-zoom:not(.show) {
  transform: scale(.96);
}

.show.fade-up,
.show.fade-left,
.show.fade-zoom {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-slow {
    transition: 20px !important;
  }

  .fade-up:not(.show),
  .fade-left:not(.show),
  .fade-zoom:not(.show) {
    transform: 20px !important;
  }

  /* Mejorar contraste de botones outline en modo oscuro */
  [data-bs-theme="dark"] .btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
  }

  [data-bs-theme="dark"] .btn-outline-dark:hover {
    color: #000;
    background-color: #fff;
    border-color: #fff;
  }
}

@media (max-width: 1200px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .specs-grid .spec-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  .card .specs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: .25rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .card .specs-grid>div {
    display: grid;
    place-items: center;
  }

  .specs-grid .spec-icon {
    font-size: .95rem;
  }

  .specs-grid .spec-label {
    font-size: .675rem;
    margin-top: 0;
  }

  .specs-grid .spec-value {
    font-size: .8rem;
  }

  .specs-divider {
    margin-top: .25rem !important;
    margin-bottom: .25rem !important;
  }
}

/* Touch: eliminar delay de 300ms en mobile */
a, button, [role="button"] {
  touch-action: manipulation;
}

/* Navbar estilos ya consolidados arriba — bloque eliminado para evitar duplicados */

/* ==============================
   FASE 2: TARJETAS DE CASAS
   ============================== */

.casa-card {
  background: var(--bs-card-bg, #fff);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.casa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
[data-bs-theme="dark"] .casa-card {
  background: linear-gradient(135deg, #222a24 0%, #1a2020 100%);
}

/* Imagen con zoom en hover */
.casa-card__img-link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}
.casa-card__img-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.casa-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.casa-card:hover .casa-card__img {
  transform: scale(1.05);
}

/* Badge glassmorphism */
.casa-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  z-index: 5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.casa-card__badge--disponible {
  background: rgba(46, 125, 50, 0.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.casa-card__badge--reservado {
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Body */
.casa-card__body {
  padding: 1rem 1.1rem 0.75rem;
  flex: 1;
}
.casa-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.casa-card__location {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.9rem;
}

/* Specs con íconos a color */
.casa-card__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bs-border-color);
}
.casa-card__spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.casa-card__spec i {
  font-size: 1.1rem;
}
.casa-card__spec span {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}
.casa-card__spec small {
  font-size: 0.60rem;
  color: var(--bs-secondary-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Footer CTA */
.casa-card__footer {
  padding: 0.75rem 1.1rem 1.1rem;
}
.casa-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}
.casa-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.45);
  color: #fff;
}
.casa-card__cta--disabled {
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  box-shadow: none;
  pointer-events: none;
}
[data-bs-theme="dark"] .casa-card__cta--disabled {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4);
}

/* ==============================
   FASE 2: TIPOGRAFÍA DE SECCIÓN
   ============================== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-family: var(--font-body);
}
.section-eyebrow--light {
  color: rgba(255,255,255,0.75);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: var(--font-heading);
}

/* "Ver todas" outline brand button */
.btn-outline-brand {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline-brand:hover {
  background-color: var(--brand-primary);
  color: #fff;
}

/* ==============================
   FASE 2: SECCIÓN CATEGORÍAS
   ============================== */
.section-categorias {
  background: var(--bs-body-bg);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Overlay bottom-up más dramático */
.category-card .category-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

/* Chip de capacidad */
.category-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Flecha animada en hover */
.category-arrow {
  display: inline-block;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}
.category-card:hover .category-title {
  color: #fff;
}

/* ==============================
   FASE 2: SECCIÓN CTA / CONTACTO
   ============================== */
.section-cta {
  background: radial-gradient(ellipse at 60% 0%, rgba(46,125,50,0.10) 0%, transparent 65%),
              var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
}
.cta-subtitle {
  font-size: 1.05rem;
  color: var(--bs-secondary-color);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Botón WhatsApp principal del CTA */
.btn-cta-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-whatsapp:hover {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.50);
}
.btn-cta-whatsapp:active {
  transform: translateY(0);
}

/* Divisor decorativo */
.cta-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}
.cta-divider::before,
.cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bs-border-color);
}

/* ==============================
   FASE 3: SCROLL REVEAL
   ============================== */

/* Estado inicial (invisible) */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-up    { transform: translateY(28px); }
.reveal-zoom  { transform: scale(0.95); }
.reveal-left  { transform: translateX(-22px); }

/* Estado final (visible) */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Delays escalonados para tarjetas de casas (hasta 8 tarjetas) */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }
.reveal[data-delay="7"] { transition-delay: 560ms; }
.reveal[data-delay="8"] { transition-delay: 640ms; }

/* Respetar prefers-reduced-motion: sin transición */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==============================
   FASE 3: FOCUS-VISIBLE ACCESIBLE
   ============================== */

/* Carrusel botones de control */
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 50%;
}

/* Botones primarios genéricos */
.btn:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
  box-shadow: none;
}

/* Links de tarjetas */
.casa-card__cta:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

/* ==============================
   FASE 3: DARK MODE REFINADO
   ============================== */

/* Specs row en página de detalle — fondo sutil en dark */
[data-bs-theme="dark"] .casa-specs-row {
  background: rgba(255,255,255,0.03);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Breadcrumb en dark */
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.35);
}
[data-bs-theme="dark"] .breadcrumb-item.active {
  color: rgba(255,255,255,0.55);
}

/* Section CTA sutil en dark */
[data-bs-theme="dark"] .section-cta {
  background: radial-gradient(ellipse at 60% 0%, rgba(46,125,50,0.07) 0%, transparent 65%),
              var(--bs-body-bg);
}

/* Category cards en dark: overlay ligeramente más claro */
[data-bs-theme="dark"] .category-card .category-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.20) 55%, transparent 100%);
}