/* Web publica de Velorix: mismo diseño que la web de Dani (azul marino y
   dorado, Cormorant Garamond + Inter), sin Tailwind ni React. */

:root {
  --navy: #0c1f33;
  --navy-light: #132d47;
  --navy-dark: #071525;
  --gold: #c3a664;
  --gold-light: #d4bc82;
  --gold-dark: #a88d4a;
  --slate: #848c94;
  --pearl: #e3e5e7;
  --pearl-dark: #c8cbce;
  --white: #ffffff;
  --bg: #fafafa;
  --danger: #c0392b;
  --success: #27ae60;
  --heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 3px rgba(12, 31, 51, 0.08);
  --shadow-lg: 0 8px 32px rgba(12, 31, 51, 0.12);
  --shadow-xl: 0 16px 48px rgba(12, 31, 51, 0.16);
  --ease: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--body); color: var(--navy); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--heading); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--gold); color: var(--navy-dark); }
.oculto, [hidden] { display: none !important; }

.contenedor { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .contenedor { padding: 0 24px; } }
@media (min-width: 1024px) { .contenedor { padding: 0 32px; } }
.estrecho { max-width: 900px; }

.antetitulo { color: var(--gold); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; }
.titulo-seccion { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; color: var(--navy); margin: 12px 0 16px; }
.raya { width: 64px; height: 2px; background: var(--gold); margin: 0 0 16px; }
.centro { text-align: center; }
.centro .raya { margin: 0 auto 16px; }
.suave { color: var(--slate); }
.seccion { padding: 96px 0; }
.seccion.gris { background: var(--bg); }
.seccion.marino { background: var(--navy); color: var(--white); }
.texto-oro { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.puntos { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(195, 166, 100, 0.35) 1px, transparent 0); background-size: 40px 40px; opacity: 0.12; pointer-events: none; }

/* Iconos (SVG en linea) */
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: background var(--ease), box-shadow var(--ease), border-color var(--ease); }
.boton-oro { background: var(--gold); color: var(--navy-dark); }
.boton-oro:hover { background: var(--gold-light); box-shadow: 0 8px 24px rgba(195, 166, 100, 0.25); }
.boton-linea { border-color: rgba(227, 229, 231, 0.25); color: var(--pearl); text-transform: none; letter-spacing: 0; font-weight: 500; }
.boton-linea:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(195, 166, 100, 0.4); }
.boton-linea-oro { border-color: rgba(195, 166, 100, 0.35); color: var(--gold); text-transform: none; letter-spacing: 0; }
.boton-linea-oro:hover { background: rgba(195, 166, 100, 0.1); }
.boton[disabled] { opacity: 0.55; cursor: not-allowed; }
.enlace-flecha { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; transition: gap var(--ease); }
.enlace-flecha:hover { gap: 12px; }

