/**
 * RMPowerTech Design System v4.0 — Unified Modern SaaS UI
 * Paleta Dual: Dark Zinc (Estilo SynergyPower #09090b / #18181b) + Light Pure White (#ffffff)
 * Acentos: Cyan Eléctrico (#06b6d4) -> Violeta (#7c3aed)
 * Incluye: Particles.js layer, Spotlight Glow, 3D Tilt, Apps Studio Shell y Contraste WCAG AAA
 */

/* =========================================================
   1. TOKENS v4.0 (LIGHT & DARK)
   ========================================================= */
:root,
html[data-theme="light"] {
    --v4-bg: #ffffff;
    --v4-bg-alt: #f8fafc;
    --v4-surface: #ffffff;
    --v4-surface-elevated: #f1f5f9;
    --v4-border: #e2e8f0;
    --v4-border-strong: #cbd5e1;
    --v4-text: #0f172a;
    --v4-text-secondary: #334155;
    --v4-text-muted: #64748b;
    --v4-accent: #7c3aed;
    --v4-accent-2: #0ea5e9;
    --v4-gradient: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 100%);
    --v4-spotlight: rgba(124, 58, 237, 0.10);
    --v4-card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --v4-card-shadow-hover: 0 20px 40px -10px rgba(124, 58, 237, 0.18), 0 4px 12px rgba(14, 165, 233, 0.10);
    --v4-studio-sidebar: #f8fafc;
    --v4-badge-bg: rgba(124, 58, 237, 0.10);
    --v4-badge-text: #6d28d9;
}

html[data-theme="dark"] {
    --v4-bg: #09090b;
    --v4-bg-alt: #111114;
    --v4-surface: #18181b;
    --v4-surface-elevated: #27272a;
    --v4-border: rgba(255, 255, 255, 0.10);
    --v4-border-strong: rgba(255, 255, 255, 0.18);
    --v4-text: #fafafa;
    --v4-text-secondary: #d4d4d8;
    --v4-text-muted: #a1a1aa;
    --v4-accent: #06b6d4;
    --v4-accent-2: #8b5cf6;
    --v4-gradient: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
    --v4-spotlight: rgba(6, 182, 212, 0.14);
    --v4-card-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --v4-card-shadow-hover: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(6, 182, 212, 0.18);
    --v4-studio-sidebar: #111114;
    --v4-badge-bg: rgba(6, 182, 212, 0.14);
    --v4-badge-text: #38bdf8;
}

/* =========================================================
   2. PARTICLES.JS GLOBAL CANVAS & SCROLL PROGRESS BAR
   ========================================================= */
#rm-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #06b6d4 0%, #7c3aed 55%, #ec4899 100%);
    z-index: 99999;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
    pointer-events: none;
}

#rm-particles-global {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
    transition: opacity 0.4s ease;
}

html[data-theme="light"] #rm-particles-global {
    opacity: 0.45;
}

#rm-particles-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

body {
    background-color: var(--v4-bg) !important;
    color: var(--v4-text-secondary) !important;
    position: relative;
}

main, section, footer {
    position: relative;
    z-index: 1;
}

/* =========================================================
   3. ANIMACIONES MODERNAS: SPOTLIGHT, 3D TILT, REVEAL, ORBS
   ========================================================= */
.rm-spotlight,
.tool-card,
.bento-app-card {
    position: relative;
    overflow: hidden;
    background: var(--v4-surface) !important;
    border: 1px solid var(--v4-border) !important;
    box-shadow: var(--v4-card-shadow) !important;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.28s ease,
                box-shadow 0.28s ease !important;
    will-change: transform;
}

.rm-spotlight::before,
.tool-card::before,
.bento-app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--v4-spotlight),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.rm-spotlight:hover::before,
.tool-card:hover::before,
.bento-app-card:hover::before {
    opacity: 1;
}

.rm-spotlight:hover,
.tool-card:hover,
.bento-app-card:hover {
    border-color: var(--v4-accent) !important;
    box-shadow: var(--v4-card-shadow-hover) !important;
}

