/* =========================================================
   Propiedad Horizontal — sistema visual base
   Colores y tipografía según el Manual de marca
   ========================================================= */
@font-face { font-family: "PH Serif"; src: url("/fonts/Caladea-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PH Sans"; src: url("/fonts/Carlito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PH Sans"; src: url("/fonts/Carlito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PH Sans"; src: url("/fonts/Carlito-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #0F2A44; --navy-2: #16395C; --navy-3: #0A1D30;
  --teal: #1F7A6D; --teal-d: #18645A; --teal-l: #7FCFC3; --teal-bg: #E6F2F0;
  --gold: #C9A44C; --gold-l: #E0BD62; --gold-bg: #FBF4E2;
  --ink: #1B2733; --muted: #5B6B7A; --muted-2: #8796A5; --line: #D8E0E6; --bg: #F3F6F8; --white: #FFFFFF;
  --danger: #B42318; --danger-bg: #FDECEA; --ok: #1F7A6D; --warn: #9A6B00; --warn-bg: #FFF6DB;

  --serif: "PH Serif", Cambria, Georgia, serif;
  --sans: "PH Sans", Calibri, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(15, 42, 68, .06), 0 2px 8px rgba(15, 42, 68, .06);
  --sh-2: 0 6px 24px rgba(15, 42, 68, .10), 0 2px 6px rgba(15, 42, 68, .06);
  --sh-3: 0 24px 60px rgba(10, 29, 48, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-d); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--teal-l); color: var(--navy); }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; color: #fff; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Botones ---------- */
.btn { --b: var(--teal); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.35em; border-radius: var(--r-pill); border: 2px solid var(--b); background: var(--b); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 122, 109, .28); background: var(--teal-d); border-color: var(--teal-d); }
.btn:active { transform: translateY(0); }
.btn .i { width: 1.05em; height: 1.05em; }
.btn--gold { --b: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-l); border-color: var(--gold-l); color: var(--navy); box-shadow: 0 8px 20px rgba(201, 164, 76, .35); }
.btn--navy { --b: var(--navy); }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 8px 20px rgba(15, 42, 68, .25); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg); color: var(--navy); border-color: var(--muted-2); box-shadow: none; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; box-shadow: none; }
.btn--danger { --b: var(--danger); }
.btn--danger:hover { background: #8f1c13; border-color: #8f1c13; box-shadow: none; }
.btn--wa { --b: #128C7E; }
.btn--wa:hover { background: #0e7065; border-color: #0e7065; box-shadow: 0 8px 20px rgba(18, 140, 126, .3); }
.btn--sm { min-height: 36px; padding: .45em .95em; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: .85em 1.7em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg); color: var(--navy); }
.icon-btn .i { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.hint { font-size: .87rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31, 122, 109, .15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-wrap .icon-btn { position: absolute; right: 4px; top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 10px; font-size: .95rem; margin-bottom: 16px; }
.alert .i { width: 20px; height: 20px; margin-top: 2px; }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--ok { background: var(--teal-bg); color: var(--teal-d); }
.alert--info { background: #EAF1F8; color: var(--navy); }
.alert--warn { background: var(--warn-bg); color: #6b4a00; }

/* ---------- Íconos en círculo (motivo de marca) ---------- */
.badge-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; flex: none; }
.badge-ic .i { width: 24px; height: 24px; }
.badge-ic--teal { background: var(--teal); }
.badge-ic--gold { background: var(--gold); color: var(--navy); }
.badge-ic--soft { background: var(--teal-bg); color: var(--teal); }
.badge-ic--sm { width: 42px; height: 42px; }
.badge-ic--sm .i { width: 18px; height: 18px; }

.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.kicker--gold { color: var(--gold-l); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip--teal { background: var(--teal-bg); color: var(--teal-d); }
.chip--gold { background: var(--gold-bg); color: #7a5c12; }
.chip--navy { background: #E3EAF2; color: var(--navy); }
.chip--red { background: var(--danger-bg); color: var(--danger); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--navy); color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: var(--sh-3); animation: toastIn .35s var(--ease); font-size: .95rem; }
.toast .i { width: 20px; height: 20px; color: var(--teal-l); margin-top: 1px; }
.toast--error .i { color: #FFB4AB; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
