/* ==========================================================================
   Carrusel «Webs»: los cuatro visuales. Las marcas son inventadas y las fotos, las de las webs de ejemplo de Estilos.
   El estado de partida es el FINAL (sin JS o con movimiento reducido se ve así); las animaciones solo existen con el banner activo.
   ========================================================================== */
html:not(.js) .carrusel img[data-src] { display: none; }
.w-ejemplo { position: absolute; z-index: 4; top: 10px; right: 10px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--ink-inverse); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; }
.w-marco { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); box-shadow: 0 18px 34px -20px rgba(17, 17, 17, .4); }
.w-barra { flex: none; height: 26px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 500 12px/1 var(--font-mono); color: var(--muted); }

/* B1 · ¿A cuál llamarías? */
.decide { gap: 12px; }
.decide__cab { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.decide__cab .w-ejemplo { position: static; flex: none; }
.decide__q { margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.1; }
.decide__webs { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 14px; }
.decide__web { appearance: none; position: relative; display: block; height: 100%; min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; border-radius: var(--r-s); transition: transform 300ms var(--ease); }
.decide__web .w-marco { height: 100%; }
.decide__web:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.decide__web.is-elegida .w-marco { border: 2px solid var(--accent); }
@media (hover: hover) and (pointer: fine) { .decide__web:hover { transform: translateY(-3px); } }
.decide__msg { flex: none; margin: 0; min-height: 3.1em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.4; transition: opacity 300ms var(--ease); }
.decide__msg strong { display: block; font-weight: 600; }
.decide__msg span { color: var(--accent); font-weight: 600; }
.js .decide__msg:not(.is-on) { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .js .decide__msg:not(.is-on) { opacity: 1; visibility: visible; } }

/* La web de 2008 (descuidada a propósito) */
.vieja { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #FFFFCC; color: #000080; font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive; border: 3px outset #C9C9C9; }
.vieja__cab { flex: none; padding: 6px 4px; text-align: center; color: #FFFF00; font: 700 italic clamp(15px, 1.5vw, 22px)/1.05 "Times New Roman", Times, serif; background: linear-gradient(to bottom, #FF00CC 0%, #3300FF 55%, #00CCFF 100%); text-shadow: 2px 2px 0 #000000; }
.vieja__menu { flex: none; display: flex; justify-content: space-around; padding: 3px 2px; background: linear-gradient(to bottom, #E8E8E8, #9A9A9A); border: 2px outset #FFFFFF; font: 700 12px/1.1 "Times New Roman", Times, serif; color: #0000EE; text-decoration: underline; }
.vieja__c { flex: none; padding: 3px 0; text-align: center; background: #FF0000; color: #FFFF00; font-size: clamp(14px, 1.3vw, 18px); font-weight: 700; line-height: 1.1; }
.vieja__cuerpo { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 5px; overflow: hidden; }
.vieja__f { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; image-rendering: pixelated; border: 3px ridge #FFD700; }
.vieja__txt { flex: none; font-size: clamp(12px, 1vw, 14px); line-height: 1.12; color: #CC0000; text-align: center; }
.vieja__pie { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 2px 4px; background: #000000; color: #00FF00; font: 12px/1.15 "Courier New", Courier, monospace; }
.vieja__visitas { padding: 0 3px; border: 1px inset #666666; white-space: nowrap; }

/* La web cuidada */
.cuidada { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; color: #F7F3EC; background: #0D2230; }
.cuidada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.cuidada__velo { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 16, 22, .5) 0%, rgba(10, 16, 22, 0) 30%, rgba(10, 16, 22, 0) 45%, rgba(10, 16, 22, .78) 100%); }
.cuidada__menu { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font: 500 12px/1 var(--font-text); letter-spacing: .06em; }
.cuidada__menu span:first-child { font: 400 15px/1 Georgia, "Times New Roman", serif; letter-spacing: .3em; text-transform: uppercase; }
.cuidada__pie { position: relative; display: grid; gap: 12px; justify-items: start; padding: 16px; }
.cuidada__h { font: 400 clamp(26px, 2.9vw, 42px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.cuidada__b { padding: 9px 14px; border-radius: var(--r-pill); background: #F7F3EC; color: #1B2A33; font: 600 13px/1 var(--font-text); white-space: nowrap; }

/* B2 · portátil con la portada de NORTE, que se desplaza en bucle */
.portatil { position: relative; flex: none; margin: 0 auto; width: 100%; max-width: 760px; filter: drop-shadow(0 24px 22px rgba(17, 17, 17, .28)); }
.portatil .w-ejemplo { top: auto; bottom: 34px; }
.portatil__tapa { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 9px solid #17171A; border-bottom-width: 14px; border-radius: 16px 16px 0 0; background: #F3EFE8; container-type: inline-size; }
.portatil__base { height: 14px; margin: 0 -3.5%; background: linear-gradient(to bottom, #B8B5AD, #76736C); border-radius: 0 0 14px 14px; }
.portatil__pagina { position: absolute; inset: 0; overflow: hidden; color: #F4F3F0; background: #2A2521; }
/* B2: una sola foto de interior a pantalla completa (original de 2048 px, servida a 2x del tamaño en pantalla), con la barra y el titular encima */
.n-foto, .n-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.n-foto img { object-fit: cover; object-position: 50% 55%; transform-origin: 62% 52%; }
.n-velo { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 12, 10, .72), rgba(14, 12, 10, .38) 38%, rgba(14, 12, 10, 0) 64%), linear-gradient(to bottom, rgba(14, 12, 10, .3), rgba(14, 12, 10, 0) 22%); }
.n-titular { position: absolute; z-index: 2; left: 5cqw; bottom: 6cqw; max-width: 64%; margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: max(26px, 9cqw); line-height: 1; letter-spacing: -.01em; color: #FFFFFF; text-shadow: 0 1px 18px rgba(14, 12, 10, .35); }
.n-barra { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1.5cqw 3cqw; background: rgba(17, 17, 17, .62); color: #F4F3F0; }
.n-marca { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: max(14px, 3.8cqw); line-height: 1; letter-spacing: .03em; }
.n-enlaces { font: 500 max(12px, 1.9cqw)/1 var(--font-text); letter-spacing: .04em; }

/* B3 · la web por capas */
.capas { flex: 1 1 0; min-height: 0; }
.capa { position: relative; flex: none; display: grid; gap: 8px; padding: clamp(14px, 2.2vh, 22px) clamp(16px, 2vw, 26px); border-bottom: 1px solid var(--line); }
.capa:last-child { border-bottom: 0; }
.capa__e { font: 500 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.capa__t { margin: 0; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.28; font-weight: 500; }
.capa--foto { flex: 1 1 0; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.capa__foto { position: relative; display: block; min-height: 0; border-radius: var(--r-s); overflow: hidden; }
.capa__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.capa__b { position: absolute; right: clamp(24px, 2.6vw, 38px); bottom: clamp(22px, 3vh, 34px); padding: 13px 18px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; line-height: 1.1; text-align: center; }

/* B4 · los tres clics en un móvil */
.tres { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; justify-content: center; }
.movilito { position: relative; height: 100%; max-height: 620px; aspect-ratio: 9 / 18.6; overflow: hidden; border: 8px solid #17171A; border-radius: 34px; background: #F3EFE8; box-shadow: 0 26px 40px -20px rgba(17, 17, 17, .45); }
.pantalla { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 21% 8% 8%; color: #2A2521; font-family: var(--font-text); }
.pantalla__m { flex: none; font: 400 14px/1 Georgia, serif; letter-spacing: .24em; text-transform: uppercase; }
.pantalla__foto { display: block; position: relative; width: 100%; flex: 1 1 0; min-height: 0; border-radius: 10px; overflow: hidden; }
.pantalla__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.pantalla__b { flex: none; position: relative; padding: 11px 6px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; line-height: 1.1; text-align: center; }
.pantalla__c { flex: none; display: block; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; line-height: 1; color: var(--ink-2); background: #fff; }
.pantalla__c b { font-weight: 500; }
.pantalla--1 { opacity: 0; visibility: hidden; }
.aviso { position: absolute; z-index: 3; left: 5%; right: 5%; top: 5%; display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--ink); color: var(--ink-inverse); font-size: 12px; line-height: 1.15; font-weight: 600; box-shadow: 0 10px 18px -8px rgba(17, 17, 17, .6); }
.aviso svg { width: 20px; height: 20px; fill: none; stroke: #8FA2FF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.toque { position: absolute; z-index: 2; left: 50%; bottom: 7%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 3px solid #8FA2FF; opacity: 0; pointer-events: none; }
.tres__lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.tres__lista li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.25; font-weight: 500; }
.tres__n { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 500 15px/1 var(--font-mono); }
.banner__destacada { margin: 0; color: var(--accent); font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(18px, 1.65vw, 24px); line-height: 1.08; text-transform: uppercase; }
.banner__paso { margin: 0; font-weight: 600; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.3; }

/* ---- Animaciones de los visuales: solo con la sección a la vista y su banner activo ---- */
@media (prefers-reduced-motion: no-preference) {
  .carrusel.is-visible .is-activo .vieja__c { animation: w-parpadeo 1.1s steps(1, end) infinite; }
  @keyframes w-parpadeo { 0%, 55% { color: #FFFF00; background: #FF0000; } 56%, 100% { color: #FF0000; background: #FFFF00; } }

  /* B2: acercamiento muy lento de la foto (1 → 1,06 en 10 s, ida y vuelta); en pausa si el banner no está a la vista */
  .n-foto img { animation: n-zoom 10s ease-in-out infinite alternate; animation-play-state: paused; will-change: transform; }
  .carrusel.is-visible .is-activo .n-foto img { animation-play-state: running; }
  @keyframes n-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }

  .carrusel.is-visible .is-activo .capa { animation: w-capa 9s linear infinite both; }
  .carrusel.is-visible .is-activo .capa:nth-of-type(2) { animation-delay: 3s; }
  .carrusel.is-visible .is-activo .capa:nth-of-type(3) { animation-delay: 6s; }
  @keyframes w-capa { 0%, 30% { opacity: 1; background: var(--accent-soft); } 34%, 96% { opacity: .38; background: transparent; } 100% { opacity: 1; background: var(--accent-soft); } }

  .carrusel.is-visible .is-activo .pantalla--1 { visibility: visible; animation: w-p1 9s linear infinite both; }
  .carrusel.is-visible .is-activo .pantalla--2 { animation: w-p2 9s linear infinite both; }
  .carrusel.is-visible .is-activo .aviso { animation: w-aviso 9s var(--ease) infinite both; }
  .carrusel.is-visible .is-activo .toque--1 { animation: w-toque1 9s linear infinite both; }
  .carrusel.is-visible .is-activo .toque--2 { animation: w-toque2 9s linear infinite both; }
  .carrusel.is-visible .is-activo .tres__lista li:nth-child(1) { animation: w-n1 9s linear infinite both; }
  .carrusel.is-visible .is-activo .tres__lista li:nth-child(2) { animation: w-n2 9s linear infinite both; }
  .carrusel.is-visible .is-activo .tres__lista li:nth-child(3) { animation: w-n3 9s linear infinite both; }
  .carrusel.is-visible .is-activo .pantalla__c b { animation: w-relleno 9s steps(8, end) infinite both; display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
  @keyframes w-p1 { 0%, 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
  @keyframes w-p2 { 0%, 28% { opacity: 0; } 31%, 100% { opacity: 1; } }
  @keyframes w-relleno { 0%, 33% { max-width: 0; } 48%, 100% { max-width: 12em; } }
  @keyframes w-aviso { 0%, 66% { opacity: 0; transform: translateY(-140%); } 70%, 96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-140%); } }
  @keyframes w-toque1 { 0%, 18% { opacity: 0; transform: scale(.5); } 22% { opacity: 1; transform: scale(1); } 28%, 100% { opacity: 0; transform: scale(1.3); } }
  @keyframes w-toque2 { 0%, 55% { opacity: 0; transform: scale(.5); } 59% { opacity: 1; transform: scale(1); } 65%, 100% { opacity: 0; transform: scale(1.3); } }
  @keyframes w-n1 { 0%, 28% { opacity: 1; } 31%, 96% { opacity: .4; } 100% { opacity: 1; } }
  @keyframes w-n2 { 0%, 28% { opacity: .4; } 31%, 62% { opacity: 1; } 65%, 100% { opacity: .4; } }
  @keyframes w-n3 { 0%, 62% { opacity: .4; } 65%, 96% { opacity: 1; } 100% { opacity: .4; } }
}
.carrusel:not(.is-visible) * { animation-play-state: paused; }

/* B2 entre 721 y 899 px: «DESCONFIANZA» no cabe en la columna de texto y empujaba el texto debajo del portátil. Una columna: texto arriba, portátil debajo */
@media (min-width: 721px) and (max-width: 899px) {
  .banner--portatil { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; }
  .banner--portatil .portatil { max-width: min(560px, calc((100svh - 560px) * 1.6)); }
}

@media (max-width: 720px) {
  .decide { gap: 8px; }
  .decide__webs { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vieja__cab { padding: 3px; font-size: 15px; }
  .vieja__menu { padding: 1px 2px; }
  .vieja__cuerpo { flex-direction: row; padding: 3px; }
  .vieja__f { width: 42%; flex: none; }
  .vieja__txt { flex: 1; align-self: center; }
  .vieja__pie span:last-child { display: none; }
  .cuidada__menu { padding: 8px 10px; }
  .cuidada__pie { padding: 8px 10px; gap: 6px; grid-template-columns: 1fr auto; align-items: end; }
  .cuidada__h { font-size: min(22px, 3svh); }
  .cuidada__b { padding: 7px 9px; font-size: 12px; }
  .decide__msg { min-height: 4.2em; }
  .n-enlaces { display: none; }
  .portatil { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; max-width: none; }
  .portatil__tapa { flex: 1 1 0; min-height: 0; aspect-ratio: auto; border-width: 6px; border-bottom-width: 9px; border-radius: 12px 12px 0 0; }
  .portatil__base { flex: none; height: 9px; margin: 0; }
  .capa { padding: 7px 12px; gap: 3px; }
  .capa__t { line-height: 1.25; }
  .capa__b { right: 18px; bottom: 13px; padding: 9px 12px; font-size: 14px; }
  .tres { gap: 14px; justify-content: start; min-height: 182px; }
  .movilito { min-width: 104px; border-width: 5px; border-radius: 20px; }
  .pantalla { gap: 6px; padding: 24% 5% 7%; }
  .pantalla__m { font-size: 12px; }
  .pantalla__c { padding: 6px 3px; font-size: 12px; white-space: nowrap; }
  .portatil .w-ejemplo { bottom: 20px; }
  .pantalla__b { padding: 7px 4px; font-size: 12px; }
  .toque { width: 34px; height: 34px; margin-left: -17px; }
  .aviso { padding: 6px; gap: 5px; }
  .aviso svg { width: 16px; height: 16px; }
  .tres__lista { gap: 10px; }
  .tres__lista li { grid-template-columns: 30px 1fr; gap: 8px; }
  .tres__n { width: 30px; height: 30px; font-size: 13px; }
}
@media (max-width: 720px) and (max-height: 720px) {
  .vieja__menu, .vieja__pie { display: none; }
  .vieja__cuerpo { padding: 2px 3px; }
  .vieja__txt { line-height: 1.05; }
  .cuidada__menu { padding: 5px 10px; }
  .cuidada__pie { padding: 5px 10px; }
  .cuidada__h { font-size: 15px; }
}
