:root {
  --c9: #a30000;
  --dark: #111;
  --muted: #6b7280;
  --b: #e5e7eb;
  --bg: #f7f7f7;
  --gold: #ffcc00;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #222;
}
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.c9-header {
  background: #780404;
  border-bottom: 4px solid var(--c9);
}
.c9-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.c9-topbar .logo img {
  height: 68px;
  width: auto;
}
.c9-topbar .right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.c9-topbar .whats {
  background: var(--c9);
  color: #fff;
  border-radius: 22px;
  padding: 6px 12px;
  font-weight: 600;
}
.c9-topbar .phone { color: #fff; font-weight: 500; }

/* ===== NAVBAR ===== */

.c9-navbar .burger {
  background: #fff;
  border: 1px solid var(--b);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.c9-navbar .home { padding: 6px 8px; color: #fff; }
.c9-navbar .nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === BOTONES DE SESIÓN === */
.nav-session {
  display: flex;
  gap: 10px;
}

.btn-user,
.btn-register,
.btn-logout {
  background: #fff;
  color: #a30000;
  border-radius: 4px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn-user:hover,
.btn-register:hover,
.btn-logout:hover {
  background: #ffcc00;
  color: #000;
}

/* === RESPONSIVE === */
.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .c9-navbar {

  }

  .c9-navbar .nav {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  .c9-navbar .nav.open {
    display: flex;
  }

  .user-actions-mobile {
    margin-top: 10px;
    border-top: 1px solid #fff3;
    padding-top: 10px;
  }

  .nav-session {
    display: none;
  }
  
  .c9-header .container{
        width: 100%;
        max-width: 100%;
        padding: 0 10px; /* 🔽 reducimos padding */
        box-sizing: border-box;
    }
}

.c9-navbar .nav > li > a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #f2f2f2;
  font-weight: 600;
}
.c9-navbar .nav > li > a:hover {
  background: #f3f4f6;
  color: var(--c9);
}
@media (max-width: 992px) {
  .c9-navbar .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--b);
    border-radius: 10px;
    padding: 10px;
  }
  .c9-navbar .nav.open { display: flex; }
}

/* ===== HERO GRID ===== */
.c9-hero { padding: 20px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 250px 1fr; }
  .c9-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
}

/* ===== SIDEBAR ===== */
.c9-side {
  background: #fff;
  border-radius: 6px;
  padding: 10px 15px;
  width: 100%;
}

.c9-side h3 {
  background: #780404;
  color: #fff;
  padding: 10px;
  margin: -10px -15px 15px -15px;
  border-radius: 6px 6px 0 0;
  font-size: 16px;
}

.c9-side label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  font-size: 14px;
}

.c9-side select,
.c9-side input[type="number"],
.c9-side input[type="text"] {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.c9-side .btn.full {
  background: #930000;
  color: #fff;
  border: none;
  width: 100%;
  padding: 11px 0;
  margin-top: 12px;
  border-radius: 4px;
  cursor: pointer;
      text-transform: uppercase;
}
.c9-side .btn.full:hover {
  background: #930000;
}

.c9-side-block {
  margin-top: 20px;
  background: #f4f8fb;
  border-radius: 4px;
}

.c9-side-block h4 {
  background: #930000;
  color: #fff;
  font-size: 15px;
  padding: 8px;
  border-radius: 4px 4px 0 0;
}

.c9-side-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c9-side-block li {
  border-bottom: 1px solid #ddd;
}

.c9-side-block li a {
  display: block;
  padding: 8px 6px;
  color: #333;
  text-decoration: none;
}

.c9-side-block li a:hover {
  background: #e6f1f8;
  color: #0076c0;
}

.dorm-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.dorm-group input[type="radio"] {
  display: none;
}

.dorm-group label {
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  border-right: 1px solid #ccc;
  background: #fff;
  color: #333;
  transition: all 0.2s ease;
}

.dorm-group label:last-child {
  border-right: none;
}

.dorm-group input[type="radio"]:checked + label {
  background: #0076c0;
  color: #fff;
  font-weight: bold;
}

.dorm-group label:hover {
  background: #e6f1f8;
}

.c9-side-search {
  background: #fff;
    border-radius: 2px;
    margin-bottom: 20px;
}
.c9-side-search h3 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.c9-side-search label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-top: 8px;
  display: block;
}
.c9-side-search input, .c9-side-search select {
      width: 100%;
    border: 1px solid var(--b);
    border-radius: 2px;
    padding: 4px 4px;
    font: inherit;
    background: #fafafa;
    transition: 0.2s;
    margin: 5px 0;
    font-size: 0.9rem;
}
.c9-side-search input:focus, .c9-side-search select:focus {
  border-color: var(--c9);
  box-shadow: 0 0 0 2px rgba(163,0,0,0.15);
  outline: none;
  background: #fff;
}
.c9-side-search .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.c9-side-search .btn {
  background: var(--c9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

/* ===== SLIDER ===== */
.c9-slider .carousel {
  position: relative;
  min-height: 550px !important;
  max-height: 650px !important;
  overflow: hidden;
  background: #000;
}
.c9-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.c9-slider .slide.active { opacity: 1; }

.c9-slider .caption .price { color: var(--c9); font-weight: 800; margin-bottom: 8px; }
.c9-slider .caption .btn {
  display: inline-block;
  background: var(--c9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.c9-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}
.c9-slider .prev { left: 10px; }
.c9-slider .next { right: 10px; }
@media (max-width: 992px) { .c9-slider .carousel { height: 320px; } }

/* ===== LISTADO ===== */
.c9-section { padding: 20px 0 30px; }
.sect-title {
  display: block;
  align-items: center;
  gap: 8px;
  border-left: 6px solid var(--c9);
  padding-left: 10px;
  margin: 6px 0 14px;
}

.btn-share{
        display: block;
    margin: 10px 0 15px;
    background: #25D366;
    color: #fff;
    text-align: center;
    padding: 6px;
    border-radius: 0px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 15px;
}
.c9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1500px) { .c9-grid { grid-template-columns: repeat(3, 1fr); }
.container {
    max-width: 1300px;
    margin: auto 50px;
    padding: 0 16px;
}


.c9-topbar {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: auto 50px;
}
    
}

@media (max-width: 1200px) { .c9-grid { grid-template-columns: repeat(2, 1fr); }
.container {
    margin:  auto 25px;
    padding: 0 16px;
}
    
}

@media (max-width: 750px) { .c9-grid { grid-template-columns: repeat(1, 1fr); } }
@media (max-width: 560px) { .c9-grid { grid-template-columns: 1fr; } 
    .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}
.container {
        margin: auto;
        padding: 0 16px;
    }
    
    .c9-side {
    background: #fff;
    border-radius: 6px;
    padding: 10px 0px;
    width: 100%;
}

.c9-side-block {
    margin-top: 20px;
    background: #f4f8fb;
    border-radius: 4px;
    padding: 10px;
    display:none;
}

}

/* ===== CARD BASE ===== */
.c9-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.c9-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.c9-card-img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* 🔥 CAPA DE PRECIO */
.c9-precio-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 15px 18px;

    color: #fff;
    font-size: 18px;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);

    /* 💎 DEGRADADO PRO */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.0)
    );
}



