/* =====================================================================
   PATRICIA DAADIN — Martillera, San Salvador de Jujuy
   Hoja de estilos base

   Identidad definitiva (aprobada por la clienta): "cálida y regional",
   en rojo / negro / blanco. Tipografía redondeada (Sora + Mulish),
   formas orgánicas y botones/tarjetas con esquinas curvas — cercana y
   humana, sin look de plantilla genérica.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* --- Color: rojo / negro / blanco, extraídos del isologo real --- */
  --color-primary: #c40202;        /* rojo del isologo */
  --color-primary-dark: #111111;   /* negro del isologo — fondos oscuros, texto fuerte */
  --color-primary-light: #fbdcdc;  /* rojo pálido */
  --color-secondary: #c40202;
  --color-secondary-dark: #8a0202;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-light: #6b6b6b;
  --color-text-inverse: #ffffff;
  --color-border: #ececec;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebc59;
  --color-danger: #b00020;

  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Mulish', 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 20px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 16px 32px rgba(20, 20, 20, 0.1);
  --shadow-lg: 0 24px 48px rgba(20, 20, 20, 0.14);
  --header-height: 78px;
  --transition: 0.2s ease;
}

/* ===== Reset básico ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.ico-wsp {
  flex-shrink: 0;
  display: block;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.btn-dark:hover {
  background: var(--color-primary);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.brand-mark-img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 12px;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bg-alt);
  padding: 6px;
  border-radius: 999px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover {
  color: var(--color-primary-dark);
}

.main-nav a.active {
  background: var(--color-primary-dark);
  color: #fff;
}

.main-nav a.nav-admin {
  color: var(--color-text-light);
  font-size: 0.82rem;
}

.main-nav a.nav-admin.active {
  background: var(--color-primary);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  background: var(--color-bg-dark);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlideshowFade 18s infinite;
}

.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }

@keyframes heroSlideshowFade {
  0%,
  100% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  34% {
    opacity: 0;
  }
}

/* Velo oscuro sobre las fotos para que el texto blanco siga siendo legible */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(26, 15, 15, 0.88) 0%, rgba(26, 15, 15, 0.6) 50%, rgba(26, 15, 15, 0.28) 100%);
  pointer-events: none;
}

/* Manchas orgánicas redondeadas de color (reemplazan el bloque diagonal duro) */
.hero::before {
  content: '';
  position: absolute;
  top: -18%;
  right: -10%;
  width: 46%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  background: var(--color-primary);
  opacity: 0.9;
  border-radius: 61% 39% 45% 55% / 52% 45% 55% 48%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -14%;
  right: 14%;
  width: 18%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  background: var(--color-text-inverse);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img {
    animation: none;
    opacity: 0;
  }

  .hero-slideshow img:first-child {
    opacity: 1;
  }
}

.hero-content {
  max-width: 680px;
  padding: 60px 0 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 18px;
}

.hero h1 span {
  color: #ff8a97;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

/* ===== Buscador rápido ===== */
.search-panel {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  margin: 0 auto;
  margin-top: -64px;
  max-width: var(--max-width);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-tab {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.search-tab.active {
  background: var(--color-primary);
  color: #fff;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.field select,
.field input {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.field select:focus,
.field input:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}

/* ===== Grid de propiedades ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.property-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-media svg,
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.badge-venta { background: var(--color-primary); }
.badge-alquiler { background: var(--color-primary-dark); }
.badge-temporal { background: #6b6b6b; }

.property-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.property-fav:hover {
  transform: scale(1.08);
}

.property-fav.is-fav {
  color: var(--color-primary);
}

.property-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.property-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.property-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.property-location {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.property-features {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.property-features span:not(:last-child)::after {
  content: "\00a0\00b7";
  margin-left: 14px;
  color: var(--color-border);
}

.property-cta {
  margin-top: 6px;
}

.section-footer-link {
  text-align: center;
  margin-top: 40px;
}

/* ===== Placeholder image (SVG) ===== */
.ph-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7e6e0, #efc3b4);
  color: #a5715e;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  gap: 4px;
  flex-direction: column;
}

.ph-img svg {
  width: 34px;
  height: 34px;
  opacity: 0.55;
}

/* ===== Sobre mí ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.about-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text-light);
}

.about-list li strong {
  color: var(--color-text);
  display: block;
}

.check-ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.check-ico svg {
  width: 13px;
  height: 13px;
}

/* ===== CTA banda ===== */
.cta-band {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -6%;
  width: 40%;
  aspect-ratio: 1/1;
  background: var(--color-primary);
  opacity: 0.35;
  border-radius: 58% 42% 48% 52% / 55% 45% 55% 45%;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Filtros página propiedades ===== */
.filters-bar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 34px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: end;
}

.filters-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  align-items: center;
}

.price-range-field {
  display: flex;
  gap: 8px;
}

.price-range-field input {
  min-width: 0;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
}

.results-bar strong {
  color: var(--color-text);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--color-text);
}

/* ===== Calculadora ===== */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-result {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
}

.calc-result h3 {
  color: #fff;
  margin-bottom: 6px;
}

.calc-result .calc-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.calc-output {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
}

.calc-output-row span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.calc-output-row strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #ff8a97;
}

