/* ==========================================================================
   Auda Capital — hoja de estilos
   ========================================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --black: #0E0E0F;
  --ink: #18181A;
  --ink-2: #242427;
  --ivory: #F5F1EA;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --stone: #EEE9E1;
  --line: #E2DCD2;
  --line-dark: rgba(245, 241, 234, .14);
  --text: #17171A;
  --muted: #6D6963;
  --muted-2: #9A958D;
  --ok: #2F6A4E;   --ok-bg: #E8F0EA;
  --warn: #8A6421; --warn-bg: #F6EEDD;
  --bad: #9A3A30;  --bad-bg: #F7E6E3;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(14,14,15,.04), 0 8px 28px rgba(14,14,15,.06);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
code { font-size: .88em; background: var(--stone); padding: .1em .35em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.serif { font-family: var(--serif); }
h1, h2, h3, .fig-value, .pillar-n, .steps b, .card-title { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.eyebrow { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.eyebrow.rule { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow.rule::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { --b: var(--black); --c: var(--ivory); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 1px solid var(--b); background: var(--b); color: var(--c); font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn:hover { --b: var(--ink-2); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--ivory); }
.btn-light { --b: var(--ivory); --c: var(--black); }
.btn-light:hover { --b: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(245,241,234,.45); color: var(--ivory); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 11.5px; }
.btn-xs { min-height: 28px; padding: 0 10px; font-size: 11px; letter-spacing: .06em; }
.btn-danger { --b: var(--bad); }
.btn-danger.btn-outline { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn-danger.btn-outline:hover { background: var(--bad); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field > label.check { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--muted-2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); background: var(--white); color: var(--text); font: 400 15px/1.4 var(--sans); border-radius: var(--radius); transition: border-color .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--black); outline: none; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317171A' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--black); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Avisos ---------- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin-bottom: 14px; border-left: 3px solid; font-size: 14px; background: var(--white); }
.flash-ok { border-color: var(--ok); background: var(--ok-bg); }
.flash-error { border-color: var(--bad); background: var(--bad-bg); }
.flash-warn { border-color: var(--warn); background: var(--warn-bg); }
.flash-close { margin-left: auto; background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--stone); color: var(--text); border-radius: var(--radius); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.plain::before { display: none; }
.chip-disponible, .chip-ok, .chip-atendida { background: var(--ok-bg); color: var(--ok); }
.chip-reservado, .chip-warn, .chip-pendiente { background: var(--warn-bg); color: var(--warn); }
.chip-proximamente { background: var(--stone); color: var(--muted); }
.chip-vendido, .chip-descartada { background: var(--ink); color: var(--ivory); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-dark { background: var(--black); color: var(--ivory); }

/* ==========================================================================
   Web pública
   ========================================================================== */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.site-logo img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) { color: var(--ivory); text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; transition: opacity .2s; }
.site-nav a:not(.btn):hover { opacity: 1; }

.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: center; background: var(--black); color: var(--ivory); overflow: hidden; isolation: isolate; }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 80% 70% at 78% 40%, rgba(245,241,234,.07), transparent 70%),
  repeating-linear-gradient(90deg, rgba(245,241,234,.035) 0 1px, transparent 1px 120px); }
.hero-mark { position: absolute; z-index: -1; right: -4vw; bottom: -10vh; width: min(62vw, 820px); opacity: .07; pointer-events: none; }
.hero-inner { padding: 140px 0 120px; max-width: 860px; }
.hero .eyebrow { color: rgba(245,241,234,.62); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7.4vw, 104px); line-height: .98; letter-spacing: -.012em; margin: 28px 0 30px; }
.hero h1 em { font-style: italic; color: rgba(245,241,234,.72); }
.hero-lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.65; max-width: 580px; color: rgba(245,241,234,.74); margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero-actions .arrow-link { color: var(--ivory); opacity: .85; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 34px; }
.hero-foot .wrap { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(245,241,234,.4); }

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.section h2 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; margin-top: 18px; }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pillar-n { font-family: var(--serif); font-size: 22px; color: var(--muted-2); line-height: 1.2; }
.pillar h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.pillar p { color: var(--muted); margin: 0; max-width: 520px; }

.access { background: var(--black); color: var(--ivory); }
.access .eyebrow { color: rgba(245,241,234,.55); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.access p.access-lead { color: rgba(245,241,234,.72); font-size: 17px; max-width: 470px; margin: 24px 0 40px; }
.steps { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line-dark); }
.steps li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.steps b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: rgba(245,241,234,.45); min-width: 28px; }
.steps span { font-size: 15.5px; }
.access-card { background: var(--ivory); color: var(--text); padding: clamp(28px, 4vw, 44px); }
.access-card h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.access-card > p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.access-card .check { font-size: 13px; color: var(--muted); margin: 4px 0 22px; }

