/*
Theme Name: BlancaReal
Description: Tema a medida para blancareal.com, portado desde el sitio original (Astro) manteniendo el diseño de marca (colores, tipografía, espaciados) y con gestión de propiedades vía un Custom Post Type nativo.
Author: BlancaReal
Version: 7.6.0
Text Domain: blancareal
*/

/* =========================
   RESET + VARIABLES DE MARCA
   (portado tal cual desde src/styles/base.css del proyecto original)
   ========================= */

:root {
  /* Colores Corporativos */
  --color-bg: #F7F8F8; /* Blanco corporativo */
  --color-surface: #ffffff;
  --color-text: #202F4E; /* Azul corporativo para texto */
  --color-muted: rgba(32, 47, 78, 0.68);

  --color-primary: #202F4E; /* Azul corporativo */
  --color-accent: #D32C43;  /* Rojo corporativo */
  --color-secondary: #D32C43;
  --color-brand: #D32C43;

  --color-border: rgba(32, 47, 78, 0.12);

  /* Tipografía */
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --section-space: clamp(3.2rem, 5vw, 5.5rem);
  --section-space-tight: clamp(2.2rem, 3.5vw, 3.5rem);
  --content-max-width: 1280px;
  --content-max-width-wide: 1480px;

  /* UI */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 18px 42px rgba(10, 18, 34, 0.08);
  --field-height: 50px;
  --control-pill-height: 44px;
  --page-inline-padding: clamp(1rem, 2.2vw, 1.75rem);
  --page-inline-padding-tight: clamp(0.9rem, 4vw, 1.15rem);
  --home-wide-max-width: 1680px;
  --mobile-sticky-cta-height: calc(72px + env(safe-area-inset-bottom));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  line-height: 1.12;
  margin-bottom: 0.55rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(211, 44, 67, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--page-inline-padding);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 4000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