.rm-spotlight > *,
.tool-card > *,
.bento-app-card > * {
    position: relative;
    z-index: 1;
}

/* Scroll Reveal */
.rm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Floating Orbs */
@keyframes rmFloatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-18px) translateX(10px) scale(1.04); }
}

.rm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: rmFloatSlow 9s ease-in-out infinite;
    z-index: 0;
}

/* Badge / Pulse */
@keyframes rmPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.45); opacity: 0.55; }
}

.rm-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: rmPulseDot 2s infinite;
}

/* =========================================================
   4. BENTO GRID & CATEGORY FILTER PILLS (HOME & APPS HUB)
   ========================================================= */
.rm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.rm-filter-pill {
    padding: 9px 18px;
    border-radius: 9999px;
    background: var(--v4-surface);
    border: 1px solid var(--v4-border-strong);
    color: var(--v4-text-secondary);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-filter-pill:hover {
    border-color: var(--v4-accent);
    color: var(--v4-accent);
    transform: translateY(-2px);
}

.rm-filter-pill.active {
    background: var(--v4-gradient);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

.rm-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.bento-app-card {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    gap: 14px;
}

.bento-app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bento-app-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
    transition: transform 0.28s ease;
}

.bento-app-card:hover .bento-app-icon {
    transform: scale(1.1) rotate(-4deg);
}

.bento-app-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: var(--v4-badge-bg);
    color: var(--v4-badge-text);
}

.bento-app-badge.badge-new {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #ffffff !important;
}

.bento-app-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--v4-text) !important;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.bento-app-desc {
    font-size: 0.86rem;
    color: var(--v4-text-muted) !important;
    line-height: 1.55;
    margin: 0;
}

.bento-app-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--v4-surface-elevated);
    color: var(--v4-text) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--v4-border);
    transition: all 0.22s ease;
    margin-top: 6px;
}

.bento-app-card:hover .bento-app-cta {
    background: var(--v4-gradient);
    color: #ffffff !important;
    border-color: transparent;
}

/* =========================================================
   5. RMPOWERTECH APPS STUDIO (UNIFIED IN-PAGE WORKSPACE)
   ========================================================= */
.rm-studio-wrapper {
    padding: 125px 0 70px 0;
    min-height: 85vh;
    background: transparent;
}

.rm-studio-shell {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.rm-studio-sidebar {
    position: sticky;
    top: 110px;
    background: var(--v4-studio-sidebar);
    border: 1px solid var(--v4-border);
    border-radius: 20px;
    padding: 18px;
    max-height: calc(100vh - 135px);
    overflow-y: auto;
    box-shadow: var(--v4-card-shadow);
}

.rm-studio-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--v4-border);
}

.rm-studio-sidebar-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--v4-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-studio-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--v4-surface) !important;
    border: 1.5px solid var(--v4-border-strong) !important;
    color: var(--v4-text) !important;
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.rm-studio-cat-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--v4-text-muted);
    margin: 14px 0 8px 6px;
}

.rm-studio-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--v4-text-secondary) !important;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.rm-studio-nav-item:hover {
    background: var(--v4-surface-elevated);
    color: var(--v4-text) !important;
    transform: translateX(3px);
}

.rm-studio-nav-item.active {
    background: var(--v4-gradient);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

.rm-studio-main {
    background: var(--v4-surface);
    border: 1px solid var(--v4-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--v4-card-shadow);
    min-width: 0;
}

.rm-studio-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--v4-border);
}

.rm-studio-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--v4-text-muted);
}

.rm-studio-breadcrumb a {
    color: var(--v4-accent);
    text-decoration: none;
    font-weight: 700;
}

.rm-local-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 0.78rem;
    font-weight: 800;
}

.rm-studio-header {
    margin-bottom: 24px;
}

