/* =========================================================
   Convivencia Digital — estilos
   ========================================================= */
:root {
  --blue-900: #04128a;
  --blue-800: #0a1fb8;
  --blue-700: #1131d9;
  --blue-600: #1d4cf0;
  --blue-500: #2f6bff;
  --blue-100: #e6eeff;
  --navy: #0b1a6b;
  --orange: #ff6b0f;
  --orange-2: #ff8a2b;
  --cyan: #22e0f0;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, .85);
  --glass: rgba(255, 255, 255, .1);
  --glass-border: rgba(255, 255, 255, .28);
  --radius: 22px;
  --shadow: 0 18px 40px -12px rgba(2, 10, 80, .45);
  --script: "Kaushan Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--white);
  background: var(--blue-800);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg use { pointer-events: none; }
[class^="ph"], [class*=" ph-"] { line-height: 1; flex: none; }

/* Acentos manuscritos (Kaushan Script) */
.script { font-family: var(--script); font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--cyan); }
.script--blue { color: var(--blue-600); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.logo__mark {
  flex: none;
  background: var(--white);
  border-radius: 25%;
}
.logo__text { font-size: 24px; letter-spacing: -.5px; }
.logo--lg .logo__text { font-size: 30px; }

/* ---------- Header ---------- */
.header {
  --header-divider: #d5ddf5;
  position: sticky; top: 0; z-index: 50;
  background: var(--white); color: var(--navy);
  border-bottom: 1px solid var(--header-divider);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 8px 24px rgba(11, 26, 107, .14); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav { display: flex; gap: 40px; }
.nav__link { position: relative; font-size: 15px; font-weight: 500; opacity: .9; padding: 6px 0; transition: opacity .2s; }
.nav__link:hover { opacity: 1; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  border-radius: 3px; background: var(--orange);
  transform: scaleX(0); transition: transform .25s;
}
.nav__link.is-active { font-weight: 600; opacity: 1; }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.header__actions { display: flex; gap: 10px; }
.icon-btn {
  width: 42px; height: 34px; border-radius: 20px; display: grid; place-items: center;
  border: 1.5px solid #aabbe2; transition: background .2s;
}
.icon-btn:hover { background: var(--blue-100); }
.search-icon {
  position: relative; width: 13px; height: 13px; margin: 0 3px 3px 0;
  border: 2px solid currentColor; border-radius: 50%;
}
.search-icon::after {
  content: ""; position: absolute; right: -6px; bottom: -3px; width: 7px; height: 2px;
  border-radius: 2px; background: currentColor; transform: rotate(45deg);
}
.menu-btn { display: none; gap: 4px; align-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.search { padding: 0 0 16px; }
.search input {
  width: 100%; padding: 14px 20px; border-radius: 30px; border: 1.5px solid #aabbe2;
  background: #f5f7ff; color: var(--navy); font: inherit; outline: none;
}
.search input::placeholder { color: #4c5a8d; }
.search input:focus { border-color: var(--blue-600); }
.search__status { margin: 8px 12px 0; color: #4c5a8d; font-size: 14px; }
.search__results {
  margin-top: 10px; max-height: min(42vh, 300px); overflow: auto; list-style: none;
  border-radius: 16px; border: 1px solid var(--header-divider); background: var(--white); color: var(--navy);
}
.search__results li + li { border-top: 1px solid var(--header-divider); }
.search__results a { display: grid; gap: 2px; padding: 12px 16px; }
.search__results a:hover, .search__results a:focus-visible { background: var(--blue-100); }
.search__results a:focus-visible { outline: 2px solid var(--blue-600); outline-offset: -3px; }
.search__results span { font-size: 14px; color: #4c5a8d; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 40px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn i { font-size: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--orange { color: var(--navy); background: linear-gradient(180deg, var(--orange-2), var(--orange)); box-shadow: 0 10px 24px -8px rgba(255, 107, 15, .8); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: var(--glass); }
.btn--blue { color: var(--white); background: linear-gradient(180deg, var(--blue-600), var(--blue-700)); width: 100%; max-width: 280px; box-shadow: 0 10px 22px -10px rgba(17, 49, 217, .9); }

/* ---------- Tipografía de secciones ---------- */
.title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; font-style: italic; line-height: 1.15; letter-spacing: -.5px; position: relative; display: inline-block; }
.title--dark { color: var(--navy); }
.accent-dark { color: var(--blue-600); }
.subtitle { font-size: 20px; font-weight: 700; font-style: italic; margin-bottom: 16px; }
.sparks { position: absolute; top: -6px; right: -30px; width: 22px; height: 22px; }
.sparks::before, .sparks::after {
  content: ""; position: absolute; height: 3px; border-radius: 3px; background: var(--white);
}
.sparks::before { width: 14px; transform: rotate(-50deg); top: 4px; left: 2px; }
.sparks::after { width: 16px; top: 14px; left: 6px; transform: rotate(-10deg); }

.section { position: relative; padding: 96px 0; }
.section--light { background: #f3f6ff; color: #33407a; }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p { margin-top: 10px; color: var(--text-soft); }
.section--light .section__head p { color: #5a6694; }
.section__head--center { text-align: center; margin-inline: auto; }

/* ---------- Páginas de sección ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 104px) 0;
  background: radial-gradient(900px 450px at 85% 20%, rgba(47, 107, 255, .62), transparent 70%),
    linear-gradient(160deg, var(--blue-700), var(--blue-900));
}
.page-hero__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 330px);
  gap: clamp(24px, 3vw, 36px); align-items: center;
}
.page-hero__visual {
  --visual-blue: #0454f1;
  --visual-orange: #f54704;
  position: relative; isolation: isolate; width: 100%; aspect-ratio: 3 / 2;
  background: radial-gradient(ellipse at 54% 52%, rgba(56, 144, 255, .45), transparent 69%);
  pointer-events: none;
}
.page-hero__visual::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: 51%; inset-inline-start: 4%;
  width: 91%; height: 17%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 111, 255, .3), #3685ff, #72dcff);
  opacity: .74; transform: rotate(-12deg); box-shadow: 0 0 20px rgba(92, 198, 255, .4);
}
.page-hero__visual::after {
  content: ""; position: absolute; z-index: -1; inset-block-start: 13%; inset-inline-end: 7%;
  width: 38%; height: 5%; border-radius: 999px; background: #5b9aff; transform: rotate(-12deg);
}
.page-hero__visual--learn::before {
  inset-block-start: 28%; inset-inline-start: 2%; width: 96%; height: 50%;
  border: 2px solid rgba(117, 226, 255, .72); border-radius: 50%; background: none;
  transform: rotate(-18deg); box-shadow: 0 0 16px rgba(76, 180, 255, .45);
}
.page-hero__visual--learn::after { inset-block-start: 75%; inset-inline-end: 17%; width: 34%; }
.page-hero__visual--resources::before {
  inset-block-start: 40%; transform: rotate(-16deg);
  box-shadow: 0 20px 0 -7px rgba(94, 164, 255, .44), 0 0 20px rgba(92, 198, 255, .35);
}
.page-hero__visual--resources::after { inset-block-start: 13%; inset-inline-end: 32%; width: 44%; }
.page-hero__glint {
  position: absolute; width: 12%; height: 3px; border-radius: 999px;
  background: var(--cyan); box-shadow: 0 0 9px var(--cyan); transform: rotate(-15deg);
  animation: page-hero-glint 4.5s ease-in-out infinite;
}
.page-hero__glint--first { inset-block-start: 21%; inset-inline-start: 9%; }
.page-hero__glint--second { inset-block-end: 9%; inset-inline-end: 5%; animation-delay: -2.2s; }
.page-hero__visual--resources .page-hero__glint--first { inset-block-start: 17%; inset-inline-start: 2%; }
.page-hero__visual--resources .page-hero__glint--second { inset-block-end: 8%; inset-inline-end: 34%; }
@keyframes page-hero-glint {
  0%, 100% { opacity: .45; translate: -3px 1px; }
  50% { opacity: .9; translate: 3px -1px; }
}
.page-hero__sticker {
  position: absolute; display: grid; place-items: center; aspect-ratio: 1.15;
  border-radius: clamp(12px, 1.5vw, 19px); border: 1px solid rgba(183, 229, 255, .5);
  background: linear-gradient(145deg, #2d84ff, var(--visual-blue) 78%);
  color: var(--white); font-size: clamp(24px, 3vw, 38px);
  box-shadow: 0 9px 20px -8px rgba(2, 10, 80, .65), 0 0 16px -6px rgba(116, 217, 255, .66);
  animation: float 6s ease-in-out infinite;
}
.page-hero__sticker--send {
  z-index: 2; inset-block-start: 50%; inset-inline-start: 2%; width: 27%;
  background: linear-gradient(145deg, var(--orange-2), var(--visual-orange) 68%);
  font-size: clamp(26px, 3.3vw, 43px); transform: rotate(-13deg);
  box-shadow: 0 10px 26px -7px rgba(255, 109, 35, .78); animation-delay: -1.1s;
}
.page-hero__sticker--send::before {
  content: ""; position: absolute; inset-block-start: -24%; inset-inline-start: 7%;
  width: 8%; height: 21%; border-radius: 999px; background: var(--visual-orange); transform: rotate(-25deg);
}
.page-hero__sticker--send::after {
  content: ""; position: absolute; inset-block-end: -15%; inset-inline-start: 10%;
  width: 22%; height: 21%; background: var(--visual-orange); clip-path: polygon(10% 0, 100% 0, 0 100%);
}
.page-hero__sticker--feature {
  inset-block-start: 18%; inset-inline-start: 28%; width: 36%;
  font-size: clamp(34px, 4.2vw, 56px); transform: rotate(-10deg); animation-delay: -2.5s;
}
.page-hero__sticker--signal {
  inset-block-start: 15%; inset-inline-start: 71%; width: 22%; transform: rotate(8deg);
  background: #f1f7ff; color: var(--visual-blue); animation-delay: -4s;
}
.page-hero__sticker--chat {
  inset-block-start: 56%; inset-inline-start: 66%; width: 24%;
  transform: rotate(-8deg); animation-delay: -1.8s;
}
.page-hero__sticker--accent {
  inset-block-start: 69%; inset-inline-start: 43%; width: 17%;
  background: var(--blue-800); color: var(--cyan); font-size: clamp(19px, 2.3vw, 30px);
  transform: rotate(9deg); animation-delay: -3.4s;
}
.page-hero__visual--resources .page-hero__sticker--feature {
  inset-block-start: 23%; inset-inline-start: 16%; width: 35%; transform: rotate(-7deg);
  background: linear-gradient(145deg, var(--white), #d8ecff); color: var(--visual-blue);
  box-shadow: -8px 7px 0 -2px #3788ff, -15px 14px 0 -5px rgba(108, 194, 255, .57), 0 10px 20px -8px rgba(2, 10, 80, .65);
}
.page-hero__visual--resources .page-hero__sticker--send {
  inset-block-start: 21%; inset-inline-start: 67%; width: 25%; transform: rotate(10deg);
}
.page-hero__visual--resources .page-hero__sticker--signal {
  inset-block-start: 64%; inset-inline-start: 5%; transform: rotate(-9deg);
  background: linear-gradient(145deg, #2d84ff, var(--visual-blue)); color: var(--white);
}
.page-hero__visual--resources .page-hero__sticker--chat {
  inset-block-start: 60%; inset-inline-start: 64%; transform: rotate(7deg);
}
.page-hero__visual--resources .page-hero__sticker--accent {
  inset-block-start: 10%; inset-inline-start: 51%; width: 15%; transform: rotate(-8deg);
}
.page-hero__visual--domino .page-hero__sticker--send {
  inset-block-start: 52%; width: 25%;
}
.page-hero__domino {
  --domino-angle: 7deg;
  --domino-lean: 16deg;
  position: absolute; inset-block-end: 22%; inset-inline-start: 29%;
  width: 16.5%; height: 52%; display: grid; grid-template-rows: 1fr 1fr;
  border: 1px solid rgba(183, 229, 255, .56); border-radius: 12px;
  background: linear-gradient(145deg, #388dff, var(--visual-blue) 76%); color: var(--white);
  box-shadow: 0 9px 22px -8px rgba(2, 10, 80, .65), 0 0 16px -6px rgba(116, 217, 255, .6);
  transform: rotate(var(--domino-angle)); transform-origin: center bottom;
  animation: page-hero-domino-lean 4.6s ease-in-out infinite;
}
.page-hero__domino:nth-last-child(2) {
  --domino-angle: 20deg;
  --domino-lean: 29deg;
  inset-inline-start: 45%; animation-delay: .24s;
}
.page-hero__domino:last-child {
  --domino-angle: 36deg;
  --domino-lean: 42deg;
  inset-inline-start: 61%; color: var(--visual-blue); background: #f1f7ff; animation-delay: .48s;
}
@keyframes page-hero-domino-lean {
  0%, 57%, 100% { transform: rotate(var(--domino-angle)); }
  24% { transform: rotate(var(--domino-lean)); }
}
.page-hero__domino::before, .page-hero__domino::after { content: ""; margin-inline: 5px; }
.page-hero__domino::before {
  background: radial-gradient(circle at 32% 33%, currentColor 3px, transparent 4px),
    radial-gradient(circle at 68% 67%, currentColor 3px, transparent 4px);
}
.page-hero__domino::after {
  border-top: 1px solid rgba(255, 255, 255, .5);
  background: radial-gradient(circle, currentColor 3px, transparent 4px);
}
.page-hero__domino:last-child::after { border-top-color: #b7cef9; }
.page-hero .title { max-width: 790px; font-size: clamp(36px, 6vw, 60px); }
.page-intro { max-width: 630px; margin-top: 16px; color: var(--text-soft); font-size: clamp(16px, 2vw, 19px); }
.reading-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero .reading-nav { margin-top: 28px; }
.reading-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass);
  font-size: 14px; font-weight: 600;
}
.reading-nav a:not(.btn):is(:hover, :focus-visible) { background: var(--blue-600); border-color: var(--white); }
.reading-nav i { font-size: 24px; color: var(--cyan); }
.page-hero__copy h1 .script, .page-hero__copy .reading-nav > a > i { color: var(--orange-2); }
.reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.reading-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reading-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid #d5ddf5;
  background: var(--white); color: #33407a; box-shadow: 0 16px 40px -24px rgba(11, 26, 107, .3);
}
.reading-card h2, .reading-card h3 { color: var(--navy); line-height: 1.2; }
.reading-card h2 { font-size: clamp(22px, 3vw, 28px); }
.reading-card h3 { font-size: clamp(18px, 2vw, 21px); }
.reading-card :is(ol, ul) { display: grid; gap: 8px; padding-inline-start: 22px; }
.reading-card > .pill { margin-top: auto; }
:is(.reading-card, .card)[id]:target { outline: 3px solid var(--blue-500); outline-offset: 4px; }
.status-note {
  align-self: flex-start; padding: 10px 14px; border-radius: 12px;
  background: var(--blue-100); color: var(--navy); font-size: 14px; font-weight: 600;
}
.text-link { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Equipo de Entel ---------- */
.team-hero {
  position: relative; overflow: hidden; padding: 24px 0 clamp(36px, 5vw, 64px);
  background: radial-gradient(720px 340px at 3% 100%, rgba(47, 107, 255, .52), transparent 65%),
    linear-gradient(155deg, var(--blue-700), var(--blue-900) 72%);
}
.team-hero::before {
  content: ""; position: absolute; inset-block-start: -110px; inset-inline-end: 8%;
  width: min(55%, 650px); height: 145px; border-radius: 50%; transform: rotate(-5deg);
  border-bottom: 3px solid var(--cyan); border-right: 3px solid var(--orange);
  box-shadow: 0 8px 24px -12px var(--cyan); opacity: .8; pointer-events: none;
}
.team-hero > .container { position: relative; }
.team-back, .team-actions__link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-weight: 600;
  text-decoration: underline; text-underline-offset: .2em;
}
.team-back { margin-bottom: clamp(24px, 3vw, 36px); }
.team-back i, .team-actions__link i { font-size: 20px; }
.team-hero__layout {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 46px);
}
.team-heading {
  position: relative; padding-inline-start: clamp(56px, 7.2vw, 100px);
}
.team-heading__mark {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: clamp(40px, 6vw, 76px); height: 100%; fill: #fd5f01;
}
.team-heading__title {
  font-size: clamp(29px, 3.7vw, 52px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
.team-heading__accent {
  position: relative; display: inline-block; padding-bottom: .34em;
}
.team-heading__underline {
  position: absolute; inset-inline-end: 4%; inset-block-end: 0;
  width: 82%; height: .34em; fill: var(--cyan);
}
.team-heading__tagline {
  margin-top: clamp(15px, 2vw, 24px); padding-inline-start: 14px; line-height: 1.4;
  border-inline-start: 4px solid var(--orange-2); font-size: clamp(16px, 2vw, 24px);
}
.team-case {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(14px, 2vw, 25px); padding: clamp(20px, 2.5vw, 34px);
  border-radius: clamp(20px, 2.5vw, 32px); color: var(--navy);
  background: linear-gradient(145deg, #dff6ff, #cbe8f7);
  box-shadow: 0 12px 36px -18px rgba(2, 10, 80, .5);
}
.team-case__icon { color: var(--blue-700); font-size: clamp(38px, 5.5vw, 70px); }
.team-case__copy { padding-inline-start: clamp(14px, 2vw, 24px); border-inline-start: 1px solid #9bbfe9; }
.team-case h2 { font-size: clamp(19px, 2vw, 25px); line-height: 1.2; }
.team-case p { margin-top: 8px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.4; }

.team-actions.section { padding: clamp(34px, 4vw, 56px) 0; background: #eaf2ff; }
.team-actions .title { font-size: clamp(30px, 4vw, 48px); font-style: normal; }
.team-actions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.team-action {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  gap: 14px; padding: clamp(16px, 2vw, 25px); border-radius: 18px;
  border: 1px solid #c4d3f0; border-top: 7px solid var(--orange); background: var(--white);
}
.team-action:nth-child(2) { border-top-color: var(--cyan); }
.team-action:nth-child(3) { border-top-color: var(--blue-700); }
.team-action__icon { padding-top: 4px; color: var(--blue-700); font-size: clamp(34px, 4vw, 50px); }
.team-action__copy { padding-inline-start: 14px; border-inline-start: 1px solid #b5c5e6; }
.team-action h3 { color: var(--navy); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.2; }
.team-action p { margin-top: 8px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.4; }
.team-actions__link { margin-top: 30px; color: var(--blue-700); font-size: clamp(16px, 1.8vw, 21px); }
.team-actions__link i { color: var(--orange); }
.team-back:focus-visible, .team-actions__link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.team-first-tile.section { padding-block: clamp(34px, 5vw, 64px); }
.team-first-tile__layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(24px, 4vw, 54px);
}
.team-first-tile__heading { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.team-first-tile__domino {
  position: relative; flex: 0 0 34px; height: 54px; border-radius: 8px;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-800));
  box-shadow: 4px 4px 0 var(--cyan); transform: rotate(-10deg);
}
.team-first-tile__domino::before {
  content: ""; position: absolute; inset-inline: 6px; inset-block-start: 50%; height: 1px;
  background: var(--white);
}
.team-first-tile__domino::after {
  content: ""; position: absolute; inset-inline-start: 14px; inset-block-start: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  box-shadow: -5px 24px var(--white), 5px 32px var(--white);
}
.team-first-tile__copy p { max-width: 49ch; margin-top: 18px; font-size: clamp(16px, 1.7vw, 19px); }
.team-first-tile__copy strong { color: var(--navy); }
.team-first-tile__link { margin-top: 18px; font-size: 16px; }
.team-first-tile__image {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 16px 36px -18px rgba(11, 26, 107, .5);
}

@media (max-width: 900px) {
  .team-hero__layout, .team-actions__grid { grid-template-columns: minmax(0, 1fr); }
  .team-heading__title { font-size: clamp(24px, 6.8vw, 48px); }
}
@media (max-width: 740px) {
  .team-first-tile__layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 64px;
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(47, 107, 255, .65), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(34, 224, 240, .18), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-900));
}
.glow-lines {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 40% at 50% 110%, transparent 58%, rgba(120, 220, 255, .55) 59%, transparent 61%),
    radial-gradient(ellipse 110% 30% at 30% 120%, transparent 60%, rgba(120, 200, 255, .35) 61%, transparent 62.5%);
  opacity: .8;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero__copy { --hero-copy-offset: 72px; padding-left: var(--hero-copy-offset); }
.hero__title {
  margin-inline-start: calc(-1 * var(--hero-copy-offset)); padding-bottom: .42em;
  font-size: clamp(42px, 6.4vw, 78px); line-height: .98; font-weight: 800; font-style: italic;
  letter-spacing: -1.5px; text-shadow: 0 6px 30px rgba(0, 0, 60, .35);
}
.hero__headline { position: relative; display: block; padding-inline-start: 1.69em; }
.hero__bracket {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 1.55em; height: 100%; fill: #fd5f01;
}
.hero__title .script { display: block; white-space: nowrap; font-size: .92em; line-height: 1.12; margin-top: .08em; text-shadow: 0 0 28px rgba(34, 224, 240, .35); }
.hero__last-line { position: relative; display: inline-block; }
.hero__underline {
  position: absolute; inset-block-start: calc(100% - .16em); inset-inline-start: 22%;
  width: 80%; height: auto; fill: #00f6f9;
}
.swoosh { width: min(240px, 70%); height: auto; color: var(--cyan); margin: 10px 0 0 120px; }
.hero__lead { margin-top: 22px; max-width: 420px; font-size: 18px; color: var(--text-soft); }
.hero__lead strong { color: var(--white); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Ilustración */
.hero__art { position: relative; aspect-ratio: 1 / .78; width: 100%; max-width: 560px; justify-self: end; }
.orbit {
  position: absolute; left: -8%; right: -12%; top: 30%; height: 46%;
  border-radius: 50%; border: 3px solid rgba(140, 220, 255, .7);
  box-shadow: 0 0 30px rgba(80, 180, 255, .8), inset 0 0 30px rgba(80, 180, 255, .5);
  transform: rotate(-14deg);
}
.bubble {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--blue-800); font-weight: 700; font-style: italic;
  padding: 10px 20px; border-radius: 30px; box-shadow: var(--shadow), 0 0 0 4px rgba(255, 255, 255, .15);
  font-size: clamp(13px, 1.6vw, 20px); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.bubble i { font-size: 1.2em; color: var(--blue-600); }
.bubble .ticks { color: var(--blue-500); }
.b-fwd { left: 6%; top: 0; }
.b-emoji { right: 4%; top: 30%; font-style: normal; animation-delay: -1s; }
.b-raro { right: 8%; top: 49%; animation-delay: -2s; }
.b-paso { left: 40%; top: 63%; animation-delay: -3s; }
.b-todos { left: 4%; top: 78%; animation-delay: -4s; border-bottom-left-radius: 6px; }

.screen {
  position: absolute; border-radius: 14px;
  background: linear-gradient(180deg, #8b7dd8 0%, #e79a8f 55%, #3a3f8f 100%);
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 30px rgba(120, 200, 255, .8);
  display: grid; place-items: center; color: rgba(255, 255, 255, .85);
}
.screen i { font-size: 22px; }
.screen--main { left: 4%; top: 16%; width: 56%; aspect-ratio: 16 / 10; transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
.screen--main .play { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--white); display: grid; place-items: center; }
.screen--main .play i { font-size: 28px; color: var(--white); margin-left: 4px; }
.screen--s1, .screen--s2, .screen--s3 { opacity: .6; width: 20%; aspect-ratio: 4 / 3; border-width: 2px; }
.screen--s1 { right: 22%; top: 14%; }
.screen--s2 { right: 2%; top: 12%; }
.screen--s3 { left: 22%; top: 58%; width: 24%; }

.chip {
  position: absolute; width: 46px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .7); color: var(--white);
  box-shadow: 0 0 18px rgba(120, 200, 255, .6);
  animation: float 5s ease-in-out infinite;
}
.chip i { font-size: 20px; }
.chip--share { right: 2%; top: 4%; }
.chip--share2 { right: 0; top: 64%; animation-delay: -2s; }
.chip--send { right: 18%; top: 68%; background: var(--orange); border-color: var(--orange-2); box-shadow: 0 0 22px rgba(255, 107, 15, .8); animation-delay: -1s; }
.chip--play { left: 52%; top: 88%; background: var(--white); color: var(--blue-600); animation-delay: -3s; }
.chip--dots { left: 66%; top: 88%; background: var(--white); gap: 3px; display: flex; justify-content: center; align-items: center; }
.chip--dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-700); }
.spark { position: absolute; width: 30px; height: 4px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.spark--1 { left: -4%; top: 22%; transform: rotate(25deg); }
.spark--2 { right: 30%; top: 60%; transform: rotate(-30deg); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Accesos rápidos */
.quick {
  position: relative; margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .92); color: var(--navy);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.quick__item {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  font-size: 14px; font-weight: 600; line-height: 1.3; transition: background .2s;
}
.quick__item + .quick__item { border-left: 1px solid #d5ddf5; }
.quick__item:hover { background: var(--blue-100); }
.quick__item > i:first-child { font-size: 32px; color: var(--blue-700); }
.quick__item span { flex: 1; }
.quick__item .chev { font-size: 16px; transition: transform .2s; }
.quick__item:hover .chev { transform: translateX(4px); }

/* Equipo de Entel en la portada */
.home-team {
  position: relative; width: min(1280px, 100% - 32px); margin: clamp(24px, 3vw, 34px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: stretch;
  gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.1vw, 28px);
  border-radius: var(--radius); background: #eaf2ff; color: var(--navy); box-shadow: var(--shadow);
}
.home-team__copy { position: relative; align-self: center; padding: 8px 0 8px clamp(52px, 7vw, 96px); }
.home-team__mark {
  position: absolute; inset-block-start: 8px; inset-inline-start: 4px;
  width: clamp(34px, 6vw, 76px); height: calc(100% - 30px); fill: #fd5f01;
}
.home-team__copy h2 {
  font-size: clamp(28px, 4.1vw, 54px); font-weight: 800; font-style: italic;
  line-height: 1.08; letter-spacing: -.035em;
}
.home-team__copy p { margin-top: 12px; font-size: clamp(16px, 1.8vw, 23px); line-height: 1.35; }
.home-team__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: clamp(16px, 1.8vw, 23px); font-weight: 700; line-height: 1.3;
}
.home-team__link i { font-size: 1.2em; color: var(--orange); }
.home-team__link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.home-team__case {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(22px, 3vw, 42px); border-radius: var(--radius);
  background: linear-gradient(155deg, #121b72, #080e57); color: var(--white);
}
.home-team__case h3 { font-size: clamp(17px, 1.65vw, 23px); font-style: italic; color: var(--cyan); }
.home-team__case p {
  margin-top: 10px; font-size: clamp(20px, 2.35vw, 31px); font-weight: 700; line-height: 1.25;
}
.home-team__case .home-team__quote {
  margin-top: 16px; color: var(--cyan); font-size: clamp(17px, 1.85vw, 25px); font-style: italic;
}

/* ---------- Huella digital ---------- */
.stats { background: var(--blue-900); padding: 48px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "text text";
  align-items: center; column-gap: 14px; row-gap: 10px; min-width: 0;
  padding: 22px 24px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .14);
}
.stat__icon { grid-area: icon; font-size: 34px; color: var(--orange-2); }
.stat__title {
  grid-area: title; font-size: clamp(38px, 4.6vw, 54px); font-weight: 800; font-style: italic; line-height: 1;
  color: var(--cyan); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.stat p { grid-area: text; font-size: 14px; line-height: 1.45; color: var(--text-soft); overflow-wrap: anywhere; }

/* ---------- Aprende ---------- */
#aprende { background: linear-gradient(180deg, var(--blue-800), var(--blue-700)); }
.learn { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.learn-preview {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #e9e2d6, #c9bba6);
}
.learn-preview__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.learn-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 15, 80, .45)); }
.learn-preview__label {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  background: rgba(11, 26, 107, .85); border: 1px solid rgba(255, 255, 255, .5);
  padding: 8px 14px; border-radius: 12px; font-size: 13px; line-height: 1.25;
}
.learn-preview__label i { font-size: 20px; }
.learn-preview:is(:hover, :focus-visible) .learn-preview__label { background: var(--navy); }

.section.specialist-video {
  padding-block: clamp(36px, 6vw, 72px);
  background: linear-gradient(180deg, var(--blue-900), var(--blue-800));
}
.specialist-video__layout {
  max-width: 980px; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center; gap: clamp(28px, 5vw, 64px);
}
.specialist-preview {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; justify-self: center;
  border-radius: var(--radius); background: var(--navy);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), var(--shadow);
}
.specialist-topics { display: grid; gap: 18px; }
.specialist-topics__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.specialist-topics__buttons button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px;
  border: 1px solid var(--glass-border); border-radius: 40px; background: var(--glass);
  font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.specialist-topics__buttons button i { font-size: 18px; color: var(--cyan); }
.specialist-topics__buttons button:hover { border-color: var(--white); }
.specialist-topics__buttons button[aria-selected="true"] {
  background: var(--orange-2); border-color: var(--orange-2); color: var(--navy);
}
.specialist-topics__buttons button[aria-selected="true"] i { color: inherit; }
.specialist-topics :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.specialist-topics__panels { display: grid; gap: 12px; }
.specialist-topics__panel {
  display: grid; align-content: start; gap: 8px; padding: clamp(18px, 3vw, 28px);
  border-inline-start: 4px solid var(--orange); border-radius: var(--radius);
  background: var(--white); color: #33407a; box-shadow: var(--shadow);
}
.specialist-topics__panel h3 { color: var(--navy); font-size: clamp(18px, 2.5vw, 22px); line-height: 1.2; }
.specialist-topics__panel[role="tabpanel"] { animation: specialist-topic-in .22s ease-out; }
@keyframes specialist-topic-in { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 660px) {
  .specialist-video__layout { grid-template-columns: minmax(0, 1fr); }
  .specialist-preview { max-width: 260px; }
}

.learn__side { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .25); }
.learn__side .reading-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learn__side .reading-nav a {
  flex-direction: column; justify-content: center; padding: 18px 8px; text-align: center; line-height: 1.25;
  font-size: 13px; overflow-wrap: anywhere; hyphens: auto;
}
.learn__side .reading-nav i { font-size: 32px; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: 0 16px 40px -20px rgba(11, 26, 107, .35); border-top: 5px solid var(--blue-600);
}
.step:nth-child(2) { border-top-color: var(--orange); }
.step:nth-child(3) { border-top-color: var(--cyan); }
.step__head { display: flex; align-items: center; justify-content: space-between; }
.step__icon { font-size: 40px; color: var(--blue-600); }
.step:nth-child(2) .step__icon { color: var(--orange); }
.step:nth-child(3) .step__icon { color: #0bb8c7; }
.step__n { font-size: 40px; font-weight: 800; font-style: italic; color: #d7e0fb; line-height: 1; }
.step h3 { color: var(--navy); font-size: 22px; font-weight: 700; margin: 8px 0 14px; }
.step ul { list-style: none; display: grid; gap: 10px; }
.step li { position: relative; padding-left: 26px; font-size: 15px; }
.step li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600); transform: rotate(-45deg);
}

/* ---------- Recursos ---------- */
#recursos { background: linear-gradient(180deg, var(--blue-700), var(--blue-800)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 30px 26px 28px; display: flex; flex-direction: column; align-items: center; gap: 26px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.card:hover { transform: translateY(-6px); }
.card__top { display: flex; align-items: center; gap: 18px; width: 100%; }
.card h3 { font-size: 22px; font-weight: 700; line-height: 1.2; padding-left: 18px; border-left: 1px solid #d5ddf5; }
.card__description { align-self: stretch; flex: 1; color: #4c5a8d; }
.illus { position: relative; width: 116px; height: 106px; flex: none; }
.illus::before { content: ""; position: absolute; inset: 14px 6px 0 6px; border-radius: 50%; background: var(--blue-100); }
.illus__main { position: absolute; left: 50%; top: 52%; translate: -50% -50%; font-size: 76px; color: var(--blue-700); }
.illus__badge {
  position: absolute; right: 8px; bottom: 4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-600); color: var(--white); display: grid; place-items: center; border: 3px solid var(--white); font-size: 18px;
}
.illus__badge--orange { background: var(--orange); }
.card h3 { min-width: 0; overflow-wrap: break-word; }

/* ---------- Talleres ---------- */
.workshop-activation {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center; gap: clamp(22px, 4vw, 56px);
}
.workshop-activation__image { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.workshop-activation__copy p { max-width: 38ch; margin-block: 12px 16px; }
.workshop-kit { background: linear-gradient(155deg, var(--white), #f0f5ff); }
.workshop-activation--kit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.workshop-kit__copy > p { max-width: 46ch; margin-top: 12px; }
.workshop-kit__items { display: grid; gap: 14px; margin-top: 22px; list-style: none; }
.workshop-kit__items li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px;
  align-items: center; font-size: 14px; line-height: 1.4;
}
.workshop-kit__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-700); font-size: 24px;
}
.workshop-kit__items strong { display: block; margin-bottom: 2px; color: var(--navy); font-size: 15px; }

.workshops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.workshop {
  background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 16px 40px -20px rgba(11, 26, 107, .35); transition: transform .25s;
}
.workshop:hover { transform: translateY(-4px); }
.workshop__tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--blue-100); color: var(--blue-700); }
.workshop__tag--orange { background: #ffeadb; color: #c94d00; }
.workshop__tag--cyan { background: #d9f8fb; color: #077a85; }
.workshop h3 { color: var(--navy); font-size: 20px; line-height: 1.25; }
.workshop p { font-size: 15px; flex: 1; }
.workshop__tag i { font-size: 17px; }

#virtual { background: var(--blue-100); }
.domino-choices, #domino-game { display: grid; gap: 10px; width: 100%; }
#domino-game { position: relative; isolation: isolate; }
.domino-choice {
  padding: 10px 14px; border-radius: 12px; border: 1px solid #c9d5f7; background: #f6f8ff;
}
.domino-choice summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.domino-choice p, .domino-choice ol { margin-top: 8px; }
#domino-chain { margin-top: 6px; font-weight: 600; }
#domino-game .btn { justify-content: flex-start; max-width: none; text-align: start; }
#domino-game .btn:disabled {
  color: #435382; background: var(--blue-100); cursor: default; box-shadow: none; transform: none;
}
.domino-feedback--success {
  position: relative; z-index: 2; padding: 12px 14px 12px 44px; border-radius: 14px;
  border: 1px solid #b4cdf9; background: linear-gradient(145deg, #e1f7ff, #edf3ff);
  color: var(--navy); font-weight: 600;
}
.domino-feedback--success::before, .domino-feedback--success::after {
  content: ""; position: absolute;
}
.domino-feedback--success::before {
  inset-block-start: 12px; inset-inline-start: 12px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--blue-700);
}
.domino-feedback--success::after {
  inset-block-start: 16px; inset-inline-start: 20px; width: 6px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.domino-confetti {
  position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none;
}
.domino-confetti__piece {
  position: absolute; inset-inline-start: var(--confetti-origin); inset-block-end: clamp(64px, 23%, 110px);
  width: 7px; height: 11px; border-radius: 2px; background: var(--confetti-color); opacity: 0;
  animation: domino-confetti-flight var(--confetti-duration) ease-out var(--confetti-delay) both;
}
.domino-confetti__piece:nth-child(3n) { height: 7px; border-radius: 50%; }
.domino-confetti__piece:nth-child(4n + 1) { width: 5px; height: 13px; }
@keyframes domino-confetti-flight {
  0% { opacity: 0; transform: translate3d(-50%, 0, 0) scale(.5); }
  14% { opacity: 1; }
  62% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--confetti-x) * .72), var(--confetti-y), 0)
      rotate(calc(var(--confetti-spin) * .68));
    animation-timing-function: ease-in;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--confetti-x)), calc(var(--confetti-y) * .52), 0)
      rotate(var(--confetti-spin)) scale(.65);
  }
}

