/* ================================================================
   VendoUnaCasa.com — Sistema de Diseño Completo
   Estética: Elegante Rural
   ================================================================ */

/* ----------------------------------------------------------------
   1. RESET MODERNO
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ----------------------------------------------------------------
   2. CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Paleta "Elegante Rural" */
  --color-beige:        #C8A882;
  --color-beige-dark:   #A88860;
  --color-piedra:       #7D6E63;
  --color-oliva:        #6B7C5C;
  --color-oliva-dark:   #556349;
  --color-crema:        #F7F3EE;
  --color-crema-alt:    #EDE8E1;
  --color-oscuro:       #2C2416;
  --color-oscuro-med:   #4A3F35;
  --color-texto:        #3D3228;
  --color-texto-suave:  #7D6E63;
  --color-blanco:       #FDFAF7;

  /* Tipografía */
  --font-titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-cuerpo: 'Lato', Arial, Helvetica, sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Espaciado */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --gutter:    clamp(1rem, 4vw, 2rem);

  /* Componentes */
  --radius-sm: 3px;
  --radius-md: 8px;
  --header-h:  72px;

  /* Sombras */
  --shadow-sm: 0 1px 4px rgba(44,36,22,0.08);
  --shadow-md: 0 4px 16px rgba(44,36,22,0.12);
  --shadow-lg: 0 8px 32px rgba(44,36,22,0.18);

  /* Transiciones */
  --ease:      0.3s ease;
  --ease-slow: 0.6s ease;
}

/* ----------------------------------------------------------------
   3. BASE TIPOGRÁFICA
   ---------------------------------------------------------------- */
html { font-size: clamp(15px, 1vw + 12px, 17px); }

body {
  font-family: var(--font-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-crema);
  font-size: var(--text-base);
  line-height: 1.75;
}

h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  color: var(--color-oscuro);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.875rem, 5vw, 3rem);   margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.5rem,   3vw, 2.25rem); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.25rem,  2vw, 1.5rem);  margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); color: var(--color-texto); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-oliva);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--ease), text-decoration-color var(--ease);
}
a:hover {
  color: var(--color-oliva-dark);
  text-decoration-color: currentColor;
}

ul { list-style: none; }

/* Accesibilidad */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-beige);
  color: var(--color-oscuro);
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-beige);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   4. LAYOUT
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 780px; }

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-content-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2col             { grid-template-columns: 1fr 1fr; }
  .grid-content-sidebar  { grid-template-columns: 2fr 1fr; }
}

/* ----------------------------------------------------------------
   5. HEADER & NAVEGACIÓN
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(44,36,22,0);
  transition: background var(--ease), box-shadow var(--ease);
}

.site-header.is-solid,
.site-header--solid {
  background: rgba(44,36,22,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
}

/* Logo tipográfico */
.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.site-logo__name {
  font-family: var(--font-titulo);
  font-size: var(--text-lg);
  color: var(--color-blanco);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-logo__sub {
  font-family: var(--font-cuerpo);
  font-size: 0.65rem;
  color: var(--color-beige);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Navegación */
.site-nav { display: flex; align-items: center; gap: var(--space-sm); }

.nav-list {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(44,36,22,0.98);
  padding: var(--space-md) var(--gutter) var(--space-lg);
  gap: 0;
}
.nav-list.is-open { display: flex; }

.nav-list a {
  display: block;
  font-family: var(--font-cuerpo);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-crema);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(200,168,130,0.15);
  transition: color var(--ease);
}
.nav-list a:hover,
.nav-list li.active a { color: var(--color-beige); }
.nav-list li.active a { border-bottom-color: var(--color-beige); }

/* Selector de idioma */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-cuerpo);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang-btn {
  color: rgba(253,250,247,0.5);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  transition: color var(--ease);
}
.lang-btn:hover,
.lang-btn--active { color: var(--color-beige); }
.lang-sep { color: rgba(253,250,247,0.25); font-weight: 300; }

/* Botón hamburguesa */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-blanco);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: var(--space-md);
  }
  .nav-list a {
    font-size: var(--text-xs);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-list a:hover,
  .nav-list li.active a { border-bottom-color: var(--color-beige); }
}

/* ----------------------------------------------------------------
   6. HERO (Swiper — fullscreen)
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
}

.hero .swiper { height: 100%; }

.hero .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,36,22,0.1) 0%,
    rgba(44,36,22,0.45) 55%,
    rgba(44,36,22,0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: clamp(3rem, 10vh, 6rem);
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding-inline: var(--gutter);
}

.hero-title {
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--color-blanco);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-family: var(--font-cuerpo);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--color-beige);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Paginación Swiper */
.hero .swiper-pagination-bullet {
  background: var(--color-beige);
  opacity: 0.5;
  width: 10px;
  height: 10px;
}
.hero .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.25);
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(253,250,247,0.55);
  font-family: var(--font-cuerpo);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.5s ease infinite;
}
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ----------------------------------------------------------------
   7. HÉROE ESTÁTICO (páginas interiores)
   ---------------------------------------------------------------- */
