/*
  Theme Name: EstateAgency
  Theme URL: https://bootstrapmade.com/real-estate-agency-bootstrap-template/
  Author: BootstrapMade.com
  License: https://bootstrapmade.com/license/
*/

/*======================================
//--//-->   STYLES GENERALES
======================================*/

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


h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000;
}

a {
  color: #000000;
  transition: all .5s ease;
}

a:hover {
  color: #ff0000;
  text-decoration: none;
}

.link-two {
  color: #000000;
  transition: all .5s ease;
}

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 25px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

.link-two:hover {
  text-decoration: underline;
  color: #000000;
}

.link-one {
  color: #000000;
  transition: all .5s ease;
}

.link-one:hover {
  color: #000000;
  text-decoration: none;
}

.link-icon {
  color: #000000;
  font-weight: 500;
}

.link-icon span {
  font-size: 14px;
  padding-left: 4px;
  vertical-align: middle;
}

.link-a {
  color: #ffffff;
  text-decoration: none;
}

.link-a:hover {
  color: #ffffff;
  text-decoration: none;
}

.link-a span {
  font-size: 18px;
  vertical-align: middle;
  margin-left: 5px;
}

.text-brand {
  color: #000000;
  font-size: 2rem;
  font-weight: 600;
}

.color-a {
  color: #000000;
}

.color-b {
  color: #ff0000;
}

.color-d {
  color: #adadad;
}

.color-text-a {
  color: #555555;
}

.no-margin {
  margin: 0;
}

/*------/ Nav Pills  /------*/

.nav-pills-a.nav-pills .nav-link {
  color: #000000;
  position: relative;
  font-weight: 600;
}

.nav-pills-a.nav-pills .nav-link.active {
  background-color: transparent;
}

.nav-pills-a.nav-pills .nav-link.active:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #2eca6a;
  z-index: 2;
}

/*------/ Bg Image /------*/

.bg-image {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}

/*------/ List a /------*/

.list-a {
  display: inline-block;
  line-height: 2;
  padding: 0;
  list-style: none;
}

.list-a li {
  position: relative;
  width: 50%;
  float: left;
  padding-left: 25px;
  padding-right: 5px;
}

.list-a li:before {
  content: '';
  width: 10px;
  height: 2px;
  position: absolute;
  background-color: #313131;
  top: 15px;
  left: 0;
}

/*------/ Pagination-a /------*/

.pagination-a .pagination .page-link {
  margin: 0 .2rem;
  border-color: transparent;
  padding: .5rem .8rem;
  color: #000000;
}

.pagination-a .pagination .page-link:hover,
.pagination-a .pagination .page-link:active,
.pagination-a .pagination .page-link:focus {
  background-color: #2eca6a;
}

.pagination-a .pagination .page-link span {
  font-size: 1.2rem;
}

.pagination-a .pagination .next .page-link {
  padding: .4rem .9rem;
}

.pagination-a .pagination .page-item:last-child .page-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.pagination-a .pagination .page-item:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.pagination-a .pagination .page-item.disabled .page-link {
  padding: .4rem .9rem;
  color: #555555;
}

.pagination-a .pagination .page-item.active .page-link {
  background-color: #2eca6a;
}

.a {
  color: #2eca6a;
  font-size: 1.3rem;
}

/*------/ Icon Box /------*/

.icon-box .icon-box-icon {
  display: table-cell;
  vertical-align: top;
  font-size: 36px;
  color: #000000;
  width: 50px;
  padding-top: 8px;
}

.icon-box .icon-box-content {
  padding-top: 18px;
}

/*------/ Space Padding /------*/

.section-t8 {
  padding-top: 8rem;
}

.section-t4 {
  padding-top: 4rem;
}

.section-t3 {
  padding-top: 3rem;
}

.section-b2 {
  padding-bottom: 2rem;
}

.section-tb85 {
  padding: 8rem 0 5rem 0;
}

/*------/ Title /------*/

.title-wrap {
  padding-bottom: 4rem;
}

.title-a {
  font-size: 2.6rem;
  font-weight: 600;
}

.title-link {
  font-size: 1.2rem;
  font-weight: 300;
  padding-top: 1.2rem;
}

.title-link a {
  color: #313131;
}

.title-link span {
  font-size: 20px;
  padding-left: 4px;
  vertical-align: middle;
}

.title-box-d {
  padding-bottom: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.title-box-d .title-d {
  font-weight: 600;
  font-size: 2rem;
}

.title-box-d .title-d:after {
  content: '';
  position: absolute;
  width: 70px;
  height: 4px;
  background-color: #2eca6a;
  bottom: 20px;
  left: 0;
}

/*------/ Display Table & Table Cell /------*/

.display-table {
  width: 100%;
  height: 100%;
  display: table;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
}

/*------/ Ul Resect /------*/

.ul-resect ul,
.list-a ul,
.box-comments ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

/*------/ Overlay /------*/

.overlay-a {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 27%, rgba(0, 0, 0, 0.65) 90%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0px;
  padding: 0;
  height: 100%;
  width: 100%;
}

/*------/ Owl carousel /------*/

.owl-theme .owl-dots {
  text-align: center;
  margin-top: 18px;
}

.owl-theme .owl-dots .owl-dot {
  display: inline-block;
}

.owl-theme .owl-dots .owl-dot span {
  width: 16px;
  height: 9px;
  margin: 5px 5px;
  background: #000000;
  border: 0px solid #000000;
  display: block;
  transition: all 0.6s ease-in-out;
  cursor: pointer;
  border-radius: 0px;
}

.owl-theme .owl-dots .owl-dot:hover span {
  background-color: #2eca6a;
}

.owl-theme .owl-dots .owl-dot.active span {
  background-color: #2eca6a;
  width: 35px;
}

.owl-arrow .owl-nav {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.8rem;
}

.owl-arrow .owl-nav .owl-prev,
.owl-arrow .owl-nav .owl-next {
  display: inline-block;
  transition: all 0.6s ease-in-out;
  color: #000000;
}

.owl-arrow .owl-nav .owl-prev.disabled,
.owl-arrow .owl-nav .owl-next.disabled {
  transition: all 0.6s ease-in-out;
  color: #adadad;
}

.owl-arrow .owl-nav .owl-next {
  margin-left: 15px;
}

.nav-arrow-a .owl-arrow .owl-nav {
  font-size: 1.8rem;
  margin-top: -110px;
}

.nav-arrow-a .owl-arrow .owl-nav .owl-next {
  margin-left: 15px;
}

.nav-arrow-b .owl-arrow .owl-nav {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.2rem;
}

.nav-arrow-b .owl-arrow .owl-nav .owl-prev,
.nav-arrow-b .owl-arrow .owl-nav .owl-next {
  padding: .7rem 1.5rem !important;
  display: inline-block;
  transition: all 0.6s ease-in-out;
  color: #ffffff;
  background-color: #2eca6a;
  opacity: .9;
}

.nav-arrow-b .owl-arrow .owl-nav .owl-prev.disabled,
.nav-arrow-b .owl-arrow .owl-nav .owl-next.disabled {
  transition: all 0.6s ease-in-out;
  color: #ffffff;
}

.nav-arrow-b .owl-arrow .owl-nav .owl-prev:hover,
.nav-arrow-b .owl-arrow .owl-nav .owl-next:hover {
  background-color: #26a356;
}

.nav-arrow-b .owl-arrow .owl-nav .owl-next {
  margin-left: 0px;
}

/* Mejoras específicas para el carousel de libros */
#property-carousel.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  padding: 0 15px;
  pointer-events: none;
}

#property-carousel.owl-carousel .owl-nav .owl-prev,
#property-carousel.owl-carousel .owl-nav .owl-next {
  position: absolute;
  background: rgba(46, 202, 106, 0.9) !important;
  color: #fff !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 202, 106, 0.3);
  z-index: 10;
  border: none;
  outline: none;
}

#property-carousel.owl-carousel .owl-nav .owl-prev {
  left: -25px;
}

#property-carousel.owl-carousel .owl-nav .owl-next {
  right: -25px;
}

#property-carousel.owl-carousel .owl-nav .owl-prev:hover,
#property-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(46, 202, 106, 0.5);
}

#property-carousel.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

#property-carousel.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 8px;
}

#property-carousel.owl-carousel .owl-dots .owl-dot span {
  width: 14px;
  height: 14px;
  background: #ddd;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

#property-carousel.owl-carousel .owl-dots .owl-dot:hover span {
  background: rgba(46, 202, 106, 0.7);
  transform: scale(1.2);
}

#property-carousel.owl-carousel .owl-dots .owl-dot.active span {
  background: #2eca6a;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(46, 202, 106, 0.4);
}

/* Animación suave al cambiar de slide */
#property-carousel .carousel-item-b {
  transition: transform 0.3s ease;
}

#property-carousel:hover .carousel-item-b:not(:hover) {
  transform: scale(0.95);
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #property-carousel.owl-carousel .owl-nav .owl-prev,
  #property-carousel.owl-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #property-carousel.owl-carousel .owl-nav .owl-prev {
    left: -20px;
  }
  
  #property-carousel.owl-carousel .owl-nav .owl-next {
    right: -20px;
  }
}

/* Indicador visual de carga para autoplay */
.section-property {
  position: relative;
}

.section-property::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2eca6a 0%, #26a356 100%);
  animation: loading-bar 4s linear infinite;
  z-index: 1;
}

@keyframes loading-bar {
  0% { width: 0%; }
  95% { width: 100%; }
  100% { width: 0%; }
}