.site-footer { background: var(--black); color: rgba(245,241,234,.62); border-top: 1px solid var(--line-dark); padding: 54px 0 40px; font-size: 13.5px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-grid img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-contact { display: grid; gap: 4px; }
.footer-contact a { text-decoration: none; color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 12px; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--ivory); }

.page-simple { background: var(--black); color: var(--ivory); padding: 150px 0 60px; }
.page-simple h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); }
.prose { max-width: 760px; padding: 60px 0 100px; }
.prose p { color: #3A3833; }

/* ---------- Acceso (login, activar…) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { position: relative; background: var(--black); color: var(--ivory); padding: 48px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(245,241,234,.035) 0 1px, transparent 1px 110px); }
.auth-side .hero-mark { width: 92%; right: -18%; bottom: -14%; }
.auth-side img.logo { height: 52px; width: auto; }
.auth-quote { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; max-width: 460px; }
.auth-quote small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,241,234,.5); margin-top: 22px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--paper); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-family: var(--serif); font-size: 42px; margin: 14px 0 10px; }
.auth-box > p { color: var(--muted); margin-bottom: 30px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 22px; font-size: 13.5px; }
.auth-links a { color: var(--muted); }
.req-list { list-style: none; padding: 0; margin: 0 0 26px; font-size: 14px; }
.req-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Portal de inversores
   ========================================================================== */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--black); color: var(--ivory); }
.topbar .wrap { display: flex; align-items: center; height: 70px; gap: 40px; }
.topbar .brand img { height: 34px; width: auto; }
.topnav { display: flex; gap: 30px; flex: 1; }
.topnav a { color: rgba(245,241,234,.62); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 25px 0 23px; border-bottom: 2px solid transparent; transition: color .2s; }
.topnav a:hover { color: var(--ivory); }
.topnav a.active { color: var(--ivory); border-color: var(--ivory); }
.topuser { display: flex; align-items: center; gap: 18px; font-size: 13px; color: rgba(245,241,234,.7); }
.topuser form { margin: 0; }
.topuser button { background: none; border: 1px solid rgba(245,241,234,.25); color: var(--ivory); height: 32px; padding: 0 12px; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); }
.topuser button:hover { background: var(--ivory); color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); width: 40px; height: 40px; margin-left: auto; cursor: pointer; }

