/* =============================================
   INMOBILIARIA — Estilos Globales
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --red:       #BB0318;
  --red-light:  #ff7d7d;
  --black:     #0d0d0d;
  --white:     #ffffff;
  --gray:      #f5f5f5;
  --gray-mid:  #cccccc;
  --text-dim:  rgba(255,255,255,0.75);
  --radius:    6px;
  --shadow:    0 4px 20px rgba(0,0,0,0.30);
  --fontHead: "Cinzel", "Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background: #fff; color: var(--black); }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────────── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 66px;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}

.main-nav.scrolled {
  background: rgba(180, 6, 6, 0.3);
  backdrop-filter: blur(50px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;
  font-size: 18px;
  color: white;
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0; padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(180, 6, 6, 0.8);
    backdrop-filter: blur(50px);
    padding: 16px 32px 24px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .img-nosotros{
    display: none;
  }
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Contenedor del slideshow */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a0000; /* fallback mientras cargan las fotos */
}

/* Cada slide: capa absoluta con su foto */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Estado inicial: invisible y sin zoom */
  opacity: 0;
  transform: scale(1);

  /* Transición de fade suave */
  transition: opacity 1.4s ease-in-out;
}

/* Slide activo: visible con zoom-in en curso */
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 7s ease-in-out forwards;
}

/* Zoom-in Ken Burns suave */
@keyframes heroZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.30) 0%,
    rgba(60,0,0,0.50) 55%,
    rgba(100, 0, 0, 0.397) 100%
  );
}

/* Contenido centrado sobre el hero */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-family: var(--fontHead);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
  margin: 0 0 16px;
}

/* Buscador dentro del hero */
.hero-search {
  width: 100%;
  max-width: 680px;
}

.hero-search-fields {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: 2px solid var(--red);
  border-radius: 6px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.hero-field {
  flex: 1;
  border-right: 1px solid var(--red);
}

.hero-field:last-of-type { border-right: none; }

.hero-field select,
.hero-field input {
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  background: rgba(145, 7, 7, 0.25);
  border: none;
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.hero-field select option { background: #1a1a1a; color: white; }
.hero-field input::placeholder { color: rgba(255,255,255,0.7); }
.hero-field select { color: rgba(255,255,255,0.85); }

.hero-search-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 14px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--red-dark); }

/* Flecha animada para bajar */
.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.7;
  margin-top: 24px;
  animation: bounce 2s ease-in-out infinite;
  text-decoration: none;
  transition: opacity 0.2s;
}
.hero-arrow:hover { opacity: 1; color: white; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@media (max-width: 600px) {
  .hero-search-fields { flex-wrap: wrap; }
  .hero-field { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .hero-search-btn { width: 100%; justify-content: center; }
}

/* ─── BUSCADOR ─────────────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  background: var(--red);
  margin-bottom: 0;
  border-bottom: 2px solid rgba(0,0,0,0.15);
}

.search-bar select,
.search-bar input {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 14px;
  border: none;
  border: 2px solid var(--red);
  border-radius: 0;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  background: #ff6779;
  color: white;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.search-bar select::placeholder,
.search-bar input::placeholder { color: rgba(255,255,255,0.85); }

.search-bar select option { background: white; color: var(--black); }

.search-bar select:focus,
.search-bar input:focus {
  background: #ff6779;
}

.search-bar .btn-search {
  background: var(--red);
  color: white;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  padding: 13px 22px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-bar .btn-search:hover { background: var(--red-dark); }

/* ─── NOSOTROS ─────────────────────────────────────────────────────────────── */
.subtitle {
  font-family: var(--fontHead);
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 550;
  letter-spacing: 2px;
  line-height: 1.1;
  color: white;
  margin: 0;
}
.red{
  color: var(--red);
}
.bg-red{
  background-color: var(--red);
  box-shadow: var(--shadow);
  text-align: center;
}

/* ─── SERVICEs ─────────────────────────────────────────────────────────────── */
.decorative-line-white{
  background-color: var(--white);
  width: 50px;
  height: 2px;
}
.decorative-line-red{
  background-color: var(--red);
  width: 50px;
  height: 2px;
}
.col-services{
  height: 500px;
}

/* ─── CONTACTO ─────────────────────────────────────────────────────────────── */
ul{
  list-style: none;
}
i{
  font-size: clamp(22px, 4vw, 36px);
}
.contact{
  font-size: clamp(13px, 2.5vw, 18px);
  color: white;
  text-decoration: none;
}
.contact:hover{
  color: var(--red-light);
}
.form-floating>label{
  color: var(--red);
  transition: 0.2s;
}
.form-floating>input, .form-floating>textarea{
  background-color: white;
  border: var(--red) 2px solid;
}
.btn{
  background-color: var(--red);
  color: white;
}
/* ─── FOOTER ───────────────────────────────────────────────────── */
.i-footer{
  font-size: clamp(18px, 3.5vw, 25px);
}
.i-footer>.a-footer{
  font-size: clamp(12px, 2vw, 15px);
  color: var(--red);
  text-decoration: none;
}
.a-footer:hover{
  color: var(--red-light);
}

/* ─── SECCIÓN PROPIEDADES ───────────────────────────────────────────────────── */
#propiedades {
  background: var(--red);
  color: white;
  padding: 0;
}

/* Wrapper interior sin padding top para que el buscador quede pegado al borde */
#propiedades .inner-wrap {
  padding: 16px 16px 40px;
}