.calc-disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ===== Formulario contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contact-info-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-ico svg {
  width: 20px;
  height: 20px;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 3px;
}

.contact-info-item span,
.contact-info-item a {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}

.social-row a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Breadcrumb / page header interno ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  padding: 56px 0 44px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 34%;
  aspect-ratio: 1/1;
  background: var(--color-primary);
  opacity: 0.55;
  border-radius: 58% 42% 48% 52% / 55% 45% 55% 45%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 7px 18px;
  border-radius: 999px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 14px 0 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Eyebrow plana (secciones no centradas) ===== */
.eyebrow-plain {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 18px;
  border-radius: 999px;
}

/* ===== Credenciales en línea ===== */
.credentials-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 8px;
  margin: 22px 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.credentials-row strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-right: 4px;
}

/* ===== Testimonios en formato de cita editorial ===== */
.quote-stack {
  max-width: 660px;
  margin-bottom: 8px;
}

.quote-stack .eyebrow-plain {
  margin-bottom: 26px;
}

.quote-block {
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
}

.quote-block:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.quote-block p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.quote-block--lead p {
  font-size: 1.4rem;
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.quote-disclaimer {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ===== Lista de principios numerada ===== */
.principles-list {
  max-width: 740px;
}

.principles-list > .eyebrow-plain {
  margin-bottom: 28px;
}

.principle-row {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
  align-items: flex-start;
}

.principle-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.principle-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.principle-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.principle-heading svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.principle-heading h3 {
  font-size: 1.1rem;
}

.principle-row p {
  color: var(--color-text-light);
}

/* ===== Detalle de propiedad ===== */
.detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-bottom: 34px;
}

.detail-gallery-main {
  aspect-ratio: 16/11;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.detail-gallery-side > div {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-gallery-main svg,
.detail-gallery-main img,
.detail-gallery-side svg,
.detail-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.detail-title h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.detail-price {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
}

.detail-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.detail-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 26px;
}

.detail-features div {
  text-align: center;
}

.detail-features strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.detail-features span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.detail-desc h2,
.detail-amenities h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.detail-desc p {
  color: var(--color-text-light);
  margin-bottom: 26px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.amenities-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.avatar-ph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.sidebar-agent strong {
  display: block;
}

.sidebar-agent span {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 1.6rem;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.07);
}

/* ===== Asistente virtual (chatbot) ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 94px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform var(--transition);
}

.chatbot-toggle:hover {
  transform: scale(1.07);
}

.chatbot-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 900;
  width: min(340px, calc(100vw - 32px));
  max-height: min(480px, calc(100vh - 140px));
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chatbot-header strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

.chatbot-header span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.chatbot-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chatbot-bubble--bot {
  align-self: flex-start;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.chatbot-bubble--user {
  align-self: flex-end;
  background: var(--color-primary-dark);
  color: #fff;
}

.chatbot-bubble--typing {
  color: var(--color-text-light);
  font-style: italic;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
}

.chatbot-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.chatbot-form button {
  width: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.chatbot-disclaimer {
  padding: 0 14px 12px;
  font-size: 0.72rem;
  color: var(--color-text-light);
}

@media (max-width: 480px) {
  .chatbot-toggle {
    right: 84px;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  border-top: 4px solid var(--color-primary);
}

.header-seam {
  height: 4px;
  background: var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}

/* El isologo tiene trazos negros que se pierden sobre el footer oscuro:
   se le da una placa blanca para que se lea completo. */
.footer-brand .brand-mark-img {
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-sizing: border-box;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #ff8a97;
}

.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-credit a {
  color: #ff8a97;
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid,
  .detail-layout,
  .calc-wrap {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

/* ===== Panel admin ===== */
.admin-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 26px;
}

.admin-card h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.admin-card .admin-card-desc {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.admin-form-grid .field-full {
  grid-column: 1 / -1;
}

.admin-banner {
  background: var(--color-primary-light);
  border: 1px solid rgba(200, 16, 46, 0.25);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.88rem;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.admin-banner strong {
  display: block;
  margin-bottom: 3px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: start;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.admin-sidebar-link:hover {
  background: var(--color-bg-alt);
}

.admin-sidebar-link.is-active {
  background: var(--color-primary);
  color: #fff;
}

.admin-sidebar-link.is-disabled {
  color: var(--color-text-light);
  opacity: 0.6;
  cursor: default;
}

.admin-sidebar-ico {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.admin-sidebar-group-label {
  margin: 14px 4px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
}

.admin-content {
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.admin-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.admin-tab:hover {
  border-color: var(--color-primary);
}

.admin-tab.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.admin-tab-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.admin-section-help {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 22px;
  max-width: 62ch;
}

.admin-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-list-row:last-child {
  border-bottom: none;
}

.admin-list-thumb {
  width: 64px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.admin-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-list-info {
  flex: 1;
  min-width: 0;
}

.admin-list-title {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  max-width: 100%;
  vertical-align: middle;
}

.admin-status-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--color-danger);
  color: #fff;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.admin-delete-link {
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.admin-delete-link:hover {
  color: var(--color-danger);
}

.admin-list-meta {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.admin-featured-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-featured-toggle input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.admin-message-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-message-card:last-child {
  border-bottom: none;
}

.admin-message-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.admin-message-who {
  font-weight: 700;
}

.admin-message-contact {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.admin-message-date {
  color: var(--color-text-light);
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .admin-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Widget de carga de fotos ===== */
.photo-manager {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pm-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.pm-dropzone:hover,
.pm-dropzone:focus-visible {
  border-color: var(--color-primary);
  outline: none;
}

.pm-dropzone.is-dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.pm-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pm-dropzone-ico {
  font-size: 2rem;
}

.pm-dropzone-inner strong {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
}

.pm-dropzone-inner span {
  color: var(--color-text-light);
  font-size: 0.86rem;
  max-width: 420px;
}

.pm-dropzone-inner .btn {
  margin-top: 6px;
}

.pm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.pm-bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-hint {
  font-size: 0.82rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.pm-thumb {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.pm-thumb.is-dragging {
  opacity: 0.4;
}

.pm-thumb.is-drag-over {
  outline: 2px dashed var(--color-primary);
  outline-offset: -2px;
  transform: scale(1.02);
}

.pm-thumb.is-selected {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.pm-thumb-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.pm-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.pm-thumb-index {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(26, 26, 26, 0.6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-thumb-select {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
}

.pm-thumb-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.pm-thumb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid var(--color-border);
}

.pm-thumb-actions button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  transition: background var(--transition), color var(--transition);
}

.pm-thumb-actions button:hover:not(:disabled) {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.pm-thumb-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pm-thumb-delete:hover:not(:disabled) {
  color: var(--color-danger) !important;
}

.pm-thumb-name {
  display: block;
  padding: 0 8px 8px;
  font-size: 0.72rem;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 780px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 10px;
    border-radius: 0;
    box-shadow: var(--shadow-md);
  }

  .hero {
    min-height: auto;
  }

  .search-panel {
    margin-top: 24px;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .filters-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-price {
    text-align: left;
  }
}

/* ===================== Recibo imprimible (Cobranzas) ===================== */
#recibo-imprimible-wrap {
  display: none;
}

body.printing-recibo > *:not(#recibo-imprimible-wrap) {
  display: none !important;
}

body.printing-recibo #recibo-imprimible-wrap {
  display: block !important;
}

/* ===================== Aviso en pantalla (panel admin) ===================== */
.admin-aviso {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2000;
  max-width: 90vw;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  animation: admin-aviso-in 0.2s ease-out;
}

.admin-aviso--ok {
  background: #1a9c4a;
}

.admin-aviso--error {
  background: var(--color-danger);
}

@keyframes admin-aviso-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
