/* wiplay-web-club.css — capa de estilo común de las cards de la web de club (web2024/clubhome/cc*).
   La carga home-ace.jsp cuando la home lleva la cabecera ccHeader. Cada card conserva su <style>
   propio; aquí va solo lo transversal: tokens, cabeceras de sección, superficie / sombra / hover de
   las tarjetas, carteles sin recortar y los estados que pone wiplay-web-club.js (clases ccx-*).
   Todo cuelga de :is(.cc-home-wrap,.ccx-web) para ganar por especificidad a los <style> de cada card, que van
   más abajo en el documento. Sin JS la web se ve igual de bien: los efectos son un añadido.

   Subpáginas (listado de torneos, circuito, detalle de torneo, noticia, tienda): no tienen
   .cc-home-wrap; su <body> lleva la clase ccx-web y cargan la capa con clubhome/_ccxCapa.jspf.
   Sus tarjetas (cw-*, np-*, info-*) van en las mismas listas que las de la home. */

:is(.cc-home-wrap,.ccx-web){
  --ccx-ink:#14324f;
  --ccx-muted:#6b7d92;
  --ccx-line:#e6ebf2;
  --ccx-accent:#f3cf3d;
  --ccx-coral:#F18774;
  --ccx-r:22px;
  --ccx-r-sm:18px;
  --ccx-sh:0 1px 2px rgba(20,40,70,.04),0 8px 24px rgba(20,40,70,.06);
  --ccx-sh-up:0 2px 4px rgba(20,40,70,.05),0 22px 48px rgba(20,40,70,.14);
  --ccx-ease:cubic-bezier(.2,.7,.2,1);
}

/* ── Cabeceras de sección ─────────────────────────────────────────────────────────────────────
   Había dos familias: rótulo gris en mayúsculas de 12px (torneos, escuela, tienda…) y título
   grande (noticias, ranking, patrocinadores). Se unifican todas en el título grande. */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-title,.ccw-esc-title,.ccw-info-title,.ccw-circ-title,.ccw-tie-title,.ccw-sec-title,
  .ccw-bon-title,.ccw-con-title,.ccw-cat-title,.ccw-feat-title,.ccw-faq-title,.ccw-test-title,.cw-sec-title,.np-more-title){
  font-size:clamp(1.45rem,1.05rem + 1vw,1.9rem);font-weight:800;letter-spacing:-.5px;line-height:1.1;
  text-transform:none;color:var(--ccx-ink);text-wrap:balance;margin:0;
}
/* (van como <h2>: heredan la tipografía de titulares del club, igual que noticias o ranking) */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-esc-title,.ccw-sec-title,.ccw-bon-title,.cw-sec-title,.np-more-title){margin-bottom:18px;}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-head{align-items:center;margin-bottom:18px;}
:is(.cc-home-wrap,.ccx-web) .ccw-tie-head{align-items:center;margin-bottom:18px;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-info-head,.ccw-circ-head,.ccw-con-head,.ccw-faq-head){gap:16px;margin-bottom:18px;}

/* «Ver todos» / «Carrito»: de enlace suelto a píldora */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-all,.ccw-tie-all){
  display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:#fff;
  border:1px solid var(--ccx-line);color:var(--ccx-ink)!important;font-size:.86rem;font-weight:700;
  box-shadow:0 1px 2px rgba(20,40,70,.04);
  transition:transform .25s var(--ccx-ease),box-shadow .25s var(--ccx-ease),border-color .25s;
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-all,.ccw-tie-all):hover{text-decoration:none!important;transform:translateY(-1px);border-color:#cdd7e3;box-shadow:0 8px 20px rgba(20,40,70,.1);}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-all i{font-size:.68rem;transition:transform .25s var(--ccx-ease);}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-all:hover i{transform:translateX(3px);}

/* ── Superficie común de las tarjetas ─────────────────────────────────────────────────────────── */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.ccw-circ-card,.ccw-bon-card,.ccw-cat-card,.ccw-feat-item,.ccw-con-card,.ccw-test-card,.ccw-tile,.cw-card,.np-card,.np-share){
  border-radius:var(--ccx-r);border-color:var(--ccx-line);box-shadow:var(--ccx-sh);
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-info-row,.ccw-circ-mini){border-radius:var(--ccx-r-sm);border-color:var(--ccx-line);box-shadow:var(--ccx-sh);}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.ccw-circ-card,.ccw-info-row,.ccw-cat-card,.ccw-feat-item,.ccw-tile,.cw-card,.np-card){
  transition:transform .35s var(--ccx-ease),box-shadow .35s var(--ccx-ease),border-color .35s;
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.ccw-circ-card,.ccw-info-row,.ccw-cat-card,.ccw-tile,.cw-card,.np-card):hover{
  transform:translateY(-5px);box-shadow:var(--ccx-sh-up);border-color:#dbe3ee;
}

