/* Bolivia Home - Custom Styles */

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* NAVBAR — sólo navbar oscuro (public layout); excluye navbar-modern */
.navbar:not(.navbar-modern) {
  background-color: #1a1a1a !important;
  padding: 0.6rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* BOLIVIA HOME Brand — sólo navbar oscuro */
.navbar:not(.navbar-modern) .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #7ED957 !important;
  text-decoration: none !important;
  letter-spacing: 0.8px;
  text-shadow: none;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.04);
}

/* Navigation Links — sólo navbar oscuro */
.navbar:not(.navbar-modern) .nav-link {
  color: #e0e0e0 !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem !important;
  margin: 0 0.15rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.navbar:not(.navbar-modern) .nav-link:hover {
  color: #7ED957 !important;
  transform: translateY(-2px);
}

.navbar:not(.navbar-modern) .nav-link.active {
  color: #7ED957 !important;
}

.navbar:not(.navbar-modern) .nav-link.publica-gratis {
  color: #e0e0e0 !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem !important;
  margin: 0 0.15rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.navbar:not(.navbar-modern) .nav-link.publica-gratis:hover {
  color: #7ED957 !important;
  transform: translateY(-2px);
}

/* Iniciar Sesión Button - Cristal Effect */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0 !important;
  font-weight: 600;
  padding: 0.45rem 1.05rem;
  border-radius: 25px;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-outline-light:hover::before {
  left: 100%;
}

.btn-outline-light:hover {
  background: rgba(126, 217, 87, 0.2) !important;
  border-color: #7ED957 !important;
  color: #7ED957 !important;
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(126, 217, 87, 0.3),
    inset 0 1px 0 rgba(126, 217, 87, 0.3),
    inset 0 -1px 0 rgba(126, 217, 87, 0.1);
  backdrop-filter: blur(15px);
}

/* Navbar Toggler */
.navbar-toggler {
  border: 2px solid #7ED957;
  padding: 0.5rem;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(126, 217, 87, 0.25);
}

.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%28126, 217, 87, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-success {
  background-color: #7ED957;
  border-color: #7ED957;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #6BC642;
  border-color: #6BC642;
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-left: 5%;
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: 1px;
}

/* SEARCH BOX */
.search-box {
  background: rgba(22, 31, 26, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  box-shadow:
    0 8px 20px rgba(17, 24, 20, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(126, 217, 87, 0.18);
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: 580px;
}

.search-form {
  width: 100%;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.search-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 130px;
  min-width: 130px;
}

.search-label {
  color: #7ED957;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-select,
.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(126, 217, 87, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  min-height: 38px;
  appearance: none;
  box-sizing: border-box;
}

.price-input {
  width: 100%;
}

.search-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.search-btn-new {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn-new:hover {
  color: #7ED957;
  border-color: #7ED957;
  transform: translateY(-2px);
}

.property-search-box {
  margin-top: 0;
  position: relative;
  z-index: 3;
}

.search-select:focus,
.search-input:focus {
  outline: none;
  border-color: #7ED957;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 0 3px rgba(126, 217, 87, 0.2),
    0 8px 25px rgba(126, 217, 87, 0.15);
  transform: translateY(-2px);
}

.search-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ED957' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
}

.search-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.search-btn-new {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn-new:hover {
  color: #7ED957;
  border-color: #7ED957;
  transform: translateY(-2px);
}

.property-search-box {
  margin-top: -48px;
  position: relative;
  z-index: 3;
}

/* PROPERTY CARDS */
.property-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.property-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.property-card .property-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.property-card .property-meta .row {
  margin-top: 0.5rem;
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.card-footer-action > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: 52px;
}

.card-footer-action .price-value {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-footer-action small {
  margin: 0;
  line-height: 1.2;
}

.card-footer-action .btn {
  white-space: nowrap;
  padding: 0.45rem 1.1rem;
  border-radius: 25px;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.property-card .card-img-top {
  height: 230px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.property-card .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.property-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.property-card .text-success {
  color: #7ED957 !important;
  font-weight: 700;
}

.btn-outline-success {
  border-color: #7ED957;
  color: #7ED957;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background-color: #7ED957;
  border-color: #7ED957;
  transform: translateY(-2px);
}

/* AGENT CARDS */
.agent-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem !important;
}

.agent-card .agent-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(126, 217, 87, 0.12);
}

.agent-card .agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.agent-card p {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.agent-card .agent-email {
  margin-top: auto;
  font-size: 0.8rem;
}

.agent-card .agent-email-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
}

.agent-card .agent-email-link:hover {
  color: #7ED957;
}

.agent-card .agent-whatsapp-number {
  color: #333;
  font-weight: 500;
  font-size: 0.8rem;
  margin-top: auto;
}

.agent-card .agent-whatsapp a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #7ED957;
  color: #1a1a1a;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-card .agent-whatsapp a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(126, 217, 87, 0.35);
  color: #1a1a1a;
}

/* ESTILOS PARA CARRUSEL DE AGENTES */
#agentesCarousel {
    padding: 30px 0 50px;
}

#agentesCarousel .carousel-indicators {
    margin-bottom: -40px;
}

#agentesCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
}

#agentesCarousel .carousel-indicators button.active {
    background-color: #7ed957;
    width: 12px;
    height: 12px;
}

#agentesCarousel .carousel-control-prev,
#agentesCarousel .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    top: 40%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0.9;
}

#agentesCarousel .carousel-control-prev {
    left: -20px;
}

