/* R&R / Inicio premium — estilos encapsulados, no modifica otras páginas. */
.ryr-home-carousel{--ryr-timing:6s;position:relative;isolation:isolate;height:clamp(520px,48vw,700px);overflow:hidden;background:#080b0f;padding:0!important}
.ryr-slides{position:absolute;inset:0}
.ryr-home-carousel .ryr-slide{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;z-index:0;overflow:hidden;transition:opacity 1.1s cubic-bezier(.22,.68,.22,1),visibility 1.1s; background:#101216}
.ryr-home-carousel .ryr-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.ryr-home-carousel .ryr-slide-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.09);transition:transform 8s cubic-bezier(.15,.65,.25,1);will-change:transform}
.ryr-home-carousel .ryr-slide.is-active .ryr-slide-media{transform:scale(1)}
.ryr-home-carousel .ryr-slide-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(2,4,8,.98) 0%,rgba(5,7,10,.93) 28%,rgba(5,6,9,.62) 57%,rgba(8,10,14,.26) 100%),linear-gradient(0deg,rgba(0,0,0,.43),transparent 40%)}
.ryr-home-carousel .ryr-slide-shell{position:relative;z-index:2;height:100%;display:flex;align-items:center}
.ryr-home-carousel .ryr-slide-content{padding:76px 64px 112px 80px;max-width:860px;transform:translateY(20px);opacity:.75;transition:transform .9s ease .15s,opacity .9s ease .15s}
.ryr-home-carousel .ryr-slide.is-active .ryr-slide-content{transform:translateY(0);opacity:1}
.ryr-home-carousel .ryr-slide-eyebrow{display:inline-flex;padding:9px 13px;border:1px solid rgba(255,91,108,.32);background:rgba(130,12,28,.17);color:#ff7984;border-radius:8px;letter-spacing:.12em;text-transform:uppercase;font-size:clamp(10px,1vw,12px);font-weight:800}
.ryr-home-carousel .ryr-slide h1{max-width:740px;font-family:Impact,'Arial Narrow Bold','Arial Black',sans-serif;font-style:italic;text-transform:uppercase;letter-spacing:.015em;font-size:clamp(48px,6.4vw,92px);line-height:1.03;margin:24px 0 20px;text-shadow:0 10px 32px rgba(0,0,0,.5)}
.ryr-home-carousel .ryr-slide h1 span{color:#ff3349}
.ryr-home-carousel .ryr-slide p{max-width:550px;font:400 clamp(14px,1.4vw,17px)/1.7 system-ui,-apple-system,'Segoe UI',sans-serif;color:#e2e5ed}
.ryr-home-carousel .actions{margin-top:30px}
.ryr-home-carousel .ryr-slide-nav{z-index:7;position:absolute;top:50%;width:62px;height:62px;display:grid;place-items:center;transform:translateY(-50%);border:1px solid rgba(228,237,250,.43);border-radius:999px;color:#fff;background:linear-gradient(142deg,rgba(255,255,255,.18),rgba(150,166,184,.08) 34%,rgba(2,5,10,.66) 76%),rgba(3,7,12,.45);box-shadow:0 12px 34px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(0,0,0,.65);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);overflow:hidden;transition:background .25s ease,transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.ryr-home-carousel .ryr-slide-nav::before{content:"";position:absolute;inset:2px;border-radius:inherit;border:1px solid rgba(255,255,255,.07);pointer-events:none}
.ryr-home-carousel .ryr-slide-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 3px #0008)}
.ryr-home-carousel .ryr-slide-prev{left:clamp(14px,3vw,50px)}
.ryr-home-carousel .ryr-slide-next{right:clamp(14px,3vw,50px)}
.ryr-home-carousel .ryr-slide-nav:hover{border-color:rgba(255,255,255,.75);background:linear-gradient(160deg,#e94250,#a20c1a);box-shadow:0 14px 40px rgba(217,40,50,.29),inset 0 1px 0 rgba(255,255,255,.38);transform:translateY(-50%) scale(1.08)}
.ryr-home-carousel .ryr-slide-nav:active{transform:translateY(-50%) scale(.98)}
.ryr-home-carousel button:focus-visible,.ryr-brands button:focus-visible{outline:3px solid #ff6572;outline-offset:4px}
.ryr-home-carousel .ryr-slide-controls{position:absolute;z-index:7;left:50%;bottom:37px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:8px 12px;background:rgba(5,7,12,.6);border:1px solid rgba(255,255,255,.15);border-radius:999px;backdrop-filter:blur(10px);box-shadow:0 8px 30px #0007}
.ryr-home-carousel .ryr-slide-dots{position:static;transform:none;display:flex;align-items:center;gap:8px}
.ryr-home-carousel .ryr-slide-dots button{height:7px;width:19px;border-radius:99px;background:#d4dbe75c;transition:width .3s,background .3s;cursor:pointer}
.ryr-home-carousel .ryr-slide-dots button.active{width:44px;background:linear-gradient(90deg,#ff6376,#e11d32)}
.ryr-home-carousel .ryr-slide-progress{height:3px;background:rgba(255,255,255,.17);position:absolute;bottom:0;left:0;right:0;z-index:6;overflow:hidden}
.ryr-home-carousel .ryr-slide-progress-fill{width:100%;height:100%;background:linear-gradient(90deg,#ff5260,#ba1528);transform-origin:left;transform:scaleX(0)}
.ryr-home-carousel.ryr-js-ready.ryr-playing .ryr-slide-progress-fill{animation:ryr-hero-progress var(--ryr-timing) linear forwards}
@keyframes ryr-hero-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Fallback del slider: funciona con CSS si no se puede ejecutar JS. */
.ryr-home-carousel:not(.ryr-js-ready) .ryr-slide{visibility:visible;animation:ryr-static-fallback 18s linear infinite;pointer-events:none}
.ryr-home-carousel:not(.ryr-js-ready) .ryr-slide:nth-child(1){animation-delay:0s}
.ryr-home-carousel:not(.ryr-js-ready) .ryr-slide:nth-child(2){animation-delay:-12s}
.ryr-home-carousel:not(.ryr-js-ready) .ryr-slide:nth-child(3){animation-delay:-6s}
.ryr-home-carousel:not(.ryr-js-ready) .ryr-slide.is-active{pointer-events:auto}
@keyframes ryr-static-fallback{0%,28%{opacity:1;z-index:1}33%,95%{opacity:0;z-index:0}100%{opacity:1;z-index:1}}
/* Marcas: DOS grupos idénticos, 50% de la tira = bucle perfecto, SIN JS. */
.ryr-brands{background:linear-gradient(180deg,#101318,#090c10);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.09);padding:45px 0 50px;overflow:hidden}
.ryr-brands .ryr-brands-intro{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-bottom:26px}
.ryr-brands .ryr-brands-intro h2{font-family:Impact,'Arial Narrow Bold','Arial Black',sans-serif;font-style:italic;font-size:clamp(27px,3.3vw,44px);margin:8px 0 10px}
.ryr-brands .ryr-brands-intro h2 span{color:#ff3349}
.ryr-brands .ryr-brands-intro p{color:#9da5b2;font:400 13px/1.5 system-ui,sans-serif;margin:0;max-width:660px}
.ryr-brands .ryr-brands-frame{overflow:hidden;position:relative;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.ryr-brands .ryr-brands-track{display:flex;flex-wrap:nowrap;gap:0;align-items:stretch;width:max-content;will-change:transform;animation:ryr-brand-infinite 40s linear infinite;animation-play-state:running}
.ryr-brands .ryr-brands-group{flex:0 0 auto;display:flex;align-items:center;gap:16px;padding-right:16px;min-width:max-content}
.ryr-brands .ryr-brand-tile{width:205px;height:86px;flex:none;padding:15px 22px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.018) 38%,rgba(0,0,0,.17));box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 9px 25px rgba(0,0,0,.16)}
.ryr-brands .ryr-brand-tile img{max-height:100%;width:100%;height:100%;object-fit:contain;display:block}
@keyframes ryr-brand-infinite{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
/* Banda de marcas: animación automática, continua, sin controles ni pausa por hover. */
@media(max-width:800px){
 .ryr-home-carousel{height:590px}
 .ryr-home-carousel .ryr-slide-content{padding:78px 38px 125px 36px}
 .ryr-home-carousel .ryr-slide h1{font-size:clamp(42px,8.2vw,74px)}
 .ryr-home-carousel .ryr-slide-nav{width:46px;height:46px;top:auto;bottom:76px;transform:none}
 .ryr-home-carousel .ryr-slide-nav:hover{transform:scale(1.05)}
 .ryr-home-carousel .ryr-slide-nav svg{width:19px;height:19px}
 .ryr-home-carousel .ryr-slide-prev{left:16px}
 .ryr-home-carousel .ryr-slide-next{right:16px}
 .ryr-home-carousel .ryr-slide-controls{bottom:80px}
 .ryr-brands .ryr-brands-intro{align-items:flex-start;flex-direction:column}
 .ryr-brands .ryr-brand-tile{width:174px;height:72px;padding:11px 15px}
}
@media(max-width:440px){
 .ryr-home-carousel{height:620px}
 .ryr-home-carousel .ryr-slide-content{padding:45px 16px 126px}
 .ryr-home-carousel .ryr-slide h1{font-size:clamp(39px,10.4vw,56px)}
 .ryr-home-carousel .ryr-slide-content p{font-size:14px}
 .ryr-home-carousel .ryr-slide-shade{background:linear-gradient(90deg,#030508ef 0%,#07090bdf 66%,#07090b99 100%)}
 .ryr-home-carousel .actions{gap:8px}
 .ryr-home-carousel .actions a{font-size:12px;padding:11px}
 .ryr-home-carousel .ryr-slide-controls{bottom:35px}
 .ryr-home-carousel .ryr-slide-nav{bottom:30px;width:40px;height:40px}
 .ryr-home-carousel .ryr-slide-prev{left:10px}.ryr-home-carousel .ryr-slide-next{right:10px}
 .ryr-home-carousel .ryr-slide-dots button{width:12px}
 .ryr-home-carousel .ryr-slide-dots button.active{width:26px}
}
/* Movimiento automático. Con preferencia de movimiento reducido, se suaviza la transición,
   pero no se suspende por falta de controles para reanudarla. */
@media(prefers-reduced-motion:reduce){
 .ryr-home-carousel .ryr-slide{transition-duration:.25s}
 .ryr-home-carousel .ryr-slide-media{transition-duration:0s}
 .ryr-home-carousel .ryr-slide-content{transition-duration:.25s}
}


/* R&R CORRECCION V8 =====================================================
   Estas reglas ganan a la regla global `prefers-reduced-motion` del tema.
   La banda tarda 110 segundos por vuelta, sin pausa ni botones.
   La portada usa 6s / configurable en data/inicio.js y cambia con JS.
   ======================================================================= */
.ryr-brands .ryr-brands-track {
  animation-name: ryr-brand-infinite !important;
  animation-duration: 30s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
}
/* Mantener el fallback visual activo aun si no carga JS. */
.ryr-home-carousel:not(.ryr-js-ready) .ryr-slide {
  animation-duration: 18s !important;
  animation-iteration-count: infinite !important;
  animation-timing-function: linear !important;
}
/* Efectos fade, zoom y progreso no son anulados por reglas genéricas. */
.ryr-home-carousel .ryr-slide {
  transition-duration: 1s !important;
}
.ryr-home-carousel .ryr-slide-media {
  transition-duration: 8s !important;
}
.ryr-home-carousel .ryr-slide-content {
  transition-duration: .8s !important;
}
.ryr-home-carousel.ryr-js-ready.ryr-playing .ryr-slide-progress-fill {
  animation-duration: var(--ryr-timing, 6s) !important;
}


/* ==============================================================
   R&R | SOLO 8 LOGOS REALES 21-10-2026
   Fotos normalizadas a lienzo blanco 900x360 y sin texto debajo.
   Se respeta la duración de animación personalizada: 30s.
   ============================================================== */
.ryr-brands .ryr-brands-group { gap: 18px; padding-right: 18px; }
.ryr-brands .ryr-brand-tile {
  box-sizing: border-box;
  width: 248px;
  height: 118px;
  flex: 0 0 248px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ryr-brands .ryr-brand-tile img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
@media(max-width:720px) {
  .ryr-brands .ryr-brand-tile {
    width: 196px;
    height: 99px;
    flex-basis: 196px;
    padding: 6px;
    border-radius: 12px;
  }
}
.ryr-brands .ryr-brand-tile img[src*="marca-sna-oil-seal.webp"] {
    transform: scale(1.3);
    transform-origin: center;
}
/* SEO 2026: los títulos de las diapositivas secundarias son H2 y se ven idénticos a H1. */
.ryr-home-carousel .ryr-slide h2{max-width:740px;font-family:Impact,"Arial Narrow Bold","Arial Black",sans-serif;font-style:italic;text-transform:uppercase;letter-spacing:.015em;font-size:clamp(48px,6.4vw,92px);line-height:1.03;margin:24px 0 20px;text-shadow:0 10px 32px rgba(0,0,0,.5)}
.ryr-home-carousel .ryr-slide h2 span{color:#ff3349}