/* Efecto hover para las tarjetas de libros */
.card-box-a.hover-zoom {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Indicador de autoplay activo */
.section-property.autoplay-active::before {
  animation-play-state: running;
}

.section-property:not(.autoplay-active)::before {
  animation-play-state: paused;
  opacity: 0.3;
}


/* Mejora en la visibilidad de botones en dispositivos táctiles */
@media (max-width: 991px) {
  #property-carousel.owl-carousel .owl-nav .owl-prev,
  #property-carousel.owl-carousel .owl-nav .owl-next {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Mejoras específicas para el carousel de cursos */
#courses-carousel.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  padding: 0 15px;
  pointer-events: none;
}

#courses-carousel.owl-carousel .owl-nav .owl-prev,
#courses-carousel.owl-carousel .owl-nav .owl-next {
  position: absolute;
  background: rgba(46, 202, 106, 0.9) !important;
  color: #fff !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 202, 106, 0.3);
  z-index: 10;
  border: none;
  outline: none;
}

#courses-carousel.owl-carousel .owl-nav .owl-prev {
  left: -25px;
}

#courses-carousel.owl-carousel .owl-nav .owl-next {
  right: -25px;
}

#courses-carousel.owl-carousel .owl-nav .owl-prev:hover,
#courses-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(46, 202, 106, 0.5);
}

#courses-carousel.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

#courses-carousel.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 8px;
}

#courses-carousel.owl-carousel .owl-dots .owl-dot span {
  width: 14px;
  height: 14px;
  background: #ddd;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

#courses-carousel.owl-carousel .owl-dots .owl-dot:hover span {
  background: rgba(46, 202, 106, 0.7);
  transform: scale(1.2);
}

#courses-carousel.owl-carousel .owl-dots .owl-dot.active span {
  background: #2eca6a;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(46, 202, 106, 0.4);
}

/* Animación suave para cursos */
#courses-carousel .carousel-item-c {
  transition: transform 0.3s ease;
}

#courses-carousel:hover .carousel-item-c:not(:hover) {
  transform: scale(0.95);
  opacity: 0.7;
}

/* Responsive para carousel de cursos */
@media (max-width: 991px) {
  #courses-carousel.owl-carousel .owl-nav .owl-prev,
  #courses-carousel.owl-carousel .owl-nav .owl-next {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 768px) {
  #courses-carousel.owl-carousel .owl-nav .owl-prev,
  #courses-carousel.owl-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #courses-carousel.owl-carousel .owl-nav .owl-prev {
    left: -20px;
  }
  
  #courses-carousel.owl-carousel .owl-nav .owl-next {
    right: -20px;
  }
}


/* Efecto hover para las tarjetas de cursos */
.card-box-d.hover-zoom {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Mejoras específicas para el carousel de noticias (usa las mismas clases que cursos) */
#news-carousel.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  padding: 0 15px;
  pointer-events: none;
}

#news-carousel.owl-carousel .owl-nav .owl-prev,
#news-carousel.owl-carousel .owl-nav .owl-next {
  position: absolute;
  background: rgba(46, 202, 106, 0.9) !important;
  color: #fff !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 202, 106, 0.3);
  z-index: 10;
  border: none;
  outline: none;
}

#news-carousel.owl-carousel .owl-nav .owl-prev {
  left: -25px;
}

#news-carousel.owl-carousel .owl-nav .owl-next {
  right: -25px;
}

#news-carousel.owl-carousel .owl-nav .owl-prev:hover,
#news-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(46, 202, 106, 0.5);
}

#news-carousel.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

#news-carousel.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 8px;
}

#news-carousel.owl-carousel .owl-dots .owl-dot span {
  width: 14px;
  height: 14px;
  background: #ddd;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

#news-carousel.owl-carousel .owl-dots .owl-dot:hover span {
  background: rgba(46, 202, 106, 0.7);
  transform: scale(1.2);
}

#news-carousel.owl-carousel .owl-dots .owl-dot.active span {
  background: #2eca6a;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(46, 202, 106, 0.4);
}

/* Animación suave para noticias (usa mismas clases que cursos) */
#news-carousel .carousel-item-n {
  transition: transform 0.3s ease;
}

#news-carousel:hover .carousel-item-n:not(:hover) {
  transform: scale(0.95);
  opacity: 0.7;
}

/* Responsive para carousel de noticias */
@media (max-width: 991px) {
  #news-carousel.owl-carousel .owl-nav .owl-prev,
  #news-carousel.owl-carousel .owl-nav .owl-next {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 768px) {
  #news-carousel.owl-carousel .owl-nav .owl-prev,
  #news-carousel.owl-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #news-carousel.owl-carousel .owl-nav .owl-prev {
    left: -20px;
  }
  
  #news-carousel.owl-carousel .owl-nav .owl-next {
    right: -20px;
  }
}

/*------/ Socials /------*/

.socials-a .list-inline-item:not(:last-child) {
  margin-right: 25px;
}

/* Back to top button */

.back-to-top {
  position: fixed;
  display: none;
  background: #2eca6a;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 11;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

/* Prelaoder */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #2eca6a;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*======================================
//--//-->   NAVBAR
======================================*/

.navbar-default {
  transition: all .5s ease-in-out;
  background-color: #ffffff;
  padding-top: 28px;
  padding-bottom: 28px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 1px 2px 15px rgba(100, 100, 100, 0.3);
}

.navbar-default .nav-search {
  color: #000000;
  font-size: 1.5rem;
}

.navbar-default.navbar-reduce {
  box-shadow: 1px 2px 15px rgba(100, 100, 100, 0.3);
}

.navbar-default.navbar-trans,
.navbar-default.navbar-reduce {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.navbar-default.navbar-trans .nav-item,
.navbar-default.navbar-reduce .nav-item {
  position: relative;
  padding-right: 10px;
  padding-bottom: 8px;
  margin-left: 0;
}

.navbar-default.navbar-trans .nav-link,
.navbar-default.navbar-reduce .nav-link {
  font-size: 1.1rem;
  color: #000000;
  font-weight: 600;
  letter-spacing: 0.030em;
  transition: all 0.1s ease-in-out;
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

.navbar-default.navbar-trans .nav-link:before,
.navbar-default.navbar-reduce .nav-link:before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 0;
  background-color: #2eca6a;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: right;
  transform-origin: right;
  transition: opacity .2s ease-out 0.3s, -webkit-transform .2s ease-out;
  transition: transform .2s ease-out, opacity .2s ease-out 0.3s;
  transition: transform .2s ease-out, opacity .2s ease-out 0.3s, -webkit-transform .2s ease-out;
}

.navbar-default.navbar-trans .nav-link:hover,
.navbar-default.navbar-reduce .nav-link:hover {
  color: #000000;
}

.navbar-default.navbar-trans .nav-link:hover:before,
.navbar-default.navbar-reduce .nav-link:hover:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-transform-origin: left;
  transform-origin: left;
}

.navbar-default.navbar-trans .show > .nav-link:before,
.navbar-default.navbar-trans .active > .nav-link:before,
.navbar-default.navbar-trans .nav-link.show:before,
.navbar-default.navbar-trans .nav-link.active:before,
.navbar-default.navbar-reduce .show > .nav-link:before,
.navbar-default.navbar-reduce .active > .nav-link:before,
.navbar-default.navbar-reduce .nav-link.show:before,
.navbar-default.navbar-reduce .nav-link.active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.navbar-default.navbar-trans .nav-link:before {
  background-color: #2eca6a;
}

.navbar-default.navbar-trans .nav-link:hover {
  color: #000000;
}

.navbar-default.navbar-trans .show > .nav-link,
.navbar-default.navbar-trans .active > .nav-link,
.navbar-default.navbar-trans .nav-link.show,
.navbar-default.navbar-trans .nav-link.active {
  color: #000000;
}

.navbar-default.navbar-reduce {
  transition: all .5s ease-in-out;
  padding-top: 19px;
  padding-bottom: 19px;
}

.navbar-default.navbar-reduce .nav-link {
  color: #000000;
}

.navbar-default.navbar-reduce .nav-link:before {
  background-color: #2eca6a;
}

.navbar-default.navbar-reduce .nav-link:hover {
  color: #000000;
}

.navbar-default.navbar-reduce .show > .nav-link,
.navbar-default.navbar-reduce .active > .nav-link,
.navbar-default.navbar-reduce .nav-link.show,
.navbar-default.navbar-reduce .nav-link.active {
  color: #000000;
}

.navbar-default.navbar-reduce .navbar-brand {
  color: #000000;
}

.navbar-default .dropdown .dropdown-menu {
  border-top: 0;
  border-left: 4px solid #2eca6a;
  border-right: 0;
  border-bottom: 0;
  -webkit-transform: translate3d(0px, -40px, 0px);
  transform: translate3d(0px, -40px, 0px);
  opacity: 0;
  filter: alpha(opacity=0);
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.3, 0.65, 0.355, 1) 0s, opacity 0.31s ease 0s, height 0s linear 0.36s;
  margin: 0;
  border-radius: 0;
  padding: 12px 0;
}

.navbar-default .dropdown .dropdown-menu .dropdown-item {
  padding: 12px 18px;
  transition: all 500ms ease;
  font-weight: 600;
  min-width: 220px;
}

.navbar-default .dropdown .dropdown-menu .dropdown-item:hover {
  background-color: #ffffff;
  color: #2eca6a;
  transition: all 500ms ease;
}

.navbar-default .dropdown .dropdown-menu .dropdown-item.active {
  background-color: #ffffff;
  color: #2eca6a;
}

.navbar-default .dropdown:hover .dropdown-menu {
  -webkit-transform: translate3d(0px, 0px, 0px);
  transform: translate3d(0px, 0px, 0px);
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=1);
}

/*------/ Hamburger Navbar /------*/

.navbar-toggler {
  position: relative;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: 0;
}

