html {
  /* Evita scroll horizontal que desplazaría el header fijo (right: 0) */
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

header {
  align-items: center;
  width: 100%;
  background-size: cover;
  background-position: center;
  padding: 10px 16px;
  /* Posicionamiento fijo propio — NO usar clase fixed-top de Bootstrap
     para evitar que ScrollBarHelper añada padding-right inline al abrir modales */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: 60px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

/* ── Mobile-first: 2 filas por defecto (con !important para vencer Bootstrap y FOUC) ── */
#main-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 6px 16px !important;
}

.header-logo {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 4px 0 !important;
  box-sizing: border-box;
}

.header-actions {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  border-top: 1px solid #f0e9f1;
  padding: 5px 0 3px !important;
  box-sizing: border-box;
}

/* ── Desktop (≥769px): grid de 3 columnas ── */
@media (min-width: 769px) {
  #main-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 16px !important;
  }

  .header-logo {
    width: auto !important;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  .header-actions {
    width: auto !important;
    justify-content: flex-end !important;
    border-top: none;
    padding: 0 !important;
  }
}

/* ── Padding-top main: móvil 2 filas por defecto ── */
main {
  width: 100%;
  min-height: auto;
  padding-top: 108px !important;
  background-color: #F2EBF3;
}

main.container,
main.container-fluid {
  padding-top: 108px !important;
}

/* Desktop: header de 1 fila */
@media (min-width: 769px) {
  main {
    padding-top: 62px !important;
  }

  main.container,
  main.container-fluid {
    padding-top: 65px !important;
  }
}

footer {
  display: block;
}

.footer-social-networks {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  font-size: 20px;

  ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;        
    gap: 1rem;               
  }

  li {
    display: flex;         
  }

  svg {
    color: #1a2e22;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
  }

  a:hover svg {
    color: #63C099;          
  }
}

.container-crebi {
  width: 100%;
}

.centrar-horizontal-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  padding: 2rem;
  text-align: center;     
  box-sizing: border-box;
}