.rm-studio-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--v4-text) !important;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.rm-studio-header p {
    color: var(--v4-text-muted) !important;
    font-size: 0.96rem;
    margin: 0;
    line-height: 1.6;
}

.rm-studio-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.rm-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 12px;
    background: var(--v4-surface-elevated);
    border: 1px solid var(--v4-border);
    color: var(--v4-text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.rm-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--v4-gradient);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rm-studio-mobile-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--v4-surface);
    border: 1.5px solid var(--v4-border-strong);
    color: var(--v4-text);
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

/* Dropzones & Tool Controls inside Studio */
.rm-dropzone {
    border: 2px dashed var(--v4-accent);
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--v4-bg-alt);
    transition: all 0.25s ease;
}

.rm-dropzone:hover,
.rm-dropzone.dragover {
    background: var(--v4-badge-bg);
    transform: scale(1.01);
}

.rm-studio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.94rem;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    transition: all 0.24s ease;
    background: var(--v4-gradient);
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32);
}

.rm-studio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.4);
    color: #ffffff !important;
}

.rm-studio-btn-secondary {
    background: var(--v4-surface-elevated);
    color: var(--v4-text) !important;
    border: 1.5px solid var(--v4-border-strong);
    box-shadow: none;
}

.rm-studio-btn-secondary:hover {
    border-color: var(--v4-accent);
    color: var(--v4-accent) !important;
    box-shadow: none;
}

/* =========================================================
   6. DARK MODE OVERRIDES FOR LEGACY INLINE STYLES IN TOOLS
   ========================================================= */
html[data-theme="dark"] section.section[style*="background: #faf8ff"],
html[data-theme="dark"] section.section[style*="background: linear-gradient(180deg, #ffffff"] {
    background: transparent !important;
}

html[data-theme="dark"] .card[style*="background: #ffffff"],
html[data-theme="dark"] #toolOptionsCard,
html[data-theme="dark"] #selectedFilesContainer,
html[data-theme="dark"] #toolHeader,
html[data-theme="dark"] #dropZone,
html[data-theme="dark"] .res-option-row,
html[data-theme="dark"] .all-types-dropdown {
    background: var(--v4-surface) !important;
    border-color: var(--v4-border) !important;
    color: var(--v4-text) !important;
}

html[data-theme="dark"] .card[style*="background: #ffffff"] h1,
html[data-theme="dark"] .card[style*="background: #ffffff"] h2,
html[data-theme="dark"] .card[style*="background: #ffffff"] h3,
html[data-theme="dark"] .card[style*="background: #ffffff"] h4,
html[data-theme="dark"] .card[style*="background: #ffffff"] strong,
html[data-theme="dark"] .card[style*="background: #ffffff"] label,
html[data-theme="dark"] .res-option-row strong {
    color: var(--v4-text) !important;
}

html[data-theme="dark"] .card[style*="background: #ffffff"] p,
html[data-theme="dark"] .card[style*="background: #ffffff"] small,
html[data-theme="dark"] .res-option-row div {
    color: var(--v4-text-secondary) !important;
}

/* Responsive Studio */
@media (max-width: 960px) {
    .rm-studio-shell {
        grid-template-columns: 1fr;
    }
    .rm-studio-mobile-toggle {
        display: flex;
    }
    .rm-studio-sidebar {
        display: none;
        position: static;
        max-height: 420px;
    }
    .rm-studio-sidebar.open {
        display: block;
    }
    .rm-studio-main {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    #rm-particles-global, #rm-particles-hero {
        display: none !important;
    }
}

/* =========================================================
   7. PLANTILLA C: EXECUTIVE GLASS TECH (v5.0)
      Titanio Oscuro #0b0d12 + Cristal Esmerilado + Partículas Globales
   ========================================================= */
