/* Suárez Estates · Branding A «El Arco»
   Base común de la web y del panel: tipografías, colores y componentes de la marca.
   Primero el móvil; a partir de 768 px (tablet) y 1024 px (ordenador) se amplía. */

/* ---------- Tipografías (alojadas aquí, licencia OFL) ---------- */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(../fonts/jost-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(../fonts/jost-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Colores y medidas ---------- */
:root {
  --lino: #F4EFE6;     /* 60 % · fondo principal */
  --piedra: #DDD2BF;   /* 20 % · bloques y tarjetas */
  --encina: #2F3A2B;   /* 10 % · secciones oscuras y botones */
  --tierra: #3B2F26;   /*  6 % · textos */
  --olivo: #59633F;    /* apoyo · etiquetas e iconos */
  --oro: #A78B41;      /*  3 % · líneas, subrayados y números */
  --ciruela: #4B1759;  /* ya no se usa: era el color del logo anterior (cambiado el 30-oct) */
  --arena: #EAE3D6;    /* tono intermedio entre Lino y Piedra */
  --blanco: #FFFFFF;
  --error: #8A2F1D;    /* avisos de error: terracota oscura, contraste 7:1 sobre Lino */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --radius: 2px;
  --pill: 999px;
  --tap: 48px;         /* altura mínima de lo que se pulsa */
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--lino); color: var(--tierra);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--encina); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--olivo); }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
::selection { background: var(--piedra); color: var(--encina); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--encina); margin: 0 0 .4em; letter-spacing: -.005em; line-height: 1.05; }
h1 { font-size: clamp(40px, 9vw, 88px); line-height: .98; }
h2 { font-size: clamp(32px, 6vw, 52px); }
h3 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
h4 { font-size: 22px; line-height: 1.2; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.6; max-width: 36em; }
.muted { color: var(--olivo); }
.small { font-size: 14px; line-height: 1.55; }

/* Etiqueta en versalitas espaciadas, como «ESTATES» del logo */
.label {
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .32em;
  text-transform: uppercase; color: var(--olivo); line-height: 1.4;
}

/* C · Numeración editorial: número en Oro, filete fino y etiqueta */
.num { display: flex; align-items: center; gap: 14px; }
.num b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1; color: var(--oro); font-variant-numeric: lining-nums; }
.num .label { line-height: 1; }
.num::after { content: ''; flex: 0 0 48px; height: 1px; background: var(--oro); order: 1; }
.num .label { order: 2; }

/* B · Subrayado a mano en Oro, uno por titular y siempre en cursiva */
.ul { position: relative; white-space: nowrap; font-style: italic; }
.ul svg { position: absolute; left: 0; bottom: -.1em; width: 100%; height: .18em; overflow: visible; }
.ul path { stroke: var(--oro); stroke-width: 3; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* A · Foto en arco de medio punto */
/* Fotos clave: rectángulo vertical, sin redondear (lo pidió Dana el 30-oct; antes iban en arco). El arco queda para el logo. */
.arch { border-radius: 0; overflow: hidden; position: relative; background: var(--piedra); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* D · Sello circular */
.seal { position: relative; width: 140px; aspect-ratio: 1; border-radius: 50%; background: var(--encina); display: grid; place-items: center; }
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal svg.ring text { font-family: var(--sans); font-size: 7px; font-weight: 400; fill: var(--lino); text-transform: uppercase; }
.seal img { width: 24%; height: auto; }
.seal--lino { background: var(--lino); }
.seal--lino svg.ring text { fill: var(--encina); }

/* F · Cita */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4vw, 30px); line-height: 1.3; color: var(--encina); margin: 0; }
.quote-mark { font-family: var(--serif); color: var(--oro); font-size: 64px; line-height: .6; display: block; }

/* ---------- Botones (píldora, Jost 500) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 12px 28px; border: 1px solid var(--encina); border-radius: var(--pill);
  background: var(--encina); color: var(--lino); font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: .04em; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--olivo); border-color: var(--olivo); color: var(--lino); }
.btn--ghost { background: transparent; color: var(--encina); }
.btn--ghost:hover { background: var(--encina); color: var(--lino); }
.btn--light { background: var(--lino); color: var(--encina); border-color: var(--lino); }
.btn--light:hover { background: var(--piedra); border-color: var(--piedra); color: var(--encina); }
.btn--ghost.btn--light { background: transparent; color: var(--lino); border-color: var(--lino); }
.btn--ghost.btn--light:hover { background: var(--lino); color: var(--encina); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn--danger:hover { background: var(--error); color: var(--blanco); border-color: var(--error); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--encina); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 400; color: var(--tierra); letter-spacing: .02em; }
.field .hint { font-size: 13px; color: var(--olivo); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 16px; border: 1px solid var(--piedra); border-radius: var(--radius);
  background: var(--blanco); color: var(--tierra); font-family: var(--sans); font-size: 17px; font-weight: 300;
  transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--encina); box-shadow: 0 0 0 3px rgba(47, 58, 43, .12); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--olivo) 50%), linear-gradient(135deg, var(--olivo) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; min-height: var(--tap); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--encina); flex: none; }
input.code { font-family: var(--sans); font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 400; }

/* E · Formulario por pasos: opciones grandes y barra de progreso */
.steps-progress { height: 3px; background: var(--piedra); border-radius: 3px; overflow: hidden; margin: 10px 0 24px; }
.steps-progress span { display: block; height: 100%; background: var(--oro); }
.w-25 { width: 25%; } .w-50 { width: 50%; } .w-75 { width: 75%; } .w-100 { width: 100%; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 60px; padding: 16px 20px; margin-bottom: 10px; border: 1px solid var(--piedra); border-radius: var(--radius);
  background: var(--blanco); color: var(--tierra); font-family: var(--sans); font-size: 17px; font-weight: 300; text-align: left; cursor: pointer;
}
.option::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--olivo); flex: none; }
.option:hover, .option[aria-pressed=true] { border-color: var(--encina); }
.option[aria-pressed=true]::after { background: var(--encina); box-shadow: inset 0 0 0 3px var(--blanco); }

/* ---------- Avisos ---------- */
.notice { padding: 14px 18px; border-left: 3px solid var(--olivo); background: var(--blanco); margin-bottom: 20px; font-size: 15px; }
.notice--error { border-color: var(--error); color: var(--error); }
.notice--ok { border-color: var(--olivo); }
.notice--aviso { border-color: var(--oro); }

/* ---------- Tarjetas y tablas ---------- */
.card { background: var(--blanco); border: 1px solid var(--piedra); padding: 24px; }
@media (min-width: 768px) { .card { padding: 32px; } }
.card--stone { background: var(--piedra); border-color: var(--piedra); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--olivo); padding: 0 12px 12px; border-bottom: 1px solid var(--piedra); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--piedra); vertical-align: middle; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; letter-spacing: .06em; background: var(--arena); color: var(--tierra); white-space: nowrap; }
.tag--ok { background: #E3E6D8; color: var(--encina); }
.tag--off { background: #F0DDD6; color: var(--error); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
