/* Juan Maroto Inmobiliaria — High-End Real Estate Editorial
   Design System: "The Architectural Curator" (Stitch)
   Palette: Deep Purple (#34265a) + Tonal Grey base
   Typography: Manrope (Headlines) + Inter (Body)
   Rules: No-line, Glassmorphism, Tonal Layering
*/

/* ── Fonts ────────────────────────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('https://cdn.jsdelivr.net/npm/manrope@14.0.0/fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('https://cdn.jsdelivr.net/npm/manrope@14.0.0/fonts/Manrope-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('https://cdn.jsdelivr.net/npm/manrope@14.0.0/fonts/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('https://cdn.jsdelivr.net/npm/manrope@14.0.0/fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('https://cdn.jsdelivr.net/npm/manrope@14.0.0/fonts/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ── Design Tokens ────────────────────────────────────── */
:root {
  /* Brand core — Deep Purple */
  --primary:        #34265a;
  --primary-d:      #23184a;
  --primary-light:  #4b3d72;
  --primary-fixed:  #cebdfc;
  --primary-fixed-dim: #bbaae8;

  /* Secondary */
  --secondary:      #5e5e5f;

  /* Gold — repurposed as accent */
  --gold:           #34265a;
  --gold-d:         #4b3d72;
  --gold-light:     rgba(52, 38, 90, 0.10);

  /* Surface scale (tonal layers) */
  --surface:              #f9f9f9;
  --surface-dim:          #dadada;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f3f3;
  --surface-container:    #eeeeee;
  --surface-container-high: #e8e8e8;
  --surface-container-highest: #e2e2e2;

  /* Legacy aliases */
  --bg-canvas:    var(--surface);
  --bg-white:     var(--surface-container-lowest);
  --bg-warm:      var(--surface-container-low);

  /* Text */
  --text:         #1a1c1c;
  --text-muted:   #49454f;
  --text-dim:     #7a7580;

  /* Outlines */
  --border:       #cac4d0;
  --border-light: #e2e2e2;

  /* UI radii */
  --radius-sm:   4px;
  --radius:      6px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Ambient shadows (wide blur, low opacity) */
  --shadow-sm:   0 1px 3px rgba(26, 28, 28, 0.04);
  --shadow:      0 4px 24px rgba(26, 28, 28, 0.06);
  --shadow-lg:   0 12px 48px rgba(26, 28, 28, 0.08);
  --shadow-diffusion: 0 20px 60px rgba(26, 28, 28, 0.05);

  /* Semantic state colors */
  --color-error:      #c91e1e;
  --color-error-dark: #991b1b;
  --color-error-bg:   rgba(248, 113, 113, 0.1);
  --color-success:    #166534;
  --color-success-bg: rgba(74, 222, 128, 0.1);

  /* CTA / footer backgrounds */
  --cta-bg-start: #3b2162;
  --cta-bg-mid:   #1e1440;
  --cta-bg-end:   #130f35;
  --footer-bg:    #0f0d1a;

  /* Animation */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --duration:    0.3s;
  --duration-hover: 0.2s;
}

/* ── Dark Mode ─────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --surface:              #121212;
    --surface-dim:          #000000;
    --surface-container-lowest: #1a1a1a;
    --surface-container-low: #1f1f1f;
    --surface-container:    #242424;
    --surface-container-high: #2a2a2a;
    --surface-container-highest: #303030;
    --text:                 #e4e4e4;
    --text-muted:           #9a9a9a;
    --text-dim:             #6a6a6a;
    --border:               #3a3a3a;
    --border-light:         #2a2a2a;
    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg:   0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-diffusion: 0 20px 60px rgba(0, 0, 0, 0.4);
    --gold-light:        rgba(206, 189, 252, 0.10);
    --color-error:       #f87171;
    --color-error-dark:  #fca5a5;
    --color-success:     #4ade80;
  }
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.editorial {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

.hidden { display: none !important; }

p { color: var(--text-muted); line-height: 1.7; }

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--primary);
  background: rgba(52, 38, 90, 0.08);
  margin-bottom: 12px;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  max-width: 580px;
  margin: 12px auto 0;
}

/* ── Fluid Island Navigation (Glassmorphism) ──────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 16px;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(202, 196, 208, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 32px rgba(26, 28, 28, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  color: var(--primary);
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

/* Nav desktop */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.site-nav a:hover {
  background: rgba(52, 38, 90, 0.06);
  color: var(--primary);
}

.site-nav a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Hamburger (pure CSS) */
.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(52, 38, 90, 0.06);
  border: 1px solid rgba(202, 196, 208, 0.3);
}

.nav-toggle-label span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
  transform-origin: center;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero (Full-bleed Background) ─────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.hero .eyebrow {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.10);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCrossfade 24s infinite;
  filter: brightness(1.05) saturate(1.1);
}

.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18,11,40,0.94) 0%, rgba(30,20,64,0.72) 38%, rgba(52,38,90,0.30) 100%),
    linear-gradient(to right, rgba(23,15,50,0.70) 0%, transparent 65%);
  z-index: 1;
}

@keyframes heroCrossfade {
  0%, 4%   { opacity: 0; transform: scale(1.12); }
  8%, 20%  { opacity: 1; transform: scale(1); }
  25%, 100% { opacity: 0; transform: scale(1.12); }
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 60px clamp(24px, 5vw, 80px) clamp(100px, 13vh, 156px);
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-family: 'Manrope', system-ui, sans-serif;
}

.hero-title span {
  color: var(--primary-fixed);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Hero search bar */
.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 560px;
}

.search-bar select,
.search-bar input[type="text"] {
  flex: 1 1 160px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface-container-lowest);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search-bar select option { background: var(--surface-container-lowest); color: var(--text); }

.search-bar select:focus,
.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 38, 90, 0.10);
}

.search-bar .btn-search {
  flex: 0 0 auto;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--duration) var(--ease-out), transform 0.15s var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-bar .btn-search:hover { opacity: 0.9; }
.search-bar .btn-search:active { transform: scale(0.97); }

/* ── Property Cards (Tonal Layering) ───────────────────────── */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.prop-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  padding: 0;
  color: var(--text);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: var(--shadow-diffusion);
  will-change: transform;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .prop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.prop-card-inner {
  background: var(--surface-container-lowest);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.prop-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface-container);
  overflow: hidden;
  flex-shrink: 0;
}