/* --- Cabecera --- */
.cabecera { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background var(--ease), box-shadow var(--ease); }
.cabecera.solida, body:not(.portada) .cabecera { background: var(--navy); box-shadow: var(--shadow-lg); }
.cabecera .fila { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { width: 48px; height: 48px; object-fit: contain; border-radius: 2px; }
.marca strong { display: block; color: var(--white); font-size: 1.1rem; letter-spacing: 0.05em; line-height: 1.2; font-family: var(--body); font-weight: 600; }
.marca small { display: block; color: var(--gold); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; }
.menu { display: none; align-items: center; gap: 4px; }
.menu a { white-space: nowrap; padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--pearl); transition: background var(--ease), color var(--ease); }
.menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.menu a.activo { color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.menu .cta { margin-left: 16px; background: var(--gold); color: var(--navy-dark); font-weight: 600; padding: 10px 20px; }
.menu .cta:hover { background: var(--gold-light); color: var(--navy-dark); }
/* Telefono en la cabecera: junto al boton en pantallas anchas; icono en el movil */
.menu .tel-cabecera { display: none; align-items: center; gap: 8px; margin-left: 12px; color: var(--white); font-weight: 600; white-space: nowrap; }
.menu .tel-cabecera .ico { color: var(--gold); font-size: 18px; }
@media (min-width: 1300px) { .menu .tel-cabecera { display: inline-flex; } }
@media (max-width: 1699px) { .menu .cta { display: none; } }
.cabecera .marca { flex: none; white-space: nowrap; }
.tel-movil { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; margin-right: 4px; color: var(--gold); font-size: 22px; }
@media (min-width: 1180px) { .tel-movil { display: none; } }
.boton-menu { background: none; border: 0; color: var(--pearl); padding: 8px; border-radius: 6px; font-size: 24px; cursor: pointer; display: inline-flex; }
.menu-movil { background: var(--navy-dark); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 16px 16px; display: none; }
.menu-movil.abierto { display: block; }
.menu-movil a { display: block; padding: 12px 16px; border-radius: 6px; color: var(--pearl); font-size: 0.9rem; font-weight: 500; }
.menu-movil a.activo { color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.menu-movil .cta { margin-top: 12px; background: var(--gold); color: var(--navy-dark); text-align: center; font-weight: 600; }
@media (min-width: 1180px) { .menu { display: flex; } .boton-menu, .menu-movil { display: none !important; } }

/* --- Portada --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--navy); overflow: hidden; }
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-velo { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7, 21, 37, 0.9) 0%, rgba(12, 31, 51, 0.72) 50%, rgba(19, 45, 71, 0.85) 100%); }
.hero-linea { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero .contenedor { position: relative; z-index: 2; padding-top: 128px; padding-bottom: 128px; width: 100%; }
.hero-texto { max-width: 760px; }
.hero-ante { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.hero-ante::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.5rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 24px; }
.hero .entrada { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--pearl); margin-bottom: 16px; max-width: 680px; }
.hero .nota { font-size: 0.875rem; color: var(--slate); margin-bottom: 40px; max-width: 560px; }
.botones { display: flex; flex-wrap: wrap; gap: 16px; }
.sellos { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.75rem; color: var(--slate); }
.sellos span { display: inline-flex; align-items: center; gap: 8px; }
.sellos .ico { color: var(--gold); font-size: 16px; }
.bajar { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--slate); font-size: 0.75rem; animation: botar 2s infinite; }
.bajar i { width: 20px; height: 32px; border-radius: 999px; border: 1px solid rgba(132, 140, 148, 0.35); display: flex; justify-content: center; padding-top: 6px; }
.bajar i::after { content: ""; width: 4px; height: 8px; border-radius: 999px; background: var(--gold); }
@keyframes botar { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 1024px) { .cifras { grid-template-columns: repeat(4, 1fr); gap: 48px; } }
.cifra { text-align: center; }
.cifra b { display: block; font-family: var(--body); font-size: clamp(2rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.cifra strong { display: block; color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.cifra span { display: block; color: var(--slate); font-size: 0.75rem; }
.cifra::after { content: ""; display: block; width: 32px; height: 2px; background: rgba(195, 166, 100, 0.3); margin: 16px auto 0; transition: width 0.5s, background 0.5s; }
.cifra:hover::after { width: 48px; background: var(--gold); }

/* Lineas de negocio */
.dos { display: grid; gap: 32px; }
@media (min-width: 768px) { .dos { grid-template-columns: 1fr 1fr; } }
.linea-negocio { position: relative; border-radius: 16px; padding: 40px; overflow: hidden; transition: box-shadow 0.5s; }
.linea-negocio:hover { box-shadow: var(--shadow-xl); }
.linea-negocio::before { content: ""; position: absolute; top: 0; right: 0; width: 256px; height: 256px; border-radius: 50%; background: rgba(195, 166, 100, 0.06); transform: translate(50%, -50%); }
.linea-negocio.oscura { background: var(--navy); color: var(--white); }
.linea-negocio.clara { background: var(--white); border: 1px solid var(--pearl); }
.icono-caja { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; background: rgba(195, 166, 100, 0.1); color: var(--gold); }
.clara .icono-caja { background: rgba(12, 31, 51, 0.05); color: var(--navy); }
.linea-negocio h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.linea-negocio p { font-size: 0.9rem; margin-bottom: 24px; }
.oscura p { color: var(--pearl); }
.clara p { color: var(--slate); }
.vinetas { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; font-size: 0.875rem; }
.vinetas li { display: flex; gap: 8px; align-items: flex-start; }
.vinetas li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }
.oscura .vinetas li { color: rgba(227, 229, 231, 0.85); }
.clara .vinetas li { color: rgba(12, 31, 51, 0.72); }
.clara .vinetas li::before { background: var(--navy); }
.oscura .enlace-flecha { color: var(--gold); }

/* Pasos */
.cuatro { display: grid; gap: 32px; }
@media (min-width: 768px) { .cuatro { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cuatro { grid-template-columns: repeat(4, 1fr); } }
.tarjeta { position: relative; background: var(--white); border: 1px solid var(--pearl); border-radius: 12px; padding: 24px; height: 100%; transition: border-color var(--ease), box-shadow var(--ease); }
.tarjeta:hover { border-color: rgba(195, 166, 100, 0.35); box-shadow: var(--shadow-lg); }
.tarjeta .num { position: absolute; top: 16px; right: 16px; font-family: var(--heading); font-size: 3rem; font-weight: 700; color: var(--gold); opacity: 0.12; }
.tarjeta .icono { width: 48px; height: 48px; border-radius: 8px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; transition: background var(--ease), color var(--ease); }
.tarjeta:hover .icono { background: var(--gold); color: var(--navy-dark); }
.tarjeta h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tarjeta p { font-size: 0.875rem; color: var(--slate); }
.tarjeta .precio-servicio { display: block; margin-top: 12px; font-size: 0.75rem; font-weight: 600; color: var(--gold); }

/* Llamada final */
.cta-final { position: relative; overflow: hidden; padding: 80px 0; background: var(--navy); text-align: center; }
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--white); font-weight: 700; margin-bottom: 16px; }
.cta-final p { color: var(--pearl); font-size: 1.1rem; max-width: 640px; margin: 0 auto 32px; }
.cta-final .botones { justify-content: center; }
.caja-marina { background: var(--navy); border-radius: 16px; padding: 48px 24px; text-align: center; color: var(--white); }
.caja-marina h2 { font-size: 2rem; margin-bottom: 16px; }
.caja-marina p { color: var(--pearl); max-width: 560px; margin: 0 auto 32px; }