/* Foco que sigue al puntero (wiplay-web-club.js pone --ccx-mx / --ccx-my) */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-esc-card,.ccw-stat,.cw-card,.np-card){position:relative;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.ccw-info-row,.ccw-circ-mini,.ccw-stat,.ccw-tile,.cw-card,.np-card)::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:4;opacity:0;transition:opacity .35s;
  background:radial-gradient(280px circle at var(--ccx-mx,50%) var(--ccx-my,50%),rgba(243,207,61,.17),transparent 70%);
}
:is(.cc-home-wrap,.ccx-web) .ccw-stat::after{background:radial-gradient(200px circle at var(--ccx-mx,50%) var(--ccx-my,50%),rgba(255,255,255,.2),transparent 70%);}
@media (hover:hover){
  :is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.ccw-info-row,.ccw-circ-mini,.ccw-stat,.ccw-tile,.cw-card,.np-card):hover::after{opacity:1;}
}

/* ── Torneos y escuela: tarjeta ───────────────────────────────────────────────────────────────── */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-grid,.cw-grid){grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px;}
:is(.cc-home-wrap,.ccx-web) .ccw-esc-grid{gap:20px;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.cw-card){display:flex;flex-direction:column;isolation:isolate;}
:is(.cc-home-wrap,.ccx-web) .ccw-esc-card{isolation:isolate;}

/* Imagen: capa propia para poder ampliarla al pasar el ratón sin mover el resto. La imagen sigue
   llegando como background-image en línea; el elemento la esconde (size 0) y la pinta ::before. */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media){position:relative;overflow:hidden;isolation:isolate;height:auto;aspect-ratio:16/10;}
/* La .ph de una noticia sin foto ya es absoluta; el icono de torneo sin cartel va centrado por flex */
:is(.cc-home-wrap,.ccx-web) .ccw-tor-grid.pocos .ccw-tor-img,
:is(.cc-home-wrap,.ccx-web) .ccw-esc-grid.pocos .ccw-esc-img{aspect-ratio:auto;}
/* Rejilla de carteles verticales (.ccx-altos lo pone el JS): imagen cuadrada para que se lean */
:is(.cc-home-wrap,.ccx-web) .ccw-tor-grid.ccx-altos:not(.pocos) .ccw-tor-img,
:is(.cc-home-wrap,.ccx-web) .ccw-esc-grid.ccx-altos:not(.pocos) .ccw-esc-img,
:is(.cc-home-wrap,.ccx-web) .cw-grid.ccx-altos .cw-card-img{aspect-ratio:1/1;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media)[style*="background-image"]{background-size:0 0;background-repeat:no-repeat;background-color:#0f2238;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media)[style*="background-image"]::before{
  content:'';position:absolute;inset:0;z-index:-1;background-image:inherit;background-size:cover;background-position:center;background-repeat:no-repeat;
  transition:transform .7s var(--ccx-ease);
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.cw-card,.np-card):hover :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media)::before{transform:scale(1.06);}
/* Cartel (.ccx-poster lo pone el JS cuando recortar la imagen se comería más del 15%): se ve entero
   sobre un fondo desenfocado de sí mismo, el mismo lenguaje que los banners destacados. */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media).ccx-poster::before{inset:-28px;filter:blur(24px) saturate(1.35) brightness(.72);transform:scale(1.08);}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media).ccx-poster::after{
  content:'';position:absolute;inset:10px;z-index:-1;background-image:inherit;background-size:contain;background-position:center;background-repeat:no-repeat;
  filter:drop-shadow(0 10px 22px rgba(0,0,0,.42));transition:transform .6s var(--ccx-ease);
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.cw-card,.np-card):hover .ccx-poster::before{transform:scale(1.16);}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.cw-card,.np-card):hover .ccx-poster::after{transform:scale(1.035);}