/* ─── CARDS ──────────────────────────────────────────────────────────────────── */
.property-card {
  border: none;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.22s, box-shadow 0.22s;
  background: #111;
  display: block;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

.property-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.property-card:hover .property-img { transform: scale(1.05); }

/* Texto superpuesto con degradado negro fuerte en la parte inferior */
.property-text {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 28px 14px 12px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.93) 0%,
    rgba(0,0,0,0.9)  70%,
    transparent      100%
  );
  color: white;
}

.property-text .prop-type {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: white;
  font-weight: 800;
  margin: 0 0 1px;
  line-height: 1.2;
}

.property-text .prop-location {
  font-size: 12px;
  opacity: 0.88;
  margin: 0;
  line-height: 1.3;
}

.property-text .prop-price {
  display: none; /* precio solo en el modal, como en el diseño */
}

/* ─── PAGINACIÓN ─────────────────────────────────────────────────────────────── */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}

.pagination-wrap .page-btn {
  width: 34px; height: 34px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.pagination-wrap .page-btn:hover   { background: rgba(255,255,255,0.15); }
.pagination-wrap .page-btn.active  { background: white; color: var(--red); font-weight: 700; border-color: white; }

/* ─── MAPA ───────────────────────────────────────────────────────────────────── */
.map-container {
  height: 100%;
  overflow: hidden;
  position: sticky;
  top: 0;
  border-radius: 0;
}

#map { width: 100%; height: 100%; min-height: 580px; }

/* Leaflet popup personalizado */
.custom-popup .leaflet-popup-content-wrapper {
  background: var(--white);
  color: white;
  border-radius: var(--radius);
  border: 1px solid var(--red);
  box-shadow: var(--shadow);
}
.custom-popup .leaflet-popup-tip { background: var(--black); }
.custom-popup .leaflet-popup-content { margin: 10px 14px; font-family: "DM Sans", sans-serif; }
.popup-type  { font-family: "Bebas Neue", sans-serif; letter-spacing: 2px; color: #ff6b6b; font-size: 15px; }
.popup-loc   { font-size: 12px; opacity: 0.8; margin: 2px 0 6px; }
.popup-price { font-weight: 600; font-size: 14px; }
.popup-btn {
  display: block; margin-top: 8px;
  background: var(--red); color: white;
  border: none; border-radius: 4px;
  padding: 5px 10px; font-size: 12px;
  cursor: pointer; width: 100%;
  font-family: "DM Sans", sans-serif;
}
.popup-btn:hover { background: #a80000; }

/* ─── LOADING / NO RESULTS ───────────────────────────────────────────────────── */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  gap: 10px;
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  /* Layout propiedades: apilado, sin altura fija de viewport */
  .props-layout {
    flex-direction: column;
    height: auto !important;
    min-height: unset !important;
  }

  .props-left {
    flex: none;
    overflow: visible;
  }

  #propiedades .inner-wrap {
    overflow: visible;
  }

  /* Mapa: altura fija, position relative para que empuje el contenido */
  .props-right {
    position: relative !important;
    height: 340px !important;
    flex: none !important;
  }

  .props-right #map {
    position: absolute !important;
    inset: 0 !important;
    min-height: unset !important;
  }

  .map-container {
    position: static !important;
    height: 340px !important;
    min-height: 340px !important;
  }

  #map { min-height: 340px !important; }

  /* Buscador en dos columnas */
  .search-bar { flex-wrap: wrap; }
  .search-bar select,
  .search-bar input { flex: 1 1 45%; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .search-bar .btn-search { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 576px) {
  .property-img { height: 175px; }
  .search-bar select,
  .search-bar input { flex: 1 1 48%; }
}


/* ─── MODAL ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 15px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.modal-box {
  background: var(--red);
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  animation: modalIn 0.25s ease;
}

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

/* Header rojo con tipo y ubicación */
.modal-header {
  background: var(--red);
  color: white;
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-header h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;
  font-size: 22px;
  margin-bottom: 1px;
}
.modal-header .modal-location { font-size: 13px; opacity: 0.85; }
.modal-close {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }

/* Layout principal: left | right */
.modal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--red);
  gap: 16px;
  padding: 0 16px 16px;
}