.c9-ribbon {
  position: absolute;
  top: 10px;
  left: -40px;
  transform: rotate(-45deg);
  background: #007bff;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 50px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.c9-ribbon.green { background: #28a745; }

.c9-card-body {
  padding: 12px 14px;
}
.c9-card-body .meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
}
.c9-card-body .price {
  color: var(--c9);
  font-weight: 400;
  font-size: 1rem;
}
.c9-card-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 8px 0;
  background: #fafafa;
}
.c9-card-actions a {
  color: #444;
  font-size: 1rem;
  padding: 6px 8px;
  transition: color 0.2s;
}
.c9-card-actions a:hover { color: var(--c9); }


/* ==========================================================
   💠 HOVER EFECTO (solo PC y notebooks)
   ========================================================== */
@media (hover: hover) and (pointer: fine) {
  .c9-card-img {
    position: relative;
    overflow: hidden;
            border-radius: 2px 2px 0 0;
  }

  .c9-card-img .c9-hover {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    color: #111;
    text-align: center;
    padding: 16px 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
  }

  .c9-card-img:hover .c9-hover {
    opacity: 1;
    transform: translateY(0);
  }

  .c9-hover h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
  }

  .c9-hover p {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .c9-hover .price {
    background: #a30000;
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.9rem;
  }

  .c9-hover .c9-id {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
  }
}

/* ==========================================================
   📱 TABLET Y PANTALLAS TÁCTILES — mostrar overlay visible
   ========================================================== */
@media (hover: none) and (pointer: coarse) {
  .c9-card-img .c9-hover {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    color: #111;
    padding: 12px;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    border-radius: inherit;
  }

  .c9-hover h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .c9-hover .price {
    background: #a30000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
  }
}

.c9-hover h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: capitalize;
}
.c9-hover p {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 8px;
  max-width: 240px;
}
.c9-hover .price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c9);
}

/* ===== PAGINACIÓN ===== */
.pagination {
  text-align: center;
  margin-top: 20px;
}
.pagination a {
  display: inline-block;
  margin: 16px 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
}
.pagination a.active {
  background: var(--c9);
  color: #fff;
  border-color: var(--c9);
}
.pagination a:hover { background: #ddd; }

/* ===== FOOTER ===== */
.c9-footer {
  background: #111;
  color: #eee;
  padding: 20px 0;
  margin-top: 20px;
  text-align: center;
}
.c9-footer p { margin: 0; }

/* ===== WHATSAPP ===== */
.float-whats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  z-index: 60;
}

.c9-hover .c9-id {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .c9-slider .caption {
    left: 50%;
    bottom: 73px;
    transform: translateX(-50%);
    text-align: center;
    width: calc(100% - 40px);
    max-width: 360px;
    padding: 14px 16px;
  }

  .c9-slider .caption h2 {
    font-size: 1.1rem;
  }

  .c9-slider .caption .price {
    font-size: 1rem;
  }

  .c9-slider .caption .btn {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .c9-hover{
      display:none;
  }
  
  .c9-header .container{
        width: 100%;
        max-width: 100%;
        padding: 0 10px; /* 🔽 reducimos padding */
        box-sizing: border-box;
    }
}


.c9-hover h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  text-transform: lowercase;
}

