/* Rock Motion FX — estilos base de los widgets */

/* ---------- Botón FX ---------- */
.rmfx-btn-wrap{line-height:1}
.rmfx-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:16px 30px;border-radius:100px;border:1px solid currentColor;font-weight:500;font-size:17px;line-height:1.3;text-decoration:none!important;cursor:pointer;transition:color .3s,background-color .3s,border-color .3s;position:relative}
.rmfx-btn--outline{background:transparent;color:inherit}
.rmfx-btn--solid{background:#0a0a0a;color:#fff;border-color:#0a0a0a}
.rmfx-btn__icon{display:inline-flex;width:20px;height:20px;flex:0 0 20px}
.rmfx-btn__icon svg{width:100%;height:100%;display:block}
.rmfx-btn.rm-btn-fill{z-index:0}

/* ---------- Título animado ---------- */
.rmfx-heading__title{margin:0;font-size:clamp(34px,5vw,72px);line-height:1.02;letter-spacing:-.03em;font-weight:500}
.rmfx-heading__hl{color:color-mix(in srgb,currentColor 42%,transparent)}

/* ---------- Marquesina ---------- */
.rmfx-marquee{display:flex;align-items:center;overflow:hidden;gap:var(--rm-gap,64px)}
.rmfx-marquee:not(:has(.rm-marquee-track)){flex-wrap:nowrap}
.rmfx-logo{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;text-decoration:none;color:inherit;transition:opacity .3s,filter .3s}
.rmfx-logo img{height:48px;width:auto;max-width:none;display:block;object-fit:contain}
.rmfx-logo__name{font-size:26px;font-weight:600;letter-spacing:-.02em;white-space:nowrap}
.rmfx-marquee--gray .rmfx-logo{filter:grayscale(1);opacity:.6}
.rmfx-marquee--gray .rmfx-logo:hover{filter:none;opacity:1}

/* ---------- Tarjeta FX (también la usan las tarjetas que se expanden) ---------- */
.rmfx-card{position:relative;display:grid;grid-template-rows:auto 1fr auto;gap:16px;height:470px;padding:48px;overflow:hidden;color:#fff;background:#151717;isolation:isolate}
.rmfx-card__bg{position:absolute;inset:0;z-index:-2}
.rmfx-card__bg img{width:100%;height:100%;object-fit:cover;display:block}
.rmfx-card__overlay{position:absolute;inset:0;z-index:-1;background:rgba(0,0,0,.18);pointer-events:none}
.rmfx-card__title{margin:0;max-width:345px;font-size:clamp(28px,3vw,44px);line-height:1.12;letter-spacing:-.02em;font-weight:500;color:inherit;text-wrap:balance}
.rmfx-card__text{margin:14px 0 0;max-width:345px;font-size:18px;line-height:1.5;color:inherit}
.rmfx-card__foot{align-self:end}
.rmfx-card .rmfx-btn{color:inherit}
.rmfx-card--text-hover .rmfx-card__text{opacity:0;transform:translateY(10px);transition:opacity .4s,transform .6s cubic-bezier(.16,1,.3,1)}
.rmfx-card--text-hover:hover .rmfx-card__text{opacity:1;transform:none}

/* ---------- Tarjetas que se expanden ---------- */
.rmfx-expand{display:flex;gap:30px;width:100%}
.rmfx-expand>.rmfx-xcard{flex:1 1 0;min-width:0}
@media (max-width:767px){.rmfx-expand{flex-direction:column!important}.rmfx-expand>.rmfx-xcard{flex:none!important;height:380px}}

/* ---------- Tarjetas apiladas ---------- */
.rmfx-stack{display:flex;flex-direction:column;gap:30px}
.rmfx-scard{display:grid;grid-template-columns:1fr;gap:40px;min-height:420px;padding:48px;border-radius:24px;background:#0a0a0a;color:#f5f5dc;box-shadow:0 -10px 40px rgba(0,0,0,.12)}
.rmfx-scard--media{grid-template-columns:1fr 1fr;align-items:stretch}
.rmfx-scard__body{display:flex;flex-direction:column}
.rmfx-scard__label{font-size:15px;font-weight:600;letter-spacing:.06em;opacity:.7}
.rmfx-scard__title{margin:auto 0 12px;padding-top:40px;font-size:clamp(32px,4vw,60px);line-height:1;letter-spacing:-.03em;font-weight:500;color:inherit}
.rmfx-scard__text{margin:0;max-width:440px;font-size:18px;line-height:1.5;opacity:.85}
.rmfx-scard__media{border-radius:14px;overflow:hidden;min-height:240px}
.rmfx-scard__media img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:767px){.rmfx-scard{padding:28px;gap:24px}.rmfx-scard--media{grid-template-columns:1fr}}

/* ---------- Texto con ícono ---------- */
.rmfx-icons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.rmfx-it{display:flex;flex-direction:column;gap:18px}
.rmfx-icons--left .rmfx-it{flex-direction:row;align-items:flex-start}
.rmfx-it__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:56px;height:56px;border-radius:50%;font-size:22px;color:#ff4c4c;background:rgba(255,76,76,.1)}
.rmfx-it__icon svg{width:1em;height:1em;fill:currentColor}
.rmfx-it__title{margin:0 0 6px;font-size:22px;line-height:1.25;font-weight:600}
.rmfx-it__text{margin:0;font-size:16px;line-height:1.55;opacity:.75}
@media (max-width:767px){.rmfx-icons{grid-template-columns:1fr}}

/* ---------- Lista de proyectos ---------- */
.rmfx-projects{border-top:1px solid rgba(127,127,127,.3)}
.rmfx-proj{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:24px;padding:26px 6px;border-bottom:1px solid rgba(127,127,127,.3);color:inherit;text-decoration:none!important;transition:color .3s,padding .5s cubic-bezier(.16,1,.3,1)}
.rmfx-proj:hover{color:#ff4c4c;padding-left:22px}
.rmfx-proj__name{font-size:clamp(26px,3.4vw,52px);line-height:1.05;letter-spacing:-.03em;font-weight:500}
.rmfx-proj__meta{font-size:15px;opacity:.6}
.rmfx-proj__arrow{display:inline-flex;width:26px;height:26px;transform:rotate(-45deg);transition:transform .5s cubic-bezier(.16,1,.3,1)}
.rmfx-proj:hover .rmfx-proj__arrow{transform:rotate(0)}
.rmfx-proj__arrow svg{width:100%;height:100%}
@media (max-width:767px){.rmfx-proj{grid-template-columns:1fr auto}.rmfx-proj__meta{display:none}}

/* ---------- Scroll horizontal ---------- */
.rmfx-panel{position:relative;height:70vh;border-radius:16px;overflow:hidden;background:#26215C;color:#fff;display:flex;align-items:flex-end}
.rmfx-panel__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rmfx-panel__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55),transparent 55%)}
.rmfx-panel__body{position:relative;padding:40px}
.rmfx-panel__tag{display:block;font-size:14px;letter-spacing:.06em;opacity:.8;margin-bottom:8px}
.rmfx-panel__title{margin:0;font-size:clamp(30px,4vw,64px);line-height:1;letter-spacing:-.03em;font-weight:500;color:inherit}
.rmfx-panel__link{position:absolute;inset:0;z-index:2}
.rmfx-hscroll:not(.rm-h-ready){display:flex;gap:var(--rm-gap,24px);overflow-x:auto;scroll-snap-type:x mandatory}
.rmfx-hscroll:not(.rm-h-ready)>.rmfx-panel{flex:0 0 min(var(--rm-panel,70vw),85%);scroll-snap-align:start}

/* ---------- Contador ---------- */
.rmfx-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}
.rmfx-count__num{font-size:clamp(44px,6vw,96px);line-height:1;letter-spacing:-.04em;font-weight:500;font-variant-numeric:tabular-nums}
.rmfx-count__affix{color:#ff4c4c}
.rmfx-count__label{margin-top:10px;font-size:16px;opacity:.7}
.rmfx-counters--lines .rmfx-count{border-left:1px solid rgba(127,127,127,.3);padding-left:24px}

/* ---------- SVG ---------- */
.rmfx-svg{line-height:0}
.rmfx-svg svg{max-width:100%;height:auto;display:inline-block}

/* ---------- Texto animado ---------- */
.rmfx-text{font-size:clamp(20px,2.2vw,32px);line-height:1.35;letter-spacing:-.01em}
.rmfx-text p{margin:0 0 20px}
.rmfx-text p:last-child{margin-bottom:0}
.rmfx-text a{color:inherit;text-decoration:underline;text-underline-offset:.15em}

/* =====================================================================
   Header FX
   ===================================================================== */
.rmfx-hdr{--hdr-bg:transparent;--hdr-text:#0a0a0a;--hdr-accent:#ff4c4c;--hdr-max:100%;--hdr-side:0px;--hdr-radius:0px;--hdr-top:0px;--hdr-gap:36px;--hdr-dd-bg:#fff;--hdr-cta-bg:#0a0a0a;--hdr-cta-text:#fff;--hdr-cta-fx:#ff4c4c;--hdr-btn-radius:100px;--hdr-burger:currentColor;--hdr-panel-bg:#fff;--hdr-panel-text:#0a0a0a;--hdr-bg-scrolled:var(--hdr-bg);position:relative;z-index:100;color:var(--hdr-text)}
.rmfx-hdr *{box-sizing:border-box}
.rmfx-hdr--classic{--hdr-bg-scrolled:#fff}
.rmfx-hdr--floating{--hdr-bg:#fff;--hdr-radius:18px;--hdr-max:1320px;--hdr-side:16px;--hdr-top:16px;--hdr-btn-radius:12px}
.rmfx-hdr--pill{--hdr-bg:#fff;--hdr-radius:999px;--hdr-max:1200px;--hdr-side:12px;--hdr-top:14px}
.rmfx-hdr--burger{--hdr-bg:#fff;--hdr-radius:999px;--hdr-max:1200px;--hdr-side:12px;--hdr-top:14px}

/* Barra */
.rmfx-hdr__bar{display:flex;align-items:center;gap:24px;width:min(var(--hdr-max),calc(100% - var(--hdr-side) * 2));margin:0 auto;padding:20px 36px;background:var(--hdr-bg);border-radius:var(--hdr-radius);transition:transform .5s cubic-bezier(.16,1,.3,1),background-color .35s,padding .35s,box-shadow .35s}
.rmfx-hdr--floating .rmfx-hdr__bar{padding:12px 12px 12px 28px}
.rmfx-hdr--pill .rmfx-hdr__bar{padding:10px 10px 10px 30px;border:1px solid rgba(0,0,0,.06)}
.rmfx-hdr--burger .rmfx-hdr__bar{padding:12px 14px 12px 30px;border:1px solid rgba(0,0,0,.06)}
.rmfx-hdr--shadow:is(.rmfx-hdr--floating,.rmfx-hdr--pill,.rmfx-hdr--burger) .rmfx-hdr__bar,.rmfx-hdr--shadow.is-scrolled .rmfx-hdr__bar{box-shadow:0 10px 30px rgba(0,0,0,.08)}
.rmfx-hdr.is-scrolled .rmfx-hdr__bar{background:var(--hdr-bg-scrolled)}

/* Posición al hacer scroll */
.rmfx-hdr:not(.rmfx-hdr--overlay){padding-top:var(--hdr-top)}
.rmfx-hdr--overlay{height:0}
.rmfx-hdr--overlay:not(.is-fixed) .rmfx-hdr__bar{position:absolute;top:var(--hdr-top);left:0;right:0}
.rmfx-hdr.is-fixed:not(.rmfx-hdr--overlay){min-height:var(--fx-h)}
.rmfx-hdr.is-fixed .rmfx-hdr__bar{position:fixed;top:var(--hdr-top);left:var(--fx-l);width:var(--fx-w);margin:0;z-index:100}
.admin-bar .rmfx-hdr.is-fixed .rmfx-hdr__bar{top:calc(32px + var(--hdr-top))}
@media (max-width:782px){.admin-bar .rmfx-hdr.is-fixed .rmfx-hdr__bar{top:calc(46px + var(--hdr-top))}}
.rmfx-hdr.is-hidden .rmfx-hdr__bar{transform:translateY(calc(-100% - var(--hdr-top) - 60px))}

/* Logo */
.rmfx-hdr__logo{display:inline-flex;align-items:center;flex:0 0 auto;color:inherit;text-decoration:none!important;line-height:0}
.rmfx-hdr__logo :is(img,svg){width:150px;height:auto;max-width:none;display:block}
.rmfx-hdr__logo-text{font-size:22px;font-weight:700;line-height:1;letter-spacing:-.02em}

/* Menú de escritorio */
.rmfx-hdr__nav{flex:1;display:flex;justify-content:flex-end;min-width:0}
:is(.rmfx-hdr--floating,.rmfx-hdr--pill) .rmfx-hdr__nav,.rmfx-hdr--nav-center .rmfx-hdr__nav{justify-content:center}
.rmfx-hdr--nav-start .rmfx-hdr__nav{justify-content:flex-start}
.rmfx-hdr--nav-end .rmfx-hdr__nav{justify-content:flex-end}
.rmfx-hdr .rmfx-menu{list-style:none;margin:0;padding:0}
.rmfx-hdr__nav .rmfx-menu{display:flex;align-items:center;flex-wrap:wrap;gap:var(--hdr-gap)}
.rmfx-hdr__nav .rmfx-menu>li{position:relative;list-style:none}
.rmfx-hdr__nav .rmfx-menu>li>a{display:inline-flex;align-items:center;gap:.45em;color:inherit;text-decoration:none;font-size:18px;font-weight:500;line-height:1.3;padding:8px 0;white-space:nowrap}
.rmfx-hdr .rm-mroll-lines .rm-mroll-host{background-image:linear-gradient(var(--hdr-accent),var(--hdr-accent))}
.rmfx-hdr__nav .menu-item-has-children>a::after{content:"";width:.4em;height:.4em;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-.15em) rotate(45deg);opacity:.55;transition:transform .35s}
.rmfx-hdr__nav .menu-item-has-children:hover>a::after{transform:translateY(.1em) rotate(225deg)}
.rmfx-hdr__nav .sub-menu{list-style:none;margin:0;padding:10px;position:absolute;top:calc(100% + 12px);left:-14px;min-width:230px;background:var(--hdr-dd-bg);color:#0a0a0a;border-radius:14px;box-shadow:0 18px 44px rgba(0,0,0,.14);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .25s,transform .4s cubic-bezier(.16,1,.3,1),visibility .25s;z-index:5}
.rmfx-hdr__nav .sub-menu::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.rmfx-hdr__nav li:hover>.sub-menu,.rmfx-hdr__nav li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.rmfx-hdr__nav .sub-menu a{display:flex;padding:10px 12px;border-radius:9px;color:inherit;text-decoration:none;font-size:15px;font-weight:500;background-image:none!important;transition:background-color .2s}
.rmfx-hdr__nav .sub-menu a:hover{background-color:rgba(0,0,0,.05)}

/* Botones */
.rmfx-hdr__actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.rmfx-hdr__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 26px;border-radius:var(--hdr-btn-radius);font-size:16px;font-weight:600;line-height:1.2;text-decoration:none!important;white-space:nowrap;border:1px solid transparent;transition:color .3s,border-color .3s,background-color .3s}
.rmfx-hdr__btn--ghost{color:inherit;border-color:rgba(127,127,127,.3)}
.rmfx-hdr__btn--ghost:hover{border-color:currentColor}
.rmfx-hdr__btn--cta{background:var(--hdr-cta-bg);color:var(--hdr-cta-text);--rm-color:var(--hdr-cta-fx);--rm-text:#fff}
.rmfx-hdr__btn-icon{display:inline-flex;font-size:1em;line-height:1}
.rmfx-hdr__btn-icon svg{width:1em;height:1em;fill:currentColor}

/* Hamburguesa */
.rmfx-hdr__burger{display:none;align-items:center;justify-content:center;flex:0 0 auto;width:48px;height:48px;margin-left:auto;padding:0;border:0;background:transparent;color:var(--hdr-burger);cursor:pointer;border-radius:50%}
.rmfx-hdr__burger-lines{display:flex;flex-direction:column;gap:7px;width:30px}
.rmfx-hdr__burger-lines i{display:block;height:2px;background:currentColor;border-radius:2px;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.rmfx-hdr__burger:hover .rmfx-hdr__burger-lines i:first-child{transform:translateX(-5px)}
.rmfx-hdr__burger:hover .rmfx-hdr__burger-lines i:last-child{transform:translateX(5px)}
.rmfx-hdr__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Cambio a hamburguesa */
.rmfx-hdr[data-bp="always"] :is(.rmfx-hdr__nav,.rmfx-hdr__actions){display:none}
.rmfx-hdr[data-bp="always"] .rmfx-hdr__burger{display:inline-flex}
@media (max-width:1024px){
	.rmfx-hdr[data-bp="tablet"] :is(.rmfx-hdr__nav,.rmfx-hdr__actions){display:none}
	.rmfx-hdr[data-bp="tablet"] .rmfx-hdr__burger{display:inline-flex}
}
@media (max-width:767px){
	.rmfx-hdr[data-bp="mobile"] :is(.rmfx-hdr__nav,.rmfx-hdr__actions){display:none}
	.rmfx-hdr[data-bp="mobile"] .rmfx-hdr__burger{display:inline-flex}
	.rmfx-hdr .rmfx-hdr__bar{padding:10px 10px 10px 22px}
	.rmfx-hdr--classic .rmfx-hdr__bar{padding:16px 20px}
	.rmfx-hdr__logo :is(img,svg){width:min(var(--rmfx-logo-m,130px),45vw)}
}

/* Menú móvil */
.rmfx-hdr__backdrop{position:fixed;inset:0;z-index:998;background:rgba(10,10,10,.3);opacity:0;visibility:hidden;transition:opacity .45s,visibility .45s}
.rmfx-hdr--blur .rmfx-hdr__backdrop{background:rgba(255,255,255,.2);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.rmfx-hdr__panel{position:fixed;z-index:999;top:12px;left:12px;right:12px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:var(--hdr-panel-bg);color:var(--hdr-panel-text);border-radius:24px;padding:20px 26px 30px;box-shadow:0 30px 80px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(-14px) scale(.98);transform-origin:top center;transition:opacity .35s,transform .55s cubic-bezier(.16,1,.3,1),visibility .35s}
@media (min-width:768px){.rmfx-hdr--mob-card .rmfx-hdr__panel{left:auto;right:16px;top:16px;width:460px}}
.rmfx-hdr--mob-fullscreen .rmfx-hdr__panel{inset:0;max-height:none;height:100dvh;border-radius:0;padding:24px 32px 40px;transform:translateY(-3%)}
.rmfx-hdr.is-open :is(.rmfx-hdr__panel,.rmfx-hdr__backdrop){opacity:1;visibility:visible}
.rmfx-hdr.is-open .rmfx-hdr__panel{transform:none}
.rmfx-hdr.is-preview .rmfx-hdr__backdrop{display:none}
.rmfx-hdr__panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}
.rmfx-hdr__close{position:relative;width:46px;height:46px;flex:0 0 46px;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:50%;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.rmfx-hdr__close:hover{transform:rotate(90deg)}
.rmfx-hdr__close i{position:absolute;left:9px;right:9px;top:50%;height:2px;margin-top:-1px;background:currentColor;border-radius:2px}
.rmfx-hdr__close i:first-child{transform:rotate(45deg)}
.rmfx-hdr__close i:last-child{transform:rotate(-45deg)}
.rmfx-hdr__panel-label{margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid rgba(127,127,127,.25);font-size:16px;opacity:.75}
.rmfx-hdr__mnav .rmfx-menu>li{list-style:none}
.rmfx-hdr__mnav .rmfx-menu>li>a{display:inline-block;font-size:clamp(36px,9vw,58px);line-height:1.18;font-weight:500;letter-spacing:-.025em;color:inherit;text-decoration:none;padding:2px 0}
.rmfx-hdr__mnav .sub-menu{list-style:none;margin:0 0 10px;padding:0 0 0 4px}
.rmfx-hdr__mnav .sub-menu a{display:inline-block;font-size:18px;opacity:.7;padding:4px 0;color:inherit;text-decoration:none}
.rmfx-hdr__mactions{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.rmfx-hdr__mactions .rmfx-hdr__btn--ghost{border-color:rgba(127,127,127,.35)}
.rmfx-hdr__mnav .rmfx-menu>li,.rmfx-hdr__mactions{opacity:0;transform:translateY(26px);transition:opacity .4s,transform .7s cubic-bezier(.16,1,.3,1)}
.rmfx-hdr.is-open .rmfx-hdr__mnav .rmfx-menu>li,.rmfx-hdr.is-open .rmfx-hdr__mactions{opacity:1;transform:none;transition-delay:calc(.12s + var(--i,0) * .06s)}
html.rm-hdr-lock{overflow:hidden}

/* Entrada al cargar */
.rm-js .rmfx-hdr--intro:not(.is-ready) :is(.rmfx-hdr__nav .rmfx-menu>li,.rmfx-hdr__actions>*,.rmfx-hdr__burger){opacity:0;transform:translateY(20px)}
.rmfx-hdr--intro.is-ready :is(.rmfx-hdr__nav .rmfx-menu>li,.rmfx-hdr__actions>*,.rmfx-hdr__burger){transition:opacity .8s,transform .9s cubic-bezier(.16,1,.3,1);transition-delay:calc(.15s + var(--i,0) * .08s)}

@media (prefers-reduced-motion:reduce){
	.rmfx-hdr *,.rmfx-hdr__panel,.rmfx-hdr__backdrop{transition:none!important}
	.rm-js .rmfx-hdr--intro:not(.is-ready) :is(.rmfx-hdr__nav .rmfx-menu>li,.rmfx-hdr__actions>*,.rmfx-hdr__burger){opacity:1;transform:none}
}