/* --- Tarjeta de propiedad --- */
.rejilla { display: grid; gap: 24px; }
@media (min-width: 768px) { .rejilla { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rejilla { grid-template-columns: repeat(3, 1fr); } }
.prop { display: block; background: var(--white); border: 1px solid var(--pearl); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease); }
.prop:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.prop-foto { position: relative; height: 224px; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-light) 50%, var(--navy-dark)); }
.prop-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prop:hover .prop-foto img { transform: scale(1.05); }
.sin-foto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(195, 166, 100, 0.2); }
.insignias { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; }
.insignia { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4; }
.insignia.oro { background: var(--gold); color: var(--navy-dark); }
.insignia.perla { background: var(--pearl); color: var(--navy); }
.insignia.marino { background: var(--navy); color: var(--gold); }
.prop-cuerpo { padding: 20px; }
.prop-cuerpo h3 { font-size: 1.15rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--ease); }
.prop:hover h3 { color: var(--gold-dark); }
.prop-lugar { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--slate); margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-datos { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.75rem; color: var(--slate); margin-bottom: 16px; }
.prop-datos .ref { color: var(--pearl-dark); }
.prop-pie { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--pearl); padding-top: 16px; }
.prop-precio { font-family: var(--body); font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 700; color: var(--navy); }
.prop-flecha { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--pearl); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background var(--ease), color var(--ease); }
.prop:hover .prop-flecha { background: var(--gold); color: var(--navy-dark); }
.cargando { text-align: center; padding: 80px 0; color: var(--slate); }
.vacio { text-align: center; padding: 80px 0; }
.vacio .circulo { width: 64px; height: 64px; border-radius: 50%; background: var(--pearl); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }

/* --- Catalogo --- */
.pagina { padding: 112px 0 64px; background: var(--bg); min-height: 100vh; }
.cabeza-pagina { margin-bottom: 32px; }
.cabeza-pagina h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; margin: 8px 0; }
.aviso-legal { margin-bottom: 24px; background: rgba(12, 31, 51, 0.05); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; padding: 16px; font-size: 0.78rem; line-height: 1.6; }
.filtros { background: var(--white); border: 1px solid var(--pearl); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.filtros-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filtros-cab h3 { font-family: var(--body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; }
.filtros-cab .ico { color: var(--gold); }
.limpiar { background: none; border: 0; color: var(--slate); font-size: 0.75rem; cursor: pointer; }
.limpiar:hover { color: var(--danger); }
.filtros-campos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .filtros-campos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .filtros-campos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .filtros-campos { grid-template-columns: repeat(4, 1fr); } }
.etiqueta { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.campo { width: 100%; padding: 12px 16px; border: 1px solid var(--pearl-dark); border-radius: 8px; font-size: 0.9rem; color: var(--navy); background: var(--white); transition: border-color 150ms, box-shadow 150ms; }
.campo:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 166, 100, 0.15); }
.campo::placeholder { color: var(--slate); }
/* Selector de varias opciones (provincias) */
.multi { position: relative; }
.multi-boton { text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.multi-lista { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; min-width: 220px; max-height: 300px; overflow-y: auto; background: var(--white); border: 1px solid var(--pearl-dark); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px; }
.multi-lista label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 0.9rem; color: var(--navy); cursor: pointer; }
.multi-lista label:hover { background: var(--bg); }
.multi-lista input { accent-color: var(--gold); width: 16px; height: 16px; }
.multi-lista .multi-total { margin-left: auto; color: var(--slate); font-size: 0.8rem; }
.multi-lista .multi-pie { display: flex; justify-content: space-between; gap: 8px; padding: 6px 4px 2px; border-top: 1px solid var(--pearl); margin-top: 4px; }
.multi-lista .multi-pie button { background: none; border: 0; color: var(--gold-dark); font-weight: 600; cursor: pointer; padding: 6px; font-size: 0.85rem; }
textarea.campo { resize: vertical; min-height: 96px; }
.boton-filtros { display: none; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--white); border: 1px solid var(--pearl); border-radius: 8px; font-weight: 500; cursor: pointer; margin-bottom: 12px; }
@media (max-width: 1023px) {
  .boton-filtros { display: flex; }
  .filtros.plegados .filtros-campos, .filtros.plegados .filtros-cab { display: none; }
  .filtros.plegados { padding: 0; border: 0; box-shadow: none; background: none; }
}
.resultados { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; font-size: 0.875rem; color: var(--slate); }
.resultados b { color: var(--navy); }
.resultados select { width: auto; padding: 8px 12px; }
.mas { display: flex; justify-content: center; margin-top: 40px; }