.portal-main { padding: 54px 0 100px; min-height: calc(100vh - 70px); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 54px); margin-top: 12px; }
.page-head p { color: var(--muted); margin: 10px 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 36px; padding: 0 16px; background: transparent; border: 1px solid var(--line); color: var(--muted); font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); transition: all .2s; }
.filter:hover { border-color: var(--black); color: var(--black); }
.filter.active { background: var(--black); border-color: var(--black); color: var(--ivory); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }
.card-asset { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card-asset:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D4CCBF; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-asset:hover .card-media img { transform: scale(1.035); }
.card-media .chip { position: absolute; top: 16px; left: 16px; }
.placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 70% 30%, #2A2A2E, var(--black) 75%); }
.placeholder img { width: 30%; height: auto !important; opacity: .18; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 22px; }
.card-meta { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.card-title { font-family: var(--serif); font-size: 29px; line-height: 1.05; margin: 10px 0 8px; }
.card-loc { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.card-figures { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: 1px solid var(--line); }
.card-figures div { padding: 16px 0 2px; }
.card-figures div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.fig-label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.fig-value { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.card-foot .arrow-link { color: var(--black); font-size: 11.5px; }

.empty { text-align: center; padding: 90px 24px; border: 1px dashed var(--line); background: var(--white); }
.empty h2 { font-family: var(--serif); font-size: 32px; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

/* Ficha */
.back { display: inline-flex; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); margin-bottom: 28px; }
.back:hover { color: var(--black); }
.asset-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.asset-head h1 { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 68px); line-height: 1; margin: 14px 0 12px; }
.asset-head .loc { color: var(--muted); font-size: 15px; }
.asset-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main button { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: rgba(14,14,15,.55); color: var(--ivory); font-size: 20px; cursor: pointer; transition: background .2s; }
.gallery-main button:hover { background: var(--black); }
.gallery-main .prev { left: 0; } .gallery-main .next { right: 0; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(14,14,15,.7); color: var(--ivory); font-size: 11.5px; letter-spacing: .1em; padding: 5px 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 0; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; opacity: .55; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s; background: var(--ink); }
.thumbs button.active, .thumbs button:hover { opacity: 1; }
.thumbs button.active { outline-color: var(--black); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.panel { position: sticky; top: 94px; background: var(--white); border: 1px solid var(--line); }
.panel-figs { padding: 8px 28px; }
.panel-fig { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel-fig:last-child { border-bottom: 0; }
.panel-fig .fig-label { margin: 0; }
.panel-fig .fig-value { font-size: 26px; text-align: right; }
.panel-fig.big .fig-value { font-size: 34px; }
.panel-actions { display: grid; gap: 10px; padding: 24px 28px 28px; background: var(--stone); }
.panel-note { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 0; }

.asset-sections { margin-top: 70px; display: grid; gap: 64px; max-width: 920px; }
.sec-title { display: flex; align-items: baseline; gap: 18px; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--black); }
.sec-title h2 { font-family: var(--serif); font-size: 34px; }
.sec-title span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.lead { font-family: var(--serif); font-size: 25px; line-height: 1.35; margin-bottom: 22px; }
.richtext p { color: #3A3833; font-size: 16px; line-height: 1.75; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 34px; }
.metric { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.metric .fig-value { font-size: 27px; }

.docs { border-top: 1px solid var(--line); }
.doc { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc-ext { flex: none; width: 46px; height: 54px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; background: var(--white); border: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .08em; position: relative; }
.doc-ext::before { content: ""; position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 12px 12px 0; border-color: transparent var(--paper) var(--line) transparent; }
.doc-info { flex: 1; min-width: 0; }
.doc-info strong { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.doc-info span { font-size: 12.5px; color: var(--muted); }
.doc-actions { display: flex; gap: 8px; flex: none; }
.doc.locked .doc-info strong { color: var(--muted); }
.doc.locked .doc-ext { color: var(--muted-2); }
.lock { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.callout { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 26px; padding: 22px 26px; background: var(--black); color: var(--ivory); }
.callout p { margin: 0; color: rgba(245,241,234,.78); max-width: 520px; font-size: 14.5px; }
.callout strong { color: var(--ivory); display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 2px; }
.draft-banner { background: var(--warn-bg); color: var(--warn); border-left: 3px solid var(--warn); padding: 12px 16px; margin-bottom: 26px; font-size: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14,14,15,.62); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); padding: 34px; transform: translateY(12px); transition: transform .3s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box h2 { font-family: var(--serif); font-size: 32px; margin: 10px 0 6px; }
.modal-box > p { color: var(--muted); margin-bottom: 24px; }
.modal-close { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* Cuenta */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }

/* ==========================================================================
   Administración
   ========================================================================== */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--black); color: var(--ivory); padding: 28px 18px 22px; }
.sidebar .brand { padding: 0 10px 26px; }
.sidebar .brand img { height: 40px; width: auto; }
.sidebar .brand span { display: block; margin-top: 12px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(245,241,234,.42); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: rgba(245,241,234,.66); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: var(--radius); transition: background .2s, color .2s; }
.side-nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.side-nav a:hover { background: rgba(245,241,234,.06); color: var(--ivory); }
.side-nav a.active { background: rgba(245,241,234,.1); color: var(--ivory); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--ivory); color: var(--black); font-size: 11px; font-weight: 700; border-radius: 10px; }
.side-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(245,241,234,.6); }
.side-foot strong { display: block; color: var(--ivory); font-weight: 600; }
.side-foot .row { display: flex; gap: 8px; margin-top: 14px; }
.side-foot a, .side-foot button { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 32px; border: 1px solid rgba(245,241,234,.22); background: none; color: var(--ivory); text-decoration: none; font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); }
.side-foot a:hover, .side-foot button:hover { background: var(--ivory); color: var(--black); }
.side-foot form { flex: 1; display: flex; margin: 0; }
.admin-top { display: none; }

.admin-main { padding: 38px clamp(20px, 3.5vw, 52px) 80px; min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 30px; }
.admin-head h1 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); margin-top: 8px; }
.admin-head p { color: var(--muted); margin: 6px 0 0; }
.admin-head .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--black); }