.centrar-boton{
  display: flex;
  justify-content: center;
  align-items: center; 
  padding: 0.5rem;
  text-align: center;     
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn{
  width: auto;
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.btn-primary {
  background-color: #846584;
  border-color: #846584;
  color: white !important;
  --bs-btn-active-bg: #846584 !important;
  --bs-btn-active-border-color: #846584 !important;
  --bs-btn-disabled-border-color: #846584 !important;
  --bs-btn-disabled-bg: #846584 !important;
}

.btn-secondary {
  background-color: #54b48c;
  border-color: #54b48c;
  color: white !important;
  --bs-btn-active-bg: #32ce8d !important;
  --bs-btn-active-border-color: #32ce8d !important;
}

.btn-primary:hover {
  background-color: #aa5795;
  border-color: #aa5795;
}

.btn-secondary:hover {
  background-color: #32ce8d;
  border-color: #32ce8d;
}

.btn-solicitar-asesoria {
  background-color: #9b6391;
  border: 2px solid #9b6391;
  color: #fff !important;
  font-weight: 600;
  font-size: .85rem;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  transition: background-color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.btn-solicitar-asesoria:hover {
  background-color: #9b6391;
  border-color: #9b6391;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Versión compacta para móvil */
.btn-solicitar-asesoria-sm {
  font-size: .78rem;
  padding: .3rem .75rem;
}

/* Login desktop — ghost verde para diferenciarse del fondo blanco */
.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .84rem;
  font-weight: 600;
  color: #54b48c;
  text-decoration: none;
  padding: .35rem .85rem;
  border-radius: 50px;
  border: 1.5px solid #54b48c;
  background: transparent;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.btn-header-login:hover {
  background: #54b48c;
  color: #fff;
}

/* Botón Iniciar — solo móvil, compacto */
.btn-iniciar {
  background-color: #aa5795;
  border: 2px solid #aa5795;
  color: #fff !important;
  font-weight: 600;
  font-size: .78rem;
  padding: .3rem .75rem;
  border-radius: 50px;
  transition: background-color .2s, border-color .2s;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-block;
}

/* Link Publicar móvil */
.header-mobile-link {
  font-size: .85rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}
.header-mobile-link:hover {
  color: #9b6391;
}

/* Botón de menú/hamburger en el header */
.header-menu-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.twoBtn {
  display: flex;
  gap: 20px;
}

/*Eliminar flecha del efecto acordeón*/
.accordion-button::after {
  display: none !important;
}

/*Evita que el modal en pantallas pequeña extienda un espacio en blanco a lado derecho*/
body.modal-open {
  padding-right: 0 !important;
}

p{
  font-size: 13px;
}

.alert-sm {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-sm p {
    margin: 0;
}

.modal-body {
  padding: 20px;
  margin: 10px;
}

.modal-header {
  background: linear-gradient(135deg, #846584 0%, #a687a6 100%);
  color: white;
  border-radius: 10px 10px 0 0;
}


/* Grid específico para cards de blog en el landing (3 columnas, más compactas) */
.landing-blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1179px) {
    .landing-blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .landing-blog-grid { grid-template-columns: repeat(1, 1fr) !important; }
}

/* ESTILOS PARA LAS TARJETAS DE LOS PREDIOS */
.card-predios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 30px; /* Aumenté un poco el gap para que no se choquen al crecer */
    padding: 20px 100px; /* Padding vertical para que no se corte la card de arriba */
    overflow: visible; /* IMPORTANTE: permite que el zoom sobresalga */
}


.card-crebi {
display: flex; /* Cambié grid por flex para mejor control de altura */
    flex-direction: column;
    gap: 5px;
    width: 100%;
    /* Quitamos el max-height si queremos que el contenido mande, 
       o lo dejamos pero con overflow oculto */
    overflow: hidden; 
    padding: 10px;
    border-radius: 15px;
    background: rgba(164, 105, 149, 0.17); 
    backdrop-filter: blur(62px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Forzamos la aceleración por hardware para que el zoom sea fluido */
    will-change: transform; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; /* Ayuda al z-index */
}


.card-crebi:hover {
    transform: scale(1.05); /* Agranda la card un 5% */
    z-index: 10; /* Asegura que la card que crece se vea por encima de las otras */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Opcional: añade una sombra para dar profundidad */
}

.card-crebi img {
border-radius: 12px;
    width: 100%;
    height: 210px;
    object-fit: cover; /* Evita que la imagen se estire feo */
    display: block;
}

.card-body-crebi {
    width: 100%;
    margin: 10px 0 5px 0;
    padding: 10px;
    
    h6 {
        flex-wrap:wrap ;
        justify-content: center;
    }
}

.card-footer-crebi {
    display: flex;
    justify-content: center;
    align-content: center;
}

.accordion-filters{
  padding: 30px 100px 0 100px
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 30px 50px 0 50px;
  margin-bottom: 20px;
}

.tab-pane.fade.show {
  animation: fadeIn 0.5s ease-out;
}

/* === TABS MEJORADAS === */
.my-tabs {
  --bs-nav-link-color: #666;
  --bs-nav-link-hover-color: #846584;
  --bs-nav-link-font-size: 13px;
  --bs-nav-tabs-border-width: 2px;
  --bs-nav-tabs-border-color: #e0e0e0;
  --bs-nav-tabs-border-radius: 10px;
  --bs-nav-tabs-link-hover-border-color: #846584;
  --bs-nav-tabs-link-active-color: #fff;
  --bs-nav-tabs-link-active-bg: #846584;
  --bs-nav-tabs-link-active-border-color: #846584;
  margin-bottom: 0;
}

.my-tabs .nav-link {
  padding: 12px 16px;
  font-weight: 500;
  border-radius: 10px 10px 0 0;
  transition: all 0.3s ease;
}

.my-tabs .nav-link:hover {
  transform: translateY(-2px);
}

/* === CONTENIDO DE TABS === */
.dat-tab-content {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 25px;
  min-height: 450px;
  max-height: 450px;
  overflow-y: auto;
}

@media (min-width: 2000px) {
    .card-predios {
     grid-template-columns: repeat(5, 1fr);
    } 
}

@media (max-width: 1520px) {
   .card-predios {
        grid-template-columns: repeat(3, 1fr);
   }
}

@media (max-width: 1179px) {
    .card-predios {
        grid-template-columns: repeat(2, 1fr);
    } 
}

@media (max-width:862px) {

  p{
      font-size: 12px;
  }

  .modal-dialog {
    max-width: 94%;
    margin: 1.75rem auto;
  }

  .card-predios {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }
  
  .card-body-crebi {
    p{
        font-size: 12px;
    }
  }

}

@media (max-width: 768px) {
  .centrar-horizontal-vertical {
    padding: 1.5rem;
  }

  .twoBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Modales en móvil: empujar bajo el header de 2 filas y centrar */
  .modal {
    padding-top: 108px;
  }

  .modal-dialog {
    width: 92vw;
    max-width: 92vw;
    margin: 1rem auto;
  }

  /* Quitar centrado vertical: el modal arranca justo bajo el header */
  .modal-dialog-centered {
    align-items: flex-start;
    min-height: auto;
  }
}

@media (max-width:600px) {
  .card-predios {
    grid-template-columns: repeat(1, 1fr);
    padding: 0 16px;
  }

  .card-body-crebi {
    p{
        font-size: 12px;
    }
  }
}

@media (max-width: 480px) {
  .centrar-horizontal-vertical {
    padding: 1rem;
  }
  .footer-social-networks {
    font-size: 12px;

    svg {
      width: 20px;
      height: 20px;
    }

    span {
      color: white !important;
    }
  }

  .card-predios {
    grid-template-columns: repeat(1, 1fr);
    padding: 0 16px;
  }

  .card-body-crebi {
    p{
        font-size: 12px;
    }
  }
}


/* Offcanvas menú lateral */
#offcanvasWithBothOptions {
  --bs-offcanvas-bg: #846584;
  --bs-offcanvas-color: white;
}

#offcanvasWithBothOptions .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

#offcanvasWithBothOptions .offcanvas-title {
  color: white;
  font-weight: 600;
}

.menu-lateral-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-lateral-link {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: normal;
  word-break: break-word;
  transition: background 0.2s;
}

.menu-lateral-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.menu-lateral-link--highlight {
  color: #3fc38c;
  font-weight: 600;
}

.menu-lateral-link--danger {
  color: #ffaaaa;
}

.menu-lateral-section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  padding: 0.75rem 1rem 0.25rem;
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.5rem;
}

/* ── Footer CREBI ────────────────────────────────────────────── */
.crebi-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 0;
    width: 100%;
}

/* ZONA 1: brand + columnas de nav */
.crebi-footer__top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 48px 90px 40px;
    border-bottom: 1px solid #e9ecef;
}