html[data-theme="dark"] {
    --v4-bg: #0b0d12;
    --v4-bg-alt: rgba(18, 21, 30, 0.72);
    --v4-surface: rgba(20, 24, 34, 0.78);
    --v4-surface-elevated: rgba(30, 35, 50, 0.84);
    --v4-border: rgba(255, 255, 255, 0.12);
    --v4-border-strong: rgba(255, 255, 255, 0.22);
    --v4-accent: #38bdf8;
    --v4-accent-2: #6366f1;
    --v4-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    --v4-spotlight: rgba(56, 189, 248, 0.16);
    --v4-studio-sidebar: rgba(16, 19, 28, 0.82);
}

html[data-theme="light"] {
    --v4-bg: #ffffff;
    --v4-bg-alt: rgba(248, 250, 252, 0.85);
    --v4-surface: rgba(255, 255, 255, 0.88);
    --v4-surface-elevated: #f1f5f9;
    --v4-text: #0f172a;
}

/* Partículas visibles en TODAS las páginas y TODAS las apps */
#rm-particles-global {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    opacity: 0.9 !important;
}

html[data-theme="light"] #rm-particles-global {
    opacity: 0.55 !important;
}

main,
section.section,
.rm-studio-wrapper {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

.rm-studio-main,
.rm-studio-sidebar,
.bento-app-card,
.card {
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

/* Iconos de la izquierda del menú 100% luminosos y visibles en Modo Oscuro */
html[data-theme="dark"] .nav-link svg,
html[data-theme="dark"] .header-main-white .nav-link svg,
html[data-theme="dark"] #mainNav .nav-link svg {
    color: #38bdf8 !important;
    stroke: #38bdf8 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .nav-link:hover svg,
html[data-theme="dark"] .nav-link.active svg,
html[data-theme="dark"] .header-main-white .nav-link:hover svg,
html[data-theme="dark"] .header-main-white .nav-link.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

html[data-theme="dark"] .dropdown-item .dropdown-icon {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
}

html[data-theme="dark"] .header-top-dark .contact-icon-circle svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Descongestionar RMPowerTech Studio */
.rm-studio-wrapper {
    padding: 168px 0 80px 0 !important;
}

.rm-studio-shell {
    gap: 32px !important;
    grid-template-columns: 295px 1fr !important;
}

.rm-studio-main {
    padding: 38px !important;
}

/* Acordeones colapsables en Sidebar del Studio */
.rm-studio-accordion {
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid var(--v4-border);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.rm-studio-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--v4-text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.rm-studio-accordion summary::-webkit-details-marker {
    display: none;
}

.rm-studio-accordion summary:hover {
    background: var(--v4-surface-elevated);
    color: var(--v4-accent);
}

.rm-studio-accordion summary::after {
    content: "▾";
    font-size: 0.85rem;
    transition: transform 0.22s ease;
    color: var(--v4-text-muted);
}

.rm-studio-accordion[open] summary::after {
    transform: rotate(180deg);
    color: var(--v4-accent);
}

.rm-studio-accordion-body {
    padding: 4px 8px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* =========================================================
   8. HERO BANNER CARRUSEL ANIMADO (4 SLIDES EXECUTIVE GLASS)
   ========================================================= */
.rm-hero-slider {
    position: relative;
    min-height: 620px;
    padding-top: 135px;
    padding-bottom: 110px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 20%, #172554 0%, #0b0d12 58%, #090b10 100%);
}

.rm-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease, transform 6.5s ease;
    transform: scale(1.04);
    z-index: 0;
}

.rm-hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.rm-hero-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
}

.rm-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 13, 18, 0.86) 0%, rgba(15, 23, 42, 0.68) 55%, rgba(11, 13, 18, 0.90) 100%);
}

