body {
  font-family: 'Poppins', sans-serif;
}

.text-bordo {
  color: #7c1c2b;
  text-decoration: none;
}

.text-marron{
  color: #685743;
}

.text-verde-oscuro{
  color: #244210;
}

.text-verde{
  color: #1A7041;
  text-decoration: none;
}

.bg-verde-oscuro {
  background-color: #244210;
}

.btn-marron{
  background-color: #685743;
  color: #fff;
}

.btn-marron:hover {
  background-color: rgb(240, 224, 224);
  color: rgb(53, 52, 52);
  filter: brightness(1.1);
}

.btn-verde{
  background-color: #244210;
  color: #fff;
}

.btn-verde:hover {
  background-color: #1A7041;
  color: #fff;
  filter: brightness(1.1);
}

.btn-verde-claro{
  background-color: #1A7041;
  color: #fff;
}

.btn-verde-claro:hover {
  background-color: #25a55f;
  color: #fff;
  filter: brightness(1.1);
}

.form-control{
  border-color: #244210!important;
}

.form-control:focus {
    border-color: #25a55f!important;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(37, 165, 95, .25) !important; 
}

.bg-bordo {
  background-color: #7c1c2b;
}

.bg-marron{
  background-color: #685743;
}

.bg-danger{
  background-color: #244210!important;
}

.iconos{
  color: #244210 !important;
}

.section-bajo-navbar {
  padding-top: 100px;
}

.btn-light-gray {
  background-color: #eeeeee;
  color: #333;
  border: none;
}

.btn-light-gray:hover {
  background-color: #dddddd;
}