.navbar-toggler span {
  display: block;
  background-color: #000000;
  height: 3px;
  width: 25px;
  margin-top: 4px;
  margin-bottom: 4px;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  left: 0;
  opacity: 1;
}

.navbar-toggler span:nth-child(1),
.navbar-toggler span:nth-child(3) {
  transition: -webkit-transform .35s ease-in-out;
  transition: transform .35s ease-in-out;
  transition: transform .35s ease-in-out, -webkit-transform .35s ease-in-out;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
  position: absolute;
  left: 12px;
  top: 10px;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
  opacity: 0.9;
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
  height: 12px;
  visibility: hidden;
  background-color: transparent;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
  position: absolute;
  left: 12px;
  top: 10px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
  opacity: 0.9;
}

/*======================================
//--//-->   BOX COLAPSE
======================================*/

.box-collapse {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background-color: #ffffff;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  transition: all 0.6s ease;
}

.box-collapse .title-box-d {
  top: 30px;
  left: 60px;
  opacity: 0;
  transition: all 1s ease;
  transition-delay: .3s;
}

.box-collapse-wrap {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 6.5rem;
  bottom: 5rem;
  padding-left: 10%;
  padding-right: 10%;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  -webkit-transform: translateY(3rem);
  transform: translateY(3rem);
  transition: opacity 0.5s 0.5s ease, -webkit-transform 0.5s 0.5s ease;
  transition: transform 0.5s 0.5s ease, opacity 0.5s 0.5s ease;
  transition: transform 0.5s 0.5s ease, opacity 0.5s 0.5s ease, -webkit-transform 0.5s 0.5s ease;
}

.box-collapse-open .click-closed {
  visibility: visible;
}

.box-collapse-open .box-collapse {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  box-shadow: 0 0 65px rgba(0, 0, 0, 0.07);
  opacity: 1;
}

.box-collapse-open .box-collapse .title-box-d {
  -webkit-transform: translate(0);
  transform: translate(0);
  opacity: 1;
}

.box-collapse-open .box-collapse-wrap {
  -webkit-transform: translate(0);
  transform: translate(0);
  opacity: 1;
}

.box-collapse-closed .box-collapse {
  opacity: .7;
  transition-delay: 0s;
}

.box-collapse-closed .box-collapse .title-box-d {
  opacity: 0;
  transition-delay: 0s;
}

.box-collapse-closed .box-collapse .form-a {
  opacity: 0;
  transition-delay: 0s;
}

.click-closed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  z-index: 1035;
  background-color: #000000;
  opacity: .4;
}

.close-box-collapse {
  position: absolute;
  z-index: 1050;
  top: 2rem;
  font-size: 3.5rem;
  line-height: 1;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.right-boxed {
  right: 4.2857rem;
}

/*======================================
//--//-->   INTRO
======================================*/

.intro {
  height: 100vh;
  position: relative;
  color: #ffffff;
}

.intro .owl-theme .owl-dots {
  position: absolute;
  bottom: 70px;
  right: 50px;
}

.intro .owl-theme .owl-dots .owl-dot span {
  background: #ffffff;
  border: 0px solid #ffffff;
}

.intro .owl-theme .owl-dots .owl-dot:hover span {
  background-color: #2eca6a;
}

.intro .owl-theme .owl-dots .owl-dot.active span {
  background-color: #2eca6a;
}

.intro .intro-item {
  padding-top: 2rem;
}

.intro .carousel-item-a {
  position: relative;
  height: 100vh;
}

.intro .carousel-item-a.bg-image {
  background-attachment: scroll;
}

.intro .intro-content {
  position: absolute;
}

.intro .intro-body {
  padding-left: 1rem;
}

.intro .intro-body .price-a {
  color: #ffffff;
  padding: 1rem 1.5rem;
  border: 2px solid #2eca6a;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.030em;
}

.intro .spacial {
  -webkit-animation-delay: .2s;
  animation-delay: .2s;
  color: #ffffff;
}

.intro .intro-title-top {
  -webkit-animation-delay: .6s;
  animation-delay: .6s;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: #ffffff;
  letter-spacing: .05em;
}

.intro .intro-title {
  transition-duration: 9s !important;
  color: #ffffff;
  font-weight: 700;
  font-size: 2.8rem;
  text-transform: uppercase;
}

.intro .intro-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
}

.intro .intro-subtitle.intro-price {
  padding-top: 1rem;
  font-size: 1.2rem;
}

/*------/ Intro Single /------*/

.intro-single {
  padding: 12rem 0 3rem;
}

.intro-single .title-single-box {
  padding: 1rem 0 1rem 2rem;
}

.intro-single .title-single-box {
  border-left: 3px solid #2eca6a;
}

.intro-single .title-single-box .title-single {
  font-weight: 600;
  font-size: 2.2rem;
}

.intro-single .breadcrumb-box {
  padding: 1rem 0 0 .5rem;
}

.intro-single .breadcrumb {
  background-color: transparent;
  padding-right: 0;
  padding-left: 0;
}

/*======================================
//--//-->   CARD GENERAL
======================================*/