#agentesCarousel .carousel-control-next {
    right: -20px;
}

#agentesCarousel .carousel-control-prev:hover,
#agentesCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: #7ed957;
}

#agentesCarousel .carousel-control-prev-icon,
#agentesCarousel .carousel-control-next-icon {
    filter: invert(1);
}

#agentesCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#agentesCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

/* METRICS SECTION */
.metrics {
  background: linear-gradient(135deg, #7ED957 0%, #6BC642 100%);
  position: relative;
}

.metrics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.metric-item {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.metric-item h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-item .lead {
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
footer {
  background-color: #333 !important;
}

footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #7ED957;
  border-radius: 50%;
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .social-link:hover {
  background-color: #6BC642;
  transform: translateY(-3px);
  color: white !important;
}

footer a:hover {
  color: #7ED957 !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero {
    padding-left: 4%;
    padding-top: 140px;
    padding-bottom: 70px;
  }

  .search-box {
    max-width: 100%;
    padding: 1.15rem 1.25rem;
  }

  .search-row {
    gap: 0.65rem;
  }

  .property-search-box {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    background-attachment: scroll;
    padding-left: 3%;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .search-box {
    padding: 1.1rem 1rem;
    margin: 1.5rem auto 2.25rem;
  }

  .search-row {
    flex-direction: column;
    gap: 0.85rem;
  }

  .search-field {
    flex: 1 1 100%;
    min-width: auto;
  }

  .search-button-wrapper {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .property-search-box {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: 2%;
    padding-top: 105px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .search-box {
    padding: 0.95rem 0.85rem;
  }

  .search-select,
  .search-input {
    padding: 0.65rem 0.85rem;
    min-height: 40px;
    font-size: 0.85rem;
  }

  .search-label {
    font-size: 0.78rem;
  }

  .search-button-wrapper {
    margin-top: 0.6rem;
    margin-left: 0;
  }

  .search-btn-new {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .search-box {
    margin: 1rem auto 2rem;
  }

  .metric-item {
    padding: 1rem;
  }

  .metric-item h2 {
    font-size: 2.5rem;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* UTILITIES */
.text-success {
  color: #7ED957 !important;
}

.bg-success {
  background-color: #7ED957 !important;
}

.border-success {
  border-color: #7ED957 !important;
}

/* ========== ESTILOS HOME PAGE ========== */

/* Estilos Globales Home Page */
body.home-page {
    background-color: #FAF9F6;
}

.home-page section {
    background-color: #FAF9F6;
}

/* ========== NAVBAR MODERNO ========== */
.navbar-modern {
    background: rgba(18, 26, 18, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-modern.scrolled {
    background: rgba(12, 18, 12, 0.99);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
    padding: 10px 0;
}

.navbar-modern .navbar-brand {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #7ed957;
    transition: width 0.3s ease;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: #7ed957 !important;
}

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

.btn-publica-moderna {
    background: linear-gradient(135deg, #7ed957 0%, #00b140 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 217, 87, 0.3);
}

.btn-publica-moderna:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 217, 87, 0.4);
    color: white;
}

.btn-login-moderna {
    background: transparent;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login-moderna:hover {
    background: #f7fafc;
    border-color: #7ed957;
    color: #7ed957;
}

/* ========== HERO SECTION MODERNO ========== */
.hero-modern {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-modern-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(45, 55, 72, 0.85) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(126, 217, 87, 0.2);
    color: #7ed957;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(126, 217, 87, 0.3);
}

.hero-modern-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.text-green-modern {
    color: #7ed957;
}

.hero-modern-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #7ed957 0%, #00b140 100%);
    border: none;
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(126, 217, 87, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(126, 217, 87, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: white;
    border: 2px solid white;
    color: #2d3748;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

/* ========== ESTILOS CARRUSEL BOOTSTRAP ========== */
#propiedadesCarousel .carousel-inner {
    padding: 0 4rem;
}

#propiedadesCarousel .carousel-control-prev,
#propiedadesCarousel .carousel-control-next {
    width: 6rem;
    opacity: 1;
}

#propiedadesCarousel .carousel-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.6rem;
}

#propiedadesCarousel .carousel-control-prev:hover .carousel-control-icon,
#propiedadesCarousel .carousel-control-next:hover .carousel-control-icon {
    background-color: rgba(0, 0, 0, 0.85);
}

.gallery-thumb {
    height: 70px;
    object-fit: cover;
    width: 100%;
}

/* Buscador de Propiedades */
.property-search-box {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    padding: 18px 22px;
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(6px);
}

.home-search-form {
    margin: 0;
}

.home-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.home-search-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 1 1 0;
}

.home-search-group--currency {
    max-width: 180px;
}

.home-search-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ed957;
    margin-bottom: 4px;
}

.home-search-control {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    padding: 8px 14px;
    font-size: 14px;
    appearance: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.home-search-control:focus {
    outline: none;
    border-color: #00b140;
    box-shadow: 0 0 0 1px rgba(0, 177, 64, 0.85);
}

.home-search-control::placeholder {
    color: #9ca3af;
}

.home-search-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #00b140;
    background-color: #ffffff;
    color: #00b140;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.home-search-btn:hover,
.home-search-btn:active {
    transform: translateY(-1px);
    background-color: #00b140;
    color: #0b1020;
    box-shadow: 0 12px 26px rgba(0, 177, 64, 0.6);
}

.btn-volver-busqueda {
    border-radius: 999px;
    background-color: #ffffff;
    border: 1px solid #00b140;
    color: #00b140;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.btn-volver-busqueda:hover,
.btn-volver-busqueda:active {
    background-color: #00b140;
    color: #0b1020;
    filter: brightness(1.02);
    box-shadow: 0 10px 22px rgba(0, 177, 64, 0.6);
}

.home-search-btn i {
    font-size: 16px;
}

/* Sección Nosotros / Misión y Visión */
.mission-vision-section h2 {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a202c;
}

.mission-vision-section > .container > .row:first-child p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: #6b7280;
}

.mv-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.mv-card h3 {
    color: #1a202c;
    font-size: 1.5rem;
}

.mv-card .section-badge {
    background: #7ed957;
    color: white;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.mv-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mv-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 0.95rem;
}

.mv-list li i {
    margin-top: 8px;
    color: #1a202c;
    font-size: 0.5rem;
}

.mv-list li span {
    flex: 1;
}

/* ========== TARJETAS DE SERVICIOS ========== */
.service-card-modern {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-icon-modern {
    width: 70px;
    height: 70px;
    background: #7ed957;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(126, 217, 87, 0.4);
}

.service-icon-modern i {
    font-size: 1.8rem;
    color: white;
}

.service-card-modern h5 {
    color: #1a202c;
    font-size: 1.2rem;
}

.service-card-modern p {
    color: #6b7280;
    line-height: 1.6;
}

/* ========== TARJETAS DE SERVICIOS CON IMAGEN ========== */
.service-card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(126, 217, 87, 0.25);
    transition: all 0.3s ease;
}

.service-card-image:hover .service-overlay {
    background: rgba(126, 217, 87, 0.35);
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.service-icon-white {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 1);
}

.service-icon-white i {
    font-size: 1.5rem;
    color: #1a202c;
}

.service-card-image h5 {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card-image p {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Estilos del Footer */
.social-icon-circle-simple {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.hover-social-simple {
    transition: all 0.3s ease;
}

.hover-social-simple:hover {
    color: #00b140 !important;
}

.hover-social-simple:hover .social-icon-circle-simple {
    background: #00b140;
    color: #ffffff;
    transform: scale(1.1);
}

.hover-social-simple small {
    color: rgba(255, 255, 255, 0.7);
}

.hover-social-simple:hover small {
    color: #00b140 !important;
}

/* ========== SECCIÓN DE PROPIEDADES MODERNA ========== */
.section-badge-modern {
    display: inline-block;
    background: linear-gradient(135deg, rgba(126, 217, 87, 0.1) 0%, rgba(0, 177, 64, 0.1) 100%);
    color: #00b140;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(126, 217, 87, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-modern {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section-subtitle-modern {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buscador Moderno */
.search-box-modern {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.search-label-modern {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-select-modern,
.search-input-modern {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.search-select-modern:focus,
.search-input-modern:focus {
    border-color: #7ed957;
    box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.1);
    background: white;
}

.btn-search-modern {
    background: #00b140;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 177, 64, 0.3);
    width: 100%;
}

.btn-search-modern:hover {
    background: #009636;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 177, 64, 0.4);
}

/* Estilos compactos para buscador */
.search-box-modern {
    padding: 1rem;
}

.search-label-modern {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.search-select-compact,
.search-input-compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-search-compact {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-back-modern {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-back-modern:hover {
    border-color: #7ed957;
    color: #7ed957;
    background: #f7fafc;
}

/* ========== CARRUSEL PROPIEDADES ========== */
#propiedadesCarousel {
    padding: 30px 0 50px;
}

#propiedadesCarousel .carousel-indicators {
    margin-bottom: -40px;
}

#propiedadesCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
}

#propiedadesCarousel .carousel-indicators button.active {
    background-color: #7ed957;
    width: 12px;
    height: 12px;
}

#propiedadesCarousel .carousel-control-prev,
#propiedadesCarousel .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    top: 40%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0.9;
}

#propiedadesCarousel .carousel-control-prev {
    left: -20px;
}

#propiedadesCarousel .carousel-control-next {
    right: -20px;
}

#propiedadesCarousel .carousel-control-prev:hover,
#propiedadesCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: #7ed957;
}

#propiedadesCarousel .carousel-control-prev-icon,
#propiedadesCarousel .carousel-control-next-icon {
    filter: invert(1);
}

#propiedadesCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#propiedadesCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

/* Cards de Propiedades Simples */
.property-card-simple {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.property-image-simple {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.property-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card-simple:hover .property-image-simple img {
    transform: scale(1.05);
}

.property-badges-simple {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    z-index: 2;
}

.badge-simple {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-category {
    background: #7ed957;
    color: white;
}

.badge-type {
    background: white;
    color: #1a202c;
}

.property-content-simple {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-title-simple {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0;
    line-height: 1.3;
}

.property-location-simple {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-location-simple i {
    color: #7ed957;
    font-size: 0.8rem;
}

.property-features-simple {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

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

.feature-item-simple i {
    color: #7ed957;
    font-size: 0.9rem;
}

.feature-item-simple span {
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.property-price-simple {
    display: flex;
    flex-direction: column;
}

.negotiable-text-simple {
    color: #7ed957;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-amount-simple {
    font-size: 1.25rem;
    font-weight: 800;
    color: #7ed957;
}

.btn-details-simple {
    background: #7ed957;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-details-simple:hover {
    background: #6bc847;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 217, 87, 0.4);
    color: white;
}

/* ========== RESPONSIVE HOME PAGE ========== */
@media (max-width: 991.98px) {
    #propiedadesCarousel .carousel-inner {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .hero-modern-title {
        font-size: 2.5rem;
    }
    
    .hero-modern-subtitle {
        font-size: 1.1rem;
    }

    .property-search-box {
        border-radius: 14px;
    }

    .home-search-group {
        flex: 1 1 45%;
    }

    .home-search-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

@media (max-width: 575.98px) {
    #propiedadesCarousel .carousel-inner {
        padding: 0 1rem;
    }

    .home-search-group {
        flex: 1 1 100%;
    }

    .home-search-actions {
        justify-content: center;
    }
}

/* ============================================================
   RESPONSIVE COMPLETO — Bolivia Home (sitio público)
   Fixes: carousel controls, hero iOS, títulos, overflow, footer
   ============================================================ */

/* Evitar desbordamiento horizontal en todas las páginas públicas */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero row min-height adaptable */
.hero-row-min-height {
    min-height: 85vh;
}
@media (max-width: 767.98px) {
    .hero-row-min-height {
        min-height: 75vh;
    }
}
@media (max-width: 575.98px) {
    .hero-row-min-height {
        min-height: 65vh;
    }
}

/* --- Hero: background-attachment fixed rompe en iOS/touch --- */
@media (hover: none), (max-width: 991.98px) {
    .hero-modern {
        background-attachment: scroll;
    }
}

/* --- Hero row: no forzar 85vh en landscape/móvil pequeño --- */
@media (max-width: 575.98px) {
    .hero-modern-overlay > .container > .row {
        min-height: 70vh !important;
    }

    .hero-modern-title {
        font-size: 1.9rem;
        letter-spacing: 0;
    }

    .hero-modern-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}

/* --- Carousel controls: evitar que salgan fuera de pantalla --- */
@media (max-width: 767.98px) {
    #propiedadesCarousel .carousel-control-prev {
        left: 0 !important;
    }
    #propiedadesCarousel .carousel-control-next {
        right: 0 !important;
    }
    #agentesCarousel .carousel-control-prev {
        left: 0 !important;
    }
    #agentesCarousel .carousel-control-next {
        right: 0 !important;
    }

    #propiedadesCarousel .carousel-inner {
        padding: 0 2.5rem !important;
    }
    #agentesCarousel {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 575.98px) {
    #propiedadesCarousel .carousel-control-prev,
    #propiedadesCarousel .carousel-control-next,
    #agentesCarousel .carousel-control-prev,
    #agentesCarousel .carousel-control-next {
        width: 36px !important;
        height: 36px !important;
    }

    #agentesCarousel {
        padding-left: 36px;
        padding-right: 36px;
    }
}

/* --- Títulos de sección --- */
@media (max-width: 575.98px) {
    .section-title-modern {
        font-size: 1.65rem;
    }
    .section-subtitle-modern {
        font-size: 0.9rem;
    }
    .section-badge-modern {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

/* --- Tarjetas de servicios con imagen --- */
@media (max-width: 767.98px) {
    .service-card-image {
        min-height: 280px;
    }
}
@media (max-width: 575.98px) {
    .service-card-image {
        min-height: 220px;
    }
}

/* --- Tarjetas de propiedades --- */
@media (max-width: 575.98px) {
    .property-footer-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .btn-details-simple {
        width: 100%;
        text-align: center;
    }
    .property-image-simple {
        height: 160px;
    }
    .property-card .card-img-top {
        height: 180px;
    }
}

/* --- Métricas --- */
@media (max-width: 575.98px) {
    .metric-item h2 {
        font-size: 2.5rem;
    }
    .metric-item .lead {
        font-size: 0.95rem;
    }
}

/* --- Agente cards --- */
@media (max-width: 575.98px) {
    .agent-card {
        padding: 1rem 0.75rem !important;
    }
    .agent-card .agent-avatar {
        width: 60px;
        height: 60px;
    }
}

/* --- Buscador en hero --- */
@media (max-width: 575.98px) {
    .property-search-box {
        padding: 12px 14px;
        border-radius: 14px;
    }
}

/* --- Navbar en móvil: fondo oscuro (plomo oscuro casi negro) --- */
@media (max-width: 991.98px) {
    .navbar-modern {
        background: rgba(18, 26, 18, 0.97) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4) !important;
    }
    .navbar-modern.scrolled {
        background: rgba(12, 18, 12, 0.99) !important;
    }
    /* Texto e iconos: blancos sobre fondo oscuro */
    .navbar-modern .navbar-brand,
    .navbar-modern .navbar-brand span {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    .navbar-modern .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    .navbar-modern .navbar-toggler-icon {
        filter: invert(1) !important;
    }
    .navbar-modern .navbar-collapse {
        background: rgba(14, 20, 14, 0.98) !important;
        padding: 0.75rem 1rem 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        margin-top: 0.5rem;
    }
    .navbar-modern .navbar-nav .nav-link-modern {
        color: rgba(255, 255, 255, 0.88) !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .navbar-modern .navbar-nav .nav-link-modern:hover {
        color: #8EDE39 !important;
    }
    .navbar-modern .d-flex.gap-2 {
        margin-top: 0.75rem;
    }
}

/* --- Footer: centrado en móvil --- */
@media (max-width: 575.98px) {
    footer .row > [class*="col-"] {
        text-align: center !important;
    }
    footer .d-flex:not(.justify-content-center) {
        justify-content: center !important;
    }
}

/* --- Sin hover-transform en dispositivos táctiles --- */
@media (hover: none) and (pointer: coarse) {
    .property-card:hover,
    .property-card-simple:hover,
    .agent-card:hover,
    .mv-card:hover,
    .service-card-modern:hover,
    .service-card-image:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

/* ── Hero: tamaño de título gradual en pantallas intermedias ─────── */
@media (max-width: 991.98px) {
    .hero-modern-title {
        font-size: 3.2rem;
    }
    .hero-modern-subtitle {
        font-size: 1.1rem;
    }
}

/* ── Hero: mantener parallax en laptops/PCs con ventana reducida ──── */
/* Solo desactivar fixed en móviles (<768px) o táctiles (hover: none) */
@media (min-width: 768px) and (hover: hover) {
    .hero-modern {
        background-attachment: fixed;
    }
}

/* ── Hero: ajuste de altura en tabletas y laptops pequeñas ─────────── */
@media (max-width: 991.98px) and (min-width: 576px) {
    .hero-row-min-height {
        min-height: 80vh;
    }
}

/* ── Buscador: filas de filtros más compactas en tabletas ───────────── */
@media (max-width: 991.98px) and (min-width: 576px) {
    .search-box-modern .row > [class*="col-"] {
        min-width: 140px;
    }
}