/* --- Ficha --- */
.volver { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--slate); margin-bottom: 24px; }
.volver:hover { color: var(--navy); }
.ficha { display: grid; gap: 32px; }
@media (min-width: 1024px) { .ficha { grid-template-columns: 2fr 1fr; } }
.ficha-principal { display: grid; gap: 24px; align-content: start; min-width: 0; }
.galeria-foto { position: relative; height: 288px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-light) 50%, var(--navy-dark)); cursor: zoom-in; }
@media (min-width: 640px) { .galeria-foto { height: 450px; } }
.ficha-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.ficha-video iframe, .ficha-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.galeria-foto img { width: 100%; height: 100%; object-fit: cover; }
.galeria-foto .insignias { flex-direction: row; flex-wrap: wrap; top: 16px; left: 16px; }
.flecha-galeria { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(12, 31, 51, 0.55); color: var(--white); font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.flecha-galeria:hover { background: var(--navy); }
.flecha-galeria.izq { left: 16px; }
.flecha-galeria.der { right: 16px; }
.contador-fotos { position: absolute; bottom: 16px; right: 16px; z-index: 2; background: rgba(12, 31, 51, 0.6); color: var(--white); font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.miniaturas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .miniaturas { grid-template-columns: repeat(6, 1fr); } }
.miniaturas button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: 0.7; background: var(--pearl); }
.miniaturas button.activa { border-color: var(--gold); opacity: 1; }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.visor { position: fixed; inset: 0; z-index: 60; background: rgba(7, 21, 37, 0.95); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.visor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.visor .cerrar { position: absolute; top: 24px; right: 24px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--white); font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ficha h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.ficha-lugar { display: flex; align-items: center; gap: 8px; color: var(--slate); }
.ficha-lugar .ico { color: var(--gold); }
.datos-rapidos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .datos-rapidos { grid-template-columns: repeat(4, 1fr); } }
.dato { background: var(--white); border: 1px solid var(--pearl); border-radius: 8px; padding: 16px; text-align: center; }
.dato .ico { color: var(--gold); font-size: 20px; margin: 0 auto 4px; display: block; }
.dato small { display: block; font-size: 0.75rem; color: var(--slate); }
.dato b { font-size: 0.9rem; }
.bloque { background: var(--white); border: 1px solid var(--pearl); border-radius: 12px; padding: 24px; }
.bloque h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.bloque .texto { font-size: 0.9rem; white-space: pre-line; }
.detalles { display: grid; gap: 16px; }
@media (min-width: 640px) { .detalles { grid-template-columns: 1fr 1fr; } }
.detalle { display: flex; gap: 12px; font-size: 0.875rem; }
.detalle .ico { color: var(--gold); margin-top: 3px; }
.detalle small { display: block; font-size: 0.75rem; color: var(--slate); }
.detalle b { font-weight: 500; }
.caracteristicas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.875rem; }
@media (min-width: 640px) { .caracteristicas { grid-template-columns: repeat(3, 1fr); } }
.caracteristicas span { display: flex; gap: 8px; align-items: center; }
.caracteristicas span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.lateral { min-width: 0; }
.tarjeta-precio { background: var(--white); border: 1px solid var(--pearl); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 112px; }
.tarjeta-precio .etiqueta-precio { font-size: 0.75rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.tarjeta-precio .precio { font-family: var(--body); font-size: 1.75rem; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.linea-precio { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--pearl); font-size: 0.875rem; }
.linea-precio span:first-child { font-size: 0.75rem; color: var(--slate); }
.tarjeta-precio h3 { font-size: 1rem; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--pearl); }