/* Fecha en ficha de calendario y flecha de «abrir» (las inserta el JS sobre la imagen) */
:is(.cc-home-wrap,.ccx-web) .ccx-date{
  position:absolute;top:12px;left:12px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:50px;
  padding:8px 9px 7px;border-radius:14px;background:rgba(255,255,255,.93);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  color:var(--ccx-ink);line-height:1;box-shadow:0 6px 18px rgba(9,20,38,.25);
}
:is(.cc-home-wrap,.ccx-web) .ccx-date b{font-size:1.3rem;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;}
:is(.cc-home-wrap,.ccx-web) .ccx-date small{margin-top:4px;font-size:.62rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#d2553c;white-space:nowrap;}
:is(.cc-home-wrap,.ccx-web) .ccx-go{
  position:absolute;right:12px;bottom:12px;z-index:2;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.94);color:var(--ccx-ink);box-shadow:0 6px 18px rgba(9,20,38,.25);
  opacity:0;transform:translateY(8px) scale(.9);transition:opacity .3s var(--ccx-ease),transform .3s var(--ccx-ease);
}
:is(.cc-home-wrap,.ccx-web) .ccx-go svg{width:14px;height:14px;display:block;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.cw-card):hover .ccx-go{opacity:1;transform:none;}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-grid.pocos .ccx-go{display:none;}
@media (hover:none){:is(.cc-home-wrap,.ccx-web) .ccx-go{opacity:1;transform:none;}}

:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-body,.cw-card-body){padding:16px 18px 18px;flex:1;}
:is(.cc-home-wrap,.ccx-web) .ccw-esc-body{padding:16px 18px 18px;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-badge,.ccw-esc-badge,.cw-card-badge){display:inline-block;font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:4px 10px;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-name,.ccw-esc-name,.cw-card-name){font-size:1.03rem;font-weight:800;line-height:1.3;letter-spacing:-.2px;color:var(--ccx-ink);margin-top:10px;text-wrap:balance;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-date,.cw-card-date){margin-top:6px;font-variant-numeric:tabular-nums;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-grid,.ccw-esc-grid).pocos :is(.ccw-tor-body,.ccw-esc-body){padding:30px 36px;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-grid,.ccw-esc-grid).pocos :is(.ccw-tor-name,.ccw-esc-name){font-size:1.5rem;letter-spacing:-.5px;line-height:1.15;}
@container (max-width:620px){:is(.cc-home-wrap,.ccx-web) .ccw-tor-grid.pocos .ccw-tor-body{padding:18px 20px 20px;}}
@media (max-width:720px){:is(.cc-home-wrap,.ccx-web) .ccw-esc-grid.pocos .ccw-esc-body{padding:18px 20px 20px;}}

/* Torneo en curso: fuera el relleno ámbar; aro degradado que gira y píldora «en directo» */
@property --ccx-a{syntax:'<angle>';inherits:false;initial-value:0deg;}
@keyframes ccxSpin{to{--ccx-a:360deg;}}
@keyframes ccxPulse{0%{box-shadow:0 0 0 0 rgba(26,26,26,.5);}70%{box-shadow:0 0 0 7px rgba(26,26,26,0);}100%{box-shadow:0 0 0 0 rgba(26,26,26,0);}}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-card.is-live{background:#fff;border-color:transparent;}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-card.is-live::before{
  content:'';position:absolute;inset:0;z-index:3;border-radius:inherit;padding:2px;pointer-events:none;
  background:conic-gradient(from var(--ccx-a),#f4b350,#F18774,#f3cf3d,#f4b350);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  animation:ccxSpin 6s linear infinite;
}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-star{top:12px;right:12px;z-index:5;gap:7px;padding:5px 11px;background:linear-gradient(135deg,#f8c964,#f4a93a);box-shadow:0 6px 16px rgba(9,20,38,.25);}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-star i{display:none;}
:is(.cc-home-wrap,.ccx-web) .ccw-tor-star::before{content:'';width:7px;height:7px;border-radius:50%;background:#1a1a1a;animation:ccxPulse 1.8s infinite;}

/* ── Botones: mismo radio y destello al pasar ─────────────────────────────────────────────────── */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-btn,.ccw-esc-btn,.ccw-tie-btn,.ccw-tpr-go,.ccw-epr-go){
  position:relative;overflow:hidden;border-radius:14px;font-weight:800;
  transition:transform .25s var(--ccx-ease),box-shadow .25s var(--ccx-ease);
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-btn,.ccw-esc-btn,.ccw-tie-btn){box-shadow:0 8px 20px rgba(243,207,61,.32);}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-btn.ver,.ccw-esc-btn.off){box-shadow:none;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-esc-btn,.ccw-tie-btn):hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(243,207,61,.45);}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-btn,.ccw-esc-btn,.ccw-tie-btn,.ccw-tpr-go,.ccw-epr-go):not(.ver):not(.off)::after{
  content:'';position:absolute;top:0;bottom:0;left:-70%;width:45%;pointer-events:none;transform:skewX(-18deg);
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);transition:left .7s var(--ccx-ease);
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-esc-btn,.ccw-tie-btn,.ccw-tpr-go,.ccw-epr-go):hover::after,
:is(.cc-home-wrap,.ccx-web) .ccw-tor-card:hover .ccw-tor-btn::after{left:125%;}

