/* CLOTITEC 2026 · presentación opcional (?mejora=intro-anuncios).
   Sin fuentes, imágenes remotas ni bucle de animación añadido. Relieve ilustrativo, no cartografía del campo. */
html.intro-clotitec {
  --ic-tinta: #0f1a17;
  --ic-amarillo: #FFC93C;
  --ic-sombra: 0 3px 8px #031f1714, 0 18px 48px #031f172e;
  --ic-relieve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.5'%3E%3Cpath d='M-80 650Q100 350 340 590T800 480T1280 360M-80 680Q100 380 340 620T800 510T1280 390M-80 710Q100 410 340 650T800 540T1280 420M-80 740Q100 440 340 680T800 570T1280 450'/%3E%3C/g%3E%3Cpath fill='%23032922' fill-opacity='.18' d='M0 760Q150 580 350 700Q490 780 660 620Q800 500 980 640L1200 540V800H0Z'/%3E%3C/svg%3E");
  --ic-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.035' filter='url(%23g)' d='M0 0h120v120H0z'/%3E%3C/svg%3E");
  --ic-verde-a: #0E8A72;
  --ic-verde-m: #0a6e5a;
  --ic-verde-b: #075c4b;
  --ic-luz: radial-gradient(ellipse at 14% 2%, #ffffff1f, transparent 52%), radial-gradient(ellipse at 90% 100%, #ffc93c0d, transparent 45%);
  --ic-fondo: var(--ic-grano), var(--ic-relieve), var(--ic-luz), linear-gradient(160deg, var(--ic-verde-a) 0%, var(--ic-verde-m) 42%, var(--ic-verde-b) 100%);
  /* menús y resultado: el mismo degradado, pero translúcido para que se siga viendo el campo detrás */
  --ic-velo: var(--ic-grano), var(--ic-relieve), linear-gradient(160deg, #0E8A72e0 0%, #0a6e5ae6 42%, #075c4bf0 100%);
}
:where(html.intro-clotitec) #loader {
  background-image: var(--ic-fondo);
  background-size: 120px 120px, cover, cover, cover, cover;
  background-position: center, center bottom, center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-color: #075c4b;
}
/* Solo el velo de fondo de los menús (.gm-menu, la hoja «⋯») y del resultado sin foto aérea (.gm-modal): las hojas blancas no cambian. */
:where(html.intro-clotitec) #game-ui .gm-menu:not([hidden]),
:where(html.intro-clotitec) #game-ui .gm-modal:not(.gm-foto) {
  background-image: var(--ic-velo);
  background-size: 120px 120px, cover, cover;
  background-position: center, center bottom, center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-color: transparent;
}
:where(html.intro-clotitec) #loader {
  --golf-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --verde-texto: #0f1a17;
  --gris-texto: #435b52;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  gap: 14px;
  color: #fff;
  font-family: var(--golf-font);
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: safe center;
}
:where(html.intro-clotitec) #loader *,
:where(html.intro-clotitec) #loader *::before,
:where(html.intro-clotitec) #loader *::after { box-sizing: border-box; }
:where(html.intro-clotitec) #loader > * { min-width: 0; max-width: 100%; }
:where(html.intro-clotitec) .ic-intro { width: min(580px, 100%); }
:where(html.intro-clotitec) .ic-marcas { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 22px; }
:where(html.intro-clotitec) .ic-marcas img { box-sizing: border-box; width: 84px; height: 84px; padding: 5px; object-fit: contain; background: #fff; border-radius: 50%; box-shadow: 0 3px 8px #031f1733, 0 14px 30px #031f172e; }
:where(html.intro-clotitec) .ic-marcas .ic-clotitec { width: 176px; height: 56px; padding: 14px 16px; background: #fff; border-radius: 20px; }
:where(html.intro-clotitec) .ic-intro .ic-titulo { margin: 0; font: 800 clamp(28px, 5vw, 48px)/1.05 var(--golf-font); letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 3px 6px #032d2540; }
:where(html.intro-clotitec) #loader .ic-intro .ic-frase { margin: 12px auto 0; max-width: 28ch; color: #fff; font-size: 19px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
:where(html.intro-clotitec) #loader > p { justify-content: center; flex-wrap: wrap; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; }
:where(html.intro-clotitec) #loader .ld-pct { color: #fff; font-weight: 800; }
:where(html.intro-clotitec) #loader .bar { position: relative; width: min(360px, 85vw); height: 10px; background: #043b31; box-shadow: inset 0 1px 3px #0005, 0 1px 0 #ffffff26; }
:where(html.intro-clotitec) #loader .bar i { position: relative; overflow: hidden; border-radius: inherit; background: linear-gradient(#ffe393, #FFC93C 55%, #e8a91c); box-shadow: 0 0 14px #ffc93c80; }
/* brillo que recorre la barra; solo con movimiento permitido */
:where(html.intro-clotitec) #loader .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffffa6 50%, transparent 70%); transform: translateX(-100%); animation: icBrillo 1.8s ease-in-out infinite; }
@keyframes icBrillo { to { transform: translateX(100%); } }
/* encaja() sigue midiendo las alturas; no se fuerzan las dimensiones de la pieza publicitaria. */
:where(html.intro-clotitec) #loader .pub-pre {
  --pc-fuera: 390px;
  border-radius: 20px;
  padding: 12px;
  background: #fff;
  color: var(--ic-tinta);
  box-shadow: var(--ic-sombra);
  animation: none;
}
:where(html.intro-clotitec) #loader .pc-texto,
:where(html.intro-clotitec) #loader .pub-pre-marco { border-radius: 8px; background: #eef5f1; }
:where(html.intro-clotitec) #loader .pc-eti,
:where(html.intro-clotitec) #loader .ps-eti { color: var(--ic-tinta); background: var(--ic-amarillo); box-shadow: none; font-weight: 800; letter-spacing: .1em; }
:where(html.intro-clotitec) #loader .pc-quien { white-space: normal; overflow: visible; display: block; overflow-wrap: anywhere; }
:where(html.intro-clotitec) #loader .pc-tit { font-weight: 800; }
:where(html.intro-clotitec) #loader .pc-cuando,
:where(html.intro-clotitec) #loader .pc-cal span { color: #075c4b; }
:where(html.intro-clotitec) #loader .pc-cal,
:where(html.intro-clotitec) #loader .pc-num { background: var(--ic-amarillo); color: var(--ic-tinta); box-shadow: 0 3px 8px #0f1a1714; }
:where(html.intro-clotitec) #loader .pc-num b { color: var(--ic-tinta); }
:where(html.intro-clotitec) #loader .pc-cifra b { width: fit-content; padding: 4px 8px; border-radius: 8px; background: var(--ic-amarillo); color: var(--ic-tinta); }
:where(html.intro-clotitec) #loader :is(.pc-mas, .pub-pre-saltar, .ps-mas) { background: var(--ic-amarillo); color: var(--ic-tinta); box-shadow: 0 3px 8px #0f1a1714; }
:where(html.intro-clotitec) #loader :is(.pc-mas, .pub-pre-saltar, .pub-pre-pausa, .ps-mas, .ps-pausa) { min-height: 44px; min-width: 44px; justify-content: center; cursor: pointer; }
:where(html.intro-clotitec) #loader :is(.pub-pre-pausa, .ps-pausa) { background: #fff; color: var(--ic-tinta); }
:where(html.intro-clotitec) #loader :is(a, button):focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #075c4b; }
:where(html.intro-clotitec) #loader :is(a, button):active { transform: scale(.96); }
:where(html.intro-clotitec) #loader .pub-pre-acc { flex-wrap: wrap; }
:where(html.intro-clotitec) #loader .pub-pre-franja { position: relative; inset: auto; margin-top: 18px; width: min(440px, 100%); border-radius: 20px; background: #fff; color: #435b52; box-shadow: var(--ic-sombra); animation: none; }
:where(html.intro-clotitec) #loader .pf-l { display: flex; flex-wrap: wrap; gap: 0 3px; overflow-wrap: anywhere; }
:where(html.intro-clotitec) #loader .pf-t { color: #435b52; font-weight: 800; }
:where(html.intro-clotitec) #loader :is(.pc-pres, .pub-pre-franja, .pc-nativa) img { box-sizing: content-box; background: #fff; border-radius: 10px; padding: 8px; object-fit: contain; }
:where(html.intro-clotitec) #loader > .pub-franja { position: relative; inset: auto; margin-top: 28px; padding: 0; }
:where(html.intro-clotitec) #loader > .pub-franja p,
:where(html.intro-clotitec) #loader > .pub-franja .pub-atrib { color: #fff; background: #075c4b; border-radius: 8px; padding: 5px 8px; }
:where(html.intro-clotitec) #loader .pub-franja ul { flex-wrap: wrap; }
:where(html.intro-clotitec) #loader .pub-franja li { border-radius: 14px; min-height: 44px; box-shadow: var(--ic-sombra); }
:where(html.intro-clotitec) #loader .pub-franja img { max-width: 140px; object-fit: contain; }
/* El velo pasa delante de la pieza y detrás de la información, sin interceptar los clics. */
:where(html.intro-clotitec) #loader .pub-spot { background: #075c4b; font-family: var(--golf-font); }
:where(html.intro-clotitec) #loader .pub-spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#0f1a1770, transparent 23%, transparent 60%, #0f1a17d9); }
:where(html.intro-clotitec) #loader :is(.ps-moscas, .ps-abajo) { z-index: 1; }
:where(html.intro-clotitec) #loader .ps-mosca { background: #fff; opacity: 1; border-radius: 16px; box-shadow: var(--ic-sombra); max-width: 44%; }
:where(html.intro-clotitec) #loader .ps-mosca img { max-width: 100%; object-fit: contain; }
:where(html.intro-clotitec) #loader .ps-mosca.ps-circulo { border-radius: 50%; }
:where(html.intro-clotitec) #loader .ps-cuenta { border-radius: 20px; background: #0f1a17; padding: 10px 14px 14px 10px; box-shadow: var(--ic-sombra); backdrop-filter: none; }
:where(html.intro-clotitec) #loader .ps-reloj { width: 44px; height: 44px; background: conic-gradient(#FFC93C calc(var(--p) * 1turn), #53635d 0); }
:where(html.intro-clotitec) #loader .ps-reloj::before { background: #0f1a17; }
:where(html.intro-clotitec) #loader .ps-reloj b { color: var(--ic-amarillo); font-size: 18px; }
:where(html.intro-clotitec) #loader .ps-l1 { color: #fff; font-size: 12px; overflow-wrap: anywhere; }
:where(html.intro-clotitec) #loader .ps-eti { font-size: 11px; }
:where(html.intro-clotitec) #loader .ps-l2 { color: #fff; font-size: 13px; }
:where(html.intro-clotitec) #loader .ps-l2 b { color: var(--ic-amarillo); }
:where(html.intro-clotitec) #loader .ps-carga > i { background: var(--ic-amarillo); }
:where(html.intro-clotitec) #loader .ps-nota { font-size: 11px; padding: 6px 10px; background: #0f1a17; border-radius: 10px; }
:where(html.intro-clotitec) #loader .ps-fila { flex-wrap: wrap; }
:where(html.intro-clotitec) #loader .ps-txt { flex-direction: column; align-items: start; }
/* Solo cambian las superficies de los menús; se conserva el fondo aéreo del resultado. */
:where(html.intro-clotitec) #game-ui .gm-box { border-radius: 20px; box-shadow: var(--ic-sombra); }
:where(html.intro-clotitec) .pub-rotulo { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; border-radius: 20px; background: #fff; box-shadow: var(--ic-sombra); }
:where(html.intro-clotitec) .pub-rotulo-t { color: var(--ic-tinta); white-space: normal; }
:where(html.intro-clotitec) .pub-rotulo-l { flex-wrap: wrap; justify-content: center; min-width: 0; }
@media (max-width: 480px) {
  :where(html.intro-clotitec) #loader .ps-mas { width: 44px; height: 44px; }
  :where(html.intro-clotitec) #loader .ps-cuenta { width: 100%; }
  :where(html.intro-clotitec) #loader .ps-mas::before { background-color: var(--ic-tinta); }
  :where(html.intro-clotitec) #loader .pub-pre { --pc-fuera: 340px; }
  :where(html.intro-clotitec) .ic-marcas { margin-bottom: 16px; }
  :where(html.intro-clotitec) .ic-intro .ic-titulo { font-size: 30px; }
}
@media (max-height: 650px) {
  :where(html.intro-clotitec) #loader { gap: 8px; padding-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom)); }
  :where(html.intro-clotitec) .ic-marcas { margin-bottom: 8px; gap: 14px; }
  :where(html.intro-clotitec) .ic-marcas img { width: 44px; height: 44px; }
  :where(html.intro-clotitec) .ic-marcas .ic-clotitec { width: 136px; height: 40px; padding: 9px 12px; }
  :where(html.intro-clotitec) .ic-intro .ic-titulo { font-size: 24px; }
  :where(html.intro-clotitec) #loader .ic-intro .ic-frase { margin-top: 6px; font-size: 14px; }
  :where(html.intro-clotitec) #loader .pub-pre { --pc-fuera: 260px; }
  :where(html.intro-clotitec) #loader > .pub-franja { margin-top: 12px; }
}
@media (max-height: 450px) and (min-aspect-ratio: 4/3) {
  :where(html.intro-clotitec) .ic-intro { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
  :where(html.intro-clotitec) .ic-marcas { grid-row: span 2; margin: 0; }
  :where(html.intro-clotitec) .ic-intro .ic-titulo { font-size: 20px; }
  :where(html.intro-clotitec) #loader .pub-pre { --pc-fuera: 180px; }
}
@media (min-width: 900px) and (min-height: 1400px) and (max-aspect-ratio: 4/5) {
  :where(html.intro-clotitec) #loader { gap: 24px; }
  :where(html.intro-clotitec) .ic-intro { width: 760px; }
  :where(html.intro-clotitec) .ic-intro .ic-titulo { font-size: 68px; }
  :where(html.intro-clotitec) #loader .ic-intro .ic-frase { font-size: 26px; }
  :where(html.intro-clotitec) .ic-marcas img { width: 112px; height: 112px; }
  :where(html.intro-clotitec) .ic-marcas .ic-clotitec { width: 240px; height: 70px; }
  :where(html.intro-clotitec) #loader > p { font-size: 20px; }
  :where(html.intro-clotitec) #loader .bar { width: 520px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(html.intro-clotitec) #loader,
  :where(html.intro-clotitec) #loader *,
  :where(html.intro-clotitec) #game-ui :is(.gm-menu, .gm-hoja, .gm-modal) { animation: none !important; transition: none !important; }
  :where(html.intro-clotitec) #loader :is(a, button):active { transform: none; }
}
