/* ==================================================================
   Ferrara Propiedades — estilos del prototipo de mapa
   Los colores de acá son un punto de partida (rojo/verde de marca).
   Ajustá los valores de :root cuando tengas los códigos exactos.
   ================================================================== */

:root {
  --fp-red: #c1272d;
  --fp-red-dark: #8f1c21;
  --fp-red-bg: #fbe9e7;
  --fp-green: #1f6d3b;
  --fp-green-dark: #164f2a;
  --fp-green-bg: #e8f2ea;
  --fp-dark: #1b1b1b;
  --fp-gray: #6b6b6b;
  --fp-gray-light: #979390;
  --fp-neutral: #f5f3f0;
  --fp-border: #e7e3dd;
  --fp-white: #ffffff;
  --fp-header-height: 100px;
  --fp-font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --fp-max: 1180px;
  --fp-radius: 10px;
  --fp-radius-sm: 8px;
  --fp-shadow: 0 1px 3px rgba(27, 27, 27, 0.05);
  --fp-shadow-hover: 0 6px 16px rgba(27, 27, 27, 0.09);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--fp-font);
  color: var(--fp-dark);
  background: var(--fp-neutral);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.section-inner {
  max-width: var(--fp-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fp-green);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 8px 0 10px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--fp-gray);
  font-size: 0.95rem;
  margin: 0 0 30px;
  max-width: 620px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--fp-dark);
  color: var(--fp-dark) !important;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: var(--fp-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--fp-dark);
  color: var(--fp-white) !important;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--fp-red);
  border: none;
  color: var(--fp-white) !important;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--fp-radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-solid:hover {
  background: var(--fp-red-dark);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  height: var(--fp-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  background: var(--fp-white);
  border-bottom: 1px solid var(--fp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.header-brand .logo {
  height: 70px;
  width: auto;
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--fp-dark);
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  color: var(--fp-dark);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--fp-red);
}

.nav-link.is-active {
  border-bottom-color: var(--fp-red);
}

.site-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fp-neutral);
  color: var(--fp-dark);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: var(--fp-red);
  color: var(--fp-white);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fp-dark);
}

.header-status {
  font-size: 0.8rem;
  color: var(--fp-gray);
  transition: opacity 0.3s ease;
}

.header-status.is-error {
  color: var(--fp-red);
  font-weight: 600;
}

.header-status.is-hidden {
  opacity: 0;
}

/* ---------- Mapa full width (Home) ---------- */

.hero-map {
  position: relative;
  height: calc(100vh - var(--fp-header-height));
  min-height: 420px;
  width: 100%;
}

#map {
  height: 100%;
  width: 100%;
}

.map-status {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fp-white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 5;
  transition: opacity 0.3s ease;
}

.map-status.is-error {
  color: var(--fp-red);
  font-weight: 600;
}

.map-status.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: fp-bounce 1.8s infinite;
  z-index: 5;
}

@keyframes fp-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Marcador (isotipo Ferrara) ---------- */

.fp-marker {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  cursor: pointer;
  transform: translateY(4px); /* el "punto" del pin queda sobre la coordenada */
}

.fp-marker img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Cluster (agrupación de marcadores) ---------- */

.fp-cluster {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fp-red);
  color: var(--fp-white);
  border: 3px solid var(--fp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

/* ---------- Tarjeta emergente (InfoWindow) ---------- */

.fp-card {
  width: 240px;
  font-family: var(--fp-font);
  overflow: hidden;
  border-radius: 4px;
}

.fp-card-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--fp-neutral);
}

.fp-card-body {
  padding: 10px 4px 4px;
}

.fp-card-tag {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fp-green);
  font-weight: 700;
  margin-bottom: 2px;
}

.fp-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fp-dark);
}

.fp-card-title {
  font-size: 0.82rem;
  color: var(--fp-dark);
  margin-top: 2px;
  line-height: 1.3;
}

.fp-card-location {
  font-size: 0.78rem;
  color: var(--fp-gray);
  margin-top: 4px;
}

.fp-card-highlight {
  font-size: 0.78rem;
  color: var(--fp-gray);
  margin-top: 2px;
}

.fp-card-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--fp-red);
  color: var(--fp-white) !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.fp-card-btn:hover {
  background: var(--fp-red-dark);
}

/* ---------- Header: link "volver al mapa" (ficha de propiedad) ---------- */

.header-back-link {
  font-size: 0.85rem;
  color: var(--fp-dark);
  text-decoration: none;
  font-weight: 600;
}

