/* ============================================================
   UCIP — Estilos de subpáginas (page hero, prose, forms, etc.)
   ============================================================ */

/* Active nav link */
.nav-links a.active { color: var(--navy); background: var(--cloud); }
.nav-links a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- PAGE HERO ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 90% -20%, oklch(0.5 0.16 252 / .5), transparent 55%), radial-gradient(80% 90% at -5% 120%, oklch(0.5 0.1 214 / .3), transparent 60%); }
.page-hero .wrap { position: relative; padding-block: clamp(52px, 7vw, 96px); }
.crumb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: oklch(0.78 0.04 240); margin-bottom: 22px; }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: .5; }
.crumb b { color: var(--accent); font-weight: 400; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); color: #fff; max-width: 18ch; }
.page-hero p { color: oklch(0.85 0.02 250); margin-top: 20px; max-width: 56ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.page-hero .ph-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 30px; }
.page-hero .ph-meta div { }
.page-hero .ph-meta .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: oklch(0.72 0.08 230); }
.page-hero .ph-meta .v { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-top: 4px; }

/* ---------- PROSE ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--ink); font-size: 1.06rem; line-height: 1.7; margin: 0 0 18px; }
.prose p.muted { color: var(--muted); }
.prose h3 { font-size: 1.6rem; color: var(--navy); margin: 38px 0 14px; }
.lead-xl { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--navy); font-family: var(--display); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }

/* Two-col intro */
.intro-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }

/* ---------- VALUE CARDS ---------- */
.vcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.vcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; background: var(--paper); transition: .25s; }
.vcard:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px var(--navy); border-color: transparent; }
.vcard .vi { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--navy); margin-bottom: 18px; }
.vcard:nth-child(2) .vi { background: var(--azure); }
.vcard:nth-child(3) .vi { background: var(--accent); color: oklch(0.25 0.05 60); }
.vcard h4 { font-size: 1.2rem; color: var(--navy); }
.vcard p { margin: 8px 0 0; color: var(--muted); font-size: .96rem; }

/* ---------- TIMELINE (historia) ---------- */
.timeline { margin-top: 50px; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 138px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { display: grid; grid-template-columns: 122px 1fr; gap: 38px; padding: 22px 0; position: relative; }
.tl .yr { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--navy); text-align: right; letter-spacing: -.02em; }
.tl .dot { position: absolute; left: 131px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); z-index: 1; }
.tl .c h4 { font-size: 1.18rem; color: var(--navy); }
.tl .c p { margin: 6px 0 0; color: var(--muted); font-size: .96rem; max-width: 54ch; }

/* ---------- TEAM ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.member { }
.member .photo { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; position: relative; margin-bottom: 16px; }
.member .photo .ph { position: absolute; inset: 0; }
.member .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--azure-600); }
.member h4 { font-size: 1.1rem; color: var(--navy); margin-top: 4px; }
.member small { color: var(--muted); font-size: .86rem; }

/* ---------- SECTOR DETAIL ---------- */
.sd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.sd:first-of-type { border-top: none; }
.sd.flip .sd-media { order: 2; }
.sd-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 70px -44px var(--navy); }
.sd-badge { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-700); font-weight: 700; }
.sd h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--navy); margin: 12px 0 0; }
.sd .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sd .tags span { padding: 7px 14px; border-radius: 100px; background: var(--cloud); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--navy-800); }