.card-box-a,
.card-box-b,
.card-box-d {
  position: relative;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-box-a .img-a,
.card-box-a .img-b,
.card-box-b .img-a,
.card-box-b .img-b {
  transition: .8s all ease-in-out;
}

.card-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.card-shadow {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-shadow:before {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 27%, rgba(0, 0, 0, 0.65) 90%);
}

/*======================================
//--//-->   PROPERTY - CARD-A
======================================*/

.card-overlay-a-content {
  transition: all .5s ease-in;
  position: absolute;
  width: 100%;
  bottom: 0px;
  z-index: 2;
}

.card-header-a {
  padding: 0 1rem;
}

.card-header-a .card-title-a {
  color: #ffffff;
  margin-bottom: 0;
  padding-bottom: .7rem;
}

.card-header-a .card-title-a a {
  color: #ffffff;
  text-decoration: none;
}

.card-body-a {
  z-index: 2;
  transition: all .5s ease-in;
  padding: 0rem 1rem 2rem 1rem;
}

.card-body-a .price-box {
  padding-bottom: .5rem;
}

.price-a {
  color: #ffffff;
  padding: .6rem .8rem;
  border: 2px solid #2eca6a;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.030em;
}

.card-footer-a {
  width: 100%;
  position: absolute;
  z-index: 2;
  background-color: #2eca6a;
}

.card-info {
  list-style: none;
  margin-bottom: 0;
  padding: .5rem 0;
}

.card-info .card-info-title {
  font-size: 1rem;
  color: #313131;
}

.card-info li span {
  color: #ffffff;
  font-size: .9rem;
}

/*------/ Property Grid /-----*/

.property-grid .grid-option {
  text-align: right;
  margin-bottom: 2rem;
}

.property-grid .grid-option .custom-select {
  border-radius: 0;
  width: 200px;
  border-color: #313131;
}

.property-grid .grid-option .custom-select:hover,
.property-grid .grid-option .custom-select:active,
.property-grid .grid-option .custom-select:focus {
  border-color: #313131;
}

.property-grid .grid-option .custom-select option {
  border-color: #313131;
}

/*------/ Property Single /-----*/

.gallery-property {
  margin-bottom: 3rem;
}

.property-price {
  margin: 0 auto;
}

.property-price .card-header-c {
  padding: 0;
}

.summary-list {
  padding-right: 1rem;
  color: #000000;
}

.summary-list .list {
  padding: 0;
  line-height: 2;
}

.summary-list .list span {
  color: #555555;
}

.property-agent .title-agent {
  font-weight: 600;
}

.property-agent ul {
  line-height: 2;
  color: #000000;
}

.property-agent .socials-a {
  text-align: center;
}

/*======================================
//--//-->   NEWS - CARD-B
======================================*/

.card-header-b {
  padding: 1rem;
  color: #ffffff;
  position: absolute;
  bottom: 20px;
  z-index: 2;
}

.card-header-b .category-b {
  font-size: .9rem;
  background-color: #2eca6a;
  padding: .3rem .7rem;
  color: #313131;
  letter-spacing: 0.030em;
  border-radius: 50px;
  text-decoration: none;
}

.card-header-b .title-2 {
  margin-bottom: 0;
  padding: .6rem 0;
  font-size: 1.5rem;
}

.card-header-b .title-2 a {
  color: #ffffff;
  text-decoration: none;
}

.card-header-b .date-b {
  color: #d8d8d8;
  font-size: 1rem;
}

/*------/ News Single /------*/

.post-information {
  padding: 3rem 0;
}

.post-content {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

.post-content .post-intro {
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 4rem;
  line-height: 1.6;
  color: #000000;
  font-weight: 400;
}

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

.post-content .blockquote {
  padding: 1rem 3rem 1.7rem 3rem;
  border-left: 3px solid #2eca6a;
  color: #000000;
}

.post-content .blockquote footer {
  text-align: left;
  padding: 0;
}

.post-footer {
  padding: 3rem 0 4rem;
}

.post-share .socials {
  display: inline-block;
}

.post-share .socials li {
  margin-left: .6rem;
}

/*------/ Comments /------*/

.box-comments .list-comments li {
  padding-bottom: 3.5rem;
}

.box-comments .list-comments .comment-avatar {
  display: table-cell;
  vertical-align: top;
}

.box-comments .list-comments .comment-avatar img {
  width: 80px;
  height: 80px;
}

.box-comments .list-comments .comment-author {
  font-size: 1.3rem;
}

.box-comments .list-comments .comment-details {
  display: table-cell;
  vertical-align: top;
  padding-left: 25px;
}

.box-comments .list-comments .comment-description {
  padding: .8rem 0 .5rem 0;
}

.box-comments .list-comments a {
  color: #000000;
}

.box-comments .list-comments span {
  display: block;
  color: #2B2A2A;
  font-style: italic;
}

.box-comments .comment-children {
  margin-left: 40px;
}

/*======================================
//--//-->   SERVICES - CARD-C
======================================*/

.card-box-c {
  position: relative;
}

.card-header-c {
  padding: 0 1rem 1rem 1rem;
}

.card-body-c {
  padding: .5rem .5rem 0 .5rem;
}

.card-footer-c {
  padding-left: .5rem;
}

.card-box-ico {
  padding: 1rem 3rem 1rem 2.5rem;
  border: 5px solid #2eca6a;
}

.card-box-ico span {
  font-size: 4rem;
  color: #000000;
}

.title-c {
  font-size: 2.5rem;
  font-weight: 600;
  margin-left: -40px;
}

/*======================================
//--//-->   AGENTS - CARD-D
======================================*/

.card-box-d .card-overlay-hover {
  transition: all .2s ease-in-out;
  padding: 15px 40px 15px 35px;
}

.card-box-d .title-d {
  transition: .3s ease-in-out;
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0;
  -webkit-transform: translateY(-20px);
  transform: translateY(-20px);
  opacity: 0;
}

.card-box-d .content-d {
  opacity: 0;
  transition: .5s ease-in-out;
  -webkit-transform: translateY(-40px);
  transform: translateY(-40px);
}

.card-box-d .info-agents {
  opacity: 0;
  transition: .5s ease-in-out;
}

.card-box-d .card-footer-d {
  transition: .5s ease-in-out;
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
  opacity: 0;
  position: absolute;
  width: 100%;
  bottom: 10px;
  left: 0;
}

.card-box-d .list-inline-item:not(:last-child) {
  margin-right: 25px;
}

.card-box-d:hover .card-overlay-hover {
  background-color: #2eca6a;
  opacity: .9;
}

.card-box-d:hover .title-d,
.card-box-d:hover .content-d,
.card-box-d:hover .info-agents,
.card-box-d:hover .card-footer-d {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/*------/ Agent Single /------*/

.agent-info-box .socials-footer {
  margin-top: 2rem;
}

.agent-info-box .socials-footer li {
  margin-right: 1.5rem;
}

/*======================================
//--//-->   ABOUT
======================================*/

.section-about .title-vertical {
  position: absolute;
  letter-spacing: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  top: 50px;
  text-align: left;
  font-size: 1.8rem;
  width: 300px;
  font-weight: 700;
  text-align: right;
}

.about-img-box {
  padding-left: 1rem;
  position: relative;
}

.sinse-box {
  background-color: #2eca6a;
  padding: 1rem 2rem;
  position: absolute;
  left: 15px;
  bottom: 10px;
}

.sinse-box .sinse-title {
  font-weight: 700;
  letter-spacing: 0.043em;
  font-size: 1rem;
}

.sinse-box .sinse-title span {
  position: absolute;
}

.sinse-box .sinse-title span:after {
  content: ' ';
  width: 35px;
  height: 2px;
  background-color: #000000;
  position: absolute;
  bottom: -15px;
}

.sinse-box p {
  margin-bottom: 0;
  font-size: .7rem;
}

/*======================================
//--//-->   TESTIMONIALS
======================================*/

.testimonials-box {
  padding: 1rem 0;
}

.testimonials-box .testimonial-avatar {
  width: 80px !important;
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  border-radius: 50%;
}

.testimonial-ico {
  text-align: center;
}

.testimonial-ico span {
  font-size: 1.8rem;
  background-color: #2eca6a;
  color: #ffffff;
  padding: .4rem 1rem;
  border-radius: 50px;
}

.testimonial-text {
  font-style: italic;
  margin-top: 25px;
  padding: 1.5rem 1.5rem;
  background-color: #f3f3f3;
  position: relative;
}

.testimonial-text:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 25px;
  width: 0px;
  height: 0px;
  border-top: 15px solid #f3f3f3;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
}

.testimonial-author-box {
  margin-top: 2rem;
}

.testimonial-author {
  margin-left: 1rem;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  font-size: 1.2rem;
  color: #000000;
}

/*======================================
//--//-->   FOOTER
======================================*/

.section-footer {
  padding-top: 40px;
  padding-bottom: 20px;
  margin-top: 60px;
  background: #f3f3f3;
}

.section-footer .container {
  /* Forzar que use el mismo ancho que el resto del contenido */
  max-width: 1320px !important;
  width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.section-footer .row {
  margin-left: -15px;
  margin-right: -15px;
}

.section-footer .footer-column {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

.section-footer .footer-column-left {
  border-right: 1px solid #e0e0e0;
}

.section-footer .footer-column-center {
  border-right: none;
}

/* Columna derecha sin border derecho */

.section-footer .widget-a {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 15px;
}

.section-footer .w-body-a,
.section-footer .w-footer-a {
  flex-grow: 1;
}

@media (min-width: 1200px) {
  .section-footer .widget-a {
    padding: 0 20px;
  }
  
  .section-footer .container {
    max-width: 1320px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (min-width: 1400px) {
  .section-footer .container {
    max-width: 1450px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 767px) {
  .section-footer .footer-column-left,
  .section-footer .footer-column-center {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    padding-bottom: 25px;
  }
  
  .section-footer .footer-column {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
  }
  
  .section-footer .widget-a {
    padding: 0 10px;
    text-align: center;
  }
  
  /* Mejorar colegios en móvil */
  .colegio-item {
    justify-content: center !important;
  }
}

.section-footer ul {
  line-height: 2;
}

.section-footer .item-list-a i {
  font-size: 18px;
  padding-right: 4px;
  color: #2eca6a;
}

.section-footer .widget-a .w-title-a {
  margin-bottom: 1rem;
}

/* Estilos para la sección de colegios asociados */
.colegio-item {
  transition: transform 0.3s ease;
  cursor: pointer;
  padding: 15px;
}

.colegio-item:hover {
  transform: translateY(-5px);
}

.colegio-item img {
  transition: transform 0.3s ease;
}

.colegio-item:hover img {
  transform: scale(1.1);
}

/* Estilos para los enlaces de colegios */
.colegio-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.colegio-link:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.colegio-link:visited {
  color: inherit !important;
}

.colegio-link:focus {
  outline: 2px solid #2eca6a;
  outline-offset: 2px;
  border-radius: 4px;
}

footer {
  background: #f3f3f3;
  text-align: center;
  padding: 20px 0 15px 0;
}

footer .copyright-footer {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

footer .credits {
  font-size: 14px;
}

/*======================================
//--//-->   FORM INPUT
======================================*/

.form-a #sendmessage {
  color: #2eca6a;
  border: 1px solid #26a356;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.form-a #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.form-a #sendmessage.show,
.form-a #errormessage.show,
.form-a .show {
  display: block;
}

.form-a .validation {
  color: red;
  display: none;
  margin: 4px 0 20px 0;
  font-weight: 400;
  font-size: 13px;
}

.form-a label {
  color: #000000;
  position: relative;
}

.form-a select.form-control-lg:not([size]):not([multiple]) {
  height: 3.5rem;
}

.form-a .form-control {
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: 300;
}

.form-a .form-control.form-control-a {
  height: 3.5rem;
}

.form-a .form-control:focus {
  box-shadow: none;
  border-color: #2eca6a;
}

/*======================================
//--//-->   BUTTON
======================================*/

.btn {
  transition: .5s ease;
}

.btn.btn-a,
.btn.btn-b {
  border-radius: 0;
  padding: 1rem 3rem;
  letter-spacing: .05rem;
}

.btn.btn-a {
  background-color: #000000;
  color: #ffffff;
}

.btn.btn-a:hover {
  background-color: #2eca6a;
  color: #000000;
}

.btn.btn-b {
  background-color: #2eca6a;
  color: #000000;
}

.btn.btn-b:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn.btn-b-n {
  background-color: #2eca6a;
  color: #ffffff;
  border-radius: 0;
}

.btn.btn-b-n:hover {
  background-color: #26a356;
  color: #ffffff;
}

@media (min-width: 576px) {
  .intro .intro-title {
    font-size: 3.5rem;
  }

  .intro .intro-subtitle.intro-price {
    font-size: 1.3rem;
  }

  .about-img-box {
    padding-left: 4rem;
  }

  .sinse-box {
    padding: 1.5rem 2.5rem;
    bottom: 20px;
  }

  .sinse-box .sinse-title {
    font-size: 1.3rem;
  }

  .sinse-box p {
    font-size: .8rem;
  }

  .sinse-box p {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .link-a {
    font-size: .9rem;
  }

  .link-a span {
    font-size: 1.5rem;
  }

  .navbar-default.navbar-trans .nav-item,
  .navbar-default.navbar-reduce .nav-item {
    margin-left: 15px;
  }

  .navbar-default .dropdown .dropdown-menu {
    border-top: 4px solid #2eca6a;
    border-left: 0;
    display: block;
    position: absolute;
    box-shadow: 0 2px rgba(17, 16, 15, 0.1), 0 2px 10px rgba(20, 19, 18, 0.1);
  }

  .box-collapse {
    width: 50%;
  }

  .intro .owl-theme .owl-dots {
    right: 200px;
  }

  .intro .intro-body {
    padding-left: 2rem;
  }

  .intro .intro-title-top {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .intro .intro-title {
    font-size: 4rem;
  }

  .intro .intro-subtitle {
    font-size: 2.5rem;
  }

  .intro .intro-subtitle.intro-price {
    padding-top: 2rem;
    font-size: 1.5rem;
  }

  .intro-single .title-single-box .title-single {
    font-size: 2.1rem;
  }

  .grid .card-box-a,
  .grid .card-box-b,
  .grid .card-box-c,
  .grid .card-box-d {
    margin-bottom: 2.5rem;
  }

  .card-box-a:hover .img-a,
  .card-box-a:hover .img-b,
  .card-box-b:hover .img-a,
  .card-box-b:hover .img-b {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  .card-box-a .price-a,
  .card-box-b .price-a {
    font-size: .9rem;
  }

  .card-box-a:hover .card-overlay-a-content {
    bottom: 60px;
  }

  .card-box-a:hover .card-body-a {
    padding-bottom: 1rem;
  }

  .card-overlay-a-content {
    bottom: -20px;
  }

  .card-header-a .card-title-a {
    font-size: 1.3rem;
  }

  .card-info .card-info-title {
    font-size: .9rem;
  }

  .card-info li span {
    font-size: .8rem;
  }

  .card-header-b {
    bottom: 0px;
  }

  .card-header-b .title-2 {
    font-size: 1rem;
  }

  .card-header-b .date-b {
    font-size: .9rem;
  }

  .box-comments .list-comments .comment-author {
    font-size: 1.5rem;
  }

  .title-c {
    font-size: 1.8rem;
  }

  .card-box-d .card-overlay-hover {
    padding: 5px 15px 5px 10px;
  }

  .card-box-d .title-d {
    font-size: 1.1rem;
    margin: .5rem 0;
  }

  .card-box-d .content-d {
    font-size: .8rem;
    margin: .5rem 0;
  }

  .card-box-d .card-body-d p {
    margin-bottom: 8px;
    font-size: .8rem;
  }

  .about-img-box {
    padding-left: 5rem;
  }

  .sinse-box {
    padding: 1.5rem 3rem;
  }

  .sinse-box .sinse-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) and (min-width: 768px) {
  .card-box-a:hover .card-overlay-a-content {
    bottom: 60px;
  }
}

@media (min-width: 768px) and (min-width: 992px) {
  .card-box-a:hover .card-overlay-a-content {
    bottom: 64px;
  }
}

@media (min-width: 992px) {
  .link-a {
    font-size: 1rem;
  }

  .link-a span {
    font-size: 18px;
  }

  .list-a li {
    width: 33.333%;
  }

  .intro .intro-title-top {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .intro .intro-title {
    font-size: 4.5rem;
  }

  .intro .intro-subtitle.intro-price {
    padding-top: 3rem;
  }

  .intro-single .title-single-box .title-single {
    font-size: 2.5rem;
  }

  .card-box-a .price-a,
  .card-box-b .price-a {
    font-size: 1rem;
  }

  .card-overlay-a-content {
    bottom: 0px;
  }

  .card-header-a .card-title-a {
    font-size: 2rem;
  }

  .card-info .card-info-title {
    font-size: 1rem;
  }

  .card-info li span {
    font-size: 1rem;
  }

  .card-header-b {
    bottom: 20px;
  }

  .card-header-b .title-2 {
    font-size: 1.6rem;
  }

  .card-header-b .date-b {
    font-size: 1rem;
  }

  .title-c {
    font-size: 2.5rem;
  }

  .card-box-d .card-overlay-hover {
    padding: 5px 40px 5px 35px;
  }

  .card-box-d .title-d {
    font-size: 1.5rem;
    margin: 1rem 0;
  }

  .card-box-d .card-body-d p {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .sinse-box {
    padding: 3rem 4.5rem;
  }

  .sinse-box .sinse-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 1200px) {
  .card-box-d .card-overlay-hover {
    padding: 15px 40px 5px 35px;
  }

  .card-box-d .title-d {
    font-size: 2rem;
    margin: 1rem 0;
  }
}

@media (max-width: 991px) {
  .property-contact {
    margin-top: 2.5rem;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}

@media (max-width: 767px) {
  .text-brand {
    font-size: 1.8rem;
  }

  .section-t8 {
    padding-top: 4rem;
  }

  .section-t4 {
    padding-top: 2rem;
  }

  .section-md-t3 {
    padding-top: 3rem;
  }

  .section-tb85 {
    padding: 4rem 0 2.5rem 0;
  }

  .intro-single {
    padding-top: 9rem;
  }

  .card-box-a,
  .card-box-b,
  .card-box-c,
  .card-box-d {
    margin-bottom: 2.5rem;
  }

  .card-box-a .card-overlay-a-content {
    bottom: 65px;
  }

  .card-box-a .card-body-a {
    padding-bottom: 1rem;
  }

  .property-agent {
    margin-top: 2.5rem;
  }

  .card-box-c {
    margin-bottom: 2rem;
  }

  .card-body-c {
    padding: 0;
  }
}

@media (max-width: 575px) {
  .box-collapse .title-box-d {
    left: 35px;
  }

  .box-collapse .title-box-d .title-d {
    font-size: 1.3rem;
  }
}





/* Aumentar ligeramente el ancho del container para aprovechar mejor el espacio */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1450px;
  }
}

/* Estilos para carousel de imágenes TECHHOMEBOT-2023 */
#techhome-2023-carousel {
  margin-bottom: 30px;
}

#techhome-2023-carousel .carousel-item-single {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#techhome-2023-carousel .carousel-item-single img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

#techhome-2023-carousel .carousel-item-single:hover img {
  transform: scale(1.05);
}

/* Navegación del carousel */
#techhome-2023-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
}

#techhome-2023-carousel .owl-nav button.owl-prev,
#techhome-2023-carousel .owl-nav button.owl-next {
  position: absolute;
  background: rgba(46, 202, 106, 0.9) !important;
  color: white !important;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
}

#techhome-2023-carousel .owl-nav button.owl-prev {
  left: 20px;
}

#techhome-2023-carousel .owl-nav button.owl-next {
  right: 20px;
}

#techhome-2023-carousel .owl-nav button:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: scale(1.1);
}

/* Dots del carousel */
#techhome-2023-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

#techhome-2023-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

#techhome-2023-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: rgba(46, 202, 106, 0.3);
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

#techhome-2023-carousel .owl-dots .owl-dot.active span,
#techhome-2023-carousel .owl-dots .owl-dot:hover span {
  background: #2eca6a;
  transform: scale(1.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #techhome-2023-carousel .owl-nav button.owl-prev,
  #techhome-2023-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #techhome-2023-carousel .owl-nav button.owl-prev {
    left: 10px;
  }
  
  #techhome-2023-carousel .owl-nav button.owl-next {
    right: 10px;
  }
}

/* Estilos para carousel de modales de colegios */
#modal-colegio-carousel {
  margin-bottom: 20px;
}

#modal-colegio-carousel .carousel-item-single {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

#modal-colegio-carousel .carousel-item-single img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#modal-colegio-carousel .carousel-item-single:hover img {
  transform: scale(1.05);
}

#modal-colegio-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

#modal-colegio-carousel .owl-nav button.owl-prev,
#modal-colegio-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 202, 106, 0.8) !important;
  color: white !important;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  pointer-events: all;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-colegio-carousel .owl-nav button.owl-prev {
  left: 15px;
}

#modal-colegio-carousel .owl-nav button.owl-next {
  right: 15px;
}