.hero {
  height: 100vh;
  background-image: url('../img/banner1.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

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

.navbar-nav .nav-link {
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  transform: scale(1.1);
}

.badge-custom {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.5em;
  font-size: 0.75rem;
  z-index: 1;
}

.property-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.property-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.property-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-card .p-3 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.valores {
  background: #f5f5f5;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
}

.contenedor-iconos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  justify-content: center;
}

.icon-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  width: 250px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.icon-card h3 {
  color: #704f3a;
  margin-top: 1rem;
}

.icon-card p {
  color: #666;
  margin-top: 0.5rem;
}

.footer-contacto {
  background-color: #244210;
  color: white;
  padding: 3rem 0;
}

.info-contacto,
.redes {
  margin-bottom: 2rem;
}

.redes img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.menu-footer li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.menu-footer a {
  color: white;
  text-decoration: none;
}

.historia-fondo {
  background-image: url('../img/nuestra-historia-hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 60vh;
  display: flex;
}

.historia-overlay {
  color: white;
  background: rgba(36, 36, 36, 0.3);
  padding: 4rem 2rem;
  text-align: center;
  width: 100%;
}

.historia-overlay h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.historia-overlay p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.footer-contacto .redes i {
  font-size: 2rem;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.footer-contacto .redes i:hover {
  transform: scale(1.2);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

.active-link::after {
  width: 70%;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link:hover{
  color: #244210 !important;
}

.equipo {
  padding: 8rem 2rem;
  background: #f8f9fa;
  text-align: center;
}

.equipo h2 {
  margin-bottom: 1rem;
}

.equipo p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-profesional {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.card-profesional:hover {
  transform: translateY(-5px);
}

.card-profesional .foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid #244210;
}

.card-profesional .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-profesional h3 {
  color: #244210;
  margin-bottom: 0.5rem;
}

.card-profesional .cargo {
  color: #1A7041;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-profesional .info-extra {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.card-profesional .area {
  font-weight: 600;
  color: #244210;
  margin-bottom: 0.5rem;
}

.card-profesional .especialidad {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid #244210;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whatsapp-floating-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  max-width: 300px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.whatsapp-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.whatsapp-floating.show {
  transform: translateX(0);
}

.whatsapp-floating-box.show {
  transform: translateX(0);
}

.ratio iframe {
  border-radius: 10px;
}

.footer-links {
  color: #244210;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links:hover{
  color: #1A7041;
}

.footer-icon:hover{
  transform: scale(1.1);
}

/* ===== MEDIA QUERIES PARA RESPONSIVE DESIGN ===== */

/* Tablets y dispositivos medianos */
@media (max-width: 768px) {
  .section-bajo-navbar {
    padding-top: 80px;
  }
  
  .hero {
    height: 70vh;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .navbar-nav .nav-link {
    font-size: 1rem !important;
    padding: 0.5rem 1rem;
  }
  
  .property-card {
    margin-bottom: 1.5rem;
  }
  
  .property-image {
    height: 180px;
  }
  
  .icon-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .contenedor-iconos {
    gap: 1.5rem;
  }
  
  .valores {
    padding: 2rem 1rem;
  }
  
  .equipo {
    padding: 5rem 1rem;
  }
  
  .equipo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .card-profesional {
    padding: 1.5rem;
  }
  
  .card-profesional .foto {
    width: 100px;
    height: 100px;
  }
  
  .historia-overlay {
    padding: 3rem 1rem;
  }
  
  .historia-overlay h2 {
    font-size: 2rem;
  }
  
  .historia-overlay p {
    font-size: 1rem;
  }
  
  .footer-contacto {
    padding: 2rem 0;
  }
  
  .whatsapp-floating-box {
    bottom: 15px;
    right: 15px;
    max-width: 280px;
    padding: 1rem;
  }
  
  .whatsapp-floating {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-floating i {
    font-size: 4rem !important;
  }
  
  /* Ajustes específicos para página de detalle de propiedades */
  #carouselPropiedad .carousel-item {
    height: 300px !important;
  }
  
  .thumbnail-selector {
    width: 80px !important;
    height: 60px !important;
  }
  
  .ratio-16x9 {
    height: 200px;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .section-bajo-navbar {
    padding-top: 70px;
  }
  
  .hero {
    height: 60vh;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand img {
    height: 45px;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  .active-link::after {
    width: 30%;
  }
  
  .navbar-collapse {
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .property-card {
    margin-bottom: 1rem;
  }
  
  .property-image {
    height: 160px;
  }
  
  .icon-card {
    padding: 1rem;
  }
  
  .icon-card h3 {
    font-size: 1.2rem;
  }
  
  .valores {
    padding: 1.5rem 0.5rem;
  }
  
  .contenedor-iconos {
    gap: 1rem;
  }
  
  .equipo {
    padding: 5rem 0.5rem;
  }
  
  .equipo h2 {
    font-size: 1.75rem;
  }
  
  .equipo p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .equipo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .card-profesional {
    padding: 1.25rem;
  }
  
  .card-profesional .foto {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .card-profesional h3 {
    font-size: 1.1rem;
  }
  
  .card-profesional .cargo {
    font-size: 0.9rem;
  }
  
  .card-profesional .info-extra {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  
  .historia-overlay {
    padding: 2rem 1rem;
  }
  
  .historia-overlay h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .historia-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .footer-contacto {
    padding: 1.5rem 0;
  }
  
  .footer-contacto .redes i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
  }
  
  .whatsapp-floating-box {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 0.75rem;
  }
  
  .whatsapp-floating {
    bottom: 10px;
    right: 10px;
  }
  
  .whatsapp-floating i {
    font-size: 3.5rem !important;
  }
  
  /* Ajustes específicos para formularios */
  .form-control {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  /* Ajustes para carruseles */
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Ajustes para mapas */
  .ratio-16x9 {
    height: 250px;
  }
  
  /* Ajustes para botones */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Ajustes para textos */
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
  }
  
  h4, .h4 {
    font-size: 1.1rem;
  }
  
  h5, .h5 {
    font-size: 1rem;
  }
  
  /* Ajustes para contenedores */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ajustes para espaciado */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .pt-5 {
    padding-top: 2rem !important;
  }
  
  .pb-5 {
    padding-bottom: 2rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  /* Ajustes específicos para página de detalle de propiedades */
  #carouselPropiedad .carousel-item {
    height: 250px !important;
  }
  
  .thumbnail-selector {
    width: 70px !important;
    height: 50px !important;
  }
  
  .ratio-16x9 {
    height: 200px;
  }
  
  /* Ajustes para filtros de propiedades */
  .form-select {
    font-size: 16px;
    margin-bottom: 0.5rem;
  }
  
  .form-select.w-auto {
    width: 100% !important;
  }
  
  /* Ajustes para valores grid */
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .valores-grid .property-card {
    margin: 0;
  }
  
  .valores-grid .property-card i {
    font-size: 2rem !important;
  }
  
  .valores-grid .property-card h4 {
    font-size: 1.1rem;
  }
  
  .valores-grid .property-card p {
    font-size: 0.9rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 375px) {
  .hero {
    height: 50vh;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .navbar-brand img {
    height: 40px;
  }
  
  .property-image {
    height: 140px;
  }
  
  .card-profesional .foto {
    width: 70px;
    height: 70px;
  }
  
  .whatsapp-floating i {
    font-size: 3rem !important;
  }
  
  .whatsapp-floating-box {
    padding: 0.5rem;
  }
  
  .whatsapp-floating-box p {
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  /* Ajustes específicos para página de detalle de propiedades */
  #carouselPropiedad .carousel-item {
    height: 200px !important;
  }
  
  .thumbnail-selector {
    width: 60px !important;
    height: 40px !important;
  }
  
  .ratio-16x9 {
    height: 180px;
  }
  
  .valores-grid .property-card i {
    font-size: 1.5rem !important;
  }
  
  .valores-grid .property-card h4 {
    font-size: 1rem;
  }
  
  .valores-grid .property-card p {
    font-size: 0.8rem;
  }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }
  
  .section-bajo-navbar {
    padding-top: 60px;
  }
  
  .navbar {
    padding: 0.25rem 1rem;
  }
  
  .navbar-brand img {
    height: 40px;
  }
  
  /* Ajustes específicos para página de detalle de propiedades */
  #carouselPropiedad .carousel-item {
    height: 60vh !important;
  }
}

/* Ajustes para tablets en modo portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero {
    height: 80vh;
  }
  
  .equipo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contenedor-iconos {
    gap: 1.5rem;
  }
  
  .icon-card {
    width: 200px;
  }
  
  /* Ajustes específicos para página de detalle de propiedades */
  #carouselPropiedad .carousel-item {
    height: 400px !important;
  }
  
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ajustes específicos para pantallas de 1024px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .equipo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .card-profesional {
    padding: 2.5rem;
  }
  
  .contenedor-iconos {
    gap: 2rem;
  }
  
  .icon-card {
    width: 250px;
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .equipo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .contenedor-iconos {
    gap: 3rem;
  }
  
  .icon-card {
    width: 280px;
  }
  
  /* Ajustes específicos para página de detalle de propiedades */
  #carouselPropiedad .carousel-item {
    height: 500px !important;
  }
  
  .valores-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ajustes para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ajustes para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #f8f9fa !important;
  }
  
  .text-muted {
    color: #6c757d !important;
  }
}

/* Estilos para servicios y comodidades en detalle de propiedad */
.servicios-comodidades {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.servicios-comodidades span {
  font-size: .9rem;
  flex: 0 0 auto;
  max-width: calc(25% - 0.75rem);
  min-width: 120px;
}

.servicios-comodidades i {
  color: #244210;
  margin-right: 0.1rem;
  font-size: 1.1rem;
}

/* Responsive para servicios y comodidades */
@media (max-width: 768px) {
  .servicios-comodidades span {
    max-width: calc(50% - 0.75rem);
    min-width: 140px;
  }
}

@media (max-width: 576px) {
  .servicios-comodidades span {
    max-width: 100%;
    min-width: auto;
  }
}

/* Estilos específicos para el carousel de propiedades */
#carouselPropiedad {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#carouselPropiedad .carousel-item {
  height: 450px;
}

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

#carouselPropiedad .carousel-control-prev,
#carouselPropiedad .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#carouselPropiedad .carousel-control-prev {
  left: 15px;
}

#carouselPropiedad .carousel-control-next {
  right: 15px;
}

#carouselPropiedad .carousel-control-prev-icon,
#carouselPropiedad .carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

/* Responsive para el carousel */
@media (max-width: 768px) {
  #carouselPropiedad .carousel-item {
    height: 300px;
  }
  
  #carouselPropiedad .carousel-control-prev,
  #carouselPropiedad .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #carouselPropiedad .carousel-control-prev-icon,
  #carouselPropiedad .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 576px) {
  #carouselPropiedad .carousel-item {
    height: 250px;
  }
  
  #carouselPropiedad .carousel-control-prev,
  #carouselPropiedad .carousel-control-next {
    width: 35px;
    height: 35px;
  }
  
  #carouselPropiedad .carousel-control-prev-icon,
  #carouselPropiedad .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }
}

.logo-magas {
  text-decoration: none;
}

.miniaturas-container{
  overflow-x: scroll;
}