/* --- Formulario de contacto --- */
.formulario { display: grid; gap: 14px; }
.formulario .sobre { font-size: 0.75rem; color: var(--slate); }
.formulario .sobre b { color: var(--navy); }
.casilla { display: flex; gap: 8px; align-items: flex-start; font-size: 0.72rem; color: var(--slate); line-height: 1.5; }
.casilla input { margin-top: 2px; accent-color: var(--gold-dark); }
.casilla a { text-decoration: underline; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-form { color: var(--danger); font-size: 0.85rem; }
.enviado { text-align: center; padding: 24px 0; }
.enviado .ico { font-size: 48px; color: var(--success); margin: 0 auto 12px; display: block; }
.enviado h4 { font-family: var(--body); font-size: 1.1rem; margin-bottom: 8px; }
.enviado p { font-size: 0.875rem; color: var(--slate); }
.contacto-general { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contacto-general { grid-template-columns: 1fr 1.2fr; } }
.contacto-general .bloque { padding: 32px; }

/* --- Servicios / nosotros --- */
.honorarios { border-radius: 16px; padding: 32px; }
.honorarios.oscura { background: var(--navy); color: var(--white); }
.honorarios.clara { background: var(--white); border: 1px solid var(--pearl); }
.honorarios h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.honorarios > p { font-size: 0.875rem; margin-bottom: 24px; }
.honorarios.oscura > p { color: var(--pearl); }
.honorarios.clara > p { color: var(--slate); }
.fila-tarifa { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }
.clara .fila-tarifa { border-color: var(--pearl); }
.fila-tarifa:last-of-type { border-bottom: 0; }
.fila-tarifa b { color: var(--gold); text-align: right; }
.clara .fila-tarifa b { color: var(--navy); }
.incluye { margin-top: 24px; border-radius: 8px; padding: 16px; font-size: 0.75rem; line-height: 1.6; }
.oscura .incluye { background: rgba(255, 255, 255, 0.05); color: var(--pearl); }
.clara .incluye { background: var(--bg); color: var(--slate); }
.tres { display: grid; gap: 24px; }
@media (min-width: 640px) { .tres { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tres { grid-template-columns: repeat(3, 1fr); } }
.preguntas { display: grid; gap: 16px; max-width: 768px; margin: 0 auto; }
.preguntas details { background: var(--white); border: 1px solid var(--pearl); border-radius: 12px; }
.preguntas summary { display: flex; align-items: center; gap: 12px; padding: 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem; list-style: none; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary .ico { color: var(--gold); font-size: 20px; }
.preguntas summary:hover { color: var(--gold-dark); }
.preguntas details p { padding: 0 20px 20px 52px; font-size: 0.875rem; color: var(--slate); }
.banda { position: relative; overflow: hidden; background: var(--navy); padding: 80px 0; text-align: center; color: var(--white); }
.banda h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin: 12px 0 24px; }
.banda p { font-size: 1.1rem; color: var(--pearl); max-width: 680px; margin: 0 auto; }
.mision { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .mision { grid-template-columns: 1fr 1fr; } }
.mision p { color: var(--slate); margin-bottom: 16px; }
.mision-iconos { background: var(--navy); border-radius: 16px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
.mision-iconos .icono-caja { margin: 0 auto 12px; }
.mision-iconos span { font-size: 0.875rem; color: var(--pearl); }
.socios { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.socios span { padding: 16px 32px; background: var(--white); border: 1px solid var(--pearl); border-radius: 8px; font-size: 0.875rem; font-weight: 500; }
.legal { padding: 112px 0 64px; background: var(--bg); }
.legal .bloque { padding: 32px; }
.legal h2 { font-family: var(--body); font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 0.9rem; color: #333d47; }
.legal a { color: var(--gold-dark); text-decoration: underline; }

/* --- Pie --- */
.pie { background: var(--navy-dark); color: var(--pearl); }
.pie-columnas { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .pie-columnas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pie-columnas { grid-template-columns: repeat(4, 1fr); } }
.pie h4 { font-family: var(--body); color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.pie p, .pie li, .pie a { font-size: 0.875rem; color: var(--slate); }
.pie a:hover { color: var(--gold); }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pie .marca { margin-bottom: 24px; }
.pie .contacto li { display: flex; gap: 12px; align-items: flex-start; }
.pie .contacto .ico { color: var(--gold); margin-top: 3px; }
.pie .contacto a { color: var(--pearl); }
.pie .contacto small { display: block; font-size: 0.75rem; color: var(--slate); }
.redes { display: flex; gap: 12px; margin-top: 24px; }
.redes a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.pie-legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; font-size: 0.75rem; }
@media (min-width: 768px) { .pie-legal { flex-direction: row; } }
.pie-legal div { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.pie-legal a, .pie-legal p { font-size: 0.75rem; }

/* Boton flotante de WhatsApp */
.whatsapp-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform var(--ease); }
.whatsapp-flotante:hover { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* --- Servicios y honorarios --- */
.grupo-servicios { margin-top: 56px; scroll-margin-top: 104px; }
.grupo-titulo { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.rejilla-servicios { display: grid; gap: 24px; }
@media (min-width: 768px) { .rejilla-servicios { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rejilla-servicios { grid-template-columns: repeat(3, 1fr); } .servicio.ancho { grid-column: span 2; } }
.servicio { position: relative; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.servicio.oscura { background: var(--navy); color: var(--white); }
.servicio.clara { background: var(--white); border: 1px solid var(--pearl); }
.servicio h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.servicio > p { font-size: 0.9rem; margin-bottom: 16px; }
.servicio .servicio-lema { font-weight: 600; }
.servicio.oscura > p { color: var(--pearl); }
.servicio.clara > p { color: var(--slate); }
.servicio.clara .servicio-lema { color: var(--navy); }
.servicio .vinetas { margin-bottom: 24px; }
@media (min-width: 1100px) { .servicio.ancho .vinetas { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.servicio-precio { margin-top: auto; border-radius: 10px; padding: 16px; display: grid; gap: 4px; }
.servicio-precio span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.servicio-precio b { font-family: var(--body); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.oscura .servicio-precio { background: rgba(195, 166, 100, 0.12); }
.oscura .servicio-precio span { color: var(--gold-light); }
.oscura .servicio-precio b { color: var(--gold); }
.clara .servicio-precio { background: var(--bg); border: 1px solid var(--pearl); }
.clara .servicio-precio span { color: var(--slate); }
.clara .servicio-precio b { color: var(--navy); }
.servicio-nota { margin-top: 12px; font-size: 0.78rem !important; line-height: 1.6; }
.oscura .servicio-nota { color: rgba(227, 229, 231, 0.75) !important; }
.grupo-titulo .antetitulo { font-family: var(--body); font-size: 0.72rem; }
.servicio-wa { margin-top: 16px; width: 100%; padding: 12px 16px; }
.oscura .servicio-wa { color: var(--gold-light); }

/* --- Mapa de la portada --- */
.mapa-seccion { background: var(--white); padding: 80px 0; scroll-margin-top: 64px; }
.buscador-mapa { display: grid; gap: 12px; align-items: end; background: var(--white); border: 1px solid var(--pearl); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
@media (min-width: 900px) { .buscador-mapa { grid-template-columns: 220px 1fr 180px auto; } }
.buscador-mapa .boton { padding: 13px 24px; }
.mapa-caja { position: relative; }
.mapa { height: 460px; border-radius: 12px; border: 1px solid var(--pearl); overflow: hidden; z-index: 0; background: #e8ecef; }
@media (min-width: 1024px) { .mapa { height: 560px; } }
.mapa-leyenda { font-size: 0.8rem; margin-top: 8px; }
.marca-mapa { background: none; border: 0; }
.marca-mapa span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--navy); color: var(--gold); border: 2px solid var(--gold); font-weight: 700; font-size: 0.8rem; box-shadow: 0 4px 12px rgba(12, 31, 51, 0.35); transition: transform 150ms; }
.marca-mapa.provincia span { background: var(--gold); color: var(--navy-dark); border-color: var(--navy); font-size: 0.9rem; }
.marca-mapa:hover span, .marca-mapa:focus span { transform: scale(1.1); }
.popup-mapa h4 { font-family: var(--body); font-size: 0.95rem; margin: 0 0 2px; }
.popup-mapa > p { margin: 0 0 8px !important; color: var(--slate); font-size: 0.75rem; }
.popup-prop { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--pearl); color: var(--navy) !important; }
.popup-prop img, .popup-sinfoto { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.popup-prop b { display: block; font-size: 0.78rem; }
.popup-prop small { color: var(--slate); font-size: 0.72rem; }
.popup-todos { display: block; margin-top: 8px; font-weight: 600; font-size: 0.78rem; color: var(--gold-dark) !important; }
.leaflet-container { font-family: var(--body); }
.buscador-mapa .campo { height: 48px; }
.precio-mapa { background: none; border: 0; }
.precio-mapa span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 0.78rem; box-shadow: 0 3px 10px rgba(12, 31, 51, 0.3); position: relative; transition: background 150ms, color 150ms; }
.precio-mapa span::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--navy); border-bottom: 0; }
.precio-mapa.precio-inversion span { border-color: var(--gold-dark); }
.precio-mapa.precio-inversion span::after { border-top-color: var(--gold-dark); }
.precio-mapa:hover span, .precio-mapa:focus span { background: var(--navy); color: var(--gold); }

/* Cifras y precios: numeros rectos y faciles de leer (Inter) */
.cifra b, .prop-precio, .tarjeta-precio .precio, .servicio-precio b, .precio-mapa span { font-variant-numeric: lining-nums tabular-nums; }

/* --- Alerta de inmuebles del cliente ------------------------------------------ */
.alerta-criterios { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 999px; background: var(--pearl); color: var(--navy); font-weight: 500; }
.insignia.nueva { background: #1f7a4d; color: #fff; }
.insignia.baja-precio { background: var(--navy); color: var(--gold); }
.precio-anterior { margin-left: 8px; color: var(--slate); text-decoration: line-through; font-size: 0.85em; font-weight: 400; }
.alerta-retiradas { margin-top: 40px; padding: 20px 24px; border: 1px solid #e5e2da; border-radius: 12px; background: #fff; }
.alerta-retiradas ul { margin: 8px 0 0; padding-left: 20px; color: var(--slate); }
.alerta-baja { margin-top: 40px; text-align: center; color: var(--slate); font-size: 0.9rem; }
.alerta-baja button { background: none; border: none; color: var(--slate); text-decoration: underline; cursor: pointer; font: inherit; }
.alerta-confirmar-baja { margin-bottom: 32px; padding: 20px 24px; border: 2px solid var(--gold); border-radius: 12px; background: #fff; }
.alerta-confirmar-baja p { margin: 6px 0 14px; color: var(--slate); }
.alerta-confirmar-baja .boton { margin: 4px 6px 4px 0; }

/* --- Crear alerta desde el catalogo ------------------------------------------- */
.boton-alerta { margin-left: 16px; padding: 9px 16px; border: 1px solid var(--gold); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.boton-alerta:hover { background: var(--gold); }
.velo-alerta { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 31, 51, 0.55); }
.ventana-alerta { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.ventana-alerta h3 { margin: 0 0 6px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; color: var(--navy); }
.ventana-alerta .formulario { gap: 12px; }
.ventana-alerta .cerrar { float: right; border: none; background: none; font-size: 1.4rem; color: var(--slate); cursor: pointer; }
@media (max-width: 640px) { .boton-alerta { margin: 10px 0 0; display: block; } }

/* --- Blog ------------------------------------------------------------------- */
.filtro-blog { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.filtro-blog button { border: 1px solid var(--pearl-dark); background: var(--white); color: var(--navy); border-radius: 99px; padding: 8px 16px; font: 500 0.85rem var(--body); cursor: pointer; transition: background var(--ease), color var(--ease); }
.filtro-blog button:hover { border-color: var(--gold); }
.filtro-blog button.activo { background: var(--navy); color: var(--gold); border-color: var(--navy); }
@media (min-width: 1024px) { .rejilla-blog { grid-template-columns: repeat(3, 1fr); } }
.articulo-tarjeta .prop-cuerpo h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.articulo-resumen { font-size: 0.9rem; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.articulo { max-width: 760px; margin: 0 auto; }
.articulo-cab { text-align: center; margin: 16px 0 32px; }
.articulo-cab h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 16px 0 8px; }
.articulo-fecha { color: var(--slate); font-size: 0.9rem; margin: 0; }
.articulo-portada { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin-bottom: 32px; box-shadow: var(--shadow-lg); }
.articulo-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 32px; border-radius: 12px; overflow: hidden; background: var(--navy-dark); }
.articulo-video.vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-left: auto; margin-right: auto; }
.articulo-video iframe, .articulo-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.articulo-texto { font-size: 1.05rem; line-height: 1.75; color: #2b3640; overflow-wrap: anywhere; }
.articulo-texto h2 { font-size: 1.8rem; margin: 40px 0 12px; color: var(--navy); }
.articulo-texto h3 { font-size: 1.35rem; margin: 28px 0 8px; color: var(--navy); }
.articulo-texto p { margin: 0 0 18px; }
.articulo-texto ul { margin: 0 0 20px; padding-left: 22px; }
.articulo-texto li { margin-bottom: 8px; }
.articulo-texto li::marker { color: var(--gold-dark); }
.articulo-texto a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Fuente de las fotos y aviso de informacion orientativa */
.nota-info { font-size: 0.8rem; color: var(--slate); margin: 4px 0 0; line-height: 1.5; }
.pie-legal { flex-wrap: wrap; }
.pie-legal .fuentes-fotos { order: 3; flex-basis: 100%; font-size: 0.75rem; opacity: 0.7; margin: 0; }