/* ---------- FORMS ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: 0 30px 70px -50px var(--navy); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); font-family: inherit; font-size: .96rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px oklch(0.55 0.16 252 / .14); }
.field textarea { resize: vertical; min-height: 120px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.req { color: var(--accent-700); }

/* contact info aside */
.cinfo { display: grid; gap: 14px; }
.cinfo .item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); align-items: start; }
.cinfo .item .ii { width: 44px; height: 44px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.cinfo .item h4 { font-size: 1.02rem; color: var(--navy); }
.cinfo .item p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.map-ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/7; border: 1px solid var(--line); margin-top: 40px; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.step { padding-top: 26px; border-top: 3px solid var(--line); position: relative; }
.step .sn { font-family: var(--mono); font-size: .8rem; color: var(--accent-700); font-weight: 700; letter-spacing: .08em; }
.step h4 { font-size: 1.16rem; color: var(--navy); margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step:nth-child(1) { border-color: var(--accent); }

/* ---------- LOGIN ---------- */
.login-wrap { min-height: calc(100vh - 118px); display: grid; place-items: center; padding: 60px var(--pad); background:
  radial-gradient(80% 100% at 50% -10%, oklch(0.93 0.02 250), transparent 60%), var(--cloud); }
.login-card { width: 100%; max-width: 430px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(30px, 5vw, 48px); box-shadow: 0 40px 90px -50px var(--navy); }
.login-card .lhead { text-align: center; margin-bottom: 28px; }
.login-card .lhead .badge { width: 56px; height: 56px; border-radius: 15px; background: var(--navy); display: grid; place-items: center; margin: 0 auto 18px; }
.login-card h1 { font-size: 1.7rem; color: var(--navy); }
.login-card .lhead p { color: var(--muted); font-size: .94rem; margin-top: 8px; }
.login-card .row-between { display: flex; align-items: center; justify-content: space-between; font-size: .86rem; margin: 4px 0 20px; }
.login-card .row-between a { color: var(--azure-600); font-weight: 600; }
.login-card .checkbox { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.login-card .divider { text-align: center; margin: 24px 0; position: relative; color: var(--muted); font-size: .82rem; }
.login-card .divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); z-index: 0; }
.login-card .divider span { background: var(--paper); padding: 0 14px; position: relative; z-index: 1; }
.login-card .alt { text-align: center; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.login-card .alt a { color: var(--navy); font-weight: 700; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pager a { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 600; color: var(--navy-800); transition: .2s; }
.pager a:hover, .pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- CTA simple band ---------- */
.cta-mini { background: var(--cloud); border-block: 1px solid var(--line); }
.cta-mini .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: clamp(40px, 5vw, 64px); }
.cta-mini h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); }
.cta-mini p { color: var(--muted); margin-top: 8px; }

/* ---------- AGENDA HOME (dual) ---------- */
.agenda-home { background: var(--paper); }
.agenda-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.agenda-col { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.agenda-col .ac-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; color: #fff; }
.agenda-col.inst .ac-head { background: var(--navy); }
.agenda-col.cursos .ac-head { background: var(--azure-600); }
.agenda-col .ac-head .ai { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; flex: none; }
.agenda-col .ac-head h3 { font-size: 1.15rem; color: #fff; }
.agenda-col .ac-head small { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); display: block; margin-top: 2px; }
.agenda-col .ev { grid-template-columns: 76px 1fr auto; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--line); }
.agenda-col .ev:first-of-type { border-top: none; }
.agenda-col .ev:hover { background: var(--cloud); padding-inline: 22px; }
.agenda-col .ev .day .d { font-size: 1.8rem; color: var(--navy); }
.agenda-col .ev .day .m { color: var(--azure-600); }
.agenda-col .ev .meta h4 { font-size: 1.05rem; color: var(--navy); }
.agenda-col .ev .meta p { color: var(--muted); font-size: .85rem; }
.agenda-col .ev .go { width: 42px; height: 42px; border-color: var(--line); color: var(--navy); }
.agenda-col .ev:hover .go { background: var(--accent); border-color: var(--accent); color: oklch(0.25 0.05 60); transform: rotate(-45deg); }
.agenda-col .ac-foot { margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line); }
.agenda-col .ac-foot a { font-weight: 700; font-size: .88rem; color: var(--azure-600); display: inline-flex; align-items: center; gap: 7px; }
.agenda-col .ac-foot a:hover .arw { transform: translateX(3px); }