/* ── COLUMNA IZQUIERDA ── */
.modal-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  height: 300px;
}
.modal-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 8px;
}
.modal-main-img.active { display: block; }

.modal-img-nav {
  position: absolute;
  bottom: 8px; right: 8px;
  display: flex; align-items: center; gap: 6px;
}
.modal-img-nav button {
  background: rgba(0,0,0,0.6);
  color: white; border: none;
  padding: 3px 9px; border-radius: 4px;
  cursor: pointer; font-size: 14px;
}
.modal-img-nav span {
  color: white; font-size: 12px;
  background: rgba(0,0,0,0.5);
  padding: 2px 6px; border-radius: 4px;
}

/* Caja de precio */
.modal-price-box {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-price-label {
  font-weight: 700;
  color: var(--red);
  font-size: 15px;
}
.modal-price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}

/* Botón WhatsApp */
.modal-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: var(--white) 2px solid;
  border-radius: 8px;
  padding: 13px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  transition: background 0.2s;
  cursor: pointer;
}
.modal-whatsapp-btn svg { color: var(--white); flex-shrink: 0; }
.modal-whatsapp-btn:hover { background: var(--white); color: var(--red); transform: scale(1.05); transition: 0.2s; }
.modal-whatsapp-btn:hover>svg { color: var(--red); flex-shrink: 0; }

/* ── COLUMNA DERECHA ── */
.modal-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Grid de cards de características (estilo imagen de referencia) */
.modal-cards-grid {
  background: white;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.modal-card {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.modal-card:last-child { border-bottom: none; }
.modal-card-full { grid-column: 1 / -1; }

.modal-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-dark);
}
.modal-card-value {
  font-size: 13px;
  color: #333;
  margin-top: 1px;
}

/* Descripción */
.modal-desc-box {
  background: white;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
.modal-desc-text {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* Mini mapa en el modal */
.modal-map-wrap {
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  min-height: 180px;
}
.modal-map-leaflet {
  width: 100%;
  height: 100%;
  min-height: 180px;
}

/* Responsive */
@media (max-width: 650px) {
  .modal-layout {
    grid-template-columns: 1fr;
  }
  .modal-img-wrap { height: 200px; }
}


/* ─── LOADING ─────────────────────────────────── */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  gap: 10px;
}

.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}
.no-results svg { margin-bottom: 12px; opacity: 0.4; }

/* ─── RESPONSIVE ─────────────────────────────── */
/* bloque 991px consolidado arriba */

@media (max-width: 576px) {
  .search-bar select,
  .search-bar input { flex: 1 1 48%; }
  .modal-gallery { height: 200px; }
}

/* =============================================
   TIPOGRAFÍA FLUIDA — Jerarquía en todos los tamaños
   ============================================= */