.header-back-link:hover {
  color: var(--fp-red);
}

/* ---------- Ficha de propiedad ---------- */

.ficha-loading,
.ficha-not-found {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
  color: var(--fp-gray);
}

.ficha-not-found a {
  color: var(--fp-red);
  font-weight: 600;
}

.ficha-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 70px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}

.ficha-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--fp-neutral);
  display: block;
}

.ficha-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ficha-thumbs img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.ficha-thumbs img.is-active {
  opacity: 1;
  border-color: var(--fp-red);
}

.ficha-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fp-green-dark);
  font-weight: 700;
  border: 1px solid var(--fp-green);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.ficha-price {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--fp-dark);
  line-height: 1.15;
}

.ficha-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 8px 0 4px;
  line-height: 1.35;
}

.ficha-location {
  color: var(--fp-gray);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ficha-reference {
  font-size: 0.75rem;
  color: var(--fp-gray);
  margin-bottom: 16px;
}

.ficha-characteristics {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.ficha-characteristics li {
  font-size: 0.85rem;
  color: var(--fp-gray);
  border-bottom: 1px solid #ece8e2;
  padding-bottom: 7px;
}

.ficha-characteristics li strong {
  display: block;
  color: var(--fp-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.ficha-desc {
  white-space: pre-line;
  line-height: 1.65;
  font-size: 0.92rem;
  color: #333;
  margin-top: 24px;
  grid-column: 1 / -1;
}

.ficha-map {
  height: 260px;
  border-radius: 4px;
  overflow: hidden;
}

.ficha-contact {
  padding: 20px;
  background: var(--fp-white);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
}

.ficha-form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ficha-producer {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--fp-white);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
}

.ficha-producer-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ficha-producer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
}

.ficha-producer-name {
  font-weight: 700;
  color: var(--fp-dark);
  margin-bottom: 4px;
}

.ficha-producer-info a {
  display: block;
  font-size: 0.88rem;
  color: #333;
  text-decoration: none;
}

.ficha-producer-info a:hover {
  text-decoration: underline;
}

/* ---------- Ficha: bloque form + mapa + street view (full width) ---------- */

.ficha-extra {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.ficha-extra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.ficha-extra .ficha-streetview {
  margin-top: 24px;
}

.ficha-contact h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--fp-white) !important;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: var(--fp-radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.ficha-contact-email {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--fp-gray);
}

.ficha-contact-email a {
  color: var(--fp-gray);
}

/* ---------- Breadcrumb / volver ---------- */

.breadcrumb {
  max-width: var(--fp-max);
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--fp-gray);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--fp-red);
}

/* ---------- Grilla de propiedades (Home "últimas" + Propiedades) ---------- */

.section-latest {
  background: var(--fp-white);
  padding: 60px 0;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.property-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: var(--fp-white);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  overflow: hidden;
  box-shadow: var(--fp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-hover);
}

.property-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--fp-neutral);
}

.property-card-photo--empty {
  background: linear-gradient(135deg, var(--fp-neutral), #ece8e2);
}

.property-card-body {
  padding: 16px 18px 20px;
}

.property-card-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--fp-green-dark);
  font-weight: 700;
  border: 1px solid var(--fp-green);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.property-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
}

.property-card-title {
  font-size: 0.84rem;
  margin-top: 4px;
  line-height: 1.35;
  color: var(--fp-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-location {
  font-size: 0.78rem;
  color: var(--fp-gray);
  margin-top: 6px;
}

.property-card-highlight {
  font-size: 0.78rem;
  color: var(--fp-gray);
  margin-top: 2px;
}

.section-latest-footer {
  text-align: center;
  margin-top: 36px;
}

.grid-empty,
.grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--fp-gray);
  padding: 40px 0;
}

/* ---------- Formulario de contacto ---------- */

.section-contact {
  background: var(--fp-neutral);
  padding: 60px 0;
}

.contact-form {
  max-width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form.contact-form--wide {
  max-width: 820px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-sm);
  font-family: var(--fp-font);
  font-size: 0.88rem;
  background: var(--fp-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fp-red);
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 110px;
  resize: vertical;
}

.contact-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.85rem;
  color: var(--fp-gray);
}

.form-status.is-ok {
  color: var(--fp-green);
  font-weight: 600;
}

.form-status.is-error {
  color: var(--fp-red);
  font-weight: 600;
}

/* Honeypot: campo señuelo anti-spam, invisible para personas */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer + subfooter ---------- */