.c9-hover p {
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.c9-hover .price {
  background: #a30000;
  color: #fff;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.9rem;
}

.c9-hover .c9-id {
  font-size: 0.75rem;
  color: #060606;
  margin-top: 6px;
}

/* ===============================================
   💻 RESPONSIVE AJUSTES NOTEBOOK / TABLET
   =============================================== */
@media (max-width: 1200px) {
  .c9-card-img {
    height: 210px;
  }
  .c9-hover h4 {
    font-size: 0.95rem;
  }
  .c9-hover p {
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .c9-card-img {
    height: 200px;
  }
  .c9-hover {
    padding: 12px;
  }
  .c9-hover .price {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
}

@media (max-width: 768px) {
  .c9-card-img {
    position:relative;
  }
  
  .c9-card-img .c9-hover {
    display: block;
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    z-index: 5;
  }

  .c9-card-img .c9-hover h4,
  .c9-card-img .c9-hover p,
  .c9-card-img .c9-hover .price,
  .c9-card-img .c9-hover .c9-id {
    display: none; /* no texto sobre imagen en móvil */
  }
  
  .c9-header .container{
        width: 100%;
        max-width: 100%;
        padding: 0 10px; /* 🔽 reducimos padding */
        box-sizing: border-box;
    }
 
}

/* =============================
   🗺️ MODAL MAPA (Ventana flotante)
   ============================= */
.modal-mapa {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.modal-mapa .modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-mapa .cerrar {
  position: absolute;
  top: 8px;
  right: 14px;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}

#mapView {
  width: 100%;
  height: 450px;
}

#modalMapa h3 {
  font-size: 1.1rem;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  background: #f5f5f5;
  margin: 0;
}

/* ======================================
   🎨 Estilo para el selector de capas
   ====================================== */
.leaflet-control-layers {
  background: rgba(255,255,255,0.9) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  padding: 6px 10px !important;
  font-size: 14px;
  line-height: 1.4;
}

.leaflet-control-layers-toggle {
  background-color: #a30000 !important;
  background-image: none !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.leaflet-control-layers-list {
  color: #111;
}

.leaflet-control-layers label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.leaflet-control-layers label:hover {
  background: rgba(163,0,0,0.05);
  border-radius: 4px;
}

/* 🔠 Normalizar títulos de propiedades */
.sim-card h4,
.destacadas h4,
.prop-card h4 {
  text-transform: none !important;      /* desactiva capitalize */
  font-weight: 600;
}

/* Solo la primera letra de la línea en mayúscula */
.sim-card h4::first-letter,
.destacadas h4::first-letter,
.prop-card h4::first-letter {
  text-transform: uppercase;
}

/* === Botones de sesión (Iniciar / Registrarse / Mi cuenta) === */
.user-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: #fff;
  color: #a30000;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-actions a:hover {
  background: #a30000;
  color: #fff;
}

.user-actions .btn-register {
  background: #a30000;
  color: #fff;
}


.user-actions .btn-register:hover {
  background: #820000;
}

/* 🧩 En móvil, que sigan uno al lado del otro también */
@media (max-width: 768px) {
  .user-actions {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* === HEADER PRINCIPAL === */
.c9-header {
  background: #a30000;
  color: #fff;
  border-bottom: 3px solid #820000;
  font-family: 'Poppins', sans-serif;
}

.c9-header .container {
  margin: 0 auto;
  padding: 10px 15px;
}

/* === TOP BAR === */
.c9-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.c9-topbar .left img {
  height: 90px;
  transition: transform 0.3s ease;
}
.c9-topbar .left img:hover {
  transform: scale(1.05);
}

.c9-topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.c9-topbar .right a,
.c9-topbar .right span {
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.c9-topbar .whats {
  background: #d10000;
  padding: 6px 12px;
  border-radius: 50px;
  transition: background 0.3s ease;
  
}
.c9-topbar .whats:hover {
  background: #b10000;
}

/* === NAVBAR === */
.c9-navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-top: 2px solid rgb(255 255 255 / 62%);
    border-bottom: 2px solid rgb(255 255 255 / 78%);
  padding: 8px 0;
  flex-wrap: wrap;
  background: #161616;
}

.c9-navbar .burger {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.c9-navbar a {
  color: #a30000;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.c9-navbar a:hover {
  background: rgba(255,255,255,0.2);
}

/* === BOTONES USUARIO === */
.user-actions,
.user-actions-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-actions a,
.user-actions-mobile a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: #fff;
  color: #a30000;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-actions a:hover,
.user-actions-mobile a:hover {
  background: #a30000;
  color: #fff;
}

.btn-register {
  background: #a30000 !important;
  color: #fff !important;
}
.btn-register:hover {
  background: #820000 !important;
}

/* === MOBILE === */
.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .user-actions-mobile {
    flex-direction: column;
    text-align: center;
    margin: 15px 0;
  }
  .user-actions-mobile a {
    width: 80%;
    justify-content: center;
  }

  #c9Nav.open {
    display: block;
    text-align: center;
  }
  .c9-navbar .nav > li > a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #3e3c3c !important;
    font-weight: 600;
    width: 100%;
}
}

/* ====== NAVBAR ESTRUCTURA ====== */
.c9-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 10px 10px;
  flex-wrap: wrap;
}

.c9-navbar .nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.c9-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c9-navbar .nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.c9-navbar .nav li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.c9-navbar .nav li a:hover {
  color: #ffcc00;
}

.c9-navbar .btn-user,
.c9-navbar .btn-register,
.c9-navbar .btn-logout {
  background: #a30000;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.c9-navbar .btn-register {
  background: #ffcc00;
  color: #111;
}

.c9-navbar .btn-user:hover,
.c9-navbar .btn-register:hover,
.c9-navbar .btn-logout:hover {
  opacity: 0.8;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .c9-navbar {
    flex-direction: column;
  }
  .c9-navbar .nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
  }
  .c9-navbar .nav.open {
    display: flex;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* ===============================
   🧭 CABECERA RESPONSIVE
   =============================== */

/* Estructura actual */
.c9-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  flex-wrap: wrap;
}

/* Estilo base de logo y teléfonos */
.c9-topbar .left img {
  max-height: 65px;
  width: auto;
}

.c9-topbar .right {
  display: flex;
  gap: 4px;
  text-align: right;
}

.c9-topbar .right a,
.c9-topbar .right span {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* ===============================
   📱 MODO MÓVIL
   =============================== */
@media (max-width: 768px) {
  .c9-topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 15px 10px;
  }

  .c9-topbar .left,
  .c9-topbar .right {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .c9-topbar .right {
    flex-direction: column;
    gap: 6px;
  }

  .c9-topbar .right a,
  .c9-topbar .right span {
    font-size: 15px;
  }

  .c9-topbar .left img {
    max-height: 90px;
  }
}

/* 🎯 Centrado del caption en el slider */
.caption {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 90%;
}

.caption h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  margin: 0;
  letter-spacing: 0.5px;
}

/* Fondo suave opcional para mejor contraste */
.caption::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  z-index: -1;
}