.prop-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  z-index: 1;
}

.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .prop-card:hover .prop-card-img img { transform: scale(1.05); }
}

.prop-card-img .no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container);
  color: var(--text-dim);
}

.prop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prop-badge-venta,
.prop-badge-1 { background: var(--primary); color: #fff; }

.prop-badge-alquiler,
.prop-badge-2 { background: var(--primary-light); color: #fff; }

.prop-badge-traspaso,
.prop-badge-3 { background: var(--text-dim); color: #fff; }

.prop-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.prop-tipo {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.prop-titulo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.prop-localidad {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prop-localidad svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  flex-shrink: 0;
}

.prop-precio {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.prop-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prop-spec-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Stats / Counters ──────────────────────────────────────── */
.stats-row {
  background: var(--primary);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% 120%, rgba(206,189,252,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.stat-item {
  text-align: center;
  color: #fff;
  padding: 0 56px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.14);
}

.stat-number {
  display: block;
  font-size: 3.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: 'Manrope', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  background: linear-gradient(158deg, var(--cta-bg-start) 0%, var(--cta-bg-mid) 45%, var(--cta-bg-end) 100%);
  padding: 96px 24px;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(175,110,40,0.24) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 65%, rgba(206,189,252,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.cta-banner > .container { position: relative; z-index: 1; }

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.60);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-banner .btn-primary:hover {
  background: rgba(255,255,255,0.92);
  opacity: 1;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: opacity var(--duration) var(--ease-out), transform 0.15s var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-gold { /* alias — same as btn-primary */ }

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── Filter Sidebar ────────────────────────────────────────── */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-sidebar {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 92px;
}

.filter-sidebar h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.filter-group {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.filter-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type="search"],
.filter-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease-out);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 38, 90, 0.10);
}

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-btn { flex: 1; text-align: center; }

.radio-btn input { display: none; }

.radio-btn label {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-hover) var(--ease-out), border-color var(--duration-hover) var(--ease-out), color var(--duration-hover) var(--ease-out);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  background: var(--surface);
}

.radio-btn input:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.filter-actions { display: flex; gap: 10px; margin-top: 8px; }
.filter-actions .btn { flex: 1; justify-content: center; }

/* ── Results ────────────────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.results-count { font-size: 0.9rem; color: var(--text-muted); }
.results-count strong { color: var(--text); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 16px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--duration-hover) var(--ease-out), border-color var(--duration-hover) var(--ease-out), color var(--duration-hover) var(--ease-out);
}

.pagination a:hover { background: var(--surface-container-low); border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 20px 0;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-dim); }

/* ── Detail page ────────────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  min-width: 0;
}

.detail-layout > * { min-width: 0; }

.detail-gallery { margin-bottom: 24px; }

.gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-container);
  margin-bottom: 12px;
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface-container);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-thumb-btn {
  display: block;
  width: 80px;
  height: 56px;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-btn:hover { border-color: var(--primary); opacity: 0.85; }
.gallery-thumb-btn.active { border-color: var(--primary); }
.gallery-thumb-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.detail-desc-section {
  margin-bottom: 40px;
  background: var(--surface-container-low);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.detail-desc-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--primary);
}

.detail-desc {
  color: var(--text);
  line-height: 1.85;
  font-size: 0.95rem;
}

.detail-desc p {
  margin-bottom: 1em;
  color: var(--text);
  line-height: 1.85;
}

.detail-desc ul,
.detail-desc ol {
  padding-left: 20px;
  margin-bottom: 1em;
}

.detail-desc li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.detail-desc strong,
.detail-desc b {
  font-weight: 600;
  color: var(--text);
}

.detail-desc h3,
.detail-desc h4,
.detail-desc h5,
.detail-desc h6 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.spec-item {
  background: var(--surface-container-low);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.spec-item .spec-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.spec-item .spec-key {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.extras-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.extra-badge {
  padding: 4px 14px;
  background: rgba(52, 38, 90, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}

/* Sticky contact sidebar */
.contact-card {
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  padding: 0;
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.contact-card-inner {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-card .precio-big {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.contact-card .ref {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-card h3 { margin-bottom: 16px; font-size: 1rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 38, 90, 0.10);
  background: var(--surface-container-lowest);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group .field-error {
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-error);
}

.form-group.has-error .field-error {
  display: block;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* ── Contact info strip ─────────────────────────────────────── */
.info-strip {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.info-strip-item {
  text-align: center;
  padding: 24px 32px;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  flex: 1;
  min-width: 180px;
  transition: border-color 0.25s var(--ease-out);
}

.info-strip-item svg { display: block; margin: 0 auto 10px; }

.info-strip-item strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }

.info-strip-item small { display: block; color: var(--text-muted); font-size: 0.78rem; }

.info-strip-item:hover { border-color: var(--primary); }

/* ── Contact form card ─────────────────────────────────────── */
.contact-form-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-card .form-check label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.contact-form-card .form-check label a { color: var(--primary); }

.contact-form-card {
  align-self: start;
}

.contact-form-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ── Contacto page ──────────────────────────────────────────── */
.contacto-section {
  padding: 56px 0 72px;
}

.contacto-info__headline {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  font-family: var(--font-heading, 'Manrope', sans-serif);
}

.contacto-info__headline em {
  font-style: italic;
  color: var(--primary);
  opacity: .75;
}

.contacto-info__tagline {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 380px;
  line-height: 1.6;
}

.contacto-info__section-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  color: var(--text);
}

.contacto-info__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contacto-info__item svg { flex-shrink: 0; margin-top: 2px; }
.contacto-info__item--center { align-items: center; }
.contacto-info__item a { color: inherit; text-decoration: none; }
.contacto-info__item small { color: var(--text-dim); }

/* ── Contacto grid layout ───────────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Promociones page ───────────────────────────────────────── */
.promo-page-header {
  margin-bottom: 32px;
}

.promo-page-header h1 {
  font-size: 1.65rem;
  margin-bottom: 8px;
  color: var(--text);
}

.promo-page-header p {
  color: var(--text-muted);
}

/* ── Field error for .form-check ────────────────────────────── */
.form-check .field-error {
  font-size: 0.78rem;
  color: var(--color-error);
  display: none;
  margin-top: 2px;
  width: 100%;
}

.form-check.has-error .field-error { display: block; }

.form-check.has-error label { color: var(--color-error); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error-dark);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ── Services ───────────────────────────────────────────────── */
.services-page { padding-top: 100px; padding-bottom: 64px; }

.services-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.services-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.services-list-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              background 0.25s var(--ease-out);
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .services-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(52, 38, 90, 0.12);
    border-color: var(--primary-fixed-dim);
    background: var(--surface-container-lowest);
  }

  .services-list-item:hover .services-list-num {
    color: var(--primary-light);
  }
}

.services-list-num {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  transition: color 0.25s var(--ease-out);
}

.services-list-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.services-list-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .services-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-list { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Services preview (home) ───────────────────────────────── */
.services-preview {
  padding: 64px 0;
  background: var(--surface-container-low);
}

.services-preview .section-header { margin-bottom: 32px; }

.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .service-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .service-preview-grid { grid-template-columns: 1fr; }
}

.service-preview-card {
  padding: 24px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.25s var(--ease-out);
}

.service-preview-card:hover { border-color: var(--primary); }

.service-preview-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-preview-card h3 { font-size: 1rem; margin-bottom: 6px; }

.service-preview-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }

.service-preview-card .btn-small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.service-preview-card .btn-small:hover { text-decoration: underline; }

/* ── CTA (Servicios) ─────────────────────────────────────── */
.cta-bento-section {
  margin-top: 16px;
  padding: 48px 0 0;
  position: relative;
}

.cta-bento-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(75,61,114,0.04) 50%, rgba(52,38,90,0.06) 100%);
  pointer-events: none;
}

.cta-bento-card {
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: 0 8px 32px rgba(52,38,90,0.08);
  position: relative;
  z-index: 1;
}

.cta-bento-main {
  background: linear-gradient(135deg, var(--surface-container-lowest) 0%, var(--surface-container-low) 100%);
  border: 1px solid var(--border-light);
}

.cta-bento-main .eyebrow { margin-bottom: 16px; }

.cta-bento-main h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-bento-main p {
  font-size: 0.92rem;
  max-width: 560px;
  margin-bottom: 24px;
}

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

.cta-bento-actions .btn svg { width: 16px; height: 16px; }

.services-cta-info {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.services-cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.services-cta-info-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.cta-bento-footer {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-bento-main h2 { font-size: 1.35rem; }
  .cta-bento-actions { flex-direction: column; }
  .cta-bento-actions .btn { width: 100%; justify-content: center; }
  .cta-bento-card { padding: 28px 24px; }
  .services-cta-info { gap: 16px; }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease-out);
}

.footer-col ul li a:hover { color: var(--primary-fixed); }

.footer-col--brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-col--brand .footer-logo svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-fixed);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-col--brand > p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #fff;
  max-width: 230px;
  margin-bottom: 16px;
}