#modal-colegio-carousel .owl-nav button:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: translateY(-50%) scale(1.1);
}

#modal-colegio-carousel .owl-dots {
  text-align: center;
  margin-top: 15px;
}

#modal-colegio-carousel .owl-dots .owl-dot {
  margin: 0 5px;
}

#modal-colegio-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

#modal-colegio-carousel .owl-dots .owl-dot.active span,
#modal-colegio-carousel .owl-dots .owl-dot:hover span {
  background: #2eca6a;
  transform: scale(1.2);
}

.modal-carousel-container {
  margin-bottom: 5px; /* Reducido de 10px a 5px */
  margin-top: 0; /* Sin margen superior */
}

.modal-colegio-container {
  max-width: 800px !important;
  width: 100% !important;
  height: calc(100vh - 30px); /* Altura completa menos 30px (15px arriba + 15px abajo) */
  max-height: calc(100vh - 30px);
  margin: 0 auto;
  display: flex;
  align-items: center; /* Centrar verticalmente */
  justify-content: center;
  padding: 0; /* Sin padding interno */
}

.modal-colegio-card {
  height: 100%; /* Altura completa del contenedor */
  max-height: 100%;
  overflow-y: scroll !important; /* Forzar scroll siempre */
  overflow-x: hidden;
  position: relative;
  background: white;
  border-radius: 8px; /* Agregar border-radius sutil */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  
  /* Estilos de scrollbar visibles */
  scrollbar-width: auto !important;
  scrollbar-color: #2eca6a #f1f1f1 !important;
}

/* Estilos de scrollbar para Webkit (Chrome, Safari, etc.) */
.modal-colegio-card::-webkit-scrollbar {
  width: 14px !important;
  background: #f1f1f1 !important;
}

.modal-colegio-card::-webkit-scrollbar-track {
  background: #e9ecef !important;
  border-radius: 7px;
  margin: 5px 0;
  border: 1px solid #dee2e6;
}

.modal-colegio-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2eca6a 0%, #27a35c 100%) !important;
  border-radius: 7px;
  border: 2px solid #e9ecef;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.modal-colegio-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #27a35c 0%, #229954 100%) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.modal-colegio-card::-webkit-scrollbar-corner {
  background: #f1f1f1 !important;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-titulo-colegio {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 3px; /* Reducido de 8px a 3px */
  margin-top: 0; /* Sin margen superior */
  text-align: center;
}

.modal-datos-basicos {
  background: #f8f9fa;
  padding: 18px; /* Reducido de 20px a 18px */
  border-radius: 8px;
  margin: 15px 0; /* Reducido de 20px a 15px */
  border-left: 4px solid #2eca6a;
}

