/* Identidad de WEB-01. El rojo se tomó del logotipo adjunto. */
:root {
  --red: #a00;
  --red-dark: #800008;
  --ink: #1b1d20;
  --muted: #505861;
  --line: #dfe2e5;
  --surface: #fff;
  --ground: #f6f7f8;
  --radius: 11px;
  --shadow: 0 8px 30px #171b2510;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 3px solid #176f9c; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); line-height: 1.2; }
p, li { line-height: 1.55; }
em { color: var(--red); font-style: normal; }
svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; vertical-align: middle; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 10; background: white; padding: .5rem; }
.skip:focus { transform: none; }
.wrap { width: min(100% - 3rem, 1216px); margin-inline: auto; }
.logo { display: block; width: min(225px, 100%); height: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .brand { width: 225px; flex: none; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.65rem, 2vw, 1.7rem); }
.site-header nav a { color: var(--ink); font-size: .88rem; font-weight: 600; padding-block: .5rem; }
.site-header nav [aria-current] { color: var(--red); box-shadow: 0 2px var(--red); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; padding: .7rem 1rem; min-height: 44px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 700; line-height: 1.25; }
.button:hover { text-decoration: none; }
.primary { background: var(--red); color: white; }
.primary:hover { background: var(--red-dark); }
.secondary { border-color: #8b9095; background: white; color: var(--ink); }
.secondary:hover { background: var(--ground); }
.hero { background: linear-gradient(116deg, #fafbfb 30%, #f0f2f3); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { position: relative; min-height: 450px; display: grid; align-items: center; isolation: isolate; }
.hero-copy { max-width: 640px; padding-block: 3.6rem; }
.hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.55rem); }
.eyebrow { color: var(--red); font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; }
.hero .intro { max-width: 28rem; margin-top: 1.5rem; }
.intro { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.hero-art, .access-art, .commission-art { background-image: linear-gradient(90deg, #f7f8f9 0%, transparent 30%), url('/web01-assets/arquitectura.webp'); background-repeat: no-repeat; background-position: right center; background-size: cover; }
.hero-art { position: absolute; z-index: -1; inset: 0 -2rem 0 auto; width: 51%; opacity: .67; mix-blend-mode: multiply; }
.hero-art::after { content: ""; position: absolute; right: 0; bottom: 0; width: 90px; height: 54px; background: var(--red); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.section { padding-block: 2.6rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.section-head h2::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--red); margin-right: .65rem; vertical-align: middle; }
.section-head a { font-size: .86rem; font-weight: 650; }
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.service { padding: 1.05rem; min-height: 140px; }
.service svg { color: var(--red); width: 1.65rem; height: 1.65rem; }
.service h3 { margin-top: .65rem; font-size: 1rem; overflow-wrap: anywhere; }
.service p { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.portal-band { background: #f5f3f3; border-block: 1px solid #ebe4e4; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.65rem; }
.band-inner p, .inner-page .intro { margin-top: .55rem; }
.band-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.access-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.access-cta h2 { margin: 0; font-size: 1.15rem; }
.access-cta p { margin: .35rem 0 0; color: var(--muted); }
.access-options { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.access-options a { color: var(--red); font-weight: 650; }
.inner-page { min-height: 64vh; }
.inner-page > .services, .inner-page > .card { margin-top: 1.5rem; }
.site-footer { background: #202124; color: #fff; }
.site-footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; min-height: 80px; padding-block: 1rem; }
.site-footer a { color: white; margin-left: auto; }
.state { padding: 1.6rem; max-width: 720px; }
.state > svg { color: var(--red); margin-bottom: .55rem; }
.state p { color: var(--muted); margin: .4rem 0; }
.state a, .state button { display: inline-block; margin-top: .65rem; }
.access-section { min-height: 75vh; display: grid; align-items: center; background: var(--ground); }
.access-grid { display: grid; align-items: center; grid-template-columns: 1.25fr 1fr; gap: clamp(1.2rem, 5vw, 5rem); padding-block: 3rem; }
.access-intro .intro { margin-top: .8rem; max-width: 35ch; }
.access-art { height: 165px; width: min(100%, 440px); margin-top: 1.4rem; mix-blend-mode: multiply; opacity: .72; background-position: right 61%; }
.access-card { position: relative; overflow: hidden; padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.access-card::after { position: absolute; content: ""; top: 0; right: 0; width: 54px; height: 40px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.access-card h2 { margin-top: .8rem; }
.access-card p { color: var(--muted); margin-top: .5rem; }
.access-card button { margin-top: 1.3rem; width: 100%; }
.tag { display: inline-flex; align-items: center; border-radius: 20px; padding: .22rem .6rem; font-size: .73rem; font-weight: 700; line-height: 1.3; }
.demo { color: #8a1418; background: #fbe7e6; }
.success { color: #175b35; background: #e6f4ec; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--ground); }
.sidebar { background: linear-gradient(#27292c, #1b1d20); color: white; padding: 1.15rem .85rem; display: flex; flex-direction: column; }
.side-brand { background: #fff; border-radius: 5px; display: block; padding: .6rem; }
.side-label { margin: 1.65rem .65rem .5rem; font-size: .71rem; color: #cdd0d4; text-transform: uppercase; letter-spacing: .1em; }
.sidebar nav { display: grid; gap: .25rem; }
.sidebar nav a, .side-account { color: white; display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .65rem; font-size: .86rem; border-radius: 7px; }
.sidebar [aria-current], .sidebar nav a:hover { background: var(--red); text-decoration: none; }
.side-account { margin-top: auto; }
.portal-top { min-height: 65px; background: white; border-bottom: 1px solid var(--line); padding: .6rem clamp(1rem, 3vw, 2.4rem); display: flex; align-items: center; gap: 1rem; font-size: .86rem; }
.portal-top > a:first-child { font-weight: 700; color: var(--ink); }
.profile-link { margin-left: auto; }
.text-button { background: white; border: 1px solid var(--line); border-radius: 7px; min-height: 40px; padding: .45rem .85rem; font-weight: 650; color: var(--ink); }
.portal-main { width: min(100%, 1450px); margin-inline: auto; padding: clamp(1rem, 3vw, 2.5rem); }
.portal-main h1 { font-size: clamp(2rem, 4vw, 3rem); }
.portal-main .intro { margin-top: .5rem; }
.portal-heading { margin-bottom: 1.2rem; }
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 730px; margin-top: 1.5rem; }
.profile-card { padding: 1.3rem; color: var(--ink); }
.profile-card svg { color: var(--red); }
.profile-card h2 { margin-top: .5rem; }
.profile-card p { color: var(--muted); margin: .35rem 0 .7rem; }
.dashboard { display: grid; grid-template-columns: minmax(185px, 235px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.records { padding: .8rem; }
.records h2 { font-size: 1rem; margin: .25rem .3rem .8rem; }
.record-list { display: grid; gap: .35rem; }
.record { padding: .7rem; display: grid; justify-items: start; gap: .22rem; border: 1px solid transparent; border-left-width: 3px; border-radius: 6px; color: var(--ink); }
.record:hover, .record.selected { background: #faf3f3; border-left-color: var(--red); }
.record strong { min-width: 0; overflow-wrap: anywhere; }
.record-code { font-size: .72rem; font-weight: 750; letter-spacing: .05em; color: var(--red); }
.record small, .detail-title p, .stat small { color: var(--muted); }
.detail-title { margin-bottom: .9rem; }
.detail-title h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: .22rem 0 .45rem; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .4rem; font-size: .87rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.stat { display: flex; align-items: start; gap: .45rem; color: var(--ink); padding: .7rem; min-height: 86px; }
.stat svg, .milestone svg { color: var(--red); }
.stat small, .stat strong { display: block; overflow-wrap: anywhere; }
.stat strong { font-size: 1.25rem; }
.stat .small-value { font-size: .88rem; }
progress { width: 100%; max-width: 95px; height: 8px; accent-color: #248550; }
.detail-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .65rem; margin-top: .75rem; }
.panel { padding: 1rem; }
.panel h2 { font-size: 1.14rem; margin-bottom: .6rem; }
.updates, .instructions { margin: 0; }
.updates { list-style: none; padding: 0; }
.updates li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.updates li:last-child { border-bottom: 0; }
.updates span { color: var(--muted); font-weight: 650; }
.milestone { display: flex; gap: .5rem; align-items: start; font-size: .9rem; }
.commission-detail .milestone { margin: .9rem 0; }
.commission-art { height: 140px; background-position: right 56%; border-radius: 6px; opacity: .68; }
.instructions { padding-left: 1.2rem; }
.loading, #portal-status { color: var(--muted); }
@media (max-width: 1150px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  .site-header nav { order: 3; width: 100%; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-art { opacity: .45; }
  .workspace { grid-template-columns: 165px minmax(0, 1fr); }
  .dashboard, .detail-bottom { grid-template-columns: 1fr; }
  .record-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header .brand { width: 150px; }
  .site-header nav { justify-content: space-between; gap: .2rem; }
  .site-header nav a { font-size: .77rem; }
  .hero-inner { min-height: auto; }
  .hero-copy { padding-block: 2.1rem 9rem; }
  .hero-art { inset: auto -1rem 0 auto; width: 86%; height: 155px; opacity: .57; background-position: right 60%; }
  .hero-art::after { width: 50px; height: 32px; }
  .hero .intro { margin-top: .8rem; }
  .actions { margin-top: 1rem; }
  .section { padding-block: 1.75rem; }
  .services, .access-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .2rem .75rem; }
  .service h3 { margin: 0; }
  .service p { grid-column: 2; margin: 0; }
  .band-inner { align-items: start; flex-direction: column; }
  .access-cta { align-items: start; flex-direction: column; }
  .access-art { display: none; }
  .workspace { display: flex; flex-direction: column; }
  .sidebar { position: relative; padding: .65rem .9rem; gap: .4rem; }
  .side-brand { width: 150px; padding: .35rem; }
  .side-label { margin: .1rem 0; }
  .sidebar nav { display: flex; gap: .25rem; flex-wrap: wrap; }
  .sidebar nav a, .side-account { padding: .3rem .45rem; font-size: .75rem; }
  .sidebar nav svg, .side-account svg { width: .95rem; height: .95rem; }
  .side-account { position: absolute; top: .35rem; right: .85rem; margin: 0; }
  .portal-top { min-height: 56px; gap: .55rem; flex-wrap: wrap; }
  .portal-main { padding: 1rem; }
}
@media (max-width: 350px) {
  .site-header .brand { width: 126px; }
  .profiles, .record-list { grid-template-columns: 1fr; }
  .portal-top { font-size: .75rem; }
  .portal-top .demo { font-size: .66rem; padding-inline: .35rem; }
  .portal-top .text-button { padding-inline: .55rem; }
}

/* Mantiene el estilo de acceso en los formularios de identidad. */
.identity-form { display: grid; gap: .45rem; margin-top: .9rem; }
.identity-form[hidden] { display: none; }
.identity-form label { font-size: .86rem; font-weight: 650; margin-top: .35rem; }
.identity-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #9299a0;
  border-radius: 7px;
  padding: .5rem .7rem;
  font: inherit;
  color: var(--ink);
}
.identity-form small { color: var(--muted); }
.portal-top .text-button { margin-left: auto; }
.portal-top .profile-link + .text-button { margin-left: 0; }
