/* =========================================================
GUÍA DEL TALLER — identidad visual SINGEI
Paleta alineada con la landing institucional:
azul oscuro, azul profundo, azul eléctrico y cian.
========================================================= */
:root {
  --blue-dark: #061a36;
  --blue-deep: #08264c;
  --blue: #0b5ed7;
  --blue-light: #168cff;
  --cyan: #25d9ff;
  --white: #fff;
  --background: #f7f9fc;
  --text: #172b4d;
  --muted: #718096;
  --border: #e3eaf3;
  --green: #20c997;
  --radius: 20px;
  --shadow: 0 18px 55px rgba(6, 26, 54, .09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { min-width: 320px; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--background); line-height: 1.5; }
a { color: inherit; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
::selection { background: rgba(37, 217, 255, .3); }

.portal { position: relative; overflow: hidden; background: var(--background); }
.background { position: absolute; z-index: 0; inset: 0 auto auto 0; width: 100%; height: 760px; overflow: hidden; pointer-events: none; background: linear-gradient(118deg, var(--blue-dark) 0%, var(--blue-deep) 42%, #f7f9fc 42.1%, #ffffff 100%); }
.grid { position: absolute; width: 780px; height: 780px; left: -160px; bottom: -390px; opacity: .16; background-image: linear-gradient(rgba(37,217,255,.38) 1px, transparent 1px), linear-gradient(90deg, rgba(37,217,255,.38) 1px, transparent 1px); background-size: 48px 48px; transform: perspective(500px) rotateX(58deg); }
.circle { position: absolute; border: 1px solid rgba(37,217,255,.13); border-radius: 50%; }
.circle-1 { width: 620px; height: 620px; right: -180px; top: -360px; }
.circle-2 { width: 430px; height: 430px; right: 13%; top: 260px; }
.node { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); animation: pulse 2.8s infinite ease-in-out; }
.node-1 { top: 22%; left: 15%; }
.node-2 { top: 65%; left: 28%; animation-delay: .8s; }
.node-3 { top: 35%; left: 78%; animation-delay: 1.3s; }
.node-4 { bottom: 18%; left: 52%; animation-delay: 1.8s; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.7); } }

.header, .section-wrap { position: relative; z-index: 1; width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; }
.brand-logo { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; background: rgba(255,255,255,.07); }
.brand-logo svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.brand-text strong, .brand-text span { display: block; }
.brand-text strong { font-size: 13px; letter-spacing: .8px; }
.brand-text span { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: 1.4px; }
.header-link { color: var(--blue-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.header-link span { margin-left: 7px; color: var(--cyan); }

.hero { min-height: 510px; padding-block: 64px 70px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 7%; color: var(--white); }
.hero-copy { max-width: 600px; }
.eyebrow, .intro-tag { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 30px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); font-size: 9px; letter-spacing: 1.35px; }
.live-dot, .panel-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #4cffb0; box-shadow: 0 0 10px #4cffb0; }
.hero-index { margin-top: 27px; color: rgba(255,255,255,.37); font-size: 9px; letter-spacing: 2px; }
.hero h1 { margin-top: 15px; font-size: clamp(44px, 5.5vw, 70px); font-weight: 400; line-height: .99; letter-spacing: -3.3px; }
.hero h1 span { color: var(--cyan); font-weight: 700; }
.hero-subtitle { max-width: 490px; margin-top: 20px; color: rgba(255,255,255,.94); font-size: 17px; font-weight: 700; line-height: 1.45; }
.hero-description { max-width: 500px; margin-top: 12px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(11,94,215,.19); }
.button-primary:hover { background: var(--blue-light); box-shadow: 0 10px 25px rgba(11,94,215,.26); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 36px; color: rgba(255,255,255,.37); font-size: 8px; letter-spacing: 1.3px; }

.hero-panel { align-self: center; padding: 22px; border: 1px solid var(--border); border-radius: 21px; color: var(--text); background: rgba(255,255,255,.94); box-shadow: 0 25px 65px rgba(6,26,54,.13); }
.panel-top, .panel-footer { display: flex; align-items: center; gap: 9px; color: #718096; font-size: 8px; letter-spacing: 1.1px; }
.panel-code { margin-left: auto; color: var(--blue); }
.workflow { margin-top: 23px; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: #f8fbff; }
.workflow-step { display: flex; align-items: center; gap: 12px; }
.workflow-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #d6e8ff; border-radius: 12px; color: var(--blue); background: #edf5ff; font-size: 20px; }
.workflow-step small, .workflow-step strong, .workflow-step p { display: block; }
.workflow-step small { color: var(--blue); font-size: 8px; letter-spacing: 1.1px; }
.workflow-step strong { margin-top: 2px; color: var(--blue-dark); font-size: 13px; }
.workflow-step p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.workflow-check { margin-left: auto; align-self: flex-start; color: #a7b7ca; font-size: 9px; }
.workflow-connector { width: 1px; height: 22px; margin: 5px 0 5px 19px; background: linear-gradient(var(--blue-light), #dbe7f5); }
.panel-footer { margin-top: 18px; font-size: 7px; }
.panel-line { height: 1px; flex: 1; background: var(--border); }

.quickbar { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -1px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: 0 15px 45px rgba(6,26,54,.08); }
.quickbar > a { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 21px 23px; text-decoration: none; transition: background .2s ease; }
.quickbar > a + a { border-left: 1px solid var(--border); }
.quickbar > a:hover { background: #f4f8ff; }
.quick-number { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.quickbar strong, .quickbar small { display: block; }
.quickbar strong { color: var(--blue-dark); font-size: 12px; }
.quickbar small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.quickbar b { margin-left: auto; color: #9baec5; font-size: 16px; }

.content-section { padding-top: 88px; padding-bottom: 15px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-label { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.section-heading h2, .closing h2 { margin-top: 8px; color: var(--blue-dark); font-size: clamp(27px, 3vw, 37px); line-height: 1.13; letter-spacing: -1.2px; }
.section-heading p { max-width: 650px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.heading-mark { padding-bottom: 5px; color: #a4b4c8; font-size: 10px; letter-spacing: 1.4px; white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { min-width: 0; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tool-card:hover { transform: translateY(-4px); border-color: #bfd5f3; box-shadow: var(--shadow); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tool-symbol { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: #edf5ff; font-size: 22px; }
.step-pill { padding: 5px 8px; border-radius: 20px; color: var(--blue); background: #edf5ff; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.tool-type { color: #8a9bb0; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.tool-card h3 { margin-top: 8px; color: var(--blue-dark); font-size: 18px; line-height: 1.3; }
.tool-card p { flex: 1; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; margin-top: 20px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -2px); }

/* Estilo mejorado y limpio para el botón interactivo de los módulos */
.module-link { 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid #d2e3fc;
  border-radius: 8px;
  background: #f0f6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.module-link:hover {
  background: #e2effe;
  border-color: #bad5fd;
  transform: translateY(-1px);
}
.module-link span { 
  transition: transform .2s ease; 
}
.module-link:hover span { 
  transform: translate(2px, -2px); 
}

.notice { margin-top: 17px; padding: 14px 17px; border-left: 3px solid var(--cyan); border-radius: 0 9px 9px 0; color: #526780; background: #edf7ff; font-size: 11px; line-height: 1.7; }
.notice strong { color: var(--blue-dark); }

.module-list { border-top: 1px solid var(--border); }
.module { display: grid; grid-template-columns: 58px minmax(0, 1fr) 25px; gap: 20px; padding: 24px 8px; border-bottom: 1px solid var(--border); transition: background .2s ease; }
.module:hover { background: rgba(255,255,255,.7); }
.module-number { color: #b0bfd1; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.module-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.module-status { padding: 4px 8px; border-radius: 20px; color: #6c7d91; background: #eef2f7; font-size: 8px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.module h3 { margin-top: 7px; color: var(--blue-dark); font-size: 17px; }
.module p { max-width: 740px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.module-arrow { color: #9db1c9; font-size: 18px; align-self: center; }

.prompts-section { margin-top: 85px; padding: 72px 0 75px; background: #edf3fa; }
.prompts-section .section-heading { margin-bottom: 27px; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.prompt-card { min-width: 0; padding: 22px; border: 1px solid #dfe7f1; border-radius: 17px; background: #fff; box-shadow: 0 8px 25px rgba(6,26,54,.035); }
.prompt-top { display: flex; align-items: center; justify-content: space-between; }
.prompt-number { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.prompt-tag { padding: 4px 8px; border-radius: 5px; color: #6c7d91; background: #f0f4f8; font-size: 8px; letter-spacing: 1px; }
.prompt-card h3 { margin-top: 13px; color: var(--blue-dark); font-size: 17px; }
.prompt-use { margin-top: 4px; color: var(--muted); font-size: 11px; }
.prompt-text { display: block; width: 100%; min-height: 190px; margin-top: 15px; padding: 13px; resize: vertical; border: 1px solid var(--border); border-radius: 9px; color: #42566f; background: #f9fbfe; font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.7; }
.prompt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.copy-button { min-height: 39px; padding: 9px 13px; border: 0; font-size: 11px; }
.copy-status { color: #087f5b; font-size: 10px; }
.prompt-tip { display: flex; gap: 13px; align-items: flex-start; margin-top: 20px; padding: 17px 19px; border: 1px solid #dbe6f2; border-radius: 12px; background: rgba(255,255,255,.7); }
.tip-icon { color: var(--blue); font-size: 20px; }
.prompt-tip p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.prompt-tip strong { color: var(--blue-dark); }

.closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 72px; }
.closing h2 { font-size: clamp(27px, 3.4vw, 40px); }
.closing h2 span { color: var(--blue); }
.closing p { max-width: 600px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.closing > .button { flex-shrink: 0; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 75px; border-top: 1px solid var(--border); color: #8796a9; font-size: 9px; letter-spacing: .4px; }
.footer strong { color: var(--blue-dark); font-size: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .9fr; gap: 4%; }
  .hero h1 { font-size: clamp(43px, 6vw, 59px); }
  .hero-panel { padding: 17px; }
  .workflow { padding: 15px; }
  .tool-grid { gap: 11px; }
  .tool-card { padding: 18px; }
  .quickbar > a { padding: 18px 14px; gap: 9px; }
}
@media (max-width: 700px) {
  .background { height: 1080px; }
  .header, .section-wrap { width: min(100% - 36px, 560px); }
  .header { height: 74px; }
  .brand-logo { width: 39px; height: 39px; }
  .brand-text strong { font-size: 11px; }
  .brand-text span { font-size: 7px; letter-spacing: .8px; }
  .header-link { font-size: 10px; }
  .hero { display: block; padding-block: 43px 48px; }
  .hero h1 { font-size: clamp(44px, 12vw, 60px); letter-spacing: -2.5px; }
  .hero-subtitle { font-size: 15px; }
  .hero-description { font-size: 12px; }
  .hero-meta { gap: 14px; margin-top: 25px; font-size: 7px; }
  .hero-panel { margin-top: 35px; }
  .quickbar { grid-template-columns: 1fr; margin-top: 0; }
  .quickbar > a { padding: 15px 18px; }
  .quickbar > a + a { border-top: 1px solid var(--border); border-left: 0; }
  .content-section { padding-top: 62px; }
  .section-heading { align-items: flex-start; margin-bottom: 21px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { font-size: 12px; }
  .heading-mark { display: none; }
  .tool-grid, .prompt-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 21px; }
  .tool-card-top { margin-bottom: 18px; }
  .module { grid-template-columns: 35px minmax(0, 1fr) 15px; gap: 10px; padding: 20px 0; }
  .module h3 { font-size: 15px; }
  .module p { font-size: 11px; }
  .module-status { line-height: 1.5; }
  .prompts-section { margin-top: 60px; padding-block: 54px; }
  .prompt-card { padding: 17px; }
  .prompt-text { min-height: 210px; font-size: 10px; }
  .closing { align-items: flex-start; flex-direction: column; padding-block: 55px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
MODAL DE PROMPTS
========================================================= */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(3, 15, 33, .72); backdrop-filter: blur(5px); }
.modal-backdrop.is-open { display: flex; }
.prompt-modal { width: min(680px, 100%); max-height: min(88vh, 850px); overflow-y: auto; padding: 25px; border: 1px solid rgba(255,255,255,.7); border-radius: 19px; background: #fff; box-shadow: 0 25px 90px rgba(0,0,0,.3); animation: modal-enter .18s ease-out; }
@keyframes modal-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.modal-header h2 { margin-top: 6px; color: var(--blue-dark); font-size: 23px; line-height: 1.25; }
.modal-close { width: 37px; height: 37px; flex: 0 0 37px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: #f7f9fc; font-size: 25px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--blue-dark); background: #edf5ff; }
.modal-help { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal-prompt-text { min-height: 240px; max-height: 48vh; }
.modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
@media (max-width: 700px) {
  .background { height: 1080px; background: linear-gradient(180deg, var(--blue-dark) 0, var(--blue-deep) 53%, #f7f9fc 53.1%, #fff 100%); }
  .header-link { color: #fff; }
  .hero-panel { margin-top: 35px; }
  .prompt-modal { padding: 19px; border-radius: 15px; }
  .modal-header h2 { font-size: 20px; }
  .modal-prompt-text { min-height: 220px; max-height: 44vh; }
}