/* =========================================================
   URBIMAN · estilos comunes de urbiman.eu
   Kit de Marca v1 (octubre 2026) · Línea Inmobiliaria
   Colores: arena #F4F1EA · petróleo #0F4C5C · grafito #333A3F
            piedra #D9D3C7 · acento cobre #A0623A (texto pequeño #8A5230)
   Tipografías: Lora (títulos) · Source Sans 3 (texto) · Poppins (cifras)
   ========================================================= */

/* ---------- Tipografías alojadas en la propia web ---------- */
@font-face {
  font-family: "Lora URBIMAN";
  src: url("../fonts/lora-semibold.woff") format("woff");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 URBIMAN";
  src: url("../fonts/source-sans-3-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 URBIMAN";
  src: url("../fonts/source-sans-3-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 URBIMAN";
  src: url("../fonts/source-sans-3-bold.woff") format("woff");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins URBIMAN";
  src: url("../fonts/poppins-bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --titulos: "Lora URBIMAN", Georgia, "Times New Roman", serif;
  --texto: "Source Sans 3 URBIMAN", Calibri, "Segoe UI", Arial, sans-serif;
  --cifras: "Poppins URBIMAN", "Arial Black", Arial, sans-serif;
  --arena: #F4F1EA;
  --petroleo: #0F4C5C;
  --petroleo-oscuro: #0B3945;
  --grafito: #333A3F;
  --piedra: #D9D3C7;
  --cobre: #A0623A;
  --cobre-oscuro: #8A5230;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--grafito); }
body > div { font-size: 18px !important; line-height: 1.6 !important; }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--petroleo); }
a:hover { color: var(--petroleo-oscuro); }
*:focus-visible { outline: 3px solid var(--cobre); outline-offset: 2px; }
input, select, textarea, button { font: inherit; }
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"] { width: 100%; background: #FFFFFF; }

/* Botón con el acento de la línea (solo la acción principal) */
.boton-acento { transition: background-color .15s ease; }
.boton-acento:hover { background: var(--cobre-oscuro) !important; color: #FFFFFF !important; }

/* Preguntas frecuentes */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.faq-sign { transition: transform .2s ease; }
details[open] .faq-sign { transform: rotate(45deg); }

/* Selector Estado actual / Propuesta */
.toggle-plano {
  min-height: 40px; padding: 0 14px; border: 0; cursor: pointer;
  background: #FFFFFF; color: var(--petroleo); font-weight: 600; font-size: 15px;
}
.toggle-plano.is-on { background: var(--petroleo); color: #FFFFFF; }

/* Tablas de las páginas legales: filas alternas arena y blanco */
tbody tr:nth-child(even) { background: var(--arena); }

/* Formulario */
.campo-trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aviso-error {
  margin: 0; padding: 12px 14px; border-left: 4px solid var(--petroleo); border-radius: 4px;
  background: var(--arena); color: var(--grafito); font-weight: 600; font-size: 16px;
}
.campo-invalido { border-color: var(--cobre-oscuro) !important; box-shadow: 0 0 0 2px rgba(160, 98, 58, .18); }
#form-enviar[disabled] { opacity: .7; cursor: progress; }

/* Banner de cookies: no se imprime */
@media print { #cookie-banner { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-sign, .boton-acento { transition: none; }
}

[hidden] { display: none !important; }

/* Móvil: cabecera en una sola línea y banner de cookies más compacto */
@media (max-width: 560px) {
  body > div { font-size: 17px !important; }
  header a[href="#formulario"] { display: none !important; }
  header img { height: 52px !important; }
  #cookie-banner [role="dialog"] { padding: 14px 16px !important; gap: 10px !important; font-size: 15px !important; left: 10px !important; right: 10px !important; bottom: 10px !important; }
  #cookie-banner [role="dialog"] button { min-height: 44px !important; }
}
