

/* ==========================================
   BT – SECTION WHITE
   ========================================== */
.bt-section-white{
  background-color: #ffffff;
  padding: 90px 40px;
  width: 100%;
  box-sizing: border-box;
}

.bt-section-container{
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.bt-section-title{
  font-size: 42px;
  font-weight: 600;
  color: rgb(27 96 137);
  margin-bottom: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bt-section-subtitle{
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  max-width: 820px;
  margin: 0 auto;
  opacity: 0.95;
}
/* ==========================================
   BT – SECTION BLUE
   ========================================== */
.bt-section-blue{
  background: linear-gradient(180deg, #0b3a5d 0%, #06253f 100%);
  padding: 90px 40px;
  width: 100%;
  box-sizing: border-box;
}

.bt-section-title-light{
  color: #ffffff !important;
}

.bt-section-subtitle-light{
  color: rgba(255,255,255,0.9);
}


/* SECCIÓN BLANCA SUPERIOR (ANTES DEL CARRUSEL) */
.bt-white-section-top {
  background-color: #ffffff !important;
  padding:20px 40px;
  width: 100%;
  box-sizing: border-box;
}

.bt-white-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.bt-white-title {
	margin-top:20px;
  font-size: 42px;
  font-weight: 600;
  color: rgb(27 96 137) !important;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bt-white-description {
  font-size: 18px;
  color: #333333 !important;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

/* CONTENEDOR DEL CARRUSEL (CENTRO) */
.bt-carousel-wrapper {
  background-color: #f8f9fa;
  padding: 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

.bt-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bt-carousel-placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  padding: 80px 20px;
  text-align: center;
  color: #666;
  font-size: 18px;
  border: 2px dashed #d1d9e6;
}

.bt-carousel-placeholder h3 {
  color: rgb(27 96 137);
  margin-bottom: 15px;
  font-size: 24px;
}

/* SECCIÓN BLANCA INFERIOR (DESPUÉS DEL CARRUSEL) */
.bt-white-section-bottom {
  background-color: #ffffff !important;
  padding: 80px 40px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #eaeaea;
}

.bt-white-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.bt-white-column {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bt-white-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.bt-column-title {
  font-size: 24px;
  font-weight: 600;
  color: rgb(27 96 137) !important;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(27, 96, 137, 0.1);
}

.bt-column-text {
  font-size: 16px;
  color: #555 !important;
  line-height: 1.6;
}

/* ==========================================
   NUEVA SECCIÓN AZUL CON DOS COLUMNAS
   ========================================== */
.bt-blue-section {
  background: linear-gradient(180deg, #0b3a5d 0%, #06253f 100%)!important;
  padding: 80px 40px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Efecto de onda decorativa opcional */
.bt-blue-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.bt-blue-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.bt-blue-column-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bt-blue-column-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.bt-blue-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.bt-blue-column-image:hover .bt-blue-image {
  transform: scale(1.05);
}

.bt-blue-column-text {
  flex: 1;
  min-width: 300px;
  color: white;
}

.bt-blue-title {
  font-size: 36px;
  font-weight: 600;
  color: white !important;
  margin-bottom: 20px;
  line-height: 1.3;
}

.bt-blue-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 400;
}

.bt-blue-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.7;
  margin-bottom: 25px;
}

.bt-blue-features {
  list-style-type: none;
  padding: 0;
  margin: 30px 0;
}

.bt-blue-features li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.bt-blue-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
  font-size: 18px;
}

.bt-blue-button {
  display: inline-block;
  background-color: white;
  color: rgb(27 96 137) !important;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid white;
  margin-top: 10px;
}

.bt-blue-button:hover {
  background-color: transparent;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .bt-white-section-top,
  .bt-white-section-bottom,
  .bt-blue-section { padding: 60px 30px; }

  .bt-white-title { font-size: 36px; }
  .bt-blue-title { font-size: 32px; }
  .bt-white-grid,
  .bt-blue-container { gap: 40px; }
}

@media (max-width: 768px) {
  .bt-white-section-top,
  .bt-white-section-bottom,
  .bt-blue-section { padding: 50px 20px; }

  .bt-white-title { font-size: 32px; }
  .bt-white-description { font-size: 16px; }

  .bt-carousel-container { padding: 30px 20px; }
  .bt-carousel-placeholder { padding: 60px 15px; }

  .bt-white-grid { grid-template-columns: 1fr; gap: 25px; }
  .bt-blue-container { flex-direction: column; }

  .bt-blue-title { font-size: 28px; }
  .bt-blue-subtitle { font-size: 17px; }
}

@media (max-width: 480px) {
  .bt-white-section-top,
  .bt-white-section-bottom,
  .bt-blue-section { padding: 40px 15px; }

  .bt-white-title { font-size: 28px; }
  .bt-carousel-wrapper { padding: 40px 15px; }
  .bt-blue-title { font-size: 24px; }

  .bt-blue-column-image,
  .bt-blue-column-text { min-width: 100%; }
}

/* ==========================================
   ESTILOS PARA SUPERPONER EL CARRUSEL
   ========================================== */
.superposition-container { position: relative; }

.bt-white-section-top.adjusted-for-overlap {
  padding-bottom: 40px !important;
  position: relative;
  z-index: 1;
}

.carousel-overlap-wrapper {
  position: relative;
  margin: -60px 0;
  z-index: 10;
  width: 100%;
}

.bt-blue-section.with-overlap {
  padding-top: 200px !important;
  margin-top: -190px !important;
  position: relative;
  z-index: 1;
}

.carousel-container-overlap {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .bt-white-section-top.adjusted-for-overlap { padding-bottom: 30px !important; }
  .bt-blue-section.with-overlap { padding-top: 80px !important; margin-top: -60px !important; }
  .carousel-overlap-wrapper { margin: -50px 0; }
}

@media (max-width: 768px) {
  .bt-white-section-top.adjusted-for-overlap { padding-bottom: 20px !important; }
  .bt-blue-section.with-overlap { padding-top: 70px !important; margin-top: -40px !important; }
  .carousel-overlap-wrapper { margin: -30px 0; }
  .carousel-container-overlap { padding: 30px 20px; }
  
    .bt-section-white,
  .bt-section-blue{
    padding: 70px 20px;
  }

  .bt-section-title{
    font-size: 32px;
  }

  .bt-section-subtitle{
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .bt-white-section-top.adjusted-for-overlap { padding-bottom: 10px !important; }
  .bt-blue-section.with-overlap { padding-top: 60px !important; margin-top: -30px !important; }
  .carousel-overlap-wrapper { margin: -20px 0; }
  .carousel-container-overlap { padding: 25px 15px; }
}




/* ===== CARRUSEL ===== */
.center-carousel-section{
  overflow: visible;
  padding: 40px 0;
  width: 100%;
  position: relative;
}

.center-carousel{
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  overflow: visible;
  box-sizing: border-box;
}

/* El padding lateral ya NO va aquí */
.center-viewport{
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  width: calc(100% - 112px);   /* 56px + 56px */
  margin: 0 auto;              /* centra el viewport */
  transform: translateZ(0);
  clip-path: inset(0);         /* ahora sí funciona perfecto */
}

/* Track */
.center-track{
  display: flex;
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform 0.5s ease;
  gap: 20px; /* JS lo ajusta */
}

/* Slide: nunca shrink */
.center-slide{
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* BOTONES */
.center-arrow{
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  position: absolute;
  top: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* Flechas mitad afuera / mitad adentro */
.center-arrow.left{
  left: 56px;
  transform: translate(-50%, -50%);
}
.center-arrow.right{
  right: 56px;
  transform: translate(50%, -50%);
}

/* Slides visual */
.slide-container{
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.slide-container > img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.image-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);  /* ajusta 0.28–0.42 si quieres */
  z-index: 1;
  border-radius: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.center-slide:hover .image-overlay{
  opacity: 0;
}
.logo-overlay-top{
  position: absolute;
  top: 20px;
  left: 50px;
  right: 50px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  pointer-events: none;
}
/* ==========================================
   OVERLAY INFERIOR PARA EL CARRUSEL
   ========================================== */
.logo-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgb(195 34 34 / 25%); /* Fondo semitransparente */
  padding: 12px 0; /* Altura de la banda */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em; /* Ajustado a la imagen */
  font-family: 'Open Sans', sans-serif;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none; /* Para no interferir con clics */
  backdrop-filter: blur(2px); /* Opcional: un poco de desenfoque */
}

/* Si se quiere un texto específico dentro */
.logo-overlay-bottom span {
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-overlay-bottom {
    font-size: 14px;
    padding: 10px 0;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 480px) {
  .logo-overlay-bottom {
    font-size: 12px;
    padding: 8px 0;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 480px) {
  .logo-overlay-bottom {
    left: 20px;
    right: 20px;
    bottom: 10px;
    font-size: 12px;
  }
}
/* Responsive */
@media (max-width: 768px){
  .center-viewport{
    width: calc(100% - 88px); /* 44 + 44 */
  }
  .center-arrow{ width: 40px; height: 40px; font-size: 20px; }
  .center-arrow.left{ left: 44px; transform: translate(-45%, -50%); }
  .center-arrow.right{ right: 44px; transform: translate(45%, -50%); }
  .slide-container > img{ height: 250px; }
}

@media (max-width: 480px){
  .center-viewport{
    width: calc(100% - 72px); /* 36 + 36 */
  }
  .center-arrow.left{ left: 36px; }
  .center-arrow.right{ right: 36px; }
}





/* ==========================================
   BT – COMMUNITIES GRID (3 cols)
   ========================================== */
.bt-communities{
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
  padding: 80px 0; /* padding vertical full-width */
}

.bt-communities-container{
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.bt-communities-head{
  text-align: center;
}

.bt-communities-title{
  margin: 0;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #0b223f;
  text-transform: uppercase;
}

.bt-communities-subtitle{
  margin: 10px 0 0;
  font-size: 16px;
  letter-spacing: 0.35em;
  color: #0b223f;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Barra FULL WIDTH */
.bt-communities-bar{
  margin-top: 22px;
  width: 100%;
  background: #0b223f;
}

.bt-communities-bar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;       /* coincide con contenedor */
  box-sizing: border-box;
}

.bt-communities-bar-note{
  text-align: center;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Grid */
.bt-communities-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  align-items: start;
}

/* Col */
.bt-communities-col{
  display: grid;
  gap: 14px;
  justify-items: center; /* centra tarjetas */
}

/* Título de columna dentro del grid */
.bt-communities-col-title{
    width: 100%;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(11, 34, 63, 0.14);
    background: #0b223f;
}

/* Cards container (permite ancho elegante) */
.bt-communities-col-cards{
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;  /* cards centradas */
}

/* Card */
.bt-card{
  width: min(100%, 500px);       /* ancho elegante */
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.bt-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.bt-card-media{
  position: relative;
  height: 135px;
  overflow: hidden;
}

.bt-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.bt-card:hover .bt-card-media img{
  transform: scale(1.07);
}

.bt-card-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* En hover: overlay se quita (o casi) */
.bt-card:hover .bt-card-overlay{
  opacity: 0;
}

/* texto sobre imagen */
.bt-card-body{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  text-align: center;
  color: #fff;
  transition: transform .28s ease;
}
.bt-card-body{
  transition: transform .28s ease;
}

.bt-card:hover .bt-card-body{
  transform: translateY(-2px);
}

.bt-card-title{
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.bt-card-text{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.92;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* Responsive */
@media (max-width: 1024px){
  .bt-communities{ padding: 70px 0; }
  .bt-communities-container{ padding: 0 26px; }
  .bt-communities-bar-inner{ padding: 14px 26px; }

  .bt-communities-grid{
    grid-template-columns: 1fr; /* cada columna se apila */
    gap: 32px;
  }

  .bt-card{
    width: min(100%, 520px);
  }

  .bt-card-media{ height: 170px; }
}

@media (max-width: 480px){
  .bt-communities-container{ padding: 0 16px; }
  .bt-communities-bar-inner{ padding: 14px 16px; }

  .bt-communities-title{
    font-size: 34px;
    letter-spacing: 0.18em;
  }
  .bt-communities-subtitle{ letter-spacing: 0.25em; }

  .bt-card{ width: 100%; }
}






.rl-hero-wrap, 
.bt-white-section-top,
 .carousel-overlap-wrapper,
 .bt-blue-section, 
.bt-communities,bt-section, .bt-section-blue
{ 
width: 100vw!important; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }





/* ==========================================
   AJUSTES TIPOGRÁFICOS SOLICITADOS
   ========================================== */

/* Títulos: Cormorant Garamond con interletrado 140 (0.14em) */
.bt-section-title,
.bt-white-title,
.bt-blue-title,
.bt-column-title,
.bt-communities-title,
.rl-main-title {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.14em; /* Interletrado 140 */
    line-height: 1.2; /* Mantenemos el line-height actual */
}

/* Subtítulos: Open Sans con interletrado 205 (0.205em) */
.bt-section-subtitle,
.bt-white-description,
.bt-blue-subtitle,
.bt-blue-description,
.bt-communities-subtitle,
.bt-blue-features li,
.rl-description {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.0em; 
    line-height: 1.7; /* Mantenemos el line-height actual */
}

/* Cuerpo de Texto: Open Sans con interletrado 2 (0.02em) e interlineado 1.4 */
body,
p:not(.bt-white-description):not(.bt-blue-description):not(.bt-section-subtitle):not(.bt-blue-subtitle):not(.rl-description),
.bt-column-text,
.bt-blue-description,
.bt-card-text,
.bt-blue-features li {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.02em; /* Interletrado 2 */
    line-height: 1.4 !important; /* Interlineado 1.4 */
}

/* Ajustes específicos para las tarjetas de comunidades */
.bt-card-title {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.14em; /* Interletrado 140 */
}

.bt-card-text {
    letter-spacing: 0.02em; /* Interletrado 2 para texto de tarjetas */
}

/* Ajustes para los botones */
.bt-blue-button {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.02em; /* Interletrado 2 */
}

/* Ajustes para los elementos de contacto en el hero */
.rl-contact-pill {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.02em; /* Interletrado 2 */
}

/* Ajuste específico para el título del hero */
.rl-main-title {
    letter-spacing: 0.14em; /* Interletrado 140 */
    font-weight: 600; /* Mantener el peso semi-bold */
}

/* Ajuste para la descripción del hero */
.rl-description {
    letter-spacing: 0.205em; /* Interletrado 205 */
    font-weight: 400;
}

/* Ajustes responsivos para interletrado en móviles */
@media (max-width: 768px) {
    .rl-main-title {
        letter-spacing: 0.1em; /* Reducir ligeramente en móviles */
    }
    
    .rl-description {
        letter-spacing: 0.15em; /* Reducir ligeramente en móviles */
    }
    
    .bt-section-title,
    .bt-white-title,
    .bt-blue-title {
        letter-spacing: 0.1em; /* Reducir ligeramente en móviles */
    }
}

/* Asegurar que todas las clases de subtítulos tengan el mismo interletrado */
.bt-section-subtitle.bt-section-subtitle-light {
    letter-spacing: 0.205em !important;
}

/* Ajuste para el texto dentro del carrusel */
.logo-overlay-top .text-logo {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.14em; /* Interletrado 140 */
	text-transform: uppercase;
}

/* Corrección para elementos específicos que no deben heredar estos estilos */
.bt-communities-bar-note {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.22em; /* Mantener su interletrado original */
    line-height: normal; /* Mantener line-height original */
}

.bt-communities-col-title {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.22em; /* Mantener su interletrado original */
    line-height: normal; /* Mantener line-height original */
}