/* === Enlace contenedor del slide === */
.slide-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* === Cada slide === */
.slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s ease;
}

.slide-link:hover .slide {
  transform: scale(1.02);
}





/* === Precio debajo del título === */
.caption .price {
  margin-top: 10px;
  color: #ffcc00;
  font-weight: 600;
  font-size: 1.3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Fondo oscuro semitransparente detrás del texto */
.caption::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  z-index: -1;
}

/* === Navegación del slider === */
.carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
    padding: 0px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
}
.carousel .nav:hover {
  background: rgba(163,0,0,0.8);
}
.carousel .prev { left: 20px; }
.carousel .next { right: 20px; }

.c9-ofertas{padding:60px 0;background:#f7f7f7;text-align:center;max-width: 1500px;margin: 0 auto;}
.c9-ofertas .titulo-seccion{background:#005fc0;color:#fff;display:inline-block;padding:10px 24px;border-radius:8px;margin-bottom:34px;font-weight:700;letter-spacing:.5px;width:100%}
.of-carousel{position:relative;max-width:1500px;margin:0 auto;overflow:hidden;padding:2px } /* padding p/ flechas */
.of-items{display:flex;gap:20px;align-items:stretch;overflow:hidden;scroll-behavior:auto}
.of-card{flex:0 0 clamp(240px,25%,280px);background:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.12);overflow:hidden;transition:transform .2s}
.of-card:hover{transform:translateY(-4px)}
.of-imgwrap{display:block}
.of-imgwrap img{width:100%;height:180px;object-fit:cover;display:block}
.of-body{padding:12px 14px 16px;text-align:left}
.of-price{color:#005fc0;font-weight:800;margin-bottom:6px}
.of-title{font-size:16px;margin:0 0 6px;line-height:1.25}
.of-title a{color:#222;text-decoration:none}
.of-title a:hover{text-decoration:underline}
.of-meta{color:#666;font-size:13px;margin:0}

/* Flechas */
.of-btn{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:none;border-radius:50%;background:#005fc0;color:#fff;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.of-btn:hover{background:#003e7d}
.of-prev{left:50px}
.of-next{right:50px}

/* Responsive */
@media (max-width:1200px){.of-card{flex:0 0 calc(33.333% - 20px)}}
@media (max-width:900px){.of-card{flex:0 0 calc(50% - 20px)}}
@media (max-width:600px){
  .of-card{flex:0 0 100%}
  .of-carousel{padding:2px 0}
  .of-btn{display:none}
  .c9-slider{display:none}
}

/* 🎯 ESTILOS CORREGIDOS DE LA BARRA LATERAL */
.c9-side {
  background: #fff;
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: 'Poppins', sans-serif;
  width: 100%;
  max-width: 310px;
}

.c9-side h3,
.c9-side h4 {
  color: #fff;
  font-weight: 700;
  margin: 0;
  border-bottom: 2px solid #a30000;
  padding-bottom: 4px;
  font-size: 1rem;
}

.c9-side-search {
  margin-bottom: 25px;
}

.c9-side-search .form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c9-side-search select,
.c9-side-search input[type="number"],
.c9-side-search input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.c9-side-search button.btn {
  background: #a30000;
  color: #fff;
  border: none;
  padding: 8px 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.c9-side-search button.btn:hover {
  background: #7a0000;
}

/* 🔸 BLOQUES DE CATEGORÍAS (Venta / Alquiler / Vendido / Alquilado) */
.c9-side-block {
  margin-bottom: 20px;
}

.c9-side-block h4 {
  background: #a30000;
  color: #fff;
  padding: 8px 10px;
  font-weight: 600;
  border-radius: 2px 2px 0 0;
}

.c9-side-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.c9-side-block ul li {
  border-bottom: 1px solid #eee;
}

.c9-side-block ul li:last-child {
  border-bottom: none;
}

.c9-side-block ul li a {
  display: block;
  padding: 8px 10px;
  color: #333;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.c9-side-block ul li a:hover {
  background: #f4f4f4;
  color: #a30000;
}

/* 🔍 Etiquetas de filtro */
.c9-side label {
  font-weight: 600;
  margin-top: 8px;
  display: block;
  color: #333;
}

/* Dormitorios */
.btn-group-dorm {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.btn-dorm {
  flex: 1;
  background: #fff;
  border: 1px solid #a30000;
  color: #a30000;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dorm.active,
.btn-dorm:hover {
  background: #a30000;
  color: #fff;
}

/* 🔸 Adaptación móvil */
@media (max-width: 992px) {
  .c9-side {
    max-width: 100%;
    margin-bottom: 25px;
  }
}

/* 🧩 Fix iOS opacity/blur issue en cards */
.c9-card,
.card,
.c9-card img,
.card img {
  opacity: 1 !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}


.c9-ofertas {
  background: #f7f7f7;
  padding: 50px 0;
}

.of-carousel {
  position: relative;
  overflow: hidden;
}

.of-items {
  display: flex;
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.of-items::-webkit-scrollbar { display: none; }

.of-slide {
  flex: 0 0 clamp(250px, 25%, 300px);
}

.of-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #a30000;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: 0.3s;
}
.of-btn:hover { background: #820000; }
.of-prev { left: -10px; }
.of-next { right: -10px; }

@media (max-width: 768px) {
  .of-btn { display: none; }
  .of-slide { flex: 0 0 85%; }
}

/* --- Texto del slider centrado y contenido limitado --- */
.c9-slider .caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.c9-slider .caption h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  text-transform: lowercase;

}

.c9-slider .caption h2::first-letter {
  text-transform: uppercase;

}

.c9-slider .slider-sub {
  font-size: 16px;
  font-weight: 400;
  margin-top: 6px;
  opacity: 0.95;
}

/* --- Animación suave --- */
.c9-slider .caption {
  animation: fadeUp 1s ease-in-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


.c9-ofertas .of-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.c9-ofertas .of-items::-webkit-scrollbar {
  display: none;
}

.c9-ofertas .c9-card.of-slide {
  flex: 0 0 240px;          /* ancho fijo del slide */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 390px;            /* altura uniforme */
  justify-content: space-between;
}

/* Imagen superior */
.c9-ofertas .c9-card.of-slide .c9-card-img {
  height: 180px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Contenido medio */
.c9-ofertas .c9-card.of-slide .c9-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 8px;
}

/* Bloque de íconos (m², dorms, baños, est.) */
.c9-ofertas .meta.meta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.c9-ofertas .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #444;
}

/* Barra inferior de acciones (WhatsApp, favorito, mapa) */
.c9-ofertas .c9-card.of-slide .c9-card-actions {
  margin-top: auto;
  padding: 6px 0 8px;
  border-top: 1px solid #eee;
  background: #fff;
  display: flex;
  justify-content: space-around;
}

.c9-ofertas .c9-card.of-slide {
  flex: 0 0 240px;
  height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.c9-ofertas .c9-card.of-slide .c9-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.c9-ofertas .c9-card.of-slide .c9-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 8px;
}

.c9-ofertas .c9-card.of-slide .c9-card-actions {
  border-top: 1px solid #eee;
  padding: 6px 0 8px;
  display: flex;
  justify-content: space-around;
  background: #fff;
}

/* Oculto en escritorio */
.campo-id-mobile {
  display: none;
  margin-bottom: 10px;
}

.campo-id-mobile input {
  width: 100%;
  padding: 10px;
  border: 1px solid #a30000;
  border-radius: 6px;
  font-size: 15px;
}

.pag-num{
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 2px;
}

.pag-num:hover{
    cursor:pointer;
    background:#a30000;
}

.pag-btn{
    padding:10px;
    background:#a30000;
    color:#fff;
}

/* Mostrar solo en móvil */
@media (max-width: 768px) {
  .campo-id-mobile {
    display: block;
  }
}

.acciones-compartir {
    display: flex;
    gap: 10px; /* espacio entre botones */
    align-items: center;
        margin-bottom: 25px;
}

.acciones-compartir a {
    flex: 1; /* que ocupen mismo ancho */
    text-align: center;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-fb {
    background: #1877f2;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* 🔥 OVERLAY */
#introOverlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* CAJA */
.intro-box{
    background:#fff;
    padding:30px;
    border-radius:5px;
    text-align:center;
    max-width:500px;
    width:90%;
    position:relative;
}

/* TITULO */
.intro-box h2{
    margin-bottom:20px;
}

/* OPCIONES */
.intro-opciones{
    display:flex;
    flex-direction:column;
    gap:15px;
    flex-wrap:wrap;
    align-items:center; /* 🔥 centra los bloques */
}

/* TARJETAS */
.intro-card{
    width:100%;
    padding:12px 15px;
    background:#f5f5f5;
    border-radius:10px;
    cursor:pointer;
    transition:0.2s;

    display:flex;              /* 🔥 clave */
    justify-content:center;   /* 🔥 centra horizontal */
    align-items:center;       /* 🔥 centra vertical */
    text-align:center;        /* 🔥 centra texto */
}

.intro-card:hover{
    background:#a30000;
    transform:scale(1.05);
    color:#fff;
}

.intro-card p{
    
}

/* BOTON */
.cerrar-intro{
    padding:10px 20px;
    border:none;
    background:#a30000;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

.icono{
    font-size:24px;
    min-width:30px;
}

/* 📱 MOBILE */
@media(max-width:600px){
    .intro-opciones{
        flex-direction:column;
    }
}

.c9-card-img{
    position: relative;
    background-size: cover;
    background-position: center;
}

/* 🔝 BARRA SUPERIOR */
.c9-top-bar{
    position:absolute;
    top:10px;
    right:10px;
    gap: 5px;
    display:flex;
    justify-content:space-between;
    align-items:center;

    z-index:20;
}

.c9-left{
    display:flex;
    align-items:center;
    gap:8px;
}

/* 📷 FOTO */
.c9-photo-count{
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 13px;
    position:static !important;
    left: 0 !important;
    right: auto !important;
}

/* 🟩 CATEGORÍA */
.c9-status{
    background: #16a34a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    position:static !important;
}

/* 🔵 FINANCIAMIENTO DERECHA */
.c9-financia{
    background:#2b7cff;
    color:#fff;
    padding:6px 10px;
    border-radius:6px;
    font-size:12px;
    font-weight:bold;
    white-space:nowrap;
}

/* 🔵 RIBBON */
.c9-ribbon-diagonal{
    position: absolute;
    top: 20px;
    left: -60px;
    width: 230px;

    background: #a30000;
    color: #fff;
    font-size: 13px;
    font-weight: 400;

    transform: rotate(-45deg);
    z-index: 6;

    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    
    white-space: normal;      /* 🔥 permite 2 líneas */
    line-height: 1.2;
    padding: 7px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 💰 PRECIO */
.c9-precio-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 15px;

    color: #fff;
    font-size: 18px;
    font-weight: 400;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0)
    );
}

.miniaturas-slider{
    position:absolute;
    bottom:90px; /* 🔥 ajustá según tu diseño */
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:5;
}

.miniaturas-slider img{
    width:150px;
    height:150px;
    border-radius:50%; /* 🔥 círculo */
    object-fit:cover;
    border:3px solid #fff;
    box-shadow:0 2px 8px rgba(0,0,0,0.3);
}

/* 🔥 contenedor principal */
.slide {
    position: relative;
}

/* 🔥 caption */
.caption{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    z-index:10;
}

/* 🔥 miniaturas */
.miniaturas-slider{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:10px;
    z-index:20;
}

/* =========================
   SLIDER BASE
========================= */
.slide{
    position:relative;
    background-size:cover;
    background-position:center;
}

/* =========================
   CAPTION (TEXTO)
========================= */
.caption{
    position:absolute;
    bottom:25px;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    z-index:10;
    width:90%;
    max-width:700px;
}

.caption h2{
    background:rgba(0,0,0,0.55);
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    font-size:20px;
    line-height:1.3;
}

/* =========================
   MINIATURAS
========================= */
.miniaturas-slider{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:12px;
}

.miniaturas-slider img{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.4);
    transition:transform 0.3s ease;
}

.miniaturas-slider img:hover{
    transform:scale(1.1);
}

/* =========================
   📱 TABLET
========================= */
@media (max-width: 1024px){

    .miniaturas-slider img{
        width:60px;
        height:60px;
    }

    .caption h2{
        font-size:18px;
    }
}

/* =========================
   📱 MÓVIL
========================= */
@media (max-width: 768px){

    .miniaturas-slider{
        gap:8px;
        margin-bottom:8px;
    }

    .miniaturas-slider img{
        width:50px;
        height:50px;
        border:3px solid #fff;
    }

    .caption{
        bottom:15px;
        width:95%;
    }

    .caption h2{
        font-size:15px;
        padding:10px;
    }
}

/* =========================
   📱 MÓVIL PEQUEÑO
========================= */
@media (max-width: 480px){

    .miniaturas-slider img{
        width:42px;
        height:42px;
    }

    .caption h2{
        font-size:13px;
    }
}

/* =========================
   🔥 FIX SLIDER (NO BORRAR LO DEMÁS)
========================= */

/* ALTURA RESPONSIVA */
.c9-slider .carousel{
    height:70vh !important;
    min-height:550px !important;
    max-height:650px !important;
}

/* NOTEBOOK */
@media (max-width:1400px){
  .c9-slider .carousel{
    min-height: 450px !important;
        max-height: 650px !important;
  }
  .caption{
    bottom:200px !important;
  }
}

/* TABLET */
@media (max-width:1024px){
  .c9-slider .carousel{
    height:50vh !important;
  }
  
  .caption{
    bottom:70px !important;
  }
}

/* MÓVIL */
@media (max-width:768px){
  .c9-slider .carousel{
    height:300px !important;
  }
}

/* =========================
   MINIATURAS (FORZAR POSICIÓN)
========================= */
.miniaturas-slider{
    position:absolute !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    bottom:80px !important;
    z-index:20 !important;
}

/* AJUSTE MÓVIL */
@media (max-width:768px){
  .miniaturas-slider{
    bottom:70px !important;
  }
}

/* TAMAÑO MINIATURAS */
.miniaturas-slider img{
    width:70px !important;
    height:70px !important;
}

@media (max-width:1024px){
  .miniaturas-slider img{
    width:60px !important;
    height:60px !important;
  }
}

@media (max-width:768px){
  .miniaturas-slider img{
    width:50px !important;
    height:50px !important;
  }
  
  .c9-header .container{
        width: 100%;
        max-width: 100%;
        padding: 0 10px; /* 🔽 reducimos padding */
        box-sizing: border-box;
    }
}

/* =========================
   TEXTO (EVITA QUE SE PISE)
========================= */
.caption{
    bottom:90px !important;
    z-index:10 !important;
}

/* CONTENEDOR */
.user-box{
    display:flex;
    flex-direction:column; /* 🔥 esto baja los botones */
    align-items:center;
    gap:8px;
}

/* TEXTO */
.user-greet{
    color:#fff;
    font-size:14px;
    white-space:nowrap; /* 🔥 evita salto de línea */
}

/* BOTONES */
.user-buttons{
    display:flex;
    gap:8px;
}

/* BOTONES MISMO TAMAÑO */
.user-buttons a{
    display:flex;
    align-items:center;
    gap:5px;
    padding:6px 10px;
    border-radius:8px;
    font-size:13px;
    text-decoration:none;
}

.c9-ribbon-center{
        position: absolute;
    top: 20px;
    left: -60px;
    width: 230px;
    background: #a30000;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    transform: rotate(-45deg);
    z-index: 6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    white-space: normal;
    line-height: 1.2;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* colores */
.c9-ribbon-center.vendido{
    background:#ff1600;
}

.c9-ribbon-center.alquilado{
    background:#ef6c00;
}

/* 🔥 BANNER CENTRAL */
.intro-banner{
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0 5px;
}

/* IMAGEN */
.intro-banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXTO SOBRE IMAGEN */
.intro-banner-text{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
}

.intro-banner-text span{
    display: block;
    font-size: 22px;
    font-weight: 400;
    opacity: 0.9;
}

@media (max-width: 768px){

    .intro-banner-text{
        font-size: 16px !important;
        padding: 15px !important;
    }

    .intro-banner-text strong{
        font-size: 18px !important;
    }

    .intro-banner-text span{
        font-size: 14px !important;
    }
    
    .intro-box h2{
        font-size:30px;
    }
    
    .intro-banner {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    margin: 10px 0 10px;
}

.intro-box {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    max-width: 500px;
    width: 70%;
    position:relative;
}

.intro-bottom {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    align-items: baseline;
}

}

.c9-slider .caption {
    display:none;
}

/* =========================================
   🔺 RIBBON DIAGONAL
========================================= */
.c9-ribbon-diagonal{
    position:absolute;
    top:18px;
    left:-51px;
    width:190px;
    text-align:center;
    color:#fff;
    font-size:14px;
    font-weight:700;
    padding:10px 0;
    transform:rotate(-45deg);
    z-index:20;
    text-transform:uppercase;
    letter-spacing:1px;
    line-height:1.2;
    box-shadow:0 4px 15px rgba(0,0,0,0.25);
    overflow:hidden;
}

/* 🟠 OFERTA ESPECIAL */
.c9-ribbon-diagonal.oferta{
    background:linear-gradient(135deg,#ff6a00,#ff9900);
}

/* 🔵 NUEVO INGRESO */
.c9-ribbon-diagonal.nuevo{
    background:linear-gradient(135deg,#0072ff,#00c6ff);
}

/* 🟣 ÚLTIMAS UNIDADES */
.c9-ribbon-diagonal.ultimas{
    background:linear-gradient(135deg,#7b2ff7,#c471ed);
}

/* ⚫ DEFAULT */
.c9-ribbon-diagonal.default{
    background:linear-gradient(135deg, #580202, #d00000);
}

/* =========================================
   🔴 RIBBON CENTRADO
========================================= */
.c9-ribbon-center{
    position:absolute;
    top:18px;
    left:-45px;
    width:170px;
    text-align:center;
    color:#fff;
    font-size:14px;
    font-weight:700;
    padding:10px 0;
    transform:rotate(-45deg);
    z-index:20;
    text-transform:uppercase;
    letter-spacing:1px;
    line-height:1.2;
    box-shadow:0 4px 15px rgba(0,0,0,0.25);
    overflow:hidden;
}

/* 🔴 VENDIDO */
.c9-ribbon-center.vendido{
    background:linear-gradient(135deg,#d10000,#ff3c3c);
}

/* 🟣 ALQUILADO */
.c9-ribbon-center.alquilado{
    background:linear-gradient(135deg,#d10000,#ff3c3c);
}

/* 🔥 FILA PRECIO + BOTON */
.intro-bottom{
    margin-top:20px;
    align-items:center;
    justify-content:center;
    gap:25px;
        align-items: baseline;
}

/* 💰 PRECIO */
.intro-precio{
    font-size:22px;
    font-weight:700;
    color:#fff;
    text-shadow:0 4px 15px rgba(0,0,0,0.45);
}

/* 🔘 BOTON */
.cerrar-intro{
    background:#d50000;
    color:#fff;
    padding:5px 5px;
    border-radius:3px;
    text-decoration:none;
    font-weight:400;
    font-size:20px;
    transition:0.3s;
    display:inline-block;
}

.cerrar-intro:hover{
    transform:translateY(-3px);
    background:#ff0000;
}

/* ❌ BOTON CERRAR */
.intro-close{
    position:absolute;
    top:12px;
    right:12px;

    width:38px;
    height:38px;

    border:none;
    border-radius:50%;

    background:#ffffff;
    color:#111;

    font-size:28px;
    font-weight:700;

    cursor:pointer;

    z-index:50;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 4px 12px rgba(0,0,0,0.25);

    transition:0.25s;
}

.intro-close:hover{
    transform:scale(1.08);
    background:#ff0000;
    color:#fff;
}

/* 📱 OVERLAY MOBILE */
@media(max-width:768px){

    .intro-banner-text .intro-bottom{
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:14px !important;
    }

    .intro-banner-text .intro-precio{
        text-align:center !important;
        width:100% !important;

        font-size:16px !important;
    }

    .intro-banner-text .cerrar-intro{
        width:auto !important;

        font-size:18px !important;
        padding:5px 10px !important;
    }

}

    /* ===================================== */
/* 🔥 LEADS */
/* ===================================== */

#leadModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);

    display:none;

    align-items:center;
    justify-content:center;

    z-index:99999;

    padding:20px;
}

.lead-box{
    background:#fff;
    width:100%;
    max-width:420px;

    border-radius:22px;

    padding:35px 28px;

    position:relative;

    animation:leadUp .35s ease;
}

@keyframes leadUp{
    from{
        transform:translateY(30px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

.lead-box h3{
    font-size:28px;
    margin-bottom:12px;
}

.lead-box p{
    color:#666;
    margin-bottom:22px;
}

.lead-box input{
    width:100%;
    padding:15px;

    border:1px solid #ddd;

    border-radius:12px;

    margin-bottom:14px;

    font-size:15px;
}

.lead-box button[type="submit"]{
    width:100%;

    border:none;

    background:#c40000;
    color:#fff;

    padding:16px;

    border-radius:14px;

    font-size:16px;
    font-weight:700;

    cursor:pointer;
}

.lead-close{
    position:absolute;
    top:12px;
    right:12px;

    width:36px;
    height:36px;

    border:none;
    border-radius:50%;

    background:#eee;

    font-size:24px;

    cursor:pointer;
}

#leadModal select{
    width:100%;
    padding:14px 16px;
    border:1px solid #ddd;
    border-radius:14px;
    font-size:16px;
    margin-bottom:14px;
    outline:none;
    background:#fff;
    color:#333;
    transition:0.2s;
}

#leadModal select:focus{
    border-color:#c40000;
    box-shadow:0 0 0 4px rgba(196,0,0,0.08);
}

/* ===================================== */
/* MODAL PROMO */
/* ===================================== */

.promo-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:.3s;
    padding:20px;
}

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

.promo-box{
    width:100%;
    max-width:500px;
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    position:relative;
    animation:promoZoom .35s ease;
}

@keyframes promoZoom{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.promo-img{
    width:100%;
    height:338px;
    object-fit:cover;
}

.promo-content{
    padding:28px;
}

.promo-tag{
    display:inline-block;
    background:#c40000;
    color:#fff;
    padding:8px 14px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
}

.promo-content h2{
    font-size:32px;
    line-height:1.1;
    margin-bottom:15px;
    color:#111;
}

.promo-content p{
    color:#666;
    font-size:16px;
    line-height:1.6;
    margin-bottom:24px;
}

.promo-btn{
    background:#25d366;
    color:#fff;
    text-decoration:none;
    padding:16px 24px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-weight:700;
    font-size:16px;
}

.promo-close{
    position:absolute;
    top:14px;
    right:14px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#fff;
    font-size:26px;
    cursor:pointer;
    z-index:5;
}

@media(max-width:768px){

    .promo-content h2{
        font-size:20px;
    }

    .promo-img{
        height:260px;
    }

}

/* =========================================
   👥 EQUIPO HOME PREMIUM
========================================= */

.home-team-wrap{
    padding:70px 0;
    background:#f5f5f5;
}

.home-team-head{
    text-align:center;
    margin-bottom:90px;
}

.home-team-head h2{
    font-size:42px;
    color:#222;
    margin-bottom:10px;
    font-weight:600;
}

.home-team-head p{
    color:#777;
    font-size:17px;
}

/* GRID */

.home-team-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:120px 30px;
}

/* CARD */

.home-team-card{
    position:relative;

    background:#fff;

    border-radius:16px;

    padding:95px 25px 25px;

    text-align:center;

    box-shadow:0 4px 18px rgba(0,0,0,0.08);

    transition:0.3s;

    overflow:visible;
}

.home-team-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

/* FOTO */

.home-team-avatar{
    width:140px;
    height:140px;

    border-radius:50%;

    object-fit:cover;

    position:absolute;

    top:-70px;
    left:50%;

    transform:translateX(-50%);

    border:6px solid #fff;

    box-shadow:0 4px 18px rgba(0,0,0,0.18);

    background:#fff;
}

/* NOMBRE */

.home-team-card h3{
    font-size:20px;
    font-weight:600;
    color:#666;

    margin-bottom:14px;
}

/* CARGO */

.home-team-cargo{
    color:#999;
    font-size:14px;

    margin-bottom:14px;
}

/* TELÉFONO */

.home-team-phone{
    font-size:16px;
    color:#777;

    margin-bottom:22px;
}

.home-team-phone i{
    margin-right:6px;
}

/* BOTÓN */

.home-team-btn{
    display:block;

    background:#a30000;

    color:#fff;

    padding:9px;

    border-radius:40px;

    text-decoration:none;

    font-weight:600;

    transition:0.3s;
}

.home-team-btn:hover{
    background:#005fc0;
}

/* BOTÓN GENERAL */

.home-team-footer{
    text-align:end;
    margin-top:28px;
}

.home-team-all{
    display:inline-block;

    background:#111;
    color:#fff;

    padding:6px 24px;

    border-radius:6px;

    text-decoration:none;

    font-weight:400;

    transition:0.3s;
}

.home-team-all:hover{
    background:#a30000;
}

/* RESPONSIVE */

@media(max-width:1200px){

    .home-team-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:700px){

    .home-team-grid{
        grid-template-columns:1fr;
    }

    .home-team-head{
        margin-bottom:80px;
    }

    .home-team-head h2{
        font-size:32px;
    }

    .home-team-card{
        margin-top:70px;
    }

}