.rm-hero-content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.rm-hero-glass-card {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    background: rgba(15, 19, 28, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 28px;
    padding: 42px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rm-hero-arrows {
    position: absolute;
    top: 50%;
    left: 22px;
    right: 22px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.rm-hero-arrow {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.rm-hero-arrow:hover {
    background: var(--v4-gradient);
    border-color: transparent;
    transform: scale(1.08);
}

.rm-hero-thumbs {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 92%;
}

.rm-hero-thumb {
    position: relative;
    overflow: hidden;
    padding: 9px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rm-hero-thumb.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
}

.rm-hero-thumb-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.rm-hero-thumb.active .rm-hero-thumb-bar {
    animation: rmSlideProgress 6.5s linear forwards;
}

@keyframes rmSlideProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* =========================================================
   9. COOKIE CONSENT & LOPDP PRIVACY BANNER (EXECUTIVE GLASS)
   ========================================================= */
.rm-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 780px;
    margin: 0 auto;
    z-index: 99990;
    background: rgba(15, 19, 28, 0.92);
    color: #f8fafc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
    display: none;
}

html[data-theme="light"] .rm-cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.rm-cookie-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    display: none;
    gap: 10px;
    flex-direction: column;
}

@media (max-width: 960px) {
    .rm-studio-wrapper {
        padding: 135px 0 60px 0 !important;
    }
    .rm-studio-shell {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .rm-studio-main {
        padding: 20px !important;
    }
    .rm-hero-arrows {
        display: none;
    }
    .rm-hero-glass-card {
        padding: 26px 18px;
    }
}

/* =========================================================
   10. REFINAMIENTO DISCRETO v5.1 (Hero Izquierda, Títulos Nítidos, Chatbot & Cookie Compactos)
   ========================================================= */

/* Hero alineado a la izquierda sin tarjeta fea, con transición suave y degradado lateral cinematográfico */
.rm-hero-slider {
    min-height: 540px !important;
    padding-top: 140px !important;
    padding-bottom: 92px !important;
}

.rm-hero-slide-overlay {
    background: linear-gradient(90deg, rgba(11, 13, 18, 0.94) 0%, rgba(11, 13, 18, 0.72) 52%, rgba(11, 13, 18, 0.30) 100%) !important;
}

.rm-hero-left-block {
    max-width: 670px;
    text-align: left;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.rm-hero-left-block.is-fading {
    opacity: 0;
    transform: translateY(8px);
}

.rm-hero-slider .hero-title,
.rm-hero-slider .hero-title.shine-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    font-size: clamp(2rem, 4.1vw, 3.2rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    text-align: left !important;
}

.rm-hero-thumbs-left {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 1240px !important;
    padding: 0 24px !important;
    justify-content: flex-start !important;
}

.rm-hero-thumb {
    padding: 7px 14px !important;
    font-size: 0.76rem !important;
    border-radius: 10px !important;
}

/* Títulos de sección SIEMPRE nítidos y discretos (adiós degradado oscuro ilegible de Foto 2) */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-title.shine-text,
html[data-theme="dark"] h2.section-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #fafafa !important;
    color: #fafafa !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

html[data-theme="light"] .section-title,
html[data-theme="light"] .section-title.shine-text,
html[data-theme="light"] h2.section-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

/* Botón flotante Chatbot y Scroll-Top discretos y compactos (Foto 3) */
.rm-chatbot-badge-callout {
    display: none !important;
}

.rm-chatbot-launcher {
    bottom: 18px !important;
    right: 18px !important;
    gap: 8px !important;
}

.rm-chatbot-btn {
    width: 46px !important;
    height: 46px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38) !important;
}

.rm-chatbot-btn svg {
    width: 22px !important;
    height: 22px !important;
}

.rm-scroll-top-btn {
    width: 36px !important;
    height: 36px !important;
}

/* Banner de Cookies delgado abajo a la izquierda para no tapar los botones del Hero */
.rm-cookie-banner {
    left: 18px !important;
    right: auto !important;
    bottom: 18px !important;
    margin: 0 !important;
    max-width: 560px !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    font-size: 0.78rem !important;
}

@media (max-width: 680px) {
    .rm-cookie-banner {
        right: 14px !important;
        left: 14px !important;
        bottom: 72px !important;
    }
    .rm-hero-slider .hero-title {
        font-size: 1.85rem !important;
    }
}