.crebi-footer__brand-col a img {
    opacity: 0.9;
    transition: opacity 0.2s;
}
.crebi-footer__brand-col a:hover img {
    opacity: 1;
}

.crebi-footer__tagline {
    font-size: 0.8rem;
    color: #5a5a6a;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.crebi-footer__address {
    font-size: 0.78rem;
    color: #6c757d;
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.crebi-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.5rem;
}

.crebi-footer__contact-link {
    font-size: 0.78rem;
    color: #3d1f3d;
    text-decoration: none;
    transition: color 0.2s;
}

.crebi-footer__contact-link:hover { color: #54B48C; }

/* Cuatro columnas de navegación */
.crebi-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ZONA 3: links SEO */
.crebi-footer__seo {
    padding: 36px 90px 28px;
    border-bottom: 1px solid #e9ecef;
}

/* ZONA 4: barra inferior */
.crebi-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 20px 90px;
}

.crebi-footer__social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.crebi-footer__copy {
    font-size: 0.78rem;
    color: #6c757d;
    margin: 0;
}

/* Compartidos */
.footer-title {
    color: #3d1f3d;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 2;
    display: inline-block;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
    color: #3d1f3d;
    padding-left: 4px;
}

.footer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #3d1f3d;
}

/* details/summary nativo — reemplaza JS d-none toggle */
.footer-details { display: block; }

.footer-details__toggle {
    font-size: 0.72rem;
    color: #3d1f3d;
    cursor: pointer;
    list-style: none;
    padding: 0;
    margin-top: 2px;
    user-select: none;
}

.footer-details__toggle::-webkit-details-marker { display: none; }
.footer-details__toggle::after { content: ' ▾'; font-size: 0.6rem; }
details[open] .footer-details__toggle::after { content: ' ▴'; }

.social-icon {
    color: #4a5568;
    transition: color 0.2s, transform 0.2s;
    display: flex;
}

.social-icon:hover {
    color: #3d1f3d;
    transform: translateY(-2px);
}

/* Responsive — tablet */
@media (max-width: 992px) {
    .crebi-footer__top {
        grid-template-columns: 1fr;
        padding: 36px 40px 28px;
        gap: 2rem;
    }
    .crebi-footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }
    .crebi-footer__seo { padding: 28px 40px 20px; }
    .crebi-footer__bottom {
        padding: 16px 40px;
        justify-content: center;
        text-align: center;
    }
}

/* Responsive — móvil */
@media (max-width: 576px) {
    .crebi-footer__top { padding: 28px 16px 20px; }
    .crebi-footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .crebi-footer__seo { padding: 20px 16px 16px; }
    .crebi-footer__bottom {
        padding: 16px;
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-title { font-size: 0.7rem; }
    .footer-link  { font-size: 0.75rem; }
}



