/* comprador.css — Herramientas del comprador: moneda, costo total, presupuesto y aviso.
   Hoja aparte para no tocar reysol.css, que obliga a subir ?v= en todas las páginas. */

/* ── Selector de moneda ── */
.moneda-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 20px; font-family: 'Manrope', sans-serif; }
.moneda-toggle[hidden] { display: none; }
.moneda-etiqueta { font-size: .88rem; color: var(--text-muted); }
.moneda-boton {
    min-height: 40px; min-width: 56px; padding: 7px 14px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(30,64,112,.22); background: #fff; color: var(--text-light);
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .88rem;
}
.moneda-boton[aria-pressed="true"] { background: var(--nav-bg); border-color: var(--nav-bg); color: #fff; }
.moneda-boton:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.moneda-nota { flex-basis: 100%; font-size: .78rem; line-height: 1.5; color: var(--text-muted); }
.precio-equiv { display: block; font-family: 'Manrope', sans-serif; font-size: .9rem; color: var(--text-muted); }

/* ── Cambio de idioma: fuera de .nav-links porque ese menú se oculta en móvil ── */
.lang-link { flex: none; margin-left: 14px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; color: #fff; font-family: 'Manrope', sans-serif; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang-link:hover { background: rgba(255,255,255,.14); }
.lang-link:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* ── Visita por videollamada ── */
.btn-video { display: block; margin-top: 10px; padding: 13px; border-radius: 12px; background: var(--gold-light); color: #0f1e30; font-weight: 800; font-size: .95rem; text-align: center; text-decoration: none; }
.btn-video:hover { background: #f5d469; }
.btn-video:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.prop-contacto .video-nota { margin: 8px 0 0; font-size: .8rem; line-height: 1.45; text-align: center; color: rgba(238,243,248,.72); }

/* ── Costo total en la ficha ── */
.costo-compra { margin-top: 30px; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid rgba(30,64,112,.12); border-radius: 16px; font-family: 'Manrope', sans-serif; }
.costo-compra[hidden] { display: none; }
.costo-compra h2 { font-size: 1.3rem; color: var(--text-light); margin-bottom: 14px; }
.costo-controles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; font-size: .92rem; color: var(--text-light); }
.costo-controles[hidden], .costo-controles [hidden] { display: none; }
.costo-controles label { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; cursor: pointer; }
.costo-controles select { min-height: 38px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--input-border); background: #fff; color: var(--text-light); font: inherit; }
.costo-tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; font-size: .95rem; }
.costo-tabla caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.costo-tabla tr[hidden] { display: none; }
.costo-tabla th { padding: 11px 12px 11px 0; text-align: left; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid rgba(30,64,112,.08); }
.costo-tabla td { padding: 11px 0; text-align: right; font-weight: 700; color: var(--text-light); white-space: nowrap; border-bottom: 1px solid rgba(30,64,112,.08); }
.costo-total th, .costo-total td { border-bottom: none; color: var(--accent-text); font-weight: 800; font-size: 1.08rem; padding-top: 14px; }
.costo-equiv { margin: 2px 0 0; text-align: right; font-size: .85rem; color: var(--text-muted); }
.costo-equiv[hidden] { display: none; }
.costo-notas { margin: 14px 0 0; padding-left: 18px; font-size: .86rem; line-height: 1.55; color: var(--text-light); }
.costo-notas:empty { display: none; }
.costo-aviso { margin: 12px 0 0; font-size: .8rem; line-height: 1.55; color: var(--text-muted); }
.costo-enlace { margin: 12px 0 0; font-size: .92rem; font-weight: 700; }
.costo-enlace a { color: var(--accent-text); }

/* ── ¿Cuánto puedo comprar? ── */
#presupuestoResults { scroll-margin-top: 90px; }
.pres-consejo { margin: 14px 0 0; font-size: .92rem; line-height: 1.55; color: inherit; }
.presupuesto-propiedades { margin-top: 28px; font-family: 'Manrope', sans-serif; }
.presupuesto-propiedades[hidden] { display: none; }
.presupuesto-propiedades h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.4rem; color: var(--text-light); margin-bottom: 14px; }
.presupuesto-propiedades p { color: var(--text-muted); line-height: 1.6; }
.pres-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pres-prop { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(30,64,112,.12); border-radius: 14px; overflow: hidden; color: var(--text-light); text-decoration: none; }
.pres-prop:hover { border-color: var(--gold); }
.pres-prop:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pres-prop img { display: block; width: 100%; height: 150px; object-fit: cover; }
.pres-prop-cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.pres-prop-tag { font-family: 'Montserrat', sans-serif; font-size: .66rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); }
.pres-prop-titulo { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.pres-prop-precio { font-weight: 800; color: var(--accent-text); }
.pres-todas { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-text); }

/* ── Avísame ── */
.alerta { background: var(--nav-bg); color: #fff; padding: clamp(40px, 6vw, 64px) 20px; font-family: 'Manrope', sans-serif; }
.alerta-inner { max-width: 900px; margin: 0 auto; }
.alerta h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin-bottom: 10px; }
.alerta p { color: rgba(238,243,248,.85); line-height: 1.6; }
.alerta-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 14px; }
.alerta-form label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; color: #fff; }
.alerta-form select { min-height: 46px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: #fff; color: var(--text-light); font: inherit; font-weight: 500; }
.alerta-form select:focus-visible, .btn-alerta:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.btn-alerta { grid-column: 1 / -1; justify-self: start; min-height: 48px; padding: 12px 26px; border: none; border-radius: 12px; background: #25D366; color: #0f1e30; font: inherit; font-weight: 800; cursor: pointer; }
.btn-alerta:hover { background: #3be07a; }
.alerta .alerta-nota { font-size: .82rem; color: rgba(238,243,248,.72); margin: 0; }

@media (max-width: 720px) {
    .alerta-form { grid-template-columns: 1fr; }
    .btn-alerta { justify-self: stretch; }
}