/* ── Información del club ─────────────────────────────────────────────────────────────────────── */
:is(.cc-home-wrap,.ccx-web) .ccw-info-ico{border-radius:14px;transition:transform .35s var(--ccx-ease);}
:is(.cc-home-wrap,.ccx-web) .ccw-info-row:hover .ccw-info-ico{transform:scale(1.08) rotate(-6deg);}

/* ── Acciones: de franja de color a todo el ancho a ficha con el icono en un chip de ese color ── */
:is(.cc-home-wrap,.ccx-web) .ccw-tile{position:relative;display:flex;flex-direction:column;gap:16px;padding:18px 18px 20px;border-color:var(--ccx-line);}
:is(.cc-home-wrap,.ccx-web) .ccw-tile-ico{width:50px;height:50px;border-radius:15px;font-size:20px;box-shadow:0 8px 18px rgba(20,40,70,.18);transition:transform .35s var(--ccx-ease);}
:is(.cc-home-wrap,.ccx-web) .ccw-tile:hover .ccw-tile-ico{transform:scale(1.08) rotate(-6deg);}
:is(.cc-home-wrap,.ccx-web) .ccw-tile-txt{padding:0;}
:is(.cc-home-wrap,.ccx-web) .ccw-tile-t{font-size:1.05rem;font-weight:800;letter-spacing:-.2px;color:var(--ccx-ink);}
:is(.cc-home-wrap,.ccx-web) .ccw-tile::before{
  content:'';position:absolute;top:18px;right:18px;width:32px;height:32px;border-radius:50%;
  background:#f1f4f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314324f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6'/%3E%3C/svg%3E") center/13px no-repeat;
  transition:transform .3s var(--ccx-ease),background-color .3s;
}
:is(.cc-home-wrap,.ccx-web) .ccw-tile:hover::before{transform:translate(2px,-2px);background-color:var(--ccx-accent);}

/* ── Portada: cifras ──────────────────────────────────────────────────────────────────────────── */
:is(.cc-home-wrap,.ccx-web) .ccw-stat{transition:transform .3s var(--ccx-ease),background .3s,border-color .3s;}
:is(.cc-home-wrap,.ccx-web) .ccw-stat:hover{transform:translateY(-3px);background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.28);}
:is(.cc-home-wrap,.ccx-web) .ccw-stat b{font-variant-numeric:tabular-nums;}

/* ── Carteles de los banners destacados: inclinación 3D con brillo (JS) ───────────────────────── */
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tpr-poster,.ccw-epr-poster){position:relative;will-change:transform;}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tpr-poster,.ccw-epr-poster)::after{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(circle at var(--ccx-gx,50%) var(--ccx-gy,0%),rgba(255,255,255,.42),transparent 58%);
}
:is(.cc-home-wrap,.ccx-web) :is(.ccw-tpr-poster,.ccw-epr-poster).ccx-tilt::after{opacity:1;}

/* En estrecho el cartel del banner pasaba a 16:9 recortado (se comía medio cartel): ahora se ve entero
   sobre el fondo desenfocado del propio banner. Mismos cortes que ccTorneos (@container) y ccEscuelas. */
@container (max-width:760px){
  :is(.cc-home-wrap,.ccx-web) .ccw-tpr-poster:not(.sin){aspect-ratio:4/3;background-size:contain;background-color:transparent;box-shadow:none;border-radius:0;}
}
@media (max-width:860px){
  :is(.cc-home-wrap,.ccx-web) .ccw-epr-poster:not(.sin){aspect-ratio:4/3;background-size:contain;background-color:transparent;box-shadow:none;border-radius:0;}
}

/* ── Subpáginas ───────────────────────────────────────────────────────────────────────────────── */
/* Listado de torneos y pruebas de un circuito: puede haber cientos de tarjetas (histórico del club);
   las que están fuera de pantalla no se pintan hasta que se acercan. */
