body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; background: #000; background-image: radial-gradient(circle at 50% -20%, #1a1a1a 0%, #000 100%); margin: 0; padding: 40px 20px; color: #f5f5f7; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
        #cargando-sesion { display: none; position: fixed; inset: 0; z-index: 5000; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 38%, #151c27 0%, #05070a 42%, #000 76%); }
        html.sesion-pendiente #cargando-sesion { display: flex; }
        html.sesion-pendiente .contenedor { visibility: hidden; }
        .cargando-sesion-contenido { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #d7eaff; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
        .cargando-sesion-spinner { width: 38px; height: 38px; border: 3px solid rgba(0, 157, 255, 0.18); border-top-color: #00eaff; border-right-color: #0066ff; border-radius: 50%; box-shadow: 0 0 22px rgba(0, 157, 255, 0.24); animation: cargar-sesion-giro 0.8s linear infinite; }
        @keyframes cargar-sesion-giro { to { transform: rotate(360deg); } }
        .contenedor { max-width: 1200px; margin: 0 auto; position: relative; }
        .cabecera-principal { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
        
        /* --- LOGO ORIGINAL + BARRIDO NEÓN RECORTADO AL LOGO --- */
        .logo-container {
            position: relative;
            width: 320px;
            height: auto;
            margin-bottom: 5px;
            line-height: 0;
        }

        .logo-base-svg, .laser-overlay {
            display: block;
            width: 100%;
            height: auto;
            line-height: 0;
        }

        .logo-base-svg svg, .laser-overlay svg {
            display: block;
            width: 100%;
            height: auto;
        }

        .logo-base-svg {
            filter: drop-shadow(0 0 2px rgba(255,255,255,0.35));
        }

        /* El barrido se genera dentro del SVG y queda recortado por la máscara
           vectorial de las letras. El contenedor no pinta ningún fondo rectangular. */
        .laser-overlay {
            position: absolute;
            inset: 0;
            z-index: 2;
            pointer-events: none;
            overflow: hidden;
            mix-blend-mode: screen;
        }

        .cabecera-acciones { position: fixed; top: 24px; right: 24px; z-index: 1000; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
        .btn-volver { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); color: #f5f5f7; padding: 8px 16px; border-radius: 980px; cursor: pointer; font-size: 14px; display: none; transition: all 0.2s ease; }
        .btn-volver:hover { background: rgba(255, 255, 255, 0.2); }
        .btn-cerrar-sesion { background: rgba(255, 69, 58, 0.12); border: 1px solid rgba(255, 69, 58, 0.4); color: #ff6961; padding: 8px 16px; border-radius: 980px; cursor: pointer; font-size: 14px; font-weight: 600; display: none; transition: all 0.2s ease; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
        .btn-cerrar-sesion:hover { background: rgba(255, 69, 58, 0.22); border-color: rgba(255, 69, 58, 0.65); }
        
        /* --- LANDING PAGE APPLE STYLE (DARK MODE) --- */
        #vista-login { display: flex; flex-direction: column; gap: 32px; margin-top: 10px; }
        .landing-top-menu {
            position: fixed;
            top: 22px;
            right: 24px;
            z-index: 1100;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px;
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 999px;
            background: linear-gradient(145deg, rgba(43,43,47,.78), rgba(20,20,23,.68));
            box-shadow: 0 14px 38px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
            backdrop-filter: saturate(150%) blur(22px);
            -webkit-backdrop-filter: saturate(150%) blur(22px);
        }
        .landing-top-link {
            display: inline-flex;
            min-height: 40px;
            padding: 0 17px;
            border-radius: 999px;
            align-items: center;
            justify-content: center;
            color: #e5e5ea;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: -.01em;
            text-decoration: none;
            transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
        }
        .landing-top-link-login:hover {
            color: #fff;
            background: rgba(255,255,255,.09);
        }
        .landing-top-link-plans {
            color: #fff;
            background: linear-gradient(180deg, #168de8, #0674d1);
            box-shadow: 0 7px 18px rgba(10,132,255,.25), inset 0 1px 0 rgba(255,255,255,.2);
        }
        .landing-top-link-plans:hover {
            background: linear-gradient(180deg, #279cf3, #087bd9);
            box-shadow: 0 9px 24px rgba(10,132,255,.34), inset 0 1px 0 rgba(255,255,255,.24);
            transform: translateY(-1px);
        }
        .landing-top-link:active { transform: scale(.98); }
        .landing-top-link:focus-visible { outline: 3px solid rgba(103,212,255,.5); outline-offset: 3px; }
        .landing-hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr); align-items: center; gap: 44px; min-height: 520px; }
        .landing-text { min-width: 0; width: 100%; }
        .landing-text h1 { font-family: 'Playfair Display', serif; font-size: clamp(44px, 5vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 25px 0; color: #f5f5f7; }
        .landing-text p { font-size: 18px; color: #a1a1a6; line-height: 1.55; margin: 0 0 20px 0; max-width: 680px; }

        /* --- ACCESO / PLANES EN DOS COLUMNAS --- */
        .home-choices {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
            margin-top: 6px;
        }
        .home-choice {
            min-height: 185px;
            padding: 28px 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            background: linear-gradient(145deg, rgba(34,34,36,.78), rgba(22,22,24,.66));
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 24px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 45px rgba(0,0,0,.18);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
        }
        .home-choice-copy {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-width: 520px;
        }
        .home-choice-title {
            color: #f5f5f7;
            font-size: 21px;
            font-weight: 600;
            letter-spacing: -0.02em;
            margin: 0;
        }
        .landing-title-desktop { display: none; }
        .home-choice-text {
            color: #a1a1a6;
            font-size: 16px;
            line-height: 1.5;
            margin: 0;
            max-width: 500px;
        }
        .home-choice .btn-home-choice {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #fff;
            padding: 13px 24px;
            border-radius: 980px;
            font-size: 15px;
            font-weight: 600;
            transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
        }
        .home-choice-login .btn-home-choice {
            background: #0a84ff;
            box-shadow: 0 8px 22px rgba(10,132,255,.20);
        }
        .home-choice-login .btn-home-choice:hover {
            transform: translateY(-1px) scale(1.02);
            box-shadow: 0 10px 28px rgba(10,132,255,.30);
        }
        .home-choice-plans {
            border-color: rgba(10,132,255,.14);
            background:
                radial-gradient(circle at 100% 0%, rgba(10,132,255,.12), transparent 42%),
                linear-gradient(145deg, rgba(34,34,36,.78), rgba(22,22,24,.66));
        }
        .home-choice-plans .btn-home-choice {
            background: rgba(255,255,255,.09);
            border: 1px solid rgba(255,255,255,.18);
        }
        .home-choice-plans .btn-home-choice:hover {
            transform: translateY(-1px);
            background: rgba(255,255,255,.14);
            box-shadow: 0 8px 24px rgba(255,255,255,.08);
        }

        /* --- ESQUEMA CIRCULAR EN EL LADO DERECHO --- */
        .landing-visual {
            min-width: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            min-height: 610px;
            overflow: visible;
            z-index: 3;
        }

        .diagram-stage {
            position: relative;
            width: min(100%, 650px);
            height: 610px;
            display: grid;
            place-items: center;
            overflow: visible;
            background: radial-gradient(circle at 50% 50%, rgba(10,132,255,.16) 0%, rgba(10,132,255,.055) 30%, rgba(10,132,255,0) 62%);
        }

        .orbit {
            position: absolute;
            width: 438px;
            height: 438px;
            border: 1px solid rgba(103,212,255,.16);
            border-radius: 50%;
            box-shadow: 0 0 70px rgba(10,132,255,.08), inset 0 0 70px rgba(10,132,255,.035);
            animation: orbit-breathe 6s ease-in-out infinite;
        }
        .orbit::before, .orbit::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            background: linear-gradient(145deg, #75ddff, #0a84ff);
            box-shadow: 0 0 0 6px rgba(10,132,255,.08), 0 0 24px rgba(10,132,255,.55);
        }
        .orbit::before { width: 9px; height: 9px; top: 11%; left: 15%; animation: orbit-light-one 7s ease-in-out infinite; }
        .orbit::after { width: 7px; height: 7px; bottom: 13%; right: 11%; animation: orbit-light-two 8.5s ease-in-out infinite; }

        .orbit-inner {
            position: absolute;
            width: 330px;
            height: 330px;
            border: 1px dashed rgba(103,212,255,.13);
            border-radius: 50%;
            animation: spin 42s linear infinite;
        }

        .core {
            width: 250px;
            height: 340px;
            position: relative;
            z-index: 4;
            display: grid;
            place-items: center;
            background: radial-gradient(ellipse at center, rgba(10,132,255,.2), rgba(10,132,255,.055) 45%, transparent 72%);
        }
        .core::before { content: ""; position: absolute; z-index: -1; width: 190px; height: 55px; bottom: 18px; border-radius: 50%; background: rgba(10,132,255,.2); filter: blur(24px); opacity: .75; }
        .core::after {
            content: "";
            position: absolute;
            width: 245px;
            height: 245px;
            border: 1px solid rgba(103,212,255,.12);
            border-radius: 50%;
            animation: pulse-ring 3.4s ease-out infinite;
            pointer-events: none;
        }
        .iphone-core {
            width: 84%;
            max-width: 210px;
            height: auto;
            display: block;
            object-fit: contain;
            animation: float 6s ease-in-out infinite;
            filter: drop-shadow(0 26px 34px rgba(0,0,0,.48)) drop-shadow(0 0 24px rgba(10,132,255,.2));
        }

        .benefit {
            position: absolute;
            z-index: 6;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            gap: 12px;
            width: 218px;
            min-height: 82px;
            padding: 13px 15px 13px 12px;
            border-radius: 20px;
            background: linear-gradient(145deg, rgba(38,39,44,.92), rgba(20,21,25,.88));
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,.105);
            box-shadow: 0 18px 42px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.07);
            text-align: left;
            transition: transform 180ms ease, box-shadow 180ms ease;
        }
        .benefit:hover, .benefit:focus-within {
            transform: translateY(-5px) scale(1.02);
            border-color: rgba(103,212,255,.25);
            box-shadow: 0 22px 48px rgba(0,0,0,.38), 0 0 30px rgba(10,132,255,.13), inset 0 1px 0 rgba(255,255,255,.09);
            outline: none;
        }

        /* La tarjeta superior ya usa translateX(-50%) para quedar centrada;
           conservamos esa traslación durante el hover para que no se desplace lateralmente. */
        .benefit-top:hover,
        .benefit-top:focus-within {
            transform: translateX(-50%) translateY(-5px) scale(1.02);
        }
        .benefit-icon {
            width: 44px;
            height: 44px;
            flex: 0 0 44px;
            display: grid;
            place-items: center;
            color: #dff7ff;
            background: linear-gradient(145deg, #24a4ff 0%, #075dd8 100%);
            border: 1px solid rgba(255,255,255,.2);
            border-radius: 50%;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(10,132,255,.3), 0 0 0 5px rgba(10,132,255,.07);
            animation: benefit-icon-drift 4.2s ease-in-out infinite;
        }
        .benefit-left-top .benefit-icon { animation-delay: -.8s; }
        .benefit-right-top .benefit-icon { animation-delay: -1.6s; }
        .benefit-left-bottom .benefit-icon { animation-delay: -2.4s; }
        .benefit-right-bottom .benefit-icon { animation-delay: -3.2s; }
        .benefit-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
        .benefit-copy { line-height: 1.25; }
        .benefit-copy strong { display: block; margin-bottom: 4px; color: #f5f5f7; letter-spacing: -0.02em; font-size: 15px; }
        .benefit-copy span { display: block; color: #9a9aa1; font-size: .76rem; line-height: 1.3; }

        /* Los centros de las cinco tarjetas comparten un radio de 245 px: pentágono regular. */
        .benefit-top { top: 18px; left: 50%; transform: translateX(-50%); }
        .benefit-left-top { top: 188px; left: -17px; }
        .benefit-right-top { top: 188px; right: -17px; }
        .benefit-left-bottom { top: 462px; left: 72px; }
        .benefit-right-bottom { top: 462px; right: 72px; }

        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes benefit-icon-drift {
            0%,100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(10,132,255,.3), 0 0 0 5px rgba(10,132,255,.07); }
            35% { transform: translate3d(1px, -5px, 0) rotate(3deg) scale(1.035); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 25px rgba(10,132,255,.38), 0 0 0 8px rgba(10,132,255,.045); }
            68% { transform: translate3d(-1px, 2px, 0) rotate(-2deg) scale(.985); }
        }
        @keyframes pulse-ring { 0% { transform: scale(.92); opacity:.8; } 75%,100% { transform: scale(1.14); opacity:0; } }
        @keyframes orbit-breathe { 0%,100% { transform: scale(.985); opacity: .72; } 50% { transform: scale(1.015); opacity: 1; } }
        @keyframes orbit-light-one { 0%,100% { transform: translate3d(0,0,0) scale(.9); opacity: .62; } 45% { transform: translate3d(34px,-16px,0) scale(1.2); opacity: 1; } 72% { transform: translate3d(58px,12px,0) scale(1); opacity: .78; } }
        @keyframes orbit-light-two { 0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .75; } 38% { transform: translate3d(-38px,18px,0) scale(1.25); opacity: 1; } 70% { transform: translate3d(-62px,-12px,0) scale(.88); opacity: .58; } }
        @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }

        .landing-footer { text-align: center; color: #86868b; font-size: 16px; line-height: 1.6; max-width: 950px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); font-family: 'Playfair Display', serif; }

        @media (max-width: 1080px) {
            .landing-hero { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(470px, 1fr); }
            .landing-visual { min-width: 0; }
            .diagram-stage { transform: scale(.94); transform-origin: center center; }
        }

        @media (max-width: 860px) {
            .landing-top-menu { display: none; }
            .landing-hero {
                grid-template-columns: 1fr;
                gap: 6px;
                min-height: auto;
            }
            .landing-text { order: 1; }
            .landing-visual { order: 2; width: 100%; min-height: 560px; }
            .diagram-stage { width: 100%; height: 560px; transform: scale(.84); }
        }

        @media (max-width: 760px) {
            .landing-hero { gap: 4px; }
            .landing-visual { min-height: 560px; }
            .diagram-stage { width: 100%; height: 560px; transform: scale(.78); }
        }

        @media (prefers-reduced-motion: reduce) {
            .iphone-core, .orbit, .orbit::before, .orbit::after, .orbit-inner, .benefit-icon { animation: none !important; }
            .logo-neon-sweep { display: none; }
            .cargando-sesion-spinner { animation-duration: 1.8s; }
        }

        @media (max-width: 640px) {
            .landing-text { min-width: 0; }
            .landing-text h1 { font-size: 42px; }
            .landing-text p { font-size: 17px; }
            .home-choices { grid-template-columns: 1fr; gap: 16px; }
            .home-choice { min-height: 165px; padding: 24px; }
            .home-choice-title { font-size: 19px; }
            .home-choice-text { font-size: 15px; }
        }

        @media (max-width: 620px) {
            .landing-visual { min-height: 520px; }
            .diagram-stage { height: 520px; transform: scale(.70); }
            .benefit { width: 205px; min-height: 72px; padding: 10px 12px 10px 10px; }
        }

        @media (max-width: 520px) {
            .home-choice { min-height: 150px; padding: 22px; border-radius: 20px; }
            .home-choice-title { font-size: 18px; }
            .home-choice .btn-home-choice { width: 100%; }
        }
        
        /* ---------------------------------------------------- */
        #vista-dashboard { display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
        .dash-card {
            position: relative;
            overflow: hidden;
            background: linear-gradient(145deg, rgba(34, 34, 36, 0.78), rgba(22, 22, 24, 0.66));
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            border-radius: 24px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            cursor: pointer;
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 190px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 45px rgba(0,0,0,0.18);
        }
        .dash-card::before {
            content: "";
            position: absolute;
            inset: -35% auto auto -15%;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(10,132,255,0.12) 0%, rgba(10,132,255,0) 72%);
            pointer-events: none;
        }
        .dash-card:hover {
            transform: translateY(-5px);
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 24px 55px rgba(0,0,0,0.24);
        }
        .dash-card h2 { margin: 0 0 10px 0; font-size: 20px; color: #f5f5f7; font-weight: 600; position: relative; z-index: 1; }
        .dash-card p { margin: 0; color: #86868b; font-size: 15px; position: relative; z-index: 1; line-height: 1.45; }
        /* --- ICONOS DEL DASHBOARD: iOS / SF SYMBOLS INSPIRED --- */
        .dash-card .dashboard-icon {
            position: relative;
            z-index: 1;
            margin-top: 20px;
            width: 92px;
            height: 92px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            color: #0a84ff;
            transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
        }

        .dashboard-icon svg {
            width: 88px;
            height: 88px;
            display: block;
            overflow: visible;
        }

        .dashboard-icon:hover {
            transform: translateY(-2px) scale(1.045);
        }

        .dashboard-icon:hover svg {
            filter: drop-shadow(0 8px 18px rgba(10,132,255,0.20));
        }

        .dashboard-icon.icon-tile {
            width: 86px;
            height: 86px;
            align-items: center;
            justify-content: center;
            position: relative;
            background: linear-gradient(145deg, #36a7ff 0%, #0a84ff 56%, #0066d8 100%);
            border: 1px solid rgba(255,255,255,0.24);
            border-radius: 22px;
            color: #fff;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 10px 24px rgba(10,132,255,0.20), 0 0 0 1px rgba(10,132,255,0.10);
        }

        .dashboard-icon.icon-tile svg {
            width: 54px;
            height: 54px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.2;
            stroke-linecap: round;
            stroke-linejoin: round;
            overflow: visible;
            filter: drop-shadow(0 2px 4px rgba(0,56,130,0.22));
        }

        .dashboard-icon.icon-tile:hover {
            filter: brightness(1.05);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 14px 30px rgba(10,132,255,0.24), 0 0 22px rgba(10,132,255,0.22);
        }

        .dashboard-icon.counter .counter-number {
            position: absolute;
            right: -10px;
            bottom: -9px;
            min-width: 30px;
            padding: 5px 8px;
            border-radius: 999px;
            background: linear-gradient(180deg, #3a3a3c 0%, #252527 100%);
            color: #f5f5f7;
            border: 1px solid rgba(255,255,255,0.10);
            box-shadow: 0 6px 16px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
            font-size: 15px;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            letter-spacing: -0.02em;
        }

        /* Configuración: control iOS de tres deslizadores, basado en el estilo solicitado */
        .dashboard-icon.setting-btn {
            width: 86px;
            height: 86px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(145deg, #2e9bff 0%, #0a84ff 58%, #0068d8 100%);
            border-radius: 22px;
            cursor: pointer;
            border: 1px solid rgba(255,255,255,0.24);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.30),
                0 10px 24px rgba(10,132,255,0.20),
                0 0 0 1px rgba(10,132,255,0.10);
            color: #fff;
            transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, filter 220ms ease;
        }

        .setting-btn:hover {
            transform: translateY(-2px) scale(1.045);
            filter: brightness(1.04);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.34),
                0 14px 30px rgba(10,132,255,0.24),
                0 0 22px rgba(10,132,255,0.22);
        }

        .settings-bar {
            width: 52px;
            height: 5px;
            background: linear-gradient(180deg, #f7f7f8 0%, #d8d8dc 100%);
            display: flex;
            align-items: center;
            position: relative;
            border-radius: 999px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 2px rgba(0,0,0,0.16);
        }

        .settings-bar span {
            position: absolute;
            width: 11px;
            height: 11px;
            background: #0b73dc;
            border-radius: 50%;
            border: 3px solid #fff;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 0 7px rgba(255,255,255,0.95);
            transition: transform 220ms cubic-bezier(.2,.8,.2,1);
        }

        .settings-bar1 span { left: 13px; }
        .settings-bar2 span { left: 30px; }
        .settings-bar3 span { left: 19px; }

        .setting-btn:hover .settings-bar1 span { transform: translateX(14px); }
        .setting-btn:hover .settings-bar2 span { transform: translateX(-14px); }
        .setting-btn:hover .settings-bar3 span { transform: translateX(12px); }

        @media (max-width: 640px) {
            .dashboard-icon.icon-tile { width: 78px; height: 78px; border-radius: 20px; }
            .dashboard-icon.icon-tile svg { width: 49px; height: 49px; }
            .dashboard-icon.setting-btn { width: 78px; height: 78px; border-radius: 20px; }
            .settings-bar { width: 46px; }
        }

        /* VISTA AJUSTES */
        #vista-ajustes { display: none; background: rgba(28, 28, 30, 0.65); backdrop-filter: blur(20px); border-radius: 24px; padding: 30px; border: 1px solid rgba(255, 255, 255, 0.1); }
        .seccion-ajuste { margin-bottom: 40px; }
        .seccion-ajuste h2 { margin-top: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 20px; }
        .seccion-titulo-icono { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
        .icono-seccion { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; color: #55aeff; background: linear-gradient(145deg, rgba(10,132,255,0.2), rgba(10,132,255,0.08)); border: 1px solid rgba(85,174,255,0.24); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 7px 18px rgba(0,102,255,0.1); }
        .icono-seccion svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .etiqueta-ajuste { display: inline-flex; align-items: center; gap: 10px; color: #e8e8ed; }
        .icono-ajuste { width: 20px; height: 20px; flex: 0 0 20px; display: inline-grid; place-items: center; color: #8ec8ff; }
        .icono-ajuste svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .ajuste-fila { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .ajuste-info span { font-size: 18px; font-weight: 500; }
        .ajuste-desc { font-size: 13px; color: #86868b; margin-top: 4px; }
        .switch { position: relative; display: inline-block; width: 50px; height: 30px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #3a3a3c; transition: .4s; border-radius: 34px; }
        .slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider { background-color: #32d74b; }
        input:checked + .slider:before { transform: translateX(20px); }
        .slider-container { margin: 20px 0; }
        .slider-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 500; }
        .slider-header span.valor { color: #0a84ff; font-weight: 600; }
        input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
        input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: #ffffff; cursor: pointer; margin-top: -8px; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
        input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: #3a3a3c; border-radius: 10px; }
        .input-fecha { background: rgba(28, 28, 30, 0.8); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 8px 12px; border-radius: 10px; font-family: inherit; font-size: 15px; cursor: pointer; }
        .input-fecha::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
        .guardar-configuracion-barra { position: sticky; bottom: 18px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 16px 18px 16px 20px; border-radius: 24px; background: linear-gradient(135deg, rgba(35,37,42,.92), rgba(18,19,23,.9)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 55px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
        .guardar-configuracion-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
        .guardar-configuracion-indicador { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #32d74b; box-shadow: 0 0 0 5px rgba(50,215,75,.1), 0 0 18px rgba(50,215,75,.5); }
        .guardar-configuracion-copy strong { display: block; margin-bottom: 3px; color: #f5f5f7; font-size: 14px; }
        .guardar-configuracion-copy span:last-child { display: block; color: #8e8e93; font-size: 12px; line-height: 1.4; }
        .btn-guardar-configuracion { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; min-width: 230px; padding: 13px 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0a84ff 0%, #0066e6 55%, #004fc4 100%); box-shadow: 0 12px 30px rgba(10,132,255,.3), inset 0 1px 0 rgba(255,255,255,.24); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
        .btn-guardar-configuracion::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.24) 45%, transparent 72%); transform: translateX(-120%); transition: transform .6s ease; }
        .btn-guardar-configuracion:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(10,132,255,.4), inset 0 1px 0 rgba(255,255,255,.28); filter: saturate(1.08); }
        .btn-guardar-configuracion:hover::before { transform: translateX(120%); }
        .btn-guardar-configuracion:active { transform: translateY(0) scale(.985); }
        .btn-guardar-configuracion:focus-visible { outline: 3px solid rgba(103,212,255,.48); outline-offset: 3px; }
        .btn-guardar-configuracion-icono { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; background: rgba(255,255,255,.16); }
        .btn-guardar-configuracion-icono svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        @media (max-width: 700px) {
            .guardar-configuracion-barra { position: static; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
            .btn-guardar-configuracion { width: 100%; min-width: 0; }
        }

        /* VISTA MÉTRICAS */
        #vista-metricas { display: none; flex-direction: column; gap: 20px; }
        .filtros-metricas { display: flex; gap: 5px; margin: 0 auto 10px auto; background: rgba(28,28,30,0.8); padding: 5px; border-radius: 980px; width: fit-content; border: 1px solid rgba(255,255,255,0.1); }
        .btn-filtro { background: transparent; border: none; color: #86868b; padding: 10px 20px; border-radius: 980px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
        .btn-filtro:hover { color: #fff; }
        .btn-filtro.activo { background: #3a3a3c; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        #texto-total-metricas { text-align: center; color: #86868b; font-size: 14px; margin-bottom: 25px; font-weight: 500; }
        #loader-metricas { text-align: center; color: #86868b; padding: 40px; font-size: 16px; }
        .estado-metricas { display: none; align-self: center; width: min(100%, 620px); box-sizing: border-box; padding: 44px 34px; text-align: center; background: linear-gradient(145deg, rgba(38,38,40,0.82), rgba(20,20,22,0.72)); border: 1px solid rgba(255,255,255,0.1); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.28); backdrop-filter: blur(24px); }
        .estado-metricas.visible { display: block; }
        .estado-metricas-icono { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 18px; color: #67d4ff; font-size: 34px; font-weight: 300; background: linear-gradient(145deg, rgba(10,132,255,0.24), rgba(0,234,255,0.08)); border: 1px solid rgba(103,212,255,0.22); }
        .estado-metricas h2 { margin: 0 0 10px; color: #f5f5f7; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
        .estado-metricas p { max-width: 470px; margin: 0 auto 24px; color: #a1a1a6; font-size: 15px; line-height: 1.55; }
        .btn-generar-metricas { min-width: 180px; padding: 13px 22px; border: 0; border-radius: 980px; color: #fff; background: linear-gradient(135deg, #0a84ff, #0066cc); box-shadow: 0 10px 28px rgba(10,132,255,0.28); font: inherit; font-weight: 650; cursor: pointer; transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease; }
        .btn-generar-metricas:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(10,132,255,0.36); }
        .btn-generar-metricas:disabled { cursor: default; opacity: .48; box-shadow: none; }
        .generando-metricas { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
        .contenido-metricas-escritorio { display: none; width: 100%; }
        .contenido-metricas-escritorio.visible { display: block; animation: fadeIn .35s ease both; }
        .resumen-metricas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
        .resumen-metrica-card { position: relative; overflow: hidden; min-height: 126px; padding: 22px; box-sizing: border-box; border-radius: 24px; background: linear-gradient(145deg, rgba(38,38,42,.92), rgba(20,21,24,.8)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
        .resumen-metrica-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -42px; top: -52px; border-radius: 50%; background: radial-gradient(circle, rgba(10,132,255,.24), transparent 68%); }
        .resumen-metrica-card span { display: block; margin-bottom: 10px; color: #8e8e93; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
        .resumen-metrica-card strong { display: block; max-width: 100%; overflow: hidden; color: #f5f5f7; font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
        .resumen-metrica-card small { display: block; margin-top: 10px; color: #74747a; font-size: 12px; }
        .menu-graficos-escritorio { display: flex; width: fit-content; max-width: 100%; gap: 5px; margin: 0 auto 18px; padding: 5px; overflow-x: auto; border-radius: 980px; background: rgba(28,28,30,.82); border: 1px solid rgba(255,255,255,.1); scrollbar-width: none; }
        .menu-graficos-escritorio::-webkit-scrollbar { display: none; }
        .btn-panel-metricas { flex: 0 0 auto; padding: 9px 16px; border: 0; border-radius: 980px; color: #8e8e93; background: transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
        .btn-panel-metricas:hover { color: #fff; }
        .btn-panel-metricas.activo { color: #fff; background: #3a3a3c; box-shadow: 0 3px 10px rgba(0,0,0,.22); }
        .grid-graficos-metricas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
        .panel-metricas { min-width: 0; padding: 24px; border-radius: 26px; background: linear-gradient(155deg, rgba(34,35,39,.88), rgba(15,16,19,.82)); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 22px 60px rgba(0,0,0,.24); transition: transform .25s ease, border-color .25s ease; }
        .panel-metricas:hover { transform: translateY(-2px); border-color: rgba(103,212,255,.2); }
        .panel-metricas.oculto-por-foco { display: none; }
        .panel-metricas.enfocado { grid-column: 1 / -1; padding: 30px; }
        .panel-metricas header { display: flex; justify-content: space-between; gap: 18px; min-height: 78px; margin-bottom: 14px; }
        .panel-metricas h3 { margin: 4px 0 6px; color: #f5f5f7; font-size: 20px; letter-spacing: -.02em; }
        .panel-metricas p { margin: 0; color: #85858b; font-size: 13px; line-height: 1.45; }
        .panel-eyebrow { color: #4cbcff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
        .panel-badge { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; color: #6f7078; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); font-size: 11px; font-weight: 700; }
        .chart-wrapper-escritorio { position: relative; width: 100%; height: 285px; }
        .panel-metricas.enfocado .chart-wrapper-escritorio { height: 390px; }
        .leyenda-impacto-escritorio { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
        .leyenda-impacto-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 980px; color: #b7b7bc; background: rgba(255,255,255,.055); font-size: 11px; }
        .leyenda-impacto-punto { width: 8px; height: 8px; border-radius: 50%; }
        @media (max-width: 900px) {
            .resumen-metricas { grid-template-columns: 1fr; }
            .grid-graficos-metricas { grid-template-columns: 1fr; }
            .panel-metricas.enfocado { grid-column: auto; }
        }
        .estado-procesando { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: #a1a1a6; font-weight: 500; }
        .estado-procesando-spinner { width: 15px; height: 15px; border: 2px solid rgba(10,132,255,0.2); border-top-color: #00eaff; border-radius: 50%; animation: cargar-sesion-giro 0.8s linear infinite; }

        /* VISTA RESEÑAS E IDIOMAS */
        #vista-resenas { display: none; flex-direction: column; align-items: center; }
        .contador-apple { background: rgba(24, 24, 27, 0.78); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 9px 17px; border-radius: 980px; font-size: 13px; font-weight: 600; color: #c7c7cc; margin-bottom: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
        .stack-container { position: relative; width: 100%; min-height: 720px; display: flex; justify-content: center; perspective: 1200px; }
        .tarjeta { position: absolute; width: 100%; max-width: 680px; background: linear-gradient(155deg, rgba(34,35,39,.94), rgba(16,17,20,.92)); backdrop-filter: blur(24px); border-radius: 28px; padding: 30px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 28px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.055); box-sizing: border-box; transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.55s cubic-bezier(0.32, 0.72, 0, 1); transform-origin: center center; }
        
        .cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
        .nombre-container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .nombre { font-size: 20px; font-weight: 600; }
        .badge-idioma {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.10);
            font-size: 12px;
            padding: 5px 9px;
            border-radius: 999px;
            color: #e5e5ea;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }
        .badge-idioma svg { width: 14px; height: 14px; stroke: #0a84ff; stroke-width: 1.9; }

        .estrellas {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(10,132,255,0.10);
            border: 1px solid rgba(10,132,255,0.16);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
            width: fit-content;
        }
        .rating-icon {
            width: 15px;
            height: 15px;
            flex: 0 0 15px;
            fill: #0a84ff;
            color: #0a84ff;
            filter: drop-shadow(0 0 5px rgba(10,132,255,0.28));
        }
        .rating-value {
            color: #f5f5f7;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }
        .rating-label {
            color: #8e8e93;
            font-size: 12px;
            font-weight: 500;
        }
        .bloque-resena-original { margin-top: 22px; padding: 18px 19px; border-radius: 17px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.065); }
        .etiqueta-seccion { display: block; color: #8e8e93; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
        .texto { margin-top: 10px; font-size: 15px; line-height: 1.62; color: #e2e2e7; }
        
        .caja-traduccion { background: rgba(10, 132, 255, 0.1); border-left: 3px solid #0a84ff; padding: 12px 16px; border-radius: 0 10px 10px 0; margin-top: 15px; font-size: 14px; color: #f5f5f7; font-style: italic; }
        .caja-traduccion strong { font-style: normal; display: block; margin-bottom: 4px; color: #0a84ff; font-size: 12px; text-transform: uppercase; }

        .respuesta { margin-top: 16px; padding: 18px; background: linear-gradient(145deg, rgba(10,132,255,.09), rgba(28,28,30,.58)); border-radius: 18px; border: 1px solid rgba(10,132,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
        .respuesta-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
        .respuesta-ia-badge { padding: 4px 8px; border-radius: 999px; color: #67d4ff; background: rgba(10,132,255,.11); border: 1px solid rgba(103,212,255,.14); font-size: 10px; font-weight: 650; }
        .opciones-respuesta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: #a1a1a6; }
        .opciones-respuesta input[type="checkbox"] { accent-color: #0a84ff; cursor: pointer; width: 16px; height: 16px; }
        .opciones-respuesta label { cursor: pointer; }

        .textarea-respuesta { width: 100%; background: rgba(8, 9, 12, 0.48); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 13px; color: #f5f5f7; padding: 13px 14px; font-family: inherit; font-size: 14px; line-height: 1.55; resize: none; overflow: hidden; min-height: 80px; box-sizing: border-box; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
        .textarea-respuesta:focus { outline: none; border-color: rgba(10,132,255,.62); background: rgba(8,9,12,.68); box-shadow: 0 0 0 3px rgba(10,132,255,.11); }
        
        .acciones-container { display: grid; grid-template-columns: auto auto minmax(190px, 1fr); gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); transition: opacity 0.3s ease; }
        .tarjeta.inactiva .acciones-container { opacity: 0; pointer-events: none; }
        .btn-accion { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 15px; border-radius: 14px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; color: #f5f5f7; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; }
        .btn-accion svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
        .btn-accion:hover { transform: translateY(-1px); }
        .btn-accion:active { transform: scale(.985); }
        .btn-accion:focus-visible { outline: 3px solid rgba(103,212,255,.35); outline-offset: 2px; }
        .btn-publicar { border: 1px solid rgba(255,255,255,.18); background: linear-gradient(135deg, #0a84ff, #0064db); box-shadow: 0 10px 24px rgba(10,132,255,.25), inset 0 1px 0 rgba(255,255,255,.2); }
        .btn-publicar:hover { box-shadow: 0 14px 30px rgba(10,132,255,.34), inset 0 1px 0 rgba(255,255,255,.24); }
        .btn-no-responder, .btn-regenerar { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
        .btn-no-responder { color: #b6b6bb; }
        .btn-no-responder:hover { color: #ff6961; background: rgba(255,69,58,.09); border-color: rgba(255,69,58,.2); }
        .btn-regenerar { color: #c6b9ff; }
        .btn-regenerar:hover { color: #d8d0ff; background: rgba(117,92,255,.11); border-color: rgba(151,132,255,.22); }
        .btn-accion:disabled { cursor: wait; opacity: .62; transform: none; }
        .btn-regenerar.procesando svg { animation: cargar-sesion-giro .8s linear infinite; }
        .resenas-vacio { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 38px; padding: 35px; color: #8e8e93; text-align: center; }
        .resenas-vacio strong { color: #f5f5f7; font-size: 19px; }
        .resenas-vacio span:last-child { font-size: 14px; }
        .resenas-vacio-icono { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 15px; color: #32d74b; background: rgba(50,215,75,.09); border: 1px solid rgba(50,215,75,.16); }
        .resenas-vacio-icono svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
        @media (max-width: 700px) {
            .acciones-container { grid-template-columns: 1fr 1fr; }
            .btn-publicar { grid-column: 1 / -1; grid-row: 1; }
        }
        
        .swipe-right { transform: translateX(150vw) rotate(25deg) !important; }
        .swipe-left { transform: translateX(-150vw) rotate(-25deg) !important; }
        @keyframes break-remake { 0% { transform: scale(1); opacity: 1; filter: blur(0px); } 50% { transform: scale(0.85); opacity: 0; filter: blur(15px); } 100% { transform: scale(1); opacity: 1; filter: blur(0px); } }
        .anim-regenerar { animation: break-remake 0.7s forwards; pointer-events: none; }