.site-footer {
  background: #1a1a1a;
  color: #d8d5d0;
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--fp-white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: #b9b5b0;
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--fp-white);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-brand .logo {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-brand-name {
  color: var(--fp-white);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social .social-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fp-white);
}

.footer-social .social-icon:hover {
  background: var(--fp-red);
}

.site-subfooter {
  max-width: var(--fp-max);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #83807c;
}

/* ---------- Filtros (Propiedades) ---------- */

.filters-bar {
  background: var(--fp-white);
  border-bottom: 1px solid var(--fp-border);
  padding: 18px 0;
  position: sticky;
  top: var(--fp-header-height);
  z-index: 40;
}

.filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-row select,
.filters-row input {
  padding: 10px 12px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-sm);
  font-family: var(--fp-font);
  font-size: 0.85rem;
  background: var(--fp-white);
  color: var(--fp-dark);
}

.filters-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--fp-gray);
}

.listing-section {
  padding: 36px 0 70px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.load-more-wrap {
  text-align: center;
  margin-top: 34px;
}

.page-hero {
  padding: 50px 0 10px;
  text-align: center;
}

.page-hero .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Ficha: chips de servicios/ambientes/comodidades ---------- */

.ficha-tags-group {
  margin-top: 18px;
}

.ficha-tags-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fp-gray);
  margin: 0 0 8px;
}

.ficha-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ficha-chip {
  background: var(--fp-neutral);
  border: 1px solid var(--fp-border);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 0.78rem;
  color: var(--fp-dark);
}

/* ---------- Ficha: galería armónica ---------- */

.ficha-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 4px;
}

.ficha-gallery-hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--fp-radius);
  overflow: hidden;
  background: var(--fp-neutral);
}

.ficha-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.ficha-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gallery-tile {
  background: var(--fp-neutral);
  overflow: hidden;
  position: relative;
  border-radius: var(--fp-radius-sm);
  aspect-ratio: 1 / 1;
}

.ficha-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: opacity 0.15s ease;
}

.ficha-gallery-thumbs img:hover {
  opacity: 0.85;
}

.ficha-gallery-more {
  position: relative;
}

.ficha-gallery-more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: var(--fp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Lightbox */
.fp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-lightbox[hidden] {
  display: none;
}

.fp-lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
}

.fp-lightbox-close,
.fp-lightbox-prev,
.fp-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--fp-white);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.fp-lightbox-close {
  top: 18px;
  right: 18px;
}

.fp-lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.fp-lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.fp-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #d8d5d0;
  font-size: 0.8rem;
}

/* ---------- Ficha: Street View ---------- */

.ficha-streetview {
  height: 260px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--fp-neutral);
}

.ficha-streetview[hidden] {
  display: none;
}

/* ---------- Historia ---------- */

.historia-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.historia-main h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.historia-main .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.historia-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #333;
  margin-top: 24px;
}

.historia-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--fp-border);
  border-bottom: 1px solid var(--fp-border);
}

.historia-stats div {
  text-align: center;
}

.historia-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--fp-red);
}

.historia-stats span {
  font-size: 0.8rem;
  color: var(--fp-gray);
}

/* ---------- Contacto (página) ---------- */

.contacto-main {
  max-width: var(--fp-max);
  margin: 0 auto;
  padding: 50px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contacto-info h3 {
  font-size: 0.95rem;
  margin: 22px 0 6px;
}

.contacto-map {
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .property-grid,
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fp-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--fp-border);
    display: none;
  }
  .site-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-border);
  }
  .nav-toggle {
    display: flex;
  }
  .site-header.nav-open .site-nav {
    display: flex;
  }
  .contacto-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .ficha-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ficha-extra-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .property-grid,
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ficha-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }
  .header-status {
    font-size: 0.72rem;
    max-width: 130px;
    text-align: right;
  }
  .ficha-price {
    font-size: 1.5rem;
  }
  .ficha-characteristics {
    grid-template-columns: 1fr 1fr;
  }
  .property-grid,
  .listing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .section-title {
    font-size: 1.35rem;
  }
}

.historia-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
}

.historia-valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--fp-border);
}

.historia-valor {
  text-align: center;
}

.historia-valor-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.historia-valor-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--fp-red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.historia-valor h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.historia-valor p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fp-gray);
}

/* Mobile */
@media (max-width: 700px) {
  .historia-valores {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

.footer-disclaimer {
  margin: 24px 0 0;
  max-width: 300px;
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--fp-gray);
  opacity: 0.75;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

@media (max-width: 700px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}