.page-hero {
  height: clamp(220px, 35vw, 380px);
  background: var(--color-oscuro);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: var(--header-h);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) var(--gutter);
}
.page-hero-content h1 { color: var(--color-blanco); margin-bottom: 0.25rem; }
.page-hero-content p  { color: var(--color-beige); margin-bottom: 0; font-size: var(--text-lg); }

/* ----------------------------------------------------------------
   8. BOTONES
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cuerpo);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--color-beige);
  color: var(--color-oscuro);
  border-color: var(--color-beige);
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-beige);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-blanco);
  border-color: rgba(253,250,247,0.7);
}
.btn-outline:hover {
  background: var(--color-blanco);
  color: var(--color-oscuro);
  border-color: var(--color-blanco);
  text-decoration: none;
}

.btn-dark {
  background: var(--color-oscuro);
  color: var(--color-blanco);
  border-color: var(--color-oscuro);
}
.btn-dark:hover {
  background: transparent;
  color: var(--color-oscuro);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   9. SECCIÓN: MÉTRICAS (strip oscuro)
   ---------------------------------------------------------------- */
.metrics {
  background: var(--color-oscuro);
  padding: var(--space-lg) 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(200,168,130,0.12);
}
@media (min-width: 600px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

.metric-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-oscuro);
}
.metric-value {
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-beige);
  line-height: 1;
  display: block;
}
.metric-unit { font-size: var(--text-xl); font-weight: 400; }
.metric-label {
  font-family: var(--font-cuerpo);
  font-size: var(--text-xs);
  color: rgba(253,250,247,0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
  display: block;
}

/* ----------------------------------------------------------------
   10. SECCIONES GENÉRICAS
   ---------------------------------------------------------------- */
.section { padding: var(--space-xl) 0; }
.section--alt { background: var(--color-crema-alt); }
.section--dark { background: var(--color-oscuro-med); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-label {
  display: block;
  font-family: var(--font-cuerpo);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-oliva);
  margin-bottom: var(--space-xs);
}
.section-title { margin-bottom: var(--space-xs); }
.section-intro {
  font-size: var(--text-lg);
  color: var(--color-texto-suave);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   11. SECCIÓN: INTRO SPLIT (texto + lista de facilidades)
   ---------------------------------------------------------------- */
.intro-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 768px) {
  .intro-split { grid-template-columns: 1fr 1fr; }
}

.intro-split__text p { color: var(--color-texto-suave); line-height: 1.8; }

.facilities-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.facilities-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--color-texto);
  line-height: 1.5;
}
.facilities-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-beige);
  border-radius: 50%;
  margin-top: 0.5em;
  flex-shrink: 0;
}
.facilities-list a { color: var(--color-oliva); }

/* ----------------------------------------------------------------
   12. PREVIEW GALERÍA (grid de 6 fotos en index)
   ---------------------------------------------------------------- */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 600px) {
  .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-crema-alt);
}
.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.gallery-preview-item:hover img { transform: scale(1.06); }

.gallery-preview-cta {
  text-align: center;
  margin-top: var(--space-md);
}

/* ----------------------------------------------------------------
   13. GALERÍA COMPLETA (fotos.html)
   ---------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.filter-btn {
  background: none;
  border: 1px solid var(--color-piedra);
  color: var(--color-piedra);
  font-family: var(--font-cuerpo);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-oscuro);
  color: var(--color-blanco);
  border-color: var(--color-oscuro);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-crema-alt);
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,36,22,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.gallery-item-overlay svg {
  color: var(--color-blanco);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--ease), transform var(--ease);
  width: 32px;
  height: 32px;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-item-overlay { background: rgba(44,36,22,0.45); }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; transform: scale(1); }

.gallery-item.hidden { display: none; }

/* ----------------------------------------------------------------
   14. BANNER CTA (contacto)
   ---------------------------------------------------------------- */
.cta-banner {
  background: var(--color-oliva);
  padding: var(--space-xl) 0;
  text-align: center;
}
.cta-banner h2  { color: var(--color-blanco); margin-bottom: var(--space-xs); }
.cta-banner p   { color: rgba(253,250,247,0.8); margin-bottom: var(--space-lg); font-size: var(--text-lg); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ----------------------------------------------------------------
   15. MAPA LEAFLET
   ---------------------------------------------------------------- */
.map-section { padding: var(--space-xl) 0; }
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
}
#mapa-leaflet {
  height: clamp(280px, 40vw, 440px);
  width: 100%;
  background: var(--color-crema-alt);
}
.leaflet-popup-content-wrapper {
  font-family: var(--font-cuerpo);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.map-marker {
  background: var(--color-beige);
  border: 3px solid var(--color-oscuro);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  width: 24px;
  height: 24px;
}

/* ----------------------------------------------------------------
   16. CONTACTO: CARDS + FORMULARIO
   ---------------------------------------------------------------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
@media (min-width: 480px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  background: var(--color-blanco);
  border-left: 3px solid var(--color-beige);
  padding: var(--space-md);
  text-decoration: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-card__icon {
  width: 42px;
  height: 42px;
  background: var(--color-crema-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__icon svg { width: 20px; height: 20px; color: var(--color-oliva); }
.contact-card__label {
  font-family: var(--font-cuerpo);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-texto-suave);
}
.contact-card__value {
  font-family: var(--font-titulo);
  font-size: var(--text-lg);
  color: var(--color-oscuro);
  font-weight: 600;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-oscuro);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-blanco);
  border: 1.5px solid var(--color-crema-alt);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-texto);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-beige);
  box-shadow: 0 0 0 3px rgba(200,168,130,0.2);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ----------------------------------------------------------------
   17. LA CASA: PLANTAS + VÍDEOS + SIDEBAR
   ---------------------------------------------------------------- */
.planta-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-crema-alt);
}
.planta-section:last-of-type { border-bottom: none; }