/* ---------- TV + SALONES access cards ---------- */
.quick-access { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.qa-card { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(28px, 3.5vw, 44px); color: #fff; display: flex; flex-direction: column; gap: 12px; min-height: 240px; justify-content: flex-end; isolation: isolate; transition: transform .3s ease; }
.qa-card:hover { transform: translateY(-5px); }
.qa-card.tv { background: linear-gradient(140deg, oklch(0.30 0.09 300), oklch(0.42 0.14 275)); }
.qa-card.salones { background: linear-gradient(140deg, oklch(0.36 0.08 220), oklch(0.52 0.11 210)); }
.qa-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 90% -10%, rgba(255,255,255,.14), transparent 55%); }
.qa-card .qi { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; backdrop-filter: blur(6px); margin-bottom: auto; }
.qa-card .qk { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.qa-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: #fff; }
.qa-card p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; max-width: 46ch; }
.qa-card .qgo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .92rem; margin-top: 8px; color: #fff; }
.qa-card:hover .qgo .arw { transform: translateX(4px); }
.qa-card .live { position: absolute; top: 26px; right: 26px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: 7px 14px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; backdrop-filter: blur(6px); }
.qa-card .live .r { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.68 0.21 25); animation: blink 1.6s ease infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- SALONES: calendario ---------- */
.cal-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.cal-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; box-shadow: 0 30px 70px -50px var(--navy); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--navy); color: #fff; }
.cal-head h3 { font-size: 1.1rem; color: #fff; }
.cal-head .cnav { display: flex; gap: 8px; }
.cal-head .cnav button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: .2s; }
.cal-head .cnav button:hover { background: rgba(255,255,255,.2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid .dow { text-align: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.cal-grid .cd { aspect-ratio: 1.1; display: grid; place-items: center; position: relative; font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .15s; }
.cal-grid .cd:nth-child(7n) { border-right: none; }
.cal-grid .cd:hover:not(.off):not(.busy) { background: var(--cloud); }
.cal-grid .cd.off { color: var(--line); cursor: default; }
.cal-grid .cd.busy { color: var(--muted); cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent, transparent 5px, oklch(0.93 0.01 250 / .7) 5px, oklch(0.93 0.01 250 / .7) 10px); }
.cal-grid .cd.busy::after { content: ""; position: absolute; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: oklch(0.62 0.19 25); }
.cal-grid .cd.free::after { content: ""; position: absolute; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: oklch(0.62 0.15 150); }
.cal-grid .cd.sel { background: var(--navy) !important; color: #fff; border-radius: 0; }
.cal-grid .cd.sel::after { background: var(--accent); }
.cal-legend { display: flex; gap: 22px; padding: 14px 22px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.crm-badge { display: inline-flex; align-items: center; gap: 9px; background: var(--cloud); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.crm-badge .r { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.62 0.15 150); animation: blink 2s ease infinite; }

/* ---------- NEWSLETTER card ---------- */
.nl-card { background: var(--navy); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); color: #fff; position: relative; overflow: hidden; }
.nl-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 110% at 100% 0%, oklch(0.5 0.16 252 / .5), transparent 55%); }
.nl-card > * { position: relative; }
.nl-card .ni { width: 50px; height: 50px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.nl-card h3 { font-size: 1.4rem; color: #fff; }
.nl-card p { color: oklch(0.85 0.02 250); font-size: .94rem; margin: 10px 0 20px; }
.nl-card .field label { color: oklch(0.88 0.02 250); }
.nl-card .field input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.nl-card .field input::placeholder { color: oklch(0.7 0.02 250); }
.nl-card .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.72 0.165 58 / .2); }
.nl-card .btn { width: 100%; justify-content: center; }
.nl-card .nl-note { font-size: .78rem; color: oklch(0.72 0.03 250); margin: 12px 0 0; text-align: center; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .agenda-cols, .quick-access, .cal-wrap { grid-template-columns: 1fr; }
  .intro-split, .form-wrap, .sd, .sd.flip .sd-media { grid-template-columns: 1fr; }
  .sd.flip .sd-media { order: 0; }
  .vcards { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .team { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .tl { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .tl .yr { text-align: left; }
  .tl .dot { left: -1px; top: 8px; }
  .steps { grid-template-columns: 1fr; }
}
