.portada {
  background: radial-gradient(ellipse at 0 18%, #1c2460, transparent 36%),
    radial-gradient(ellipse at 85% 24%, #0a2942, transparent 38%), #091432;
}

.portada .wrap { max-width: min(100%, 1536px); padding-inline: 6.25%; }
.portada nav { background: #091432b8; }
.portada .brand { font-size: 32px; white-space: nowrap; }
.portada .seal { width: 52px; height: 48px; border-radius: 14px; font-size: 29px; }
.portada nav ul { gap: clamp(12px, 2.6vw, 42px); margin: 0; }
.portada nav ul a { font-size: 18px; }
.portada nav a[aria-current=page] { background: none; color: #a8e9ff; box-shadow: inset 0 -2px #59ccf7; }
.portada .news-bar { max-width: 1344px; margin: 7px max(6.25%, calc((100% - 1344px) / 2)) 0; }
.portada .news-layout { padding: 6px 14px; }
.portada .news-layout strong { font-size: 15px; }

.portada main { isolation: isolate; overflow: clip; }

/* Fondo de las fichas y de la portada. */
.portada-luces {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, #103ea64d, transparent 55%),
    radial-gradient(ellipse at 90% 40%, #00897b39, transparent 50%);
}
.portada .portada-luces {
  position: absolute;
  inset: 0 0 auto;
  height: min(850px, 100%);
  opacity: .65;
  mask-image: linear-gradient(#000 58%, transparent);
}
.portada-luces::before,
.portada-luces::after {
  content: "";
  position: absolute;
  inset: 14% -16% 2%;
  background: linear-gradient(167deg, transparent 22%, #084ce380 43%, #34a9ff 51%, #093aa875 60%, transparent 78%);
  clip-path: polygon(0 68%, 20% 63%, 40% 40%, 58% 22%, 76% 27%, 100% 59%, 76% 34%, 58% 33%, 40% 53%, 20% 67%);
  clip-path: shape(from 0% 68%, curve to 55% 22% with 25% 73% / 34% 17%, curve to 100% 58% with 75% 26% / 92% 60%, curve to 56% 34% with 84% 65% / 73% 31%, curve to 0% 68% with 36% 35% / 29% 81%, close);
  opacity: .78;
  animation: cinta-azul 10s ease-in-out infinite alternate;
}
.portada-luces::after {
  inset: 20% -17% -2%;
  background: linear-gradient(177deg, #035755 28%, #0ae3bb 50%, #0cb49e 53%, #03455048 66%, transparent 82%);
  clip-path: polygon(0 49%, 25% 65%, 46% 62%, 67% 32%, 85% 20%, 100% 25%, 85% 30%, 68% 44%, 48% 73%, 25% 76%);
  clip-path: shape(from 0% 49%, curve to 45% 62% with 9% 40% / 31% 76%, curve to 100% 25% with 61% 48% / 68% 4%, curve to 47% 74% with 79% 18% / 64% 54%, curve to 0% 49% with 31% 91% / 13% 48%, close);
  animation: cinta-turquesa 12s ease-in-out -4s infinite alternate;
}
@keyframes cinta-azul {
  from { transform: translate3d(-7%, -14%, 0) rotate(-7deg) scaleY(.92); }
  to { transform: translate3d(8%, 15%, 0) rotate(8deg) scaleY(1.15); }
}
@keyframes cinta-turquesa {
  from { transform: translate3d(7%, 16%, 0) rotate(9deg) scaleY(1.1); }
  to { transform: translate3d(-8%, -16%, 0) rotate(-8deg) scaleY(.9); }
}

.portada .hero {
  display: block;
  min-height: min(34.2vw, 526px);
  padding: clamp(30px, 2.6vw, 40px) 8.5% 42px;
}
.portada .hero > div { position: relative; z-index: 1; width: 51%; }
.portada .hero h1 { font-size: clamp(42px, 4.17vw, 64px); margin: 20px 0 16px; }
.portada .hero h1 em {
  background-image: linear-gradient(95deg, #468ff8, #60d4ee);
  padding-bottom: .18em;
  margin-bottom: -.18em;
}
.portada .hero .lead { color: #f3f6ff; font-size: clamp(17px, 1.44vw, 22px); line-height: 1.4; }
.portada .hero .cta { margin-top: 30px; gap: 20px; }
.portada .hero .btn { padding-inline: clamp(18px, 2.2vw, 34px); font-size: clamp(16px, 1.31vw, 20px); }
.portada .eyebrow { padding-block: 5px; }

.portada-moviles {
  container-type: inline-size;
  position: absolute;
  inset: 0 0 auto auto;
  width: 55.73%;
  pointer-events: none;
  transform: translate3d(0, var(--portada-offset, 0px), 0);
  aspect-ratio: 856 / 525;
}
.portada-marcos {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(14% 83%, 18% 17%, 21% 7%, 41% 3.5%, 45% 4%, 48% 11%, 46% 58%, 53% 22%, 57% 14%, 63% 13.5%, 77% 14.5%, 81% 22%, 80% 30%, 71% 89%, 69% 96%, 65% 98.5%, 48% 96%, 44% 92%, 42% 87%, 40% 90%, 20% 93%, 16% 91%);
  clip-path: shape(from 14.1% 83.5%, line to 18.3% 17%, curve to 23.3% 7.1% with 18.9% 11% / 20.8% 8%, line to 41.3% 3.6%, curve to 47.5% 11.7% with 45% 2.7% / 47.8% 6.5%, line to 45.7% 57%, line to 52.7% 22.2%, curve to 61% 13.6% with 54.1% 16.2% / 57.1% 13.3%, line to 74.5% 14.4%, curve to 80.6% 24.2% with 78.4% 14.6% / 81.5% 18.8%, line to 71% 89%, curve to 64.3% 98.4% with 70% 95% / 67.5% 98.4%, line to 48.6% 96%, curve to 42.3% 87.7% with 44.4% 95.5% / 42.7% 92%, curve to 19.8% 92.7% with 40.5% 91.1% / 27.5% 92.3%, curve to 14.1% 83.5% with 16.1% 93.3% / 13.8% 88.2%, close);
}
.portada-movil-enlace {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  transition: filter .2s;
}
.portada-movil-tests {
  clip-path: polygon(14% 83%, 18% 17%, 21% 7%, 41% 3.5%, 45% 4%, 48% 11%, 45.7% 57%, 42.3% 87.7%, 40% 90%, 20% 93%, 16% 91%);
}
.portada-movil-supuestos {
  clip-path: polygon(42.3% 87.7%, 45.7% 57%, 53% 22%, 57% 14%, 63% 13.5%, 77% 14.5%, 81% 22%, 80% 30%, 71% 89%, 69% 96%, 65% 98.5%, 48% 96%, 44% 92%);
}
.portada-pantalla {
  position: absolute;
  inset: 0;
}
.portada-movil-tests .portada-pantalla {
  background: #10294f;
  clip-path: polygon(15.3% 82%, 19.7% 14%, 21% 10%, 42% 5.6%, 45.1% 9%, 42% 81%, 39% 86%, 18% 88.3%);
  clip-path: shape(from 15.3% 82%, line to 19.6% 15.4%, curve to 24% 8.6% with 20.1% 11.2% / 21.6% 9.2%, line to 41.6% 5.7%, curve to 45% 11.3% with 43.8% 5.2% / 45.1% 7.6%, line to 41.7% 80.5%, curve to 37.8% 86.3% with 41.3% 84.4% / 39.7% 86.1%, line to 18.8% 88.3%, curve to 15.3% 82% with 16.2% 88.7% / 15% 86.7%, close);
}
.portada-movil-supuestos .portada-pantalla {
  background: #f2ede1;
  clip-path: polygon(44% 84%, 54.8% 20%, 58% 15.2%, 75% 16.3%, 78.4% 20%, 69% 89%, 66% 94.5%, 46% 91.5%);
  clip-path: shape(from 43.8% 85.3%, line to 54.3% 22.3%, curve to 59.4% 15.2% with 55.3% 17.4% / 57.1% 15.1%, line to 74.8% 16.3%, curve to 78.2% 22.7% with 77.2% 16.5% / 79% 18.4%, line to 68.8% 88.7%, curve to 64.1% 94.2% with 68% 93% / 66.4% 94.6%, line to 46.4% 91.7%, curve to 43.8% 85.3% with 44% 91.4% / 43.4% 88.7%, close);
}

.portada-captura {
  position: absolute;
  display: block;
  width: 25.700935%;
  padding-bottom: 1.156542%;
  background: #fff;
  transform-origin: top left;
}
.portada-captura img {
  display: block;
  width: 100%;
  height: auto;
}
.portada-movil-tests .portada-captura { left: 20.093458%; top: 8.761905%; transform: matrix3d(0.94926502, -0.10746396, 0, calc(-0.05802769 * (1px / 100cqw)), -0.08574406, 0.82236349, 0, calc(-0.12943591 * (1px / 100cqw)), 0, 0, 1, 0, 0, 0, 0, 1); }
.portada-movil-supuestos .portada-captura {
  left: 55.140187%; top: 14.285714%; transform: matrix3d(0.90586149, 0.02651302, 0, calc(-0.10838501 * (1px / 100cqw)), -0.18978530, 0.75177090, 0, calc(-0.11322980 * (1px / 100cqw)), 0, 0, 1, 0, 0, 0, 0, 1);
  padding-top: 2.313084%;
  background: #f2eee5;
}
.portada-movil-supuestos .portada-captura::before {
  position: absolute;
  top: 1.1%;
  left: 50%;
  width: 29%;
  aspect-ratio: 4.8;
  transform: translateX(-50%);
  border-radius: 50px;
  background: radial-gradient(circle at 82% 50%, #243244, #111827 5%, transparent 8%), #080b12;
  content: "";
}
.portada-movil-enlace:hover, .portada-movil-enlace:focus-visible { filter: brightness(1.14); }
.portada .app-row img.row-ico { object-fit: cover; }

.portada .practice-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.8vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.portada .practice-totals .card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: clamp(12px, 2.5vw, 28px) 4px;
  border-radius: clamp(12px, 2vw, 20px);
  text-align: center;
}
.portada .practice-totals strong {
  color: var(--edge);
  font-size: clamp(21px, 4.5vw, 60px);
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
}
.portada .practice-totals span {
  font-size: clamp(11px, 1.5vw, 17px);
  font-weight: 700;
  line-height: 1.3;
}
.portada .home-section { padding-block: clamp(40px, 6vw, 84px); }
.portada #apps { padding-block: clamp(36px, 5vw, 68px); }
.portada #home-apps { font-size: clamp(30px, 2.8vw, 43px); }
.portada footer { margin-top: 0; padding-block: 28px; }
.portada .answers li:hover { transform: none; }
.portada .home-apps { gap: clamp(16px, 2.2vw, 34px); margin-top: 28px; }
.portada .app-row { border-radius: 22px; padding: 22px clamp(16px, 2.2vw, 34px); }
.portada .app-row.a { background: radial-gradient(ellipse at 100% 100%, #194edc, transparent 40%), linear-gradient(145deg, #1647bc, #0e2654 72%); }
.portada .app-row.b { background: radial-gradient(ellipse at 100% 100%, #008a94, transparent 40%), linear-gradient(145deg, #098379, #083344 72%); }
.portada .app-row:hover, .portada .app-row:focus-visible { border-color: var(--edge); box-shadow: 0 12px 42px var(--glow); }
.portada .news-controls button:hover, .portada .news-controls button:focus-visible { background: #4269c25e; color: white; }

.ficha-supuestos {
  --mint: #37edcc;
  --blue: #55ead7;
  --ink-2: #c1e5e4;
  --line-2: #4adac554;
  background: radial-gradient(ellipse at 80% 15%, #0b413f, transparent 63%), #071d25;
}
.ficha-supuestos nav { background: #071d25dc; }
.ficha-supuestos .btn-dark {
  background: linear-gradient(160deg, #40e1c9, #21b39d);
  box-shadow: 0 10px 28px -12px #25debe;
  color: #041d1a;
  font-weight: 800;
}
.ficha-supuestos .btn-dark:hover {
  background: linear-gradient(160deg, #67ffe6, #16bda5);
  box-shadow: 0 10px 32px -8px #25debe;
}
.ficha-supuestos .portada-luces {
  background: radial-gradient(ellipse at 90% 40%, #00897b39, transparent 55%);
}
.ficha-supuestos .portada-luces::before {
  background: linear-gradient(167deg, transparent 22%, #08776f80 43%, #38b7c7 51%, #094d5775 60%, transparent 78%);
}
.ficha-supuestos .interior::before { display: none; }
.ficha-supuestos .study { background: #092e35e6; }
.ficha-supuestos .study::before { background: linear-gradient(90deg, transparent, #37edcc, transparent); }
.ficha-supuestos .page-head strong, .ficha-supuestos .study summary,
.ficha-supuestos .study a, .ficha-supuestos nav ul a:hover { color: #75f5df; }
.ficha-supuestos .answers li:hover { border-color: #75f5df; }
.ficha-supuestos .scroll-progress { background: linear-gradient(90deg, #008c7f, #75f5df); box-shadow: 0 0 12px #24cbbb; }

.ficha-tests {
  --line-2: #74a9ff55;
  background: radial-gradient(ellipse at 80% 15%, #122f68, transparent 63%), #08152e;
}
.ficha-tests .portada-luces {
  background: radial-gradient(ellipse at 15% 60%, #103ea64d, transparent 55%);
}
.ficha-tests .portada-luces::after {
  background: linear-gradient(177deg, #103a8a 28%, #55c7ff 50%, #3189f0 53%, #14346f48 66%, transparent 82%);
}
.ficha-tests .interior::before { display: none; }
.ficha-tests .study { background: #0d234ce6; }
.ficha-tests .study::before { background: linear-gradient(90deg, transparent, #68b8ff, transparent); }
.ficha-tests .study summary, .ficha-tests .study a { color: #a5d7ff; }
.ficha-tests .scroll-progress { background: linear-gradient(90deg, #2766ed, #72d4ff); }

@media (max-width: 1120px) {
  .portada .brand { font-size: 24px; }
  .portada nav ul { gap: 10px; }
  .portada nav ul a { font-size: 15px; }
  .portada .hero h1 { font-size: clamp(36px, 4.2vw, 48px); }
  .portada .hero .cta { gap: 10px; }
}

@media (max-width: 900px) {
  .portada nav .wrap { height: auto; min-height: 72px; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .portada nav ul { order: 3; width: 100%; flex-wrap: wrap; }
  .portada nav ul li:nth-child(n+4) { display: list-item; }
  .portada .nav-cta { display: inline-flex; }
  .portada #apps { scroll-margin-top: 130px; }
  .portada .hero { padding-bottom: 20px; }
  .portada .hero > div { width: auto; }
  .portada-moviles { position: relative; width: min(100%, 660px); margin: 16px auto 0; transform: translate3d(0, calc(var(--portada-offset, 0px) * .28), 0); }
}

@media (max-width: 600px) {
  .portada nav .wrap { height: auto; min-height: 62px; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .portada nav ul { gap: 3px 10px; }
  .portada nav ul a { font-size: 13px; }
  .portada .nav-cta { display: inline-flex; font-size: 13px; height: 36px; padding-inline: 10px; }
  .portada .brand { font-size: 19px; gap: 8px; }
  .portada .seal { width: 36px; height: 34px; font-size: 20px; border-radius: 9px; }
  .portada .hero h1 { font-size: clamp(32px, 8.3vw, 48px); }
  .portada .hero h1 em { white-space: normal; }
  .portada .hero .cta { margin-top: 22px; }
  .portada .hero .btn { height: 44px; padding-inline: 12px; font-size: 14px; }
  .portada .app-row { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .portada-luces::before, .portada-luces::after { animation: none; }
  .portada .btn::before, .portada .btn svg, .portada .row-ico, .portada .app-row .go, .portada-movil-enlace { transition: none; }
  .portada .btn:hover::before, .portada .btn:hover svg, .portada .app-row:hover,
  .portada .app-row:hover .row-ico, .portada .app-row:hover .go { transform: none; }
}

.portada .news-items.news-moving { overflow: hidden; }
.portada .news-items.news-moving li { width: max-content; overflow: visible; }
.portada .news-items:not(.news-moving) li { white-space: normal; }
