/* RCF · capa dinámica (se carga después de rcf-style.css) */
.rcfx-progreso { position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 4px; background: linear-gradient(90deg, #E50914, #FF8A91, #1D6FA5); box-shadow: 0 0 12px rgba(229,9,20,.6); transform: scaleX(0); transform-origin: left; }
/* Portada */
.rcfx-hero { background-size: 160% 160% !important; animation: rcfxFondo 16s ease-in-out infinite alternate; }
.rcfx-part { position: absolute; z-index: 1; bottom: -40px; pointer-events: none; opacity: 0; animation: rcfxSube linear infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.rcfx-btn-rojo { position: relative; overflow: hidden; animation: rcfxLatido 2.6s ease-in-out infinite; }
.rcfx-btn-rojo::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: rcfxBrillo 3.6s ease-in-out infinite; }
.rcfx-logo { animation: rcfxEntra .9s both; }
.rcfx-chips li { transition: transform .25s ease, background .25s ease; } .rcfx-chips li:hover { transform: translateY(-4px) scale(1.06); background: rgba(229,9,20,.55); }
/* Franja de datos */
.rcfx-dato span { display: inline-block; transition: transform .45s cubic-bezier(.3,1.7,.5,1); } .rcfx-dato:hover span { transform: scale(1.35) rotate(-10deg); }
/* Servicios: foco de luz y borde que brilla */
.rcfx-card { position: relative; overflow: hidden; }
.rcfx-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(229,9,20,.13), transparent 70%); }
.rcfx-card:hover::after { opacity: 1; }
.rcfx-card .rcfx-icono { transition: transform .5s cubic-bezier(.3,1.7,.5,1); } .rcfx-card:hover .rcfx-icono { transform: scale(1.25) rotate(-8deg); }
.rcfx-card.destello { animation: rcfxDestello 1.6s ease; }
.rcfx-activo { animation: rcfxLatido 2.2s ease-in-out infinite; }
/* Orientador */
.rcfx-orienta { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 360px at 90% 0%, rgba(229,9,20,.28), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(29,111,165,.45), transparent 70%), linear-gradient(160deg, #081a2e, #0d2f4f); }
.rcfx-orienta .rcfx-encabezado h2 { color: #fff; } .rcfx-orienta .rcfx-encabezado p { color: #c8d6e5; } .rcfx-orienta .rcfx-sobretitulo { color: #FF8A91; }
.ori { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; align-items: start; margin-top: 2rem; }
.ori-op { display: grid; gap: .7rem; }
.ori-btn { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .95rem 1.1rem; text-align: left; font: 700 .98rem/1.35 'Inter',sans-serif; color: #e8f0f8; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.16); border-radius: 16px; cursor: pointer; transition: all .25s ease; }
.ori-btn .e { flex: none; display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.5rem; background: rgba(255,255,255,.1); border-radius: 14px; transition: transform .4s cubic-bezier(.3,1.7,.5,1); }
.ori-btn:hover { transform: translateX(8px); border-color: #FF8A91; background: rgba(255,255,255,.12); } .ori-btn:hover .e { transform: scale(1.18) rotate(-8deg); }
.ori-btn[aria-pressed="true"] { color: #fff; background: linear-gradient(120deg, #E50914, #b8070f); border-color: #fff; box-shadow: 0 10px 26px rgba(229,9,20,.45); transform: translateX(8px); }
.ori-res { position: sticky; top: 100px; min-height: 380px; padding: 2rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; backdrop-filter: blur(8px); box-shadow: 0 20px 44px rgba(0,0,0,.3); }
.ori-vacio { display: grid; place-items: center; min-height: 320px; text-align: center; color: #c8d6e5; }
.ori-vacio .g { font-size: 4rem; animation: rcfxFlota 4s ease-in-out infinite; }
.ori-det.anima { animation: rcfxPanel .5s ease; }
.ori-cab { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.ori-emo { position: relative; flex: none; display: grid; place-items: center; width: 78px; height: 78px; font-size: 2.3rem; background: rgba(229,9,20,.25); border-radius: 50%; }
.ori-emo::before, .ori-emo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #FF8A91; animation: rcfxOnda 2.4s ease-out infinite; } .ori-emo::after { animation-delay: 1.2s; }
.ori-det h3 { margin: 0; font: 800 1.35rem 'Poppins','Inter',sans-serif; color: #fff; }
.ori-det p { margin: .4rem 0 1rem; line-height: 1.6; color: #d8e3ee; }
.ori-serv { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ori-serv button { padding: .5rem .95rem; font: 800 .85rem 'Inter',sans-serif; color: #081a2e; background: #fff; border: 0; border-radius: 999px; cursor: pointer; transition: transform .2s, box-shadow .2s; } .ori-serv button:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.ori-nota { margin: 0 0 1rem !important; padding: .75rem 1rem; font-size: .9rem; background: rgba(255,255,255,.1); border-left: 5px solid #FF8A91; border-radius: 0 12px 12px 0; }
.ori-lleva { margin: 0 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .35rem; } .ori-lleva li { font-size: .92rem; color: #d8e3ee; } .ori-lleva li::before { content: "✔"; margin-right: .5rem; color: #6EE7A8; font-weight: 800; }
.ori-lleva-t { margin: 0 0 .4rem; font: 800 .75rem 'Inter',sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #FF8A91; }
.ori-cta { display: flex; flex-wrap: wrap; gap: .7rem; } .ori-cta a { display: inline-block; padding: .8rem 1.3rem; font: 800 .95rem 'Inter',sans-serif; text-decoration: none; border-radius: 999px; transition: transform .2s; } .ori-cta a:hover { transform: translateY(-3px); }
.ori-cta .p { color: #fff; background: #E50914; box-shadow: 0 8px 20px rgba(229,9,20,.5); } .ori-cta .s { color: #fff; border: 2px solid rgba(255,255,255,.6); }
/* Proceso: el sobre viaja por la línea */
.rcfx-sobre { position: absolute; left: 13px; top: 0; z-index: 3; font-size: 1.7rem; line-height: 1; pointer-events: none; transition: top .6s cubic-bezier(.5,1.4,.5,1); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); animation: rcfxFlota 3s ease-in-out infinite; }
.rcfx-pasos li.hecho .n::after { content: ""; }
/* Principios con logos */
.rcfx-princ { position: relative; overflow: hidden; }
.rcfx-princ .logo { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto .7rem; font-size: 2rem; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .5s cubic-bezier(.3,1.7,.5,1), box-shadow .3s; }
.rcfx-princ .logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.rcfx-princ:hover .logo { transform: scale(1.18) rotate(-8deg); box-shadow: 0 0 0 5px rgba(255,255,255,.18), 0 0 28px var(--pc, #E50914); }
.rcfx-princ:hover { border-color: var(--pc, #E50914); background: color-mix(in srgb, var(--pc, #E50914) 22%, transparent); }
/* Botón flotante */
.rcfx-flota { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; font: 800 .92rem 'Inter',sans-serif; color: #fff; text-decoration: none; background: #E50914; border-radius: 999px; box-shadow: 0 10px 26px rgba(229,9,20,.55); animation: rcfxLatido 2.4s ease-in-out infinite; transition: opacity .3s, translate .3s; }
.rcfx-flota.oculto { opacity: 0; translate: 0 30px; pointer-events: none; }
@keyframes rcfxFondo { to { background-position: 100% 100%; } }
@keyframes rcfxSube { 0% { transform: translateY(0) rotate(0) scale(.7); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .8; } 100% { transform: translateY(-640px) rotate(24deg) scale(1.1); opacity: 0; } }
@keyframes rcfxLatido { 0%,100% { box-shadow: 0 8px 22px rgba(229,9,20,.45); } 50% { box-shadow: 0 8px 34px rgba(229,9,20,.85), 0 0 0 8px rgba(229,9,20,.15); } }
@keyframes rcfxBrillo { 0%,55% { left: -80%; } 100% { left: 140%; } }
@keyframes rcfxEntra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rcfxDestello { 0%,100% { box-shadow: none; } 30%,70% { box-shadow: 0 0 0 5px #E50914, 0 0 40px rgba(229,9,20,.6); transform: translateY(-8px); } }
@keyframes rcfxOnda { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes rcfxPanel { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rcfxFlota { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 860px) { .ori { grid-template-columns: 1fr; } .ori-res { position: static; } .rcfx-flota { right: 10px; bottom: 10px; padding: .75rem 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .rcfx-hero, .rcfx-part, .rcfx-btn-rojo, .rcfx-btn-rojo::after, .rcfx-activo, .rcfx-sobre, .ori-emo::before, .ori-emo::after, .ori-vacio .g, .rcfx-flota { animation: none !important; } }

/* ===== Servicios: carrusel 3D ===== */
.dx-oculto { display: none !important; }
.cf { position: relative; margin-top: 1rem; }
.cf-stage { position: relative; height: 470px; perspective: 1500px; overflow: hidden; touch-action: pan-y; cursor: grab; }
.cf-stage:active { cursor: grabbing; }
.cf-slide { --a: 0; --o: 0; position: absolute; left: 50%; top: 14px; width: min(390px, 80vw); min-height: 410px; margin-left: calc(min(390px, 80vw) / -2); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 26px; border: 1px solid #E2E8F0; box-shadow: 0 18px 40px rgba(15,35,60,.18);
  transform: translateX(calc(var(--o) * 62%)) translateZ(calc(var(--a) * -150px)) rotateY(calc(var(--o) * -34deg)) scale(calc(1 - var(--a) * .1));
  filter: brightness(calc(1 - var(--a) * .16)) saturate(calc(1 - var(--a) * .25)); opacity: calc(1 - max(var(--a) - 1, 0) * .4); z-index: calc(10 - var(--a) * 2);
  transition: transform .75s cubic-bezier(.3,.85,.3,1), opacity .5s, filter .5s; }
.cf-slide.lejos { opacity: 0; pointer-events: none; }
.cf-slide.act { box-shadow: 0 0 0 4px var(--c), 0 30px 60px color-mix(in srgb, var(--c) 40%, transparent); }
.cf-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem 1.2rem; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); overflow: hidden; }
.cf-top::after { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cf-num { font: 800 2.6rem/1 'Poppins','Inter',sans-serif; opacity: .85; }
.cf-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; font-size: 2.4rem; background: rgba(255,255,255,.22); border-radius: 22px; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.cf-slide.act .cf-ico { animation: rcfxFlota 3s ease-in-out infinite; }
.cf-badge { position: absolute; left: 1.5rem; bottom: .5rem; z-index: 2; padding: .2rem .7rem; font: 800 .66rem 'Inter',sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.35); border-radius: 999px; }
.cf-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.5rem 1.5rem; }
.cf-body h3 { margin: 0 0 .5rem; font: 800 1.3rem/1.25 'Poppins','Inter',sans-serif; color: #12263A; }
.cf-body p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; color: #4A5A6C; }
.cf-pedir { margin-top: auto; align-self: flex-start; padding: .65rem 1.1rem; font: 800 .88rem 'Inter',sans-serif; text-decoration: none; color: #fff; background: var(--c); border-radius: 999px; box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .2s; } .cf-pedir:hover { transform: translateY(-3px); }
.cf-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.cf-flecha { display: grid; place-items: center; width: 50px; height: 50px; font-size: 1.3rem; color: #fff; background: #12263A; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.25); transition: transform .2s, background .2s; } .cf-flecha:hover { transform: scale(1.12); background: #E50914; }
.cf-puntos { display: flex; gap: .5rem; }
.cf-punto { position: relative; width: 30px; height: 10px; padding: 0; overflow: hidden; background: #CBD5E1; border: 0; border-radius: 10px; cursor: pointer; transition: width .3s, background .3s; }
.cf-punto.on { width: 56px; } .cf-punto.on::after { content: ""; position: absolute; inset: 0; background: #E50914; transform-origin: left; animation: cfProg var(--t, 6s) linear forwards; } .cf-punto.pausa.on::after { animation-play-state: paused; }
.cf-ver { display: block; margin: 1.4rem auto 0; padding: .7rem 1.4rem; font: 800 .88rem 'Inter',sans-serif; color: #12263A; background: transparent; border: 2px solid #12263A; border-radius: 999px; cursor: pointer; transition: all .2s; } .cf-ver:hover { background: #12263A; color: #fff; }
@keyframes cfProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 700px) { .cf-slide { transform: translateX(calc(var(--o) * 78%)) translateZ(calc(var(--a) * -150px)) rotateY(calc(var(--o) * -24deg)) scale(calc(1 - var(--a) * .1)); } .cf-stage { height: 500px; } }
@media (prefers-reduced-motion: reduce) { .cf-slide, .cf-punto.on::after { transition: none !important; animation: none !important; } .cf-slide.act .cf-ico { animation: none !important; } .cf-punto.on::after { transform: none; } }

/* ===== Móvil: nada se sale de la pantalla ===== */
html, body { overflow-x: clip; max-width: 100%; }
.rcfx-hero, .rcfx-seccion, .rcfx-cinta { max-width: 100vw; }
.rcfx-hero-grid > *, .rcfx-dos-col > *, .rcfx-contacto-caja > *, .rcfx-equipo > * { min-width: 0; }
.rcfx-logo { max-width: 100%; object-fit: contain; }
.rcfx-hero-visual { max-width: 100%; box-sizing: border-box; }
.rcfx-conexion { max-width: 100%; }
.rcfx-lead, .rcfx-hero-texto, .rcfx-contenedor { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .rcfx-hero-grid, .rcfx-dos-col, .rcfx-contacto-caja, .rcfx-equipo { grid-template-columns: minmax(0, 1fr); }
  .rcfx-hero-grid { gap: 2rem; }
}
@media (max-width: 600px) {
  .rcfx-hero { padding: 6rem 1.1rem 5rem; }
  .rcfx-logo { max-height: 62px; margin-bottom: .9rem; }
  .rcfx-lead { font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.4rem; }
  .rcfx-btn { padding: .9rem 1.2rem; font-size: .95rem; }
  .rcfx-chips li { font-size: .78rem; }
  .rcfx-hero-visual { padding: 1rem .7rem .8rem; border-radius: 22px; }
  .rcfx-visual-pie { font-size: .78rem; }
  .rcfx-cinta-grid { gap: .7rem; }
  .rcfx-dato { padding: 1rem .6rem; }
  .rcfx-dato strong { font-size: .95rem; }
  .rcfx-encabezado h2, .rcfx-que-texto h2 { font-size: 1.55rem; }
  .rcfx-part { display: none; }
  /* orientador */
  .ori-btn { padding: .8rem .9rem; font-size: .92rem; } .ori-btn .e { width: 40px; height: 40px; font-size: 1.3rem; }
  .ori-btn:hover, .ori-btn[aria-pressed="true"] { transform: none; }
  .ori-res { padding: 1.3rem 1.1rem; min-height: 0; } .ori-emo { width: 62px; height: 62px; font-size: 1.9rem; } .ori-det h3 { font-size: 1.15rem; }
  .ori-cta a { width: 100%; text-align: center; box-sizing: border-box; }
  /* carrusel */
  .cf-stage { height: 440px; } .cf-slide { top: 8px; width: 82vw; margin-left: -41vw; min-height: 390px; }
  .cf-top { padding: 1.1rem 1.2rem; } .cf-ico { width: 62px; height: 62px; font-size: 2rem; } .cf-num { font-size: 2.1rem; } .cf-body { padding: 1.1rem 1.2rem 1.3rem; }
  .cf-flecha { width: 44px; height: 44px; } .cf-punto { width: 18px; } .cf-punto.on { width: 38px; }
  /* proceso y principios */
  .rcfx-sobre { left: 9px; font-size: 1.4rem; }
  .rcfx-princ .logo { width: 62px; height: 62px; }
  /* botón flotante: solo ícono */
  .rcfx-flota { right: 12px; bottom: 12px; width: 54px; height: 54px; padding: 0; justify-content: center; font-size: 1.4rem; }
  .rcfx-flota .t { display: none; }
}