.planta-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.planta-icon {
  width: 52px;
  height: 52px;
  background: var(--color-crema-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.planta-icon svg { width: 26px; height: 26px; color: var(--color-beige); }

.planta-m2 {
  display: inline-block;
  font-family: var(--font-titulo);
  font-size: var(--text-4xl);
  color: var(--color-beige);
  font-weight: 700;
  line-height: 1;
}
.planta-unit { font-size: var(--text-2xl); font-weight: 400; }

/* Vídeos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) { .video-grid { grid-template-columns: 1fr 1fr; } }

.video-wrapper {
  background: var(--color-oscuro);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-wrapper video { width: 100%; height: auto; display: block; }
.video-caption {
  font-size: var(--text-sm);
  text-align: center;
  padding: 0.5rem var(--space-sm);
  background: var(--color-oscuro);
  color: rgba(253,250,247,0.55);
}

/* Sidebar de la propiedad */
.property-sidebar { display: flex; flex-direction: column; gap: var(--space-md); }

.sidebar-card {
  background: var(--color-blanco);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-beige);
}

.property-facts { display: flex; flex-direction: column; gap: 0.4rem; }
.property-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-crema-alt);
  color: var(--color-texto-suave);
}
.property-facts li:last-child { border-bottom: none; }
.property-facts li strong { color: var(--color-oscuro); }

.sidebar-contact { display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--color-texto);
  text-decoration: none;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-crema-alt);
  transition: color var(--ease);
}
.sidebar-contact-link:last-child { border-bottom: none; }
.sidebar-contact-link:hover { color: var(--color-oliva); text-decoration: none; }
.sidebar-contact-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-beige);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   18. AVISO LEGAL
   ---------------------------------------------------------------- */
.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-md);
}
.legal-content p,
.legal-content li {
  font-size: var(--text-sm);
  color: var(--color-texto-suave);
  line-height: 1.85;
}
.legal-content ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}
.toc-nav {
  background: var(--color-crema-alt);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.toc-nav h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}
.toc-nav ol {
  list-style: decimal;
  padding-left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.toc-nav a {
  font-size: var(--text-sm);
  color: var(--color-oliva);
}

/* ----------------------------------------------------------------
   19. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--color-oscuro);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(200,168,130,0.12);
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .site-logo { margin-bottom: var(--space-sm); }
.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(253,250,247,0.45);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-nav h4,
.footer-contact-info h4 {
  font-family: var(--font-cuerpo);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-beige);
  margin-bottom: var(--space-sm);
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(253,250,247,0.55);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--color-beige); }

.footer-contact-info p {
  font-size: var(--text-sm);
  color: rgba(253,250,247,0.55);
  line-height: 1.85;
  margin-bottom: 0;
}
.footer-contact-info a {
  color: rgba(253,250,247,0.55);
  text-decoration: none;
}
.footer-contact-info a:hover { color: var(--color-beige); }

.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}
.footer-copy {
  font-size: var(--text-xs);
  color: rgba(253,250,247,0.3);
}
.footer-legal { display: flex; gap: var(--space-sm); }
.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(253,250,247,0.3);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-legal a:hover { color: var(--color-beige); }

/* ----------------------------------------------------------------
   20. COOKIE BANNER
   ---------------------------------------------------------------- */
#cc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(44,36,22,0.97);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(200,168,130,0.2);
  padding: var(--space-sm) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-cuerpo);
  font-size: var(--text-sm);
}
#cc-banner p   { margin: 0; flex: 1 1 280px; color: rgba(253,250,247,0.75); }
#cc-banner a   { color: var(--color-beige); text-decoration: underline; }
#cc-banner a:hover { color: var(--color-blanco); }
#cc-btn {
  background: var(--color-beige);
  color: var(--color-oscuro);
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-cuerpo);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease);
  flex-shrink: 0;
}
#cc-btn:hover,
#cc-btn:focus {
  background: var(--color-blanco);
  outline: 2px solid var(--color-beige);
}

/* ----------------------------------------------------------------
   21. UTILIDADES
   ---------------------------------------------------------------- */
.text-center { text-align: center; }
.text-beige  { color: var(--color-beige); }
.text-oliva  { color: var(--color-oliva); }
.text-suave  { color: var(--color-texto-suave); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Espaciado superior en páginas interiores (tras header fijo) */
.page-spacer { height: var(--header-h); }