/* ---------- Orientación ---------- */
#orientacion { background: radial-gradient(800px 400px at 80% 0%, rgba(47, 107, 255, .6), transparent 60%), linear-gradient(180deg, var(--blue-700), var(--blue-900)); }
.help {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .94); color: var(--navy); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow);
}
.help__head { display: flex; align-items: center; gap: 18px; max-width: 420px; }
.help__icon { font-size: 52px; color: var(--blue-700); }
.help h2 { font-size: 24px; font-weight: 800; font-style: italic; color: var(--blue-800); }
.help p { font-size: 14px; color: #4c5a8d; }
.help__links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 30px;
  border: 1.5px solid #c9d5f7; background: var(--white); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s;
}
.pill:hover { background: var(--blue-100); border-color: var(--blue-500); }
.pill i { font-size: 20px; color: var(--blue-700); }
.pill { color: var(--navy); }
.pill .chev { font-size: 14px; }
.topics { display: flex; justify-content: center; gap: 24px; margin-top: 56px; flex-wrap: wrap; }
.topic {
  display: flex; align-items: center; gap: 16px; padding: 22px 30px; border-radius: 18px; min-width: 220px;
  background: var(--glass); border: 1.5px solid var(--glass-border); font-weight: 600; line-height: 1.25; font-size: 17px;
  backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.topic:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.topic i { font-size: 42px; color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); padding: 56px 0 32px; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer__sep { width: 1px; height: 40px; background: rgba(255, 255, 255, .5); }
.tagline { position: relative; font-size: clamp(22px, 3vw, 30px); font-weight: 700; font-style: italic; }
.tagline .script { font-size: 1.15em; color: var(--orange-2); padding: 0 .1em; }
.swoosh--small { width: 160px; margin: 0 auto; }
.footer__copy { font-size: 12px; opacity: .6; }

/* ---------- Chatbot Lía ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 18px; border-radius: 40px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: var(--white); font-weight: 700;
  box-shadow: 0 14px 30px -8px rgba(255, 107, 15, .75), 0 0 0 4px rgba(255, 255, 255, .18);
  transition: transform .2s, padding .2s;
}
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab i { font-size: 28px; }
.chat-fab__label { font-size: 15px; white-space: nowrap; }
.chat-fab__close { display: none; }
.chat-fab.is-open { padding: 0; width: 60px; justify-content: center; }
.chat-fab.is-open .chat-fab__open, .chat-fab.is-open .chat-fab__label { display: none; }
.chat-fab.is-open .chat-fab__close { display: block; font-size: 24px; }
.chat-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--orange-2);
  animation: ping 2.4s ease-out infinite; pointer-events: none;
}
.chat-fab.is-open::after { display: none; }
@keyframes ping { 0% { opacity: .8; transform: scale(.95); } 80%, 100% { opacity: 0; transform: scale(1.15); } }

.chat {
  position: fixed; right: 22px; bottom: 96px; z-index: 95;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #f5f7ff; color: var(--navy); border-radius: 24px;
  box-shadow: 0 30px 70px -20px rgba(2, 10, 80, .7), 0 0 0 1px rgba(255, 255, 255, .4);
  animation: chatIn .25s ease;
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chat__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: var(--white);
  background: radial-gradient(240px 120px at 90% 0%, rgba(34, 224, 240, .35), transparent 70%), linear-gradient(140deg, var(--blue-600), var(--blue-900));
}
.chat__avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--white); color: var(--orange); font-size: 24px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.chat__head > div { flex: 1; min-width: 0; }
.chat__name { display: block; font-family: var(--script); font-weight: 400; font-size: 24px; line-height: 1.1; }
.chat__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee07a; box-shadow: 0 0 8px #3ee07a; flex: none; }
.chat__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.chat__close:hover { background: rgba(255, 255, 255, .15); }

.chat__body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg p + ol, .msg ul + p, .msg ol + p { margin-top: 8px; }
.msg ul, .msg ol { padding-left: 20px; display: grid; gap: 4px; }
.msg--bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -10px rgba(11, 26, 107, .45); }
.msg--bot strong { color: var(--blue-700); }
.msg--user { align-self: flex-end; background: var(--blue-600); color: var(--white); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg--error { background: #fff1e8; color: #a33d00; }
.msg--typing { display: flex; gap: 5px; padding: 15px 16px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); animation: blink 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 12px; }
.chat__chips[hidden] { display: none; }
.chat__chips button {
  padding: 7px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; text-align: left;
  background: var(--white); color: var(--blue-700); border: 1.5px solid #c9d5f7; transition: background .2s, border-color .2s;
}
.chat__chips button:hover { background: var(--blue-100); border-color: var(--blue-500); }
.chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--white); border-top: 1px solid #e1e7fa; }
.chat__form textarea {
  flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 11px 14px; border-radius: 20px;
  border: 1.5px solid #d5ddf5; background: #f5f7ff; font: inherit; font-size: 14.5px; color: var(--navy); outline: none;
}
.chat__form textarea:focus { border-color: var(--blue-500); background: var(--white); }
.chat__send {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 20px; color: var(--white);
  background: linear-gradient(180deg, var(--orange-2), var(--orange)); transition: opacity .2s, transform .2s;
}
.chat__send:hover { transform: scale(1.06); }
.chat__send:disabled { opacity: .5; cursor: default; transform: none; }
.chat__disclaimer { display: flex; gap: 6px; padding: 0 14px 12px; background: var(--white); font-size: 11px; line-height: 1.4; color: #6b77a3; }
.chat__disclaimer i { font-size: 14px; margin-top: 1px; }
.chat :focus-visible, .chat-fab:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Animación de aparición ---------- */
.reveal.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal:is(.is-visible, :focus-within) { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .domino-confetti { display: none; }
  .reveal.will-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-hero__layout { grid-template-columns: minmax(0, 1fr); }
  .page-hero__visual { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 520px; }
  .learn { grid-template-columns: 1fr; }
  .learn__side { padding-left: 0; border-left: 0; }
  .cards, .steps, .workshops { grid-template-columns: 1fr 1fr; }
  .reading-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick__item:nth-child(3) { border-left: 0; }
  .quick__item:nth-child(n+3) { border-top: 1px solid #d5ddf5; }
  .stats__grid { gap: 16px; }
  .card { min-width: 0; }
  .card__top { flex-direction: column; text-align: center; }
  .card h3 { border-left: 0; padding-left: 0; }
  .stat { padding: 18px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .resource-grid > article { grid-column: span 2; }
  .resource-grid > article:nth-child(3):last-child { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  .home-team { grid-template-columns: minmax(0, 1fr); }
  .workshop-activation { grid-template-columns: 1fr; }
  .header.has-menu .menu-btn { display: grid; }
  .header.has-menu .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); padding: 8px 16px 20px; border-bottom: 1px solid var(--header-divider);
    max-height: calc(100dvh - 72px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .header.has-menu .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .header:not(.has-menu) .header__inner { flex-wrap: wrap; height: auto; gap: 8px; padding-block: 12px; }
  .header:not(.has-menu) .nav { flex-basis: 100%; flex-wrap: wrap; gap: 8px 18px; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--header-divider); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--blue-700); }
  .stats__grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 36px; }
  .hero__copy { --hero-copy-offset: 44px; }
  .hero__title { font-size: clamp(32px, 12vw, 42px); }
  .hero__ctas .btn { width: 100%; }
  .bubble { padding: 7px 14px; }
  .chip { width: 36px; height: 32px; }
  .screen--main .play { width: 46px; height: 46px; }
  .cards, .steps, .workshops, .quick { grid-template-columns: 1fr; }
  .reading-grid, .reading-grid--three { grid-template-columns: 1fr; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid #d5ddf5; }
  .learn__side .reading-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__top { flex-direction: column; text-align: center; }
  .card h3 { border-left: 0; padding-left: 0; }
  .help { padding: 24px 20px; }
  .help__links, .pill { width: 100%; }
  .pill .chev { margin-left: auto; }
  .topic { width: 100%; }
  .footer__sep { display: none; }
  .title:has(.sparks) { padding-right: 30px; }
  .sparks { right: 0; }
  .chat-fab { right: 16px; bottom: 16px; height: 56px; }
  .chat-fab__label { display: none; }
  .chat-fab { padding: 0; width: 56px; justify-content: center; }
  .chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-fab { display: none; }
  .msg { max-width: 92%; }
}

/* ---------- Aviso proyecto universitario ---------- */
.ucci-disclaimer {
  background: #111827; color: #fff; text-align: center;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  padding: 8px 16px; position: relative; z-index: 60;
}