.ccx-web .cw-card{content-visibility:auto;contain-intrinsic-size:auto 420px;}
.ccx-web .cw-sec{padding-top:2.6rem;}
/* El pie compensa en estrecho el padding de .cc-home-wrap; las subpáginas no lo tienen y desbordaba 14px */
@media (max-width:820px){body.ccx-web .ccw-foot{margin:12px 0 0;}}
/* Noticia: «Más noticias» con el mismo título y las mismas tarjetas que la home */
.ccx-web .np-more-title{font-size:clamp(1.45rem,1.05rem + 1vw,1.9rem);}
.ccx-web .np-card-ttl{letter-spacing:-.2px;}
.ccx-web .np-share{box-shadow:var(--ccx-sh);border-color:var(--ccx-line);}
/* Detalle de torneo (el contenido lo pinta su propio JS). body.ccx-web para empatar en especificidad
   con sus reglas body.cc-light y ganar por orden: la capa se enlaza al final del <head>. */
body.ccx-web :is(.info-card,.ph-card){border-radius:var(--ccx-r);box-shadow:var(--ccx-sh);border-color:var(--ccx-line);}
body.ccx-web .info-flyer{position:relative;border-radius:var(--ccx-r);border-color:transparent;box-shadow:0 2px 4px rgba(20,40,70,.05),0 18px 44px rgba(20,40,70,.16);will-change:transform;}
body.ccx-web .info-flyer::after{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(circle at var(--ccx-gx,50%) var(--ccx-gy,0%),rgba(255,255,255,.42),transparent 58%);
}
body.ccx-web .info-flyer.ccx-tilt::after{opacity:1;}
body.ccx-web .info-row-icon{width:32px;height:32px;border-radius:10px;}
body.ccx-web .cat-card{border-radius:14px;transition:transform .3s var(--ccx-ease),box-shadow .3s var(--ccx-ease),border-color .3s;}
body.ccx-web a.cat-card:hover{transform:translateY(-3px);box-shadow:var(--ccx-sh-up);border-color:#dbe3ee;}

/* ── Menú: sección que se está viendo (JS) ────────────────────────────────────────────────────── */
.ccw-nav:not(.is-hero) .ccw-nav-menu a.ccx-active{color:#14324f;}
.ccw-nav:not(.open) .ccw-nav-menu a.ccx-active::after{transform:scaleX(1);}

/* ── Barra de progreso de lectura (JS) ────────────────────────────────────────────────────────── */
.ccx-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:1002;pointer-events:none;transform-origin:0 50%;
  transform:scaleX(var(--ccx-p,0));background:linear-gradient(90deg,#F18774,#f3cf3d);opacity:0;transition:opacity .3s;}
.ccx-progress.on{opacity:1;}
[dir="rtl"] .ccx-progress{transform-origin:100% 50%;}

/* ── Aparición al hacer scroll (JS) ───────────────────────────────────────────────────────────────
   Se usan translate / scale sueltos (no transform) para no pisar los transform de cada card. El JS
   quita las dos clases al acabar, así que la transición propia de la card vuelve a mandar. */
.ccx-rv{opacity:0;translate:0 26px;scale:.985;}
.ccx-rv.ccx-in{opacity:1;translate:0 0;scale:1;
  transition:opacity .7s var(--ccx-ease,ease) var(--ccx-d,0ms),translate .7s var(--ccx-ease,ease) var(--ccx-d,0ms),scale .7s var(--ccx-ease,ease) var(--ccx-d,0ms)!important;}
@media print{.ccx-rv{opacity:1!important;translate:none!important;scale:none!important;}.ccx-progress{display:none;}}

@media (prefers-reduced-motion:reduce){
  :is(.cc-home-wrap,.ccx-web) .ccw-tor-card.is-live::before,:is(.cc-home-wrap,.ccx-web) .ccw-tor-star::before{animation:none;}
  :is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-card,.ccw-esc-card,.ccw-circ-card,.ccw-info-row,.ccw-cat-card,.ccw-tile,.cw-card,.np-card):hover{transform:none;}
  :is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media)::before,:is(.cc-home-wrap,.ccx-web) :is(.ccw-tor-img,.ccw-esc-img,.cw-card-img,.np-card-media)::after{transition:none;}
  .ccx-rv{opacity:1;translate:none;scale:none;}
}