.box { background: var(--white); border: 1px solid var(--line); margin-bottom: 26px; }
.box-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.box-head h2 { font-family: var(--serif); font-size: 25px; }
.box-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); width: 100%; }
.box-body { padding: 24px; }
.box-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 26px; }
.stat { background: var(--white); padding: 22px 24px; text-decoration: none; }
a.stat:hover { background: var(--paper); }
.stat .fig-value { font-size: 40px; font-weight: 500; }
.stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFBF8; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.rowlink { text-decoration: none; font-weight: 600; }
.table a.rowlink:hover { text-decoration: underline; }
.table .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.thumb-sm { width: 64px; height: 48px; object-fit: cover; background: var(--ink); }
.thumb-sm.placeholder { display: flex; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); margin-right: 6px; vertical-align: middle; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--bad); }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; padding: 13px 24px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }
.feed time { flex: none; width: 92px; color: var(--muted-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.subnav a { padding: 14px 18px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover, .subnav a.active { color: var(--black); border-color: var(--black); }

.metric-rows { display: grid; gap: 8px; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; }
.icon-btn { width: 40px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; font-size: 18px; border-radius: var(--radius); }
.icon-btn:hover { border-color: var(--bad); color: var(--bad); }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.img-item { border: 1px solid var(--line); background: var(--paper); }
.img-item .ph { position: relative; aspect-ratio: 4 / 3; background: var(--ink); }
.img-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.img-item .ph .chip { position: absolute; top: 8px; left: 8px; }
.img-item .tools { display: flex; gap: 4px; padding: 8px; flex-wrap: wrap; }
.img-item .tools form { margin: 0; }
.img-item .tools button { height: 28px; padding: 0 9px; border: 1px solid var(--line); background: var(--white); font: 600 11px var(--sans); cursor: pointer; border-radius: var(--radius); }
.img-item .tools button:hover { border-color: var(--black); }
.img-item .tools button.del:hover { border-color: var(--bad); color: var(--bad); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 140px; padding: 24px; border: 1px dashed #CFC7B9; background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; font-size: 14px; color: var(--muted); }
.dropzone:hover, .dropzone.over { border-color: var(--black); background: var(--white); color: var(--black); }
.dropzone input { display: none; }
.dropzone strong { color: var(--black); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; transition: background .15s, color .15s; }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--black); color: var(--ivory); }
.seg input:focus-visible + span { outline: 2px solid var(--black); outline-offset: -2px; }

.toggle-line { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 16px 0 6px; }
.copybox { display: flex; gap: 8px; margin-top: 10px; }
.copybox input { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.inline-form { display: inline; margin: 0; }
.request-msg { margin: 6px 0 0; padding: 10px 12px; background: var(--paper); border-left: 2px solid var(--line); font-size: 13.5px; white-space: pre-line; color: #3A3833; }
.req-card { padding: 20px 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
.req-card:last-child { border-bottom: 0; }
.req-card h3 { font-size: 15.5px; font-weight: 600; font-family: var(--sans); line-height: 1.4; }
.req-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 210px; }
.req-side form { margin: 0; width: 100%; display: flex; }
.req-side .btn { width: 100%; }
.note-form { display: flex; gap: 8px; margin-top: 10px; }
.note-form input { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
.pager { display: flex; gap: 8px; justify-content: center; padding: 18px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters-bar select { width: auto; min-width: 200px; min-height: 38px; padding: 6px 36px 6px 12px; font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .asset-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .section-head, .access-grid, .account-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding: 26px 24px; flex-direction: row; align-items: center; }
  .auth-side .auth-quote, .auth-side .hero-mark { display: none; }
  .auth-side img.logo { height: 40px; }
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(14,14,15,.5); }
  .admin-top { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; background: var(--black); position: sticky; top: 0; z-index: 50; }
  .admin-top img { height: 30px; width: auto; }
  .admin-top button { background: none; border: 0; color: var(--ivory); width: 40px; height: 40px; cursor: pointer; }
  .subnav { top: 60px; }
  .req-card { grid-template-columns: 1fr; }
  .req-side { align-items: stretch; min-width: 0; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header .wrap { height: 74px; }
  .site-logo img { height: 34px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { min-height: 38px; padding: 0 14px; font-size: 11px; }
  .hero-inner { padding: 120px 0 110px; }
  .hero-foot .wrap span:last-child { display: none; }
  .pillar { grid-template-columns: 44px 1fr; gap: 12px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .topbar .wrap { height: 60px; gap: 16px; }
  .topbar .brand img { height: 28px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topnav, .topuser { display: none; }
  .topbar.open .wrap { flex-wrap: wrap; height: auto; padding: 14px 0 18px; }
  .topbar.open .topnav { display: flex; flex-direction: column; gap: 0; width: 100%; order: 3; }
  .topbar.open .topnav a { padding: 14px 0; border: 0; border-top: 1px solid var(--line-dark); }
  .topbar.open .topuser { display: flex; width: 100%; order: 4; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-dark); }
  .portal-main { padding: 34px 0 70px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .panel-figs, .panel-actions { padding-left: 20px; padding-right: 20px; }
  .doc { flex-wrap: wrap; }
  .doc-actions { width: 100%; padding-left: 64px; }
  .modal-box { padding: 26px 22px; }
  .metric-row { grid-template-columns: 1fr 40px; }
  .metric-row input:first-child { grid-column: 1 / -1; }
  .table .hide-sm { display: none; }
  .box-body, .box-head, .box-foot { padding-left: 16px; padding-right: 16px; }
  .feed li { padding-left: 16px; padding-right: 16px; flex-wrap: wrap; gap: 2px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