.modal-datos-basicos h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.datos-lista {
  margin: 0;
}

.dato-item {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #495057;
}

.dato-item strong {
  color: #2c3e50;
  margin-right: 8px;
}

.dato-item span {
  color: #495057;
}

.modal-colegio-info {
  margin: 20px 0;
}

.modal-colegio-info h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.modal-colegio-info ul {
  margin: 0;
  padding-left: 20px;
}

.modal-colegio-info li {
  margin-bottom: 8px;
  color: #495057;
  line-height: 1.5;
}

/* Padding del cuerpo del modal para forzar scroll */
.modal-colegio-body {
  padding: 10px; /* Reducido de 15px a 10px */
  padding-top: 5px; /* Padding superior muy reducido */
  padding-bottom: 100px; /* Más padding inferior para forzar scroll */
  min-height: 90vh; /* Altura mínima para garantizar scroll */
}

.modal-carousel-container {
  margin-bottom: 8px; /* Reducido de 15px a 8px */
  margin-top: 0; /* Sin margen superior */
  height: 350px; /* Altura del carrusel aumentada */
}

.modal-datos-basicos {
  background: #f8f9fa;
  padding: 20px; /* Reducido de 25px a 20px */
  border-radius: 8px;
  margin: 15px 0; /* Reducido de 25px a 15px */
  border-left: 4px solid #2eca6a;
  min-height: 300px; /* Altura mínima para la sección */
}

.modal-datos-basicos h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.datos-lista {
  margin: 0;
}

.dato-item {
  margin-bottom: 15px; /* Más espacio entre items */
  line-height: 1.8; /* Más altura de línea */
  color: #495057;
  padding: 8px 0; /* Padding adicional */
}

.dato-item strong {
  color: #2c3e50;
  margin-right: 10px;
}

.dato-item span {
  color: #495057;
}

.modal-titulo-colegio {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 5px; /* Reducido de 12px a 5px */
  margin-top: 0; /* Sin margen superior */
  text-align: center;
  padding: 5px 0; /* Reducido de 8px a 5px */
}

.modal-colegio-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 10px; /* Reducido de 15px a 10px */
  margin-top: 5px; /* Margen superior mínimo */
  padding: 8px; /* Reducido de 10px a 8px */
  background: #f8f9fa;
  border-radius: 6px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #modal-colegio-carousel .owl-nav button.owl-prev,
  #modal-colegio-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #modal-colegio-carousel .owl-nav button.owl-prev {
    left: 10px;
  }
  
  #modal-colegio-carousel .owl-nav button.owl-next {
    right: 10px;
  }
  
  #modal-colegio-carousel .carousel-item-single img {
    height: 250px;
  }
  
  .modal-colegio-container {
    max-width: 95% !important;
    width: 95% !important;
    height: 100vh !important;
    padding: 10px 0 !important;
  }
  
  .modal-colegio-card {
    height: 85vh !important; /* Altura fija para forzar scroll en móviles */
    max-height: 85vh !important;
    border-radius: 8px;
    overflow-y: scroll !important;
  }
  
  .modal-colegio-card::-webkit-scrollbar {
    width: 12px !important;
  }
  
  .modal-colegio-body {
    min-height: 100vh !important; /* Forzar contenido alto en móviles */
    padding-bottom: 80px !important;
  }
  
  .modal-carousel-container {
    height: 280px !important;
  }
  
  .modal-titulo-colegio {
    font-size: 1.5rem;
  }
  
  .modal-datos-basicos {
    padding: 20px !important;
    margin: 20px 0 !important;
    min-height: 250px !important;
  }
  
  .modal-close-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }
}

/* Estilos para carousel de imágenes TECHHOMEBOT-2024 */
#techhome-2024-carousel {
  margin-bottom: 30px;
}

#techhome-2024-carousel .carousel-item-single {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#techhome-2024-carousel .carousel-item-single img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

#techhome-2024-carousel .carousel-item-single:hover img {
  transform: scale(1.05);
}

/* Navegación del carousel 2024 */
#techhome-2024-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
}

#techhome-2024-carousel .owl-nav button.owl-prev,
#techhome-2024-carousel .owl-nav button.owl-next {
  position: absolute;
  background: rgba(46, 202, 106, 0.9) !important;
  color: white !important;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
}

#techhome-2024-carousel .owl-nav button.owl-prev {
  left: 20px;
}

#techhome-2024-carousel .owl-nav button.owl-next {
  right: 20px;
}

#techhome-2024-carousel .owl-nav button:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: scale(1.1);
}

/* Dots del carousel 2024 */
#techhome-2024-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

#techhome-2024-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

#techhome-2024-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: rgba(46, 202, 106, 0.3);
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

#techhome-2024-carousel .owl-dots .owl-dot.active span,
#techhome-2024-carousel .owl-dots .owl-dot:hover span {
  background: #2eca6a;
  transform: scale(1.2);
}

/* Estilos para carousel de imágenes TECHHOMEBOT-2025 */
#techhome-2025-carousel {
  margin-bottom: 30px;
}

#techhome-2025-carousel .carousel-item-single {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#techhome-2025-carousel .carousel-item-single img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

#techhome-2025-carousel .carousel-item-single:hover img {
  transform: scale(1.05);
}

/* Navegación del carousel 2025 */
#techhome-2025-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
}

#techhome-2025-carousel .owl-nav button.owl-prev,
#techhome-2025-carousel .owl-nav button.owl-next {
  position: absolute;
  background: rgba(46, 202, 106, 0.9) !important;
  color: white !important;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
}

#techhome-2025-carousel .owl-nav button.owl-prev {
  left: 20px;
}

#techhome-2025-carousel .owl-nav button.owl-next {
  right: 20px;
}

#techhome-2025-carousel .owl-nav button:hover {
  background: rgba(46, 202, 106, 1) !important;
  transform: scale(1.1);
}

/* Dots del carousel 2025 */
#techhome-2025-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

#techhome-2025-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

#techhome-2025-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: rgba(46, 202, 106, 0.3);
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

#techhome-2025-carousel .owl-dots .owl-dot.active span,
#techhome-2025-carousel .owl-dots .owl-dot:hover span {
  background: #2eca6a;
  transform: scale(1.2);
}

/* Responsive para móviles - ambos carouseles 2024 y 2025 */
@media (max-width: 768px) {
  #techhome-2024-carousel .owl-nav button.owl-prev,
  #techhome-2024-carousel .owl-nav button.owl-next,
  #techhome-2025-carousel .owl-nav button.owl-prev,
  #techhome-2025-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #techhome-2024-carousel .owl-nav button.owl-prev,
  #techhome-2025-carousel .owl-nav button.owl-prev {
    left: 10px;
  }
  
  #techhome-2024-carousel .owl-nav button.owl-next,
  #techhome-2025-carousel .owl-nav button.owl-next {
    right: 10px;
  }
}

/* Mejoras sutiles para el modal de bienvenida - RESPONSIVE FIRST */
#myModal .modal-dialog {
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: 10px;
  max-width: 95%;
}

#myModal.show .modal-dialog {
  transform: scale(1);
}

#myModal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#myModal .modal-header {
  background: linear-gradient(135deg, #2eca6a 0%, #20a851 100%);
  color: white;
  border-bottom: none;
  padding: 15px 20px;
  position: relative;
}

#myModal .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

#myModal .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.3px;
  padding-right: 50px;
}

#myModal .close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  opacity: 0.9;
  font-size: 1.4rem;
  text-shadow: none;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  padding: 0;
  line-height: 1;
}

#myModal .close:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#myModal .modal-body {
  padding: 20px;
  background: #fafafa;
  position: relative;
}

#myModal .modal-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 202, 106, 0.3), transparent);
}

#myModal .modal-body img {
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
}

#myModal .modal-body img:hover {
  transform: scale(1.02);
}

#myModal .welcome-image-container {
  text-align: center;
  margin-bottom: 15px;
}

#myModal .card-body {
  padding: 0;
}

#myModal .card-title {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: center;
}

#myModal .card-text {
  color: #5a6c7d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: justify;
}

#myModal .modal-footer {
  background: #f8f9fa;
  border-top: 1px solid rgba(46, 202, 106, 0.1);
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

#myModal .modal-footer .btn {
  border-radius: 20px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  min-width: 120px;
}

#myModal .modal-footer .btn i {
  font-size: 0.9rem;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

#myModal .modal-footer .btn:hover i {
  transform: scale(1.2);
}

#myModal .modal-footer .btn::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;
}

#myModal .modal-footer .btn:hover::before {
  left: 100%;
}

#myModal .modal-footer .btn-success {
  background: linear-gradient(135deg, #2eca6a 0%, #20a851 100%);
  border-color: #2eca6a;
  box-shadow: 0 3px 12px rgba(46, 202, 106, 0.3);
}

#myModal .modal-footer .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 202, 106, 0.4);
  background: linear-gradient(135deg, #20a851 0%, #1e8e47 100%);
}

#myModal .modal-footer .btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-color: #3498db;
  box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
}

#myModal .modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

/* Estilos para elementos destacados */
#myModal .highlight-text {
  color: #2eca6a;
  font-weight: 700;
}

#myModal .year-highlight {
  background: linear-gradient(135deg, #2eca6a, #20a851);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.05em;
}

#myModal .brand-highlight {
  color: #2c3e50;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#myModal .intro-highlight {
  color: #2eca6a;
  font-weight: 600;
}

/* Animación de entrada para el modal */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

#myModal.show .modal-dialog {
  animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESPONSIVE BREAKPOINTS */