.footer-col--brand address {
  font-style: normal;
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.65;
}

.footer-credit {
  margin-left: 12px;
  color: #fff;
}

.footer-credit a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.page-hero {
  position: relative;
  height: clamp(220px, 35vw, 400px);
  overflow: hidden;
  background: #0f0d1a;
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .72;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,13,26,.15) 0%, rgba(15,13,26,.65) 100%);
}

.page-hero__content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 36px;
  max-width: 1100px;
}

.page-hero__eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.page-hero__title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary-fixed);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s var(--ease-out);
}

.footer-contact-item a:hover { color: var(--primary-fixed); }

.footer-hours {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #ffffff;
  line-height: 1.55;
  padding-left: 25px;
}
.footer-social {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-left: 25px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.footer-social a:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s var(--ease-out);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

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

.empty-state svg { margin: 0 auto 16px; opacity: 0.25; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p  { font-size: 0.88rem; }

/* ── Screen-reader only ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* ── Focus rings ────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-property: color, background-color, border-color, opacity !important;
    transition-duration: 0.15s !important;
    transition-timing-function: ease !important;
  }
}

/* ── Scroll-triggered fade-in animation ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section header top spacing (for pages under fixed nav) ── */
.section-detail {
  padding-top: 100px;
  padding-bottom: 48px;
}

/* ── Spin animation for loading state ──────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Featured home property grid ───────────────────────────── */
.prop-grid-home {
  grid-template-columns: repeat(3, 1fr);
}

.prop-grid-home > .prop-card:first-child {
  grid-column: span 2;
}

.prop-grid-home > .prop-card:first-child .prop-card-inner {
  flex-direction: row;
  height: 100%;
  min-height: 290px;
}

.prop-grid-home > .prop-card:first-child .prop-card-img {
  width: 57%;
  flex-shrink: 0;
  aspect-ratio: unset;
  align-self: stretch;
  overflow: hidden;
}

.prop-grid-home > .prop-card:first-child .prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.prop-grid-home > .prop-card:first-child .prop-card-body {
  padding: 32px 28px;
  justify-content: center;
  gap: 10px;
}

.prop-grid-home > .prop-card:first-child .prop-titulo {
  font-size: 1.15rem;
}

.prop-grid-home > .prop-card:first-child .prop-precio {
  font-size: 1.55rem;
  color: var(--primary);
}

/* ── Services editorial layout (home) ──────────────────────── */
.services-editorial-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.services-editorial-main {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.services-editorial-main::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.services-editorial-main .eyebrow {
  color: var(--primary-fixed);
  background: rgba(206,189,252,0.12);
  align-self: flex-start;
}

.services-editorial-main h3 {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.18;
  margin: 0;
}

.services-editorial-main > p {
  color: rgba(255,255,255,0.60);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.sei-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sei-hero-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-sm-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.25s var(--ease-out);
  align-self: flex-start;
  cursor: pointer;
}

.btn-sm-white:hover { background: rgba(255,255,255,0.18); }

.services-editorial-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-container-lowest);
  overflow: hidden;
}

.services-editorial-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s var(--ease-out);
}

.services-editorial-item:last-child { border-bottom: none; }

.services-editorial-item:hover { background: var(--surface-container-low); }

.sei-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(52,38,90,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sei-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sei-content { flex: 1; min-width: 0; }

.sei-content h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  font-family: 'Manrope', sans-serif;
}

.sei-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.sei-link {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease-out);
}