/* Headings globales con escala fluida */
h1 { font-size: clamp(28px, 6vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(22px, 4.5vw, 48px); line-height: 1.15; font-family: var(--fontHead); }
h3 { font-size: clamp(18px, 3.5vw, 32px); line-height: 1.2; font-family: var(--fontHead); }
h4 { font-size: clamp(15px, 2.5vw, 22px); line-height: 1.3; font-weight: 700; }
h5 { font-size: clamp(13px, 2vw, 18px); line-height: 1.4; }

/* Párrafos: legibles en cualquier pantalla */
p  { font-size: clamp(13px, 1.8vw, 16px); line-height: 1.7; }

/* Servicios: h4 centrado con margen */
#servicios h4 {
  font-size: clamp(14px, 2.5vw, 20px);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

#servicios p {
  font-size: clamp(12px, 1.6vw, 15px);
  text-align: center;
}

/* Nosotros: subtítulos de persona */
#nosotros h3.subtitle {
  font-size: clamp(20px, 4vw, 36px);
}

#nosotros p {
  font-size: clamp(13px, 1.8vw, 15px);
  text-align: center;
}

/* Contacto: listas con espacio adecuado */
#contacto h3 {
  font-size: clamp(16px, 3vw, 28px);
  margin-bottom: 16px;
}

#contacto li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer: textos más chicos pero legibles */
.footer-section h3 {
  font-size: clamp(16px, 3vw, 24px);
  margin-bottom: 12px;
}

.footer-section p {
  font-size: clamp(12px, 1.6vw, 14px);
}

/* Hero: título y subtítulo ya usan clamp, reforzar */
.hero-title {
  font-size: clamp(30px, 7vw, 72px) !important;
  letter-spacing: clamp(1px, 0.5vw, 3px);
}

.hero-subtitle {
  font-size: clamp(13px, 2.2vw, 20px) !important;
  letter-spacing: clamp(0.5px, 0.3vw, 1.5px);
}

/* Propiedades: tipo y ubicación en cards */
.property-text .prop-type {
  font-size: clamp(13px, 2vw, 16px);
}

.property-text .prop-location {
  font-size: clamp(11px, 1.5vw, 13px);
}

/* Modal: ajuste de tipografía */
.modal-header h3 {
  font-size: clamp(16px, 3vw, 22px);
}

.modal-price-value {
  font-size: clamp(16px, 2.5vw, 20px);
}

.modal-card-label {
  font-size: clamp(10px, 1.5vw, 12px);
}

.modal-card-value {
  font-size: clamp(12px, 1.8vw, 14px);
}

/* Buscador de propiedades */
.search-bar select,
.search-bar input {
  font-size: clamp(12px, 1.6vw, 14px);
}

/* ── MOBILE ESPECÍFICO ── */
@media (max-width: 640px) {

  /* Espaciado de secciones */
  #nosotros  { padding: 32px 16px; }
  #servicios { padding: 0; }
  #contacto  { padding: 40px 16px; }

  /* Contacto: íconos y links en fila */
  #contacto li {
    justify-content: flex-start;
    font-size: 14px;
  }

  /* Formulario de contacto */
  #contacto .form-floating label { font-size: 13px; }

  /* Footer: listas centradas */
  .footer-section ul { padding: 0; }
  .footer-section li { justify-content: center; }

  /* Nosotros: ¿Quiénes Somos? padding */
  #nosotros > .my-4 { margin: 16px 0 !important; }
  #nosotros > .my-4 p { font-size: 13px; text-align: left; padding: 0; }

  /* Servicios: alinear a la izquierda en mobile para mejor lectura */
  #servicios h4 { font-size: 16px; }
  #servicios p  { font-size: 13px; padding: 0 8px; }
}

/* ─── CARRUSEL MODAL CON SOPORTE PARA VIDEO ────────────────────────────────── */

/* Cada slide es un div que contiene una img O un video */
.modal-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.modal-slide.active { display: block; }

/* Slide de imagen normal */
.modal-slide img.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Slide de video — ocupa todo el contenedor */
.modal-slide-video {
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-slide-video.active { display: flex; }

/* El elemento <video> dentro del slide */
.modal-prop-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #000;
  /* Asegurar que los controles nativos sean visibles */
  outline: none;
}