/* Tablets y pantallas medianas */
@media (min-width: 576px) {
  #myModal .modal-dialog {
    max-width: 500px;
    margin: 20px auto;
  }
  
  #myModal .modal-title {
    font-size: 1.3rem;
    padding-right: 55px;
  }
  
  #myModal .modal-body {
    padding: 25px;
  }
  
  #myModal .card-title {
    font-size: 1.2rem;
  }
  
  #myModal .card-text {
    font-size: 0.95rem;
  }
  
  #myModal .modal-footer .btn {
    font-size: 0.8rem;
    padding: 10px 18px;
    min-width: 130px;
  }
}

/* Pantallas grandes */
@media (min-width: 768px) {
  #myModal .modal-dialog {
    max-width: 600px;
  }
  
  #myModal .modal-title {
    font-size: 1.4rem;
  }
  
  #myModal .modal-body {
    padding: 30px;
  }
  
  #myModal .card-title {
    font-size: 1.3rem;
  }
  
  #myModal .card-text {
    font-size: 1rem;
  }
  
  #myModal .modal-footer {
    padding: 20px 30px;
    gap: 12px;
  }
  
  #myModal .modal-footer .btn {
    font-size: 0.85rem;
    padding: 12px 20px;
    min-width: 140px;
  }
}

/* Pantallas extra grandes */
@media (min-width: 992px) {
  #myModal .modal-dialog {
    max-width: 650px;
  }
  
  #myModal .modal-header {
    padding: 20px 30px;
  }
  
  #myModal .close {
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
}

/* Móviles pequeños */
@media (max-width: 575px) {
  #myModal .modal-dialog {
    margin: 5px;
    max-width: calc(100% - 10px);
  }
  
  #myModal .modal-title {
    font-size: 1rem;
    letter-spacing: 0.2px;
  }
  
  #myModal .modal-header {
    padding: 12px 15px;
  }
  
  #myModal .modal-body {
    padding: 15px;
  }
  
  #myModal .card-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  #myModal .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  #myModal .modal-footer {
    padding: 12px 15px;
    flex-direction: column;
    gap: 6px;
  }
  
  #myModal .modal-footer .btn {
    width: 100%;
    font-size: 0.7rem;
    padding: 10px 15px;
    min-width: auto;
  }
  
  #myModal .close {
    width: 25px;
    height: 25px;
    font-size: 1.2rem;
    right: 10px;
  }
}


/* ======================================
//--//-->   ESTILOS ESPECÍFICOS PARA CAROUSEL DE NOTICIAS
====================================== */

#news-carousel .carousel-item-n {
  margin: 0 10px; /* Espaciado entre tarjetas */
}

#news-carousel .carousel-item-n .card-box-d {
  height: 400px !important; /* Tarjetas tamaño normal */
  min-height: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* Contenedor de imagen que SIEMPRE ocupa toda la tarjeta como fondo */
#news-carousel .card-box-d .card-img-d {
  height: 100% !important; /* Imagen SIEMPRE ocupa toda la tarjeta */
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  background: #f8f9fa;
  /* SIN transición de altura - la imagen se mantiene fija */
}

/* Imagen perfectamente centrada y ajustada */
#news-carousel .card-box-d .card-img-d .img-d {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Mantiene proporción sin distorsión */
  object-position: center center !important; /* Centra perfectamente */
  transition: transform 0.3s ease;
}

/* Overlay específico para noticias - Con fondo verde transparente como antes */
#news-carousel .card-box-d .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(46, 202, 106, 0.9) 100%); /* Gradiente verde como antes */
  opacity: 0; /* Invisible por defecto */
  transition: all 0.4s ease;
}

/* Contenido de la tarjeta - aparece sobre toda la tarjeta con fondo verde adicional */
#news-carousel .card-box-d .card-overlay-hover {
  padding: 25px 20px;
  position: absolute;
  top: 0; /* Empieza desde arriba */
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%; /* Ocupa TODA la tarjeta */
  background: rgba(46, 202, 106, 0.95); /* Fondo verde como antes */
  transform: translateY(100%); /* Oculto abajo inicialmente */
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrado verticalmente */
  color: white;
  z-index: 2; /* Encima del overlay */
}

/* Título estilizado para estado hover - con colores del ejemplo */
#news-carousel .card-box-d .title-d {
  font-size: 1.1rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px 0 !important;
  color: #2d3748; /* Negro/gris oscuro como en el ejemplo */
  text-align: center;
}

#news-carousel .card-box-d .title-d a {
  color: #2d3748; /* Negro/gris oscuro como en el ejemplo */
  text-decoration: none;
}

/* Descripción para hover - con colores del ejemplo */
#news-carousel .card-box-d .content-d {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4a5568; /* Gris medio como en el ejemplo */
  text-align: center;
  margin: 10px 0;
  flex-grow: 1;
  padding: 0 10px;
}

/* Información de agentes para hover - con colores del ejemplo */
#news-carousel .card-box-d .info-agents {
  font-size: 0.8rem;
  text-align: center;
  margin: 10px 0;
  color: #2d3748; /* Negro/gris oscuro como en el ejemplo */
}

#news-carousel .card-box-d .info-agents p {
  margin: 0.3rem 0;
  color: #2d3748; /* Negro/gris oscuro como en el ejemplo */
}

/* Etiquetas específicas para destacar */
#news-carousel .card-box-d .info-agents p strong {
  color: #1a202c; /* Negro más intenso para las etiquetas */
}

/* Footer para hover - iconos con colores del ejemplo */
#news-carousel .card-box-d .card-footer-d {
  position: relative;
  bottom: auto;
  left: auto;
  width: auto;
  text-align: center;
  margin-top: 15px;
}

#news-carousel .card-box-d .socials-footer ul {
  justify-content: center !important;
  margin: 0;
  padding: 0;
  display: flex !important;
  align-items: center;
}

#news-carousel .card-box-d .list-inline-item {
  margin: 0 10px;
}

#news-carousel .card-box-d .list-inline-item a {
  color: #2d3748; /* Negro/gris oscuro para iconos como en el ejemplo */
  transition: color 0.3s ease;
  font-size: 1rem;
  padding: 6px;
  display: inline-block;
}

/* Hover en iconos individuales */
#news-carousel .card-box-d .list-inline-item a:hover {
  color: #1a202c; /* Negro más intenso al hover */
}

/* Efectos hover específicos para noticias */
#news-carousel .card-box-d:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Al hacer hover - la imagen se mantiene igual (NO sube) */
#news-carousel .card-box-d:hover .card-img-d {
  height: 100% !important; /* La imagen SIEMPRE ocupa 100% */
  /* Sin cambios de posición */
}

/* Al hacer hover - el overlay verde aparece sobre la imagen */
#news-carousel .card-box-d:hover .card-overlay {
  opacity: 1; /* Aparece el fondo verde semi-transparente */
}

/* Al hacer hover - la imagen hace zoom sutil (se ve a través del overlay) */
#news-carousel .card-box-d:hover .img-d {
  transform: scale(1.05);
}

/* Al hacer hover - el contenido sube desde abajo cubriendo toda la tarjeta */
#news-carousel .card-box-d:hover .card-overlay-hover {
  transform: translateY(0); /* Sube para mostrarse en toda la tarjeta */
}

/* Estados hover - con colores del ejemplo (negro/gris oscuro) */
#news-carousel .card-box-d:hover .title-d,
#news-carousel .card-box-d:hover .title-d a,
#news-carousel .card-box-d:hover .content-d,
#news-carousel .card-box-d:hover .info-agents,
#news-carousel .card-box-d:hover .info-agents p {
  color: #2d3748 !important; /* Negro/gris oscuro como en el ejemplo */
  text-shadow: none; /* Sin sombra ya que el fondo verde contrasta bien */
}

#news-carousel .card-box-d:hover .list-inline-item a {
  color: #2d3748 !important; /* Negro/gris oscuro para iconos */
  text-shadow: none;
}

/* Hover adicional para iconos individuales */
#news-carousel .card-box-d:hover .list-inline-item a:hover {
  color: #1a202c !important; /* Negro más intenso al hacer hover individual */
}

/* Mantener el color intenso para las etiquetas strong */
#news-carousel .card-box-d:hover .info-agents p strong {
  color: #1a202c !important; 
}

/* Responsive específico para carousel de noticias */
@media (max-width: 992px) {
  #news-carousel .carousel-item-n .card-box-d {
    height: 380px !important;
  }
  
  #news-carousel .card-box-d .card-img-d {
    height: 100% !important; /* Imagen SIEMPRE ocupa toda la tarjeta */
  }
  
  #news-carousel .card-box-d:hover .card-img-d {
    height: 100% !important; /* Al hover también 100% */
  }
  
  #news-carousel .card-box-d .card-overlay-hover {
    height: 100%; /* Contenido ocupa toda la tarjeta */
    padding: 20px 15px;
  }
}

@media (max-width: 768px) {
  #news-carousel .carousel-item-n .card-box-d {
    height: 350px !important;
    margin: 0 5px;
  }
  
  #news-carousel .card-box-d .card-img-d {
    height: 100% !important; /* Imagen SIEMPRE ocupa toda la tarjeta */
  }
  
  #news-carousel .card-box-d:hover .card-img-d {
    height: 100% !important; /* Al hover también 100% */
  }
  
  #news-carousel .card-box-d .card-overlay-hover {
    height: 100%; /* Contenido ocupa toda la tarjeta */
    padding: 18px 12px;
  }
  
  #news-carousel .card-box-d .title-d {
    font-size: 1rem !important;
  }
  
  #news-carousel .card-box-d .content-d {
    font-size: 0.85rem;
  }
  
  #news-carousel .card-box-d .list-inline-item {
    margin: 0 8px;
  }
}