.sei-link:hover { opacity: 0.65; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: 1fr 320px; gap: 28px; }
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; max-width: 480px; margin: 0 auto; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .hero-text { padding: 60px 24px 80px; }
  .hero { min-height: 100dvh; }
  .search-bar { flex-direction: column; }
  .search-bar select,
  .search-bar input[type="text"] { flex: 1 1 auto; width: 100%; }
  .search-bar .btn-search { width: 100%; justify-content: center; }
  .section-detail { padding-top: 80px; }
  .services-page { padding-top: 80px; }
  .services-preview { padding: 48px 0; }
  .prop-grid-home { grid-template-columns: 1fr 1fr; }
  .prop-grid-home > .prop-card:first-child { grid-column: span 2; }
  .prop-grid-home > .prop-card:first-child .prop-card-inner { flex-direction: column; min-height: auto; }
  .prop-grid-home > .prop-card:first-child .prop-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
  .prop-grid-home > .prop-card:first-child .prop-card-img img { position: static; width: 100%; height: 100%; object-fit: cover; inset: auto; }
  .services-editorial-wrap { grid-template-columns: 1fr; }
  .services-editorial-main { padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 36px; }
}

@media (max-width: 768px) {
  .header-inner { max-width: calc(100% - 20px); margin: 0 10px; border-radius: var(--radius-lg); padding: 8px 14px; }
  .site-header { padding-top: 10px; }
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface-container-lowest);
    flex-direction: column;
    padding: 8px;
    gap: 2px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .site-nav a { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero-text { padding: 60px 20px 72px; }
  .prop-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .stat-item { padding: 0 28px; }
  .stat-item + .stat-item::before { display: none; }
  .stat-number { font-size: 2.8rem; }
  .stats-row { padding: 48px 0; }
  .section { padding: 48px 0; }
  .gallery-thumb-btn { width: 60px; height: 44px; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
  .section-detail { padding-top: 64px; }
  .services-page { padding-top: 64px; }
  .breadcrumb { padding: 12px 0; font-size: 0.75rem; gap: 6px; }
  .contact-card .btn-gold,
  .contact-card .btn { width: 100%; justify-content: center; }
  .detail-gallery { margin-bottom: 16px; }
  .cta-banner { padding: 72px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-bar .btn-search { width: 100%; justify-content: center; }
  .services-preview { padding: 40px 0; }
}

@media (max-width: 600px) {
  .info-strip-item { padding: 20px 16px; }
  .contact-form-card { padding: 24px 16px; }
  .form-row-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .prop-grid { grid-template-columns: 1fr; }
  .prop-grid-home { grid-template-columns: 1fr; }
  .prop-grid-home > .prop-card:first-child { grid-column: span 1; }
  .prop-grid-home > .prop-card:first-child .prop-card-img img { position: static; inset: auto; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 0 20px; }
  .stat-number { font-size: 2.4rem; }
  .info-strip-item { min-width: 100%; }
  .hero-text { padding: 40px 16px 56px; }
}

@media (max-width: 359px) {
  .hero { min-height: auto; padding-top: 72px; }
  .stats-grid { flex-direction: column; align-items: center; gap: 20px; }
  .stat-item { padding: 0; }
  .stat-item + .stat-item::before { display: none; }
  .sei-link { white-space: normal; font-size: 0.72rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: 8px 12px; }
  .search-bar .btn-search { width: 100%; justify-content: center; }
}

/* ============================================================
   ÁREA PRIVADA DE CLIENTES (.area-cliente)
   ============================================================ */

/* Layout base */
body.area-cliente {
  background: var(--surface-container-low, #f9f9f9);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.ac-header {
  background: #fff;
  border-bottom: 1px solid var(--outline-variant, #e2e2e2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(26,28,28,0.04);
}
.ac-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ac-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary, #34265a);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.ac-logo-img { height: 30px; width: auto; display: block; }
.ac-area-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #49454f);
  padding: 2px 8px;
  background: rgba(52,38,90,0.07);
  border-radius: 99px;
}

/* Nav */
.ac-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ac-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted, #49454f);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ac-nav a:hover { background: rgba(52,38,90,0.07); color: var(--primary, #34265a); }
.ac-nav a.active { background: var(--primary, #34265a); color: #fff; }
.ac-nav-logout { color: var(--text-dim, #7a7580) !important; }
.ac-nav-logout:hover { color: #b91c1c !important; background: rgba(185,28,28,0.06) !important; }

/* Main */
.ac-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Footer */
.ac-footer { border-top: 1px solid var(--outline-variant, #e2e2e2); background: #fff; margin-top: auto; }
.ac-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted, #49454f);
  flex-wrap: wrap;
}
.ac-footer-inner a { color: var(--text-muted, #49454f); text-decoration: none; }
.ac-footer-inner a:hover { color: var(--primary, #34265a); }
.ac-footer-sep { color: var(--outline-variant, #cac4d0); }

/* Page header */
.ac-page-header { margin-bottom: 32px; }
.ac-page-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--on-surface, #1a1c1c);
  margin: 8px 0 8px;
  letter-spacing: -0.02em;
}
.ac-page-header p { color: var(--text-muted, #49454f); margin: 0; }
.ac-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary, #34265a);
  background: rgba(52,38,90,0.07);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

/* Dashboard stats */
.ac-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.ac-stat-card {
  background: #fff;
  border: 1px solid var(--outline-variant, #e2e2e2);
  border-radius: 12px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--on-surface, #1a1c1c);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ac-stat-card:hover { box-shadow: 0 8px 32px rgba(52,38,90,0.08); transform: translateY(-2px); }
}
.ac-stat-icon {
  width: 48px; height: 48px;
  background: rgba(52,38,90,0.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.ac-stat-icon svg { width: 22px; height: 22px; stroke: var(--primary, #34265a); }
.ac-stat-num {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary, #34265a);
  line-height: 1;
  margin-bottom: 6px;
}
.ac-stat-label { font-size: 0.82rem; color: var(--text-muted, #49454f); font-weight: 500; }

/* Contact banner */
.ac-contact-banner {
  background: var(--primary, #34265a);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ac-contact-banner p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.9rem; }
.ac-contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.ac-contact-links a {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.ac-contact-links a:hover { background: rgba(255,255,255,0.2); }

/* Inmuebles grid */
.ac-inmuebles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ac-inm-card {
  background: #fff;
  border: 1px solid var(--outline-variant, #e2e2e2);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--on-surface, #1a1c1c);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  display: flex;
  flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
  .ac-inm-card:hover { box-shadow: 0 8px 32px rgba(52,38,90,0.08); transform: translateY(-3px); }
}
.ac-inm-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f3f3f3; }
.ac-inm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-inm-noimg { display: flex; align-items: center; justify-content: center; height: 100%; }
.ac-inm-noimg svg { width: 40px; height: 40px; stroke: #cac4d0; }
.ac-inm-rol {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary, #34265a);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
}
.ac-inm-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ac-inm-type { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary, #34265a); }
.ac-inm-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.3; margin: 0; }
.ac-inm-location { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted, #49454f); }
.ac-inm-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--text-muted, #49454f); }
.ac-inm-price { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem; color: var(--primary, #34265a); margin-top: auto; padding-top: 6px; }

/* Inmueble detail */
.ac-breadcrumb { margin-bottom: 20px; }
.ac-breadcrumb a { color: var(--text-muted, #49454f); text-decoration: none; font-size: 0.85rem; }
.ac-breadcrumb a:hover { color: var(--primary, #34265a); }
.ac-inm-detail { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.ac-inm-detail-gallery { min-width: 0; }
.ac-gallery-main { aspect-ratio: 4/3; position: relative; border-radius: 12px; overflow: hidden; background: #f3f3f3; margin-bottom: 10px; }
.ac-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ac-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-gallery-thumb { width: 80px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; transition: border-color 0.15s; }
.ac-gallery-thumb.active, .ac-gallery-thumb:hover { border-color: var(--primary, #34265a); }
.ac-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-inm-detail-info { background: #fff; border: 1px solid var(--outline-variant, #e2e2e2); border-radius: 12px; padding: 28px; }
.ac-inm-detail-info h1 { font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 6px 0 0; }
.ac-inm-price-large { font-family: 'Manrope', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary, #34265a); margin: 12px 0; }
.ac-inm-specs { display: flex; gap: 20px; margin: 16px 0; }
.ac-spec { display: flex; flex-direction: column; align-items: center; }
.ac-spec-val { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--on-surface, #1a1c1c); }
.ac-spec-key { font-size: 0.68rem; color: var(--text-muted, #49454f); }
.ac-inm-desc { font-size: 0.875rem; color: var(--text-muted, #49454f); line-height: 1.7; margin: 12px 0; }
.ac-inm-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* Documents list */
.ac-doc-list { display: flex; flex-direction: column; gap: 12px; }
.ac-doc-row {
  background: #fff;
  border: 1px solid var(--outline-variant, #e2e2e2);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ac-doc-icon { font-size: 1.6rem; flex-shrink: 0; }
.ac-doc-info { flex: 1; min-width: 0; }
.ac-doc-name { font-weight: 600; font-size: 0.9rem; color: var(--on-surface, #1a1c1c); }
.ac-doc-meta { font-size: 0.75rem; color: var(--text-muted, #49454f); margin-top: 3px; }
.ac-doc-dl {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary, #34265a); color: #fff;
  padding: 8px 16px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s; flex-shrink: 0;
}
.ac-doc-dl svg { width: 14px; height: 14px; }
.ac-doc-dl:hover { background: #4b3d72; }

/* Contracts */
.ac-contrato-list { display: flex; flex-direction: column; gap: 12px; }
.ac-contrato-row {
  background: #fff;
  border: 1px solid var(--outline-variant, #e2e2e2);
  border-radius: 10px;
  padding: 20px 24px;
}
.ac-contrato-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.ac-contrato-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--on-surface, #1a1c1c); }
.ac-contrato-inmueble { font-size: 0.8rem; color: var(--text-muted, #49454f); margin-top: 2px; }
.ac-contrato-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted, #49454f); align-items: center; }

/* Perfil */
.ac-perfil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ac-card {
  background: #fff;
  border: 1px solid var(--outline-variant, #e2e2e2);
  border-radius: 12px;
  padding: 28px;
}
.ac-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--on-surface, #1a1c1c);
}
.ac-form-group { margin-bottom: 16px; }
.ac-form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted, #49454f); margin-bottom: 6px; }
.ac-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--outline-variant, #cac4d0);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--on-surface, #1a1c1c);
  background: #fff;
  transition: border-color 0.2s;
}
.ac-input:focus { outline: none; border-color: var(--primary, #34265a); box-shadow: 0 0 0 3px rgba(52,38,90,0.08); }
.ac-input:disabled { background: #f3f3f3; color: var(--text-muted, #49454f); cursor: not-allowed; }
.ac-form-hint { font-size: 0.72rem; color: var(--text-dim, #7a7580); margin-top: 4px; display: block; }
.ac-btn-primary {
  background: var(--primary, #34265a);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  margin-top: 4px;
}
.ac-btn-primary:hover { background: #4b3d72; }

/* Badges */
.ac-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(52,38,90,0.08);
  color: var(--primary, #34265a);
}
.ac-badge-gray   { background: rgba(74,69,79,0.1);  color: var(--text-muted, #49454f); }
.ac-badge-green  { background: rgba(22,163,74,0.1); color: #15803d; }
.ac-badge-yellow { background: rgba(202,138,4,0.12); color: #92400e; }
.ac-badge-red    { background: rgba(185,28,28,0.1); color: #b91c1c; }
.ac-badge-blue   { background: rgba(29,78,216,0.1); color: #1d4ed8; }

/* Alerts */
.ac-alert { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 20px; }
.ac-alert-success { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.2); color: #15803d; }
.ac-alert-error   { background: rgba(185,28,28,0.08); border: 1px solid rgba(185,28,28,0.2); color: #b91c1c; }

/* Empty state */
.ac-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted, #49454f);
}
.ac-empty svg { width: 48px; height: 48px; stroke: #cac4d0; margin-bottom: 16px; }
.ac-empty p { font-size: 0.9rem; margin: 0; }

/* Error message (page level) */
.ac-error-msg { color: #b91c1c; padding: 32px; text-align: center; }

/* Documentos two-section layout */
.ac-docs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.ac-docs-section {
  background: #fff;
  border: 1px solid var(--outline-variant, #e2e2e2);
  border-radius: 12px;
  overflow: hidden;
}
.ac-docs-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--outline-variant, #f0edf5);
  background: #faf9fc;
}
.ac-docs-section-header h2 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: var(--on-surface, #1a1c1c); }
.ac-docs-section-header p { margin: 0; font-size: 0.78rem; color: var(--text-muted, #49454f); }
.ac-docs-section-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ac-docs-section-icon svg { width: 20px; height: 20px; }
.ac-docs-icon-admin   { background: rgba(52,38,90,0.10); color: var(--primary, #34265a); }
.ac-docs-icon-cliente { background: rgba(29,78,216,0.09); color: #1d4ed8; }

.ac-docs-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted, #49454f);
  font-size: 0.85rem;
}

.ac-doc-list { padding: 8px 0; }
.ac-doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--outline-variant, #f3f0f7);
  transition: background 0.1s;
}
.ac-doc-row:last-child { border-bottom: none; }
.ac-doc-row:hover { background: #faf9fc; }
.ac-doc-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.ac-doc-info { flex: 1; min-width: 0; }
.ac-doc-name { font-size: 0.875rem; font-weight: 600; color: var(--on-surface, #1a1c1c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-doc-meta { font-size: 0.75rem; color: var(--text-muted, #49454f); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-doc-dl {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(52,38,90,0.07);
  color: var(--primary, #34265a);
  font-size: 0.75rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ac-doc-dl:hover { background: rgba(52,38,90,0.14); }
.ac-doc-dl svg { width: 13px; height: 13px; }
.ac-doc-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ac-doc-del-form { margin: 0; }
.ac-doc-del {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: none; border-radius: 6px;
  background: rgba(185,28,28,0.07);
  color: #b91c1c;
  cursor: pointer;
  transition: background 0.15s;
}
.ac-doc-del:hover { background: rgba(185,28,28,0.16); }
.ac-doc-del svg { width: 14px; height: 14px; }

/* Upload panel (collapsible details) */
.ac-upload-panel { border-top: 1px solid var(--outline-variant, #f0edf5); }
.ac-upload-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary, #34265a);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.1s;
}
.ac-upload-toggle:hover { background: #f5f3fa; }
.ac-upload-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.ac-upload-toggle::-webkit-details-marker { display: none; }
.ac-upload-form { padding: 0 20px 20px; }

/* File input */
.ac-input-file {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px dashed var(--outline-variant, #cac4d0);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--on-surface, #1a1c1c);
  background: #faf9fc;
  cursor: pointer;
}
.ac-input-file:hover { border-color: var(--primary, #34265a); background: #f5f3fa; }

/* Hamburger toggle (hidden on desktop) */
.ac-nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.ac-nav-hamburger { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .ac-inm-detail { grid-template-columns: 1fr; }
  .ac-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .ac-perfil-grid { grid-template-columns: 1fr; }
  .ac-docs-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ac-header-inner { padding: 0 16px; }
  .ac-main { padding: 24px 16px; }
  .ac-page-header { margin-bottom: 20px; }
  .ac-nav a span:not(.ac-area-label) { display: none; }
  .ac-nav a { padding: 7px 9px; }
  .ac-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ac-stat-card { padding: 20px 14px; }
  .ac-stat-num { font-size: 2rem; }
  .ac-contact-banner { flex-direction: column; text-align: center; }
  .ac-contrato-header { flex-direction: column; gap: 6px; align-items: flex-start; }
}

@media (max-width: 640px) {
  /* Show hamburger, hide desktop nav */
  .ac-nav-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    cursor: pointer;
    border-radius: 8px;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .ac-nav-hamburger:hover { background: rgba(52,38,90,0.07); }
  .ac-nav-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--primary, #34265a);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.15s;
  }
  .ac-nav-toggle-input:checked ~ .ac-nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .ac-nav-toggle-input:checked ~ .ac-nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .ac-nav-toggle-input:checked ~ .ac-nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Nav as dropdown */
  .ac-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--outline-variant, #e2e2e2);
    box-shadow: 0 8px 24px rgba(26,28,28,0.08);
    padding: 8px 12px 16px;
    gap: 2px;
    z-index: 99;
  }
  .ac-nav-toggle-input:checked ~ .ac-nav-hamburger ~ .ac-nav { display: flex; }
  .ac-nav a { padding: 12px 16px; font-size: 0.9rem; border-radius: 8px; gap: 10px; }
  .ac-nav a span { display: inline !important; }
}

@media (max-width: 480px) {
  .ac-logo-img { height: 22px; }
  .ac-area-label { display: none; }
  .ac-stats-grid { grid-template-columns: 1fr; }
  .ac-stat-card { padding: 16px; }
  .ac-doc-row { flex-wrap: wrap; }
  .ac-doc-actions { width: 100%; justify-content: flex-end; margin-top: 4px; }
  .ac-doc-dl { flex: 1; justify-content: center; }
  .ac-gallery-thumb { width: 60px; height: 44px; }
  .ac-inm-specs { flex-wrap: wrap; gap: 14px; }
  .ac-perfil-grid { gap: 16px; }
  .ac-card { padding: 20px; }
  .ac-contrato-row { padding: 16px; }
}

/* ─── Top bar ────────────────────────────────────────────── */
.top-bar {
  background: #1e1438;
  padding: 7px 0;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.top-bar-social {
  display: flex;
  gap: 4px;
}
.top-bar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}
.top-bar-social a:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.top-bar-social svg { display: block; }
.top-bar-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.top-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.top-bar-cta:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.35); }
.top-bar-cta svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .top-bar-cta span { display: none; }
  .top-bar-cta { padding: 5px 10px; }
}

/* ─── Tasación page ──────────────────────────────────────── */
.tasacion-page { padding: 60px 0 80px; }

.tasacion-hero {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}
.tasacion-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 12px 0 14px;
  line-height: 1.2;
}
.tasacion-hero > p { font-size: 1.05rem; color: var(--text-muted, #49454f); margin: 0 0 24px; }
.tasacion-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tasacion-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(52,38,90,0.07);
  color: var(--primary, #34265a);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}
.tasacion-pills span::before { content: '✓'; font-weight: 800; }

.tasacion-layout {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 48px;
  align-items: start;
}

.tasacion-info h2 { font-size: 1.15rem; margin: 0 0 20px; font-weight: 800; }

.tasacion-reasons {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tasacion-reasons li {
  padding: 14px 16px;
  background: rgba(52,38,90,0.06);
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #49454f);
}
.tasacion-reasons li strong {
  display: block;
  color: var(--on-surface, #1a1c1c);
  font-weight: 700;
  margin-bottom: 2px;
}

.tasacion-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tasacion-trust-item {
  padding: 16px 12px;
  background: var(--primary, #34265a);
  border-radius: 10px;
  text-align: center;
  color: #fff;
}
.tasacion-trust-item strong { display: block; font-size: 1.1rem; font-weight: 800; }
.tasacion-trust-item span  { font-size: 0.7rem; opacity: 0.72; display: block; margin-top: 3px; line-height: 1.3; }

.tasacion-form-wrap {
  background: #fff;
  border: 1px solid var(--outline-variant, #e8e5f0);
  border-radius: 16px;
  padding: 36px;
}
.tasacion-form-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 24px; }

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

.tasacion-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tasacion-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--outline-variant, #e2e2e2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.tasacion-radio-option:hover { border-color: var(--primary, #34265a); background: rgba(52,38,90,0.03); }
.tasacion-radio-option input[type="radio"] { accent-color: var(--primary, #34265a); flex-shrink: 0; }
.tasacion-radio-option:has(input:checked) {
  border-color: var(--primary, #34265a);
  background: rgba(52,38,90,0.06);
  color: var(--primary, #34265a);
  font-weight: 600;
}

.btn-block  { width: 100%; justify-content: center; margin-top: 8px; }
.form-note  { margin: 10px 0 0; font-size: 0.78rem; color: var(--text-muted, #49454f); text-align: center; }
.req        { color: #b91c1c; }

.tasacion-success {
  text-align: center;
  max-width: 480px;
  margin: 80px auto;
  padding: 48px 40px;
  background: #fff;
  border: 1px solid var(--outline-variant, #e8e5f0);
  border-radius: 16px;
}
.tasacion-success-icon {
  width: 64px; height: 64px;
  background: rgba(52,38,90,0.10);
  color: var(--primary, #34265a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.tasacion-success h1 { font-size: 1.6rem; margin: 0 0 12px; }
.tasacion-success p  { color: var(--text-muted, #49454f); margin: 0 0 28px; line-height: 1.6; }
.tasacion-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .tasacion-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .tasacion-page { padding: 40px 0 60px; }
  .tasacion-form-wrap { padding: 24px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .tasacion-trust { grid-template-columns: 1fr; gap: 8px; }
  .tasacion-trust-item { display: flex; gap: 14px; align-items: center; text-align: left; padding: 12px 16px; }
  .tasacion-trust-item strong { font-size: 1rem; }
  .nav-cta span { display: none; }
}

/* ─── Cookie consent banner ─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid rgba(52,38,90,0.12);
  box-shadow: 0 -4px 24px rgba(26,28,28,0.10);
  padding: 14px 24px;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.875rem;
  color: #49454f;
  line-height: 1.5;
  flex: 1;
  min-width: 220px;
}
.cookie-policy-link { color: #34265a; font-weight: 600; text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-reject {
  padding: 8px 18px;
  border: 1.5px solid rgba(52,38,90,0.25);
  border-radius: 6px;
  background: transparent;
  color: #34265a;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cookie-btn-reject:hover { background: rgba(52,38,90,0.05); border-color: #34265a; }
.cookie-btn-accept {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: #34265a;
  color: #fff;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-btn-accept:hover { background: #2a1d4a; }
@media (max-width: 600px) {
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-inner { gap: 12px; }
  .cookie-banner-btns { width: 100%; }
  .cookie-btn-reject, .cookie-btn-accept { flex: 1; text-align: center; }
}

/* ─── Contact card toggle (Pedir info / Solicitar visita) ─── */
.contact-type-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.toggle-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--outline-variant, #e2e2e2);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #49454f);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.toggle-pill:hover {
  border-color: var(--primary, #34265a);
  color: var(--primary, #34265a);
  background: rgba(52,38,90,0.04);
}
.toggle-pill.active {
  border-color: var(--primary, #34265a);
  background: var(--primary, #34265a);
  color: #fff;
}
.toggle-pill svg { flex-shrink: 0; }

/* Disponibilidad section */
.disponibilidad-section {
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(52,38,90,0.04);
  border-radius: 8px;
  border: 1px solid rgba(52,38,90,0.10);
}
.disp-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #49454f);
}
.disp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.disp-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--outline-variant, #e2e2e2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.disp-option:hover { border-color: var(--primary, #34265a); background: rgba(52,38,90,0.03); }
.disp-option input[type="checkbox"] { accent-color: var(--primary, #34265a); flex-shrink: 0; }
.disp-option:has(input:checked) {
  border-color: var(--primary, #34265a);
  background: rgba(52,38,90,0.07);
  color: var(--primary, #34265a);
  font-weight: 600;
}

/* =========================================================
   Búsqueda personalizada — inmuebles/index.php
   ========================================================= */
.bq-section {
  background: linear-gradient(135deg, rgba(52,38,90,0.04) 0%, rgba(52,38,90,0.02) 100%);
  border-top: 1px solid rgba(52,38,90,0.10);
  padding: 72px 0 80px;
}
.bq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.bq-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary, #34265a);
  background: rgba(52,38,90,0.08);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.bq-info h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text, #1a1a2e);
  margin-bottom: 12px;
  line-height: 1.25;
}
.bq-info > p {
  color: var(--text-muted, #666);
  line-height: 1.65;
  margin-bottom: 24px;
}
.bq-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bq-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text, #1a1a2e);
}
.bq-benefits li svg {
  flex-shrink: 0;
  color: var(--primary, #34265a);
  background: rgba(52,38,90,0.10);
  border-radius: 50%;
  padding: 3px;
  width: 22px;
  height: 22px;
}
.bq-form-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 20px rgba(52,38,90,0.09);
  border: 1px solid rgba(52,38,90,0.08);
}
.bq-radio-row {
  display: flex;
  gap: 10px;
}
.bq-radio-opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--outline-variant, #ddd);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color .15s, background .15s;
}
.bq-radio-opt:has(input:checked) {
  border-color: var(--primary, #34265a);
  background: rgba(52,38,90,0.06);
  color: var(--primary, #34265a);
  font-weight: 600;
}
.bq-radio-opt input { display: none; }

.bq-success {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 640px;
  margin: 0 auto;
}
.bq-success-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}
.bq-success strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text, #1a1a2e);
  margin-bottom: 4px;
}
.bq-success p {
  margin: 0;
  color: var(--text-muted, #666);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .bq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bq-form-wrap {
    padding: 24px 20px;
  }
}
@media (max-width: 480px) {
  .bq-radio-row { flex-direction: column; gap: 8px; }
}

/* =========================================================
   Páginas legales — privacidad, aviso legal, cookies
   ========================================================= */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}
.legal-page .breadcrumb { margin-bottom: 32px; }
.legal-page h1 {
  color: var(--primary, #34265a);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}
.legal-page .legal-meta {
  color: var(--text-muted, #888);
  font-size: 0.82rem;
  margin-bottom: 48px;
}
.legal-toc {
  background: rgba(52,38,90,0.04);
  border: 1px solid rgba(52,38,90,0.10);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.legal-toc p {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary, #34265a);
  margin-bottom: 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc ol li { font-size: 0.88rem; }
.legal-toc ol li a { color: var(--primary, #34265a); text-decoration: none; }
.legal-toc ol li a:hover { text-decoration: underline; }
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: var(--text, #1a1a2e);
  line-height: 1.8;
}
.legal-body section { scroll-margin-top: 90px; }
.legal-body h2 {
  color: var(--primary, #34265a);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(52,38,90,0.10);
}
.legal-body h3 {
  color: var(--text, #1a1a2e);
  font-size: 0.97rem;
  font-weight: 700;
  margin: 18px 0 8px;
}
.legal-body p { margin-bottom: 12px; color: var(--text, #1a1a2e); }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul, .legal-body ol {
  padding-left: 22px;
  margin: 10px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { font-size: 0.93rem; color: var(--text, #1a1a2e); }
.legal-body a { color: var(--primary, #34265a); }
.legal-highlight {
  background: rgba(52,38,90,0.05);
  border: 1px solid rgba(52,38,90,0.18);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 16px 0;
}
.legal-highlight strong { display: block; margin-bottom: 4px; }

/* Tabla de cookies */
.cookies-table-wrap { overflow-x: auto; margin: 16px 0; }
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.cookies-table th {
  background: rgba(52,38,90,0.08);
  color: var(--primary, #34265a);
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}
.cookies-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(52,38,90,0.08);
  vertical-align: top;
}
.cookies-table tr:last-child td { border-bottom: none; }
.cookies-table tr:hover td { background: rgba(52,38,90,0.02); }
.cookie-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.cookie-cat-esencial  { background: rgba(34,197,94,0.12);  color: #15803d; }
.cookie-cat-analitica { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.cookie-cat-marketing { background: rgba(249,115,22,0.12); color: #c2410c; }
.cookie-cat-funcional { background: rgba(168,85,247,0.12); color: #7e22ce; }

/* Badge de consentimiento en política cookies */
.cookie-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #34265a);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.cookie-manage-btn:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  transition: bottom 280ms cubic-bezier(0.23,1,0.32,1);
}
.chat-widget--above-banner { bottom: 90px; }

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary, #34265a);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(52,38,90,.40);
  transition: transform 200ms cubic-bezier(0.23,1,0.32,1), box-shadow 200ms ease;
  color: #fff;
}
.chat-toggle:hover { transform: scale(1.07); box-shadow: 0 6px 24px rgba(52,38,90,.50); }
.chat-toggle:active { transform: scale(0.96); }
.chat-toggle svg { display: block; transition: opacity 150ms ease, transform 150ms ease; }
.chat-toggle .icon-open  { opacity: 1; transform: scale(1); }
.chat-toggle .icon-close { opacity: 0; transform: scale(0.7); position: absolute; }
.chat-widget.is-open .chat-toggle .icon-open  { opacity: 0; transform: scale(0.7); }
.chat-widget.is-open .chat-toggle .icon-close { opacity: 1; transform: scale(1); }

.chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-height: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(52,38,90,.22), 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.23,1,0.32,1), opacity 180ms ease;
}
.chat-widget.is-open .chat-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  background: var(--primary, #34265a);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.chat-header-sub  { font-size: .74rem; opacity: .75; }
.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 0;
  transition: color 150ms;
}
.chat-close-btn:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #d1c8e8; border-radius: 2px; }

.chat-msg {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: .84rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg--bot {
  background: #f3f0f9;
  color: #1a1130;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg--user {
  background: var(--primary, #34265a);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-msg--bot a { color: var(--primary, #34265a); text-decoration: underline; }
.chat-msg--bot strong { font-weight: 600; }
.chat-md { line-height: 1.45; }
.chat-block { margin-bottom: 10px; }
.chat-block:last-child { margin-bottom: 0; }
.chat-md ul, .chat-md ol { margin: 3px 0 3px 16px; padding: 0; }
.chat-md li { margin-bottom: 1px; }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
  background: #f3f0f9;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9580c8;
  animation: chatBounce 1.1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes chatBounce {
  0%,80%,100% { transform: translateY(0); opacity:.5; }
  40%         { transform: translateY(-6px); opacity:1; }
}

.chat-form {
  padding: 10px 12px;
  border-top: 1px solid #ede8f5;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: #fafafa;
}
.chat-input {
  flex: 1;
  border: 1px solid #d8d0ee;
  border-radius: 22px;
  padding: 9.5px 14px;
  font-size: .84rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 150ms;
  resize: none;
  line-height: 1.4;
  max-height: 80px;
  overflow-y: auto;
}
.chat-input:focus { border-color: var(--primary, #34265a); }
.chat-send-btn {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary, #34265a);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  transition: transform 160ms ease, opacity 160ms ease;
}
.chat-send-btn:hover  { opacity: .88; }
.chat-send-btn:active { transform: scale(0.92); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; }

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 4px;
}
.chat-suggestion {
  background: #fff;
  border: 1px solid #d8d0ee;
  border-radius: 20px;
  padding: 7px 13px;
  font-size: .8rem;
  color: var(--primary, #34265a);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 150ms, border-color 150ms;
  line-height: 1.3;
}
.chat-suggestion:hover {
  background: #f3f0f9;
  border-color: var(--primary, #34265a);
}

.chat-unread {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #e94444;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: chatPop .25s cubic-bezier(0.23,1,0.32,1);
}
@keyframes chatPop { from { transform: scale(0); } to { transform: scale(1); } }

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel {
    width: calc(100vw - 32px);
    right: -16px;
    bottom: 72px;
    max-height: 70vh;
  }
}
