/* ==========================================================================
   Cuantico — Inteligencia artificial: portada con robot, pestañas de capacidades,
   circuitos, noticias y preguntas frecuentes. Se usa con sol.css, modulos.css y copiloto.css.
   ========================================================================== */

/* ---------- Portada con robot ---------- */
.iah { position: relative; overflow: hidden; color: var(--navy); padding: calc(var(--header-h) + 48px) 0 clamp(56px, 7vw, 100px); background: radial-gradient(60% 70% at 78% 30%, rgba(59, 154, 225, .3), transparent 70%), linear-gradient(170deg, #ffffff 0%, #e8f3fd 55%, #d6e8fa 100%); }
.iah__net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.iah__net path { fill: none; stroke: rgba(27, 79, 156, .22); stroke-width: 1; stroke-dasharray: 6 8; animation: iaDash 24s linear infinite; }
.iah__net circle { fill: #3B9AE1; opacity: .7; animation: iaPulse 3.6s ease-in-out infinite; } .iah__net circle:nth-of-type(2n) { animation-delay: -1.2s; } .iah__net circle:nth-of-type(3n) { animation-delay: -2.4s; }
@keyframes iaDash { to { stroke-dashoffset: -280; } } @keyframes iaPulse { 50% { opacity: .15; transform: scale(1.6); } }
.iah__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.iah__t { margin: 16px 0 20px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; font-weight: 500; color: var(--navy); } .iah__t b { font-weight: 600; color: var(--blue); } .iah__t .serif-i { font-size: 1.05em; color: var(--blue); }
.iah .lead { max-width: 52ch; color: #23364f; }
.iah__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.iah__chips li { padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 550; color: var(--navy); background: #fff; box-shadow: 0 0 0 1px rgba(27, 79, 156, .18), 0 12px 24px -14px rgba(27, 79, 156, .5); }
.iah__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.iah__badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(27, 79, 156, .2); }
.iah__badge i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #1fa971; box-shadow: 0 0 0 4px rgba(31, 169, 113, .2); animation: iaPulse 2s ease-in-out infinite; }

.bot { position: relative; width: min(100%, 470px); aspect-ratio: .92; margin-inline: auto; }
.bot svg.bot__svg { position: absolute; inset: 6% 18% 4%; width: 64%; height: auto; overflow: visible; animation: botFloat 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(27, 79, 156, .25)); }
@keyframes botFloat { 50% { transform: translateY(-14px); } }
.bot__eye { transform-box: fill-box; transform-origin: center; animation: botBlink 5s infinite; } .bot__eye:last-of-type { animation-delay: .02s; }
@keyframes botBlink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.1); } }
.bot__ant { transform-box: fill-box; transform-origin: center; animation: iaPulse 1.8s ease-in-out infinite; }
.bot__arm { transform-box: fill-box; transform-origin: 50% 0; animation: botWave 4.5s ease-in-out infinite; } @keyframes botWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
.bot__glow { position: absolute; left: 50%; bottom: 2%; width: 56%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(27, 79, 156, .35), transparent); animation: botShadow 6s ease-in-out infinite; } @keyframes botShadow { 50% { transform: translateX(-50%) scale(.82); opacity: .7; } }
.bot__msg { position: absolute; z-index: 2; max-width: 56%; padding: 10px 14px; border-radius: 16px; font-size: .82rem; line-height: 1.3; color: var(--navy); background: #fff; box-shadow: 0 0 0 1px rgba(27, 79, 156, .16), 0 20px 36px -20px rgba(27, 79, 156, .6); animation: botMsg 9s ease-in-out infinite both; }
.bot__msg--u { right: 0; top: 8%; color: #fff; background: linear-gradient(135deg, #3B9AE1, #1B4F9C); border-radius: 16px 16px 4px 16px; }
.bot__msg--a { left: 0; top: 40%; border-radius: 16px 16px 16px 4px; animation-delay: 1.6s; }
.bot__msg--b { right: 2%; bottom: 14%; animation-delay: 3.4s; }
.bot__msg b { color: var(--blue); }
@keyframes botMsg { 0%, 6% { opacity: 0; transform: translateY(10px) scale(.96); } 14%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
.bot__orb { position: absolute; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 550; color: var(--blue); background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(27, 79, 156, .2), 0 14px 24px -14px rgba(27, 79, 156, .6); animation: solFloat 6s ease-in-out infinite; }
.bot__orb:nth-of-type(1) { left: 2%; top: 4%; } .bot__orb:nth-of-type(2) { right: 0; top: 30%; animation-delay: -1.5s; } .bot__orb:nth-of-type(3) { left: 0; bottom: 22%; animation-delay: -3s; } .bot__orb:nth-of-type(4) { right: 8%; bottom: 3%; animation-delay: -4.5s; } .bot__orb:nth-of-type(5) { left: 12%; top: 24%; animation-delay: -2s; }
@media (max-width: 980px) { .iah__grid { grid-template-columns: 1fr; } .bot { width: min(100%, 380px); } .bot__msg { font-size: .74rem; } }

/* ---------- Copiloto dentro de la página ---------- */
.iac { position: relative; }
.iac .copilot__app { margin-top: 8px; }

/* ---------- Pestañas de capacidades ---------- */
.ict { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.ict .mt { grid-template-columns: 34px 1fr auto; }
.ict .mt em { font-style: normal; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #fff; background: #1fa971; }
.ict__p { animation: mcIn .5s var(--ease-out); } .ict__p[hidden] { display: none; }
.ict__flow { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ict__flow li { padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 550; color: var(--blue); background: #eef3fa; box-shadow: inset 0 0 0 1px rgba(27, 79, 156, .2); }
.ict__flow li + li::before { content: "→"; margin-right: 8px; color: var(--sky); }
.ict__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.ict__txt h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.035em; color: var(--navy); } .ict__txt p { margin: 8px 0 14px; color: #23364f; }
.ict__media { display: grid; gap: 12px; }
.ict__media video { display: block; width: 100%; height: auto; background: #0B1F3A; border-radius: 0; }
.yt { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; color: #fff; background: radial-gradient(60% 80% at 30% 20%, rgba(59, 154, 225, .5), transparent 70%), linear-gradient(135deg, #0B1F3A, #1B4F9C); cursor: pointer; overflow: hidden; }
.yt span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); transition: transform .4s var(--ease-spring), background .3s; } .yt:hover span { transform: scale(1.1); background: rgba(255, 255, 255, .28); }
.yt svg { width: 30px; height: 30px; margin-left: 4px; } .yt small { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #cfe3fa; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.new-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-style: normal; vertical-align: middle; color: #fff; background: #1fa971; }
@media (max-width: 980px) { .ict { grid-template-columns: 1fr; } .ict__body { grid-template-columns: 1fr; } .ict .mt__l { grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; display: grid; padding-bottom: 6px; } .ict .mt:hover, .ict .mt.is-on { transform: none; } }

/* ---------- Circuitos ---------- */
.icf { display: grid; gap: 14px; }
.icf__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 58, .08), 0 24px 44px -34px rgba(11, 31, 58, .4); }
.icf__row > strong { font-size: 1.02rem; font-weight: 550; color: var(--navy); }
.icf__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: relative; }
.icf__steps li { position: relative; display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: #f3f5f8; font-size: .86rem; color: #23364f; transition: background .3s, transform .4s var(--ease-out); } .icf__steps li:hover { background: #e3effb; transform: translateY(-3px); }
.icf__steps li b { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); } .icf__steps li strong { color: var(--navy); font-weight: 550; }
.icf__steps li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 10px; height: 2px; background: var(--sky); }
@media (max-width: 900px) { .icf__row { grid-template-columns: 1fr; } .icf__steps { grid-auto-flow: row; } .icf__steps li:not(:last-child)::after { display: none; } }

/* ---------- Tarjetas de submódulos de IA ---------- */
.iag { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.iag li { position: relative; display: grid; gap: 6px; padding: 22px 22px 54px; border-radius: 22px; color: #fff; background: linear-gradient(150deg, #1B4F9C, #0B1F3A); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .4s; }
.iag li::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 201, 242, .35), transparent 70%); transition: transform .6s var(--ease-out); }
.iag li:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -30px rgba(11, 31, 58, .7); } .iag li:hover::after { transform: scale(2.2); }
.iag small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #8fc9f2; } .iag strong { font-size: 1.2rem; font-weight: 500; letter-spacing: -.03em; } .iag p { color: #c9dcf4; font-size: .9rem; }
.iag a::after { content: ""; position: absolute; inset: 0; z-index: 2; } .iag .go { position: absolute; left: 22px; bottom: 18px; display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 550; color: #bfe6ff; } .iag .go svg { width: 16px; height: 16px; transition: transform .4s var(--ease-spring); } .iag li:hover .go svg { transform: translateX(6px); }

/* ---------- Noticias ---------- */
.ian { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ian li { padding: 24px 22px; border-radius: 20px; background: #f3f5f8; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .08); transition: transform .5s var(--ease-out), background .3s; } .ian li:hover { transform: translateY(-5px); background: #fff; }
.ian small { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); } .ian strong { display: block; margin-bottom: 8px; font-size: 1.1rem; font-weight: 550; color: var(--navy); } .ian p { color: #3b4d66; font-size: .93rem; }

/* ---------- Preguntas frecuentes ---------- */
.iaq { display: grid; gap: 10px; max-width: 880px; }
.iaq details { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 58, .1); transition: box-shadow .3s; } .iaq details[open] { box-shadow: 0 0 0 1px rgba(27, 79, 156, .4), 0 20px 40px -30px rgba(27, 79, 156, .5); }
.iaq summary { cursor: pointer; padding: 16px 20px; font-weight: 550; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; } .iaq summary::-webkit-details-marker { display: none; }
.iaq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); transition: transform .3s; } .iaq details[open] summary::after { transform: rotate(45deg); }
.iaq p { margin: 0; padding: 0 20px 18px; color: #3b4d66; max-width: 70ch; }
.iar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 26px 28px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #0B1F3A, #1B4F9C); } .iar p { max-width: 60ch; color: #dbe8f8; } .iar strong { display: block; font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { .iah__net path, .iah__net circle, .bot__eye, .bot__ant, .bot__arm, .bot svg.bot__svg, .bot__msg, .bot__orb, .bot__glow { animation: none !important; } .bot__msg { opacity: 1; } }