@media (max-width: 576px) {
  #news-carousel .carousel-item-n .card-box-d {
    height: 320px !important;
  }
  
  #news-carousel .card-box-d .card-img-d {
    height: 100% !important; /* Imagen SIEMPRE ocupa toda la tarjeta */
  }
  
  #news-carousel .card-box-d:hover .card-img-d {
    height: 100% !important; /* Al hover también 100% */
  }
  
  #news-carousel .card-box-d .card-overlay-hover {
    height: 100%; /* Contenido ocupa toda la tarjeta */
    padding: 15px 10px;
  }
  
  #news-carousel .card-box-d .title-d {
    font-size: 0.9rem !important;
  }
  
  #news-carousel .card-box-d .content-d {
    font-size: 0.8rem;
    padding: 0 5px;
  }
  
  #news-carousel .card-box-d .list-inline-item {
    margin: 0 6px;
  }
  
  #news-carousel .card-box-d .list-inline-item a {
    font-size: 0.9rem;
    padding: 4px;
  }
}


/*======================================
//--//-->   MODALES COLEGIOS 
======================================*/

/* Modal overlay */
.modal-colegio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: center; /* Centrar verticalmente con espacio */
  justify-content: center;
  padding: 15px 0; /* 15px arriba y abajo */
  overflow: hidden;
}

.modal-colegio-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contenedor principal */
.modal-colegio-container {
  position: relative;
  transform: scale(0.9);
  max-width: 100%; /* Ancho completo */
  width: 100%; /* Ancho completo */
  height: calc(100vh - 30px); /* Altura completa menos 30px (15px arriba + 15px abajo) */
  max-height: calc(100vh - 30px);
  transition: all 0.4s ease;
}

.modal-colegio-overlay.active .modal-colegio-container {
  transform: scale(1);
}

/* Tarjeta principal */
.modal-colegio-card {
  background: #fff;
  border-radius: 8px; /* Agregar border-radius sutil */
  box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
  height: 100%; /* Altura completa del contenedor */
}

/* Header con imagen */
.modal-colegio-header {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.modal-colegio-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.modal-header-title {
  position: relative;
  z-index: 2;
  padding: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: #fff;
}

/* Cuerpo del modal */
.modal-colegio-body {
  padding: 30px;
}

.modal-colegio-description {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Info box */
.modal-colegio-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #2eca6a;
}

.modal-colegio-info h4 {
  color: #000000;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-colegio-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-colegio-info li {
  padding: 5px 0;
  color: #555555;
  position: relative;
  padding-left: 20px;
}

.modal-colegio-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2eca6a;
  font-weight: bold;
}

/* Botones */
.modal-colegio-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botón cerrar */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* Hover para footer - SIN FONDO */
.colegio-link {
  transition: all 0.3s ease;
  display: block;
  border-radius: 10px;
}

.colegio-link:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.colegio-item {
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 10px;
}

.colegio-item img {
  transition: all 0.3s ease;
}

.colegio-link:hover .colegio-item img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-colegio-container {
    max-width: 95%;
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-colegio-header {
    height: 140px;
  }
  
  .modal-header-title {
    font-size: 1.4rem;
    padding: 15px;
  }
  
  .modal-colegio-body {
    padding: 20px;
  }
  
  .modal-colegio-buttons {
    flex-direction: column;
  }
  
  .modal-colegio-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Prevenir scroll del body cuando modal está abierto */
body.modal-open {
  overflow: hidden;
}

/*======================================
//--//-->   RESPONSIVE IMPROVEMENTS
======================================*/

/* Mejoras responsivas para footer y contenido móvil */
@media (max-width: 768px) {
  
  /* Footer - Colegios Asociados */
  .section-footer .footer-column {
    margin-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .colegio-item {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 15px 10px !important;
  }
  
  .colegio-item img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .colegio-item h3 {
    font-size: 1.1rem !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  
  /* Footer - Secciones principales */
  .section-footer .footer-column-left,
  .section-footer .footer-column-center {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .section-footer .widget-a {
    padding: 0 5px;
  }
  
  .section-footer .w-text-a {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Footer - Navegación */
  footer .nav-footer ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  footer .nav-footer .list-inline-item {
    display: block;
    margin: 5px 0;
  }
  
  footer .nav-footer a {
    font-size: 1rem;
    padding: 8px 0;
    display: block;
  }
  
  /* Footer - Redes sociales */
  footer .socials-a ul {
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
  }
  
  footer .socials-a .list-inline-item {
    margin: 0 !important;
  }
  
  footer .socials-a a {
    font-size: 1.8rem;
    padding: 10px;
    display: block;
  }
  
  /* Footer - Copyright */
  footer .copyright-footer {
    text-align: center;
    padding: 15px 10px;
  }
  
  footer .copyright-footer p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
  }
}

@media (max-width: 576px) {
  
  /* Footer más compacto en móviles muy pequeños */
  .section-footer {
    padding-top: 30px;
    padding-bottom: 15px;
    margin-top: 40px;
  }
  
  .colegio-item {
    padding: 12px 5px !important;
  }
  
  .colegio-item img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .colegio-item h3 {
    font-size: 1rem !important;
  }
  
  .section-footer .w-title-a {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .section-footer .w-text-a {
    font-size: 0.85rem;
  }
  
  /* Contacto más legible */
  .section-footer ul li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  
  /* WhatsApp button responsive */
  .whatsapp-btn {
    bottom: 15px;
    right: 15px;
    padding: 20px;
    font-size: 18px;
  }
}

/* Mejoras para tablets */
@media (min-width: 769px) and (max-width: 991px) {
  
  .colegio-item {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px !important;
  }
  
  .colegio-item img {
    width: 70px !important;
    height: 70px !important;
  }
  
  .colegio-item h3 {
    font-size: 1.2rem !important;
    text-align: center !important;
  }
}

/* Mejoras generales para contenido responsivo */
@media (max-width: 768px) {
  
  /* Textos más legibles */
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  
  /* Contenedores con mejor espaciado */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Links más accesibles en móvil */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Botones más grandes para touch */
  .btn {
    padding: 12px 20px;
    font-size: 16px;
    min-height: 44px;
  }
}

/* Mejoras para navegación móvil */
@media (max-width: 991px) {
  
  /* Asegurar que la navegación sea accesible */
  .navbar-nav .nav-link {
    padding: 12px 15px;
    font-size: 16px;
    text-align: center;
  }
  
  .navbar-toggler {
    padding: 8px 12px;
    font-size: 18px;
    border: 1px solid #ccc;
  }
  
  /* Dropdown menus más accesibles */
  .dropdown-menu {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .dropdown-item {
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.4;
  }
  
  .dropdown-item:hover {
    background-color: #f8f9fa;
  }
}

/* Mejoras adicionales para móviles pequeños */
@media (max-width: 576px) {
  
  /* Navegación más compacta */
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 15px;
  }
  
  .dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  /* Breadcrumb responsivo */
  .breadcrumb {
    font-size: 12px;
    padding: 8px 0;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.3rem;
    padding-left: 0.3rem;
  }
  
  /* Títulos y contenido */
  .title-single-box h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .title-single-box .icon-title {
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 8px;
  }
  
  .intro-single {
    padding: 30px 0;
  }
  
  .intro-single .color-text-a {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: block;
  }
}

/* Mejoras para forms y inputs */
@media (max-width: 768px) {
  
  .form-a .form-group {
    margin-bottom: 20px;
  }
  
  .form-a .form-control {
    padding: 12px 15px;
    font-size: 16px; /* Evita zoom en iOS */
    border-radius: 6px;
  }
  
  .form-a textarea.form-control {
    min-height: 120px;
  }
  
  .form-a .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
  }
}

/* Mejoras para cards y secciones */
@media (max-width: 768px) {
  
  .section-property {
    padding: 30px 0;
  }
  
  .card-box-a {
    margin-bottom: 25px;
  }
  
  .card-box-a .card-header-a {
    padding: 15px;
  }
  
  .card-box-a .card-body-a {
    padding: 15px;
  }
  
  .card-box-a .card-title-a {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  /* Mejora para imágenes */
  .card-img-a img,
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Espaciado general */
  .section {
    padding: 30px 0;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
}

/* Mejoras para tablas responsivas */
@media (max-width: 768px) {
  
  table {
    font-size: 14px;
  }
  
  .table-responsive {
    border: none;
  }
  
  .table th,
  .table td {
    padding: 8px;
    white-space: nowrap;
  }
}

/* Mejoras para videos y contenido multimedia */
@media (max-width: 768px) {
  
  .embed-responsive {
    margin-bottom: 20px;
  }
  
  iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ajuste para videos de YouTube */
  .embed-responsive-16by9::before {
    padding-top: 56.25%;
  }
}

/* Mejoras de accesibilidad */
@media (max-width: 768px) {
  
  /* Focus más visible */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid #2eca6a;
    outline-offset: 2px;
  }
  
  /* Texto más legible */
  p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Evitar scroll horizontal */
  html, body {
    overflow-x: hidden;
  }
  
  .container-fluid,
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/*======================================
//--//-->   FOOTER RESPONSIVE IMPROVEMENTS
======================================*/

/* Footer mobile improvements */
@media (max-width: 768px) {
  
  .section-footer {
    padding: 40px 0 20px 0;
  }
  
  .section-footer .row [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .section-footer h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .section-footer p,
  .section-footer li {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }
  
  .section-footer ul {
    padding-left: 0;
    text-align: center;
  }
  
  .section-footer .list-ico {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .socials {
    justify-content: center !important;
    margin-top: 20px;
  }
  
  .socials li {
    margin: 0 10px;
  }
  
  .copyright {
    text-align: center !important;
    font-size: 12px;
    padding: 20px 0;
  }
}