/* ================================================================
   pos.css — Estilos + Animaciones FlexVenta
   ================================================================ */

/* ======================== BASE ======================== */
body { background: #0a0e1a !important; background-color: #0a0e1a !important; }
html { background: #0a0e1a !important; }
main { background: #0a0e1a; min-height: 100vh; }

/* ======================== KEYFRAMES ======================== */

@keyframes posPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Entrada desde abajo */
@keyframes posSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Entrada desde la izquierda */
@keyframes posSlideLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Entrada desde la derecha */
@keyframes posSlideRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Fade simple */
@keyframes posFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Partículas flotantes del hero */
@keyframes posFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    33%       { transform: translateY(-22px) rotate(3deg); opacity: 1; }
    66%       { transform: translateY(-10px) rotate(-2deg); opacity: 0.8; }
}

/* Orb de luz girando */
@keyframes posOrbit {
    from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

/* Brillo deslizante en botones */
@keyframes posShine {
    0%   { left: -80%; }
    100% { left: 130%; }
}

/* Borde giratorio en plan featured */
@keyframes posBorderSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Pulso del borde featured */
@keyframes posFeaturedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58,54,224,0); }
    50%       { box-shadow: 0 0 0 8px rgba(58,54,224,0.1); }
}

/* Número del precio contando */
@keyframes posCountUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Ícono rebotando en benefit-card hover */
@keyframes posBounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-8px); }
    70%       { transform: translateY(-3px); }
}

/* Emoji de rubro girando en hover */
@keyframes posSpinPop {
    0%   { transform: scale(1) rotate(0deg); }
    50%  { transform: scale(1.35) rotate(12deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Línea de progreso de barras del dashboard */
@keyframes posBarGrow {
    from { width: 0; }
}

/* Onda de fondo en CTA */
@keyframes posWave {
    0%   { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Typing cursor FAQ */
@keyframes posCursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Shimmer en skeleton / plan featured badge */
@keyframes posShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* Aparición escalonada de items de lista */
@keyframes posListIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Rotación suave del ícono de beneficio */
@keyframes posIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-5px) scale(1.08); }
}

/* Parpadeo suave del badge "Nuevo" */
@keyframes posBadgePop {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* ======================== NAVBAR ======================== */
.pos-nav-active { color: #a89aff !important; font-weight: 600 !important; }
.nav-badge-pos { animation: posBadgePop 2.5s ease-in-out infinite; }

/* ======================== BREADCRUMB ======================== */
.pos-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem;
    animation: posSlideLeft 0.5s ease both;
}
.pos-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.pos-breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.pos-breadcrumb i { font-size: 10px; }
.pos-breadcrumb span { color: rgba(255,255,255,0.65); }

/* ======================== HERO ======================== */
.pos-hero {
    min-height: 92vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #16163a 60%, #0b1626 100%);
    position: relative; overflow: hidden;
    padding: 7rem 2rem 4rem;
}

/* Orb de luz 1 */
.pos-hero::before {
    content: '';
    position: absolute; top: -30%; right: -15%;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(58,54,224,0.14) 0%, transparent 70%);
    pointer-events: none;
    animation: posFloat 9s ease-in-out infinite;
}

/* Orb de luz 2 */
.pos-hero::after {
    content: '';
    position: absolute; bottom: -20%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,107,43,0.07) 0%, transparent 70%);
    pointer-events: none;
    animation: posFloat 12s ease-in-out infinite reverse;
}

/* Partículas decorativas */
.pos-hero-particle {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.pos-hero-particle:nth-child(1) {
    width: 4px; height: 4px; background: rgba(168,154,255,0.6);
    top: 20%; left: 15%; animation: posFloat 6s ease-in-out infinite;
}
.pos-hero-particle:nth-child(2) {
    width: 3px; height: 3px; background: rgba(255,107,43,0.5);
    top: 60%; left: 8%; animation: posFloat 8s ease-in-out infinite 1s;
}
.pos-hero-particle:nth-child(3) {
    width: 5px; height: 5px; background: rgba(58,54,224,0.4);
    top: 35%; right: 10%; animation: posFloat 7s ease-in-out infinite 2s;
}
.pos-hero-particle:nth-child(4) {
    width: 3px; height: 3px; background: rgba(29,158,117,0.5);
    top: 75%; right: 20%; animation: posFloat 10s ease-in-out infinite 0.5s;
}

.pos-hero-container {
    max-width: 1100px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; position: relative; z-index: 1;
}

@media (max-width: 900px) {
    .pos-hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .pos-hero-visual { display: none; }
}

/* Animaciones de entrada del hero */
.pos-hero-badge    { animation: posSlideUp 0.6s ease 0.1s both; }
.pos-hero-title    { animation: posSlideUp 0.6s ease 0.25s both; }
.pos-hero-lead     { animation: posSlideUp 0.6s ease 0.4s both; }
.pos-hero-ctas     { animation: posSlideUp 0.6s ease 0.55s both; }
.pos-trust-pills   { animation: posSlideUp 0.6s ease 0.7s both; }
.pos-hero-visual   { animation: posSlideRight 0.7s ease 0.4s both; }

.pos-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(58,54,224,0.14);
    border: 1px solid rgba(58,54,224,0.28);
    color: #a89aff; font-size: 12px; font-weight: 500;
    padding: 6px 14px; border-radius: 30px; margin-bottom: 1.5rem;
    transition: background 0.3s;
}
.pos-hero-badge:hover { background: rgba(58,54,224,0.25); }

.pos-badge-dot {
    width: 6px; height: 6px; background: #a89aff; border-radius: 50%;
    animation: posPulse 2s infinite;
}

.pos-hero-title {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 800; line-height: 1.15; color: #fff; margin-bottom: 1.25rem;
}

.pos-highlight-orange { color: var(--secondary-color); }

.pos-hero-lead {
    font-size: 1.05rem; color: rgba(255,255,255,0.62);
    line-height: 1.7; margin-bottom: 2rem;
}

.pos-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }

.pos-trust-pills { display: flex; flex-wrap: wrap; gap: 14px; }

.pos-trust-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: rgba(255,255,255,0.45);
}
.pos-trust-pill i { color: #1D9E75; font-size: 11px; }

/* ======================== DASHBOARD MOCK ======================== */
.pos-hero-visual { position: relative; }

.pos-dashboard-mock {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 18px;
    transition: border-color 0.4s, transform 0.4s;
}
.pos-dashboard-mock:hover {
    border-color: rgba(58,54,224,0.35);
    transform: translateY(-4px);
}

.pos-mock-header {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-red    { background: #ff5f57; }
.mock-yellow { background: #ffbd2e; }
.mock-green  { background: #28ca41; }
.mock-title-bar { font-size: 11px; color: rgba(255,255,255,0.35); margin-left: 4px; }

.pos-mock-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}

.pos-mock-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 10px;
    transition: background 0.3s, border-color 0.3s;
}
.pos-mock-stat:hover {
    background: rgba(58,54,224,0.08);
    border-color: rgba(58,54,224,0.2);
}

.mock-stat-label  { font-size: 10px; color: rgba(255,255,255,0.38); margin-bottom: 3px; }
.mock-stat-value  { font-size: 16px; font-weight: 700; color: #fff; }
.mock-stat-sub    { font-size: 10px; }
.pos-green  { color: #1D9E75; }
.pos-orange { color: var(--secondary-color); }

.mock-bar-title { font-size: 10px; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.mock-bar-row   { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.mock-bar-label { font-size: 10px; color: rgba(255,255,255,0.45); width: 90px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-bar-track { flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; height: 5px; }
.mock-bar-fill  { height: 5px; border-radius: 4px; background: linear-gradient(90deg, #3a36e0, #7a77ff); animation: posBarGrow 1.4s ease both; }
.mock-bar-fill:nth-child(1) { animation-delay: 0.8s; }
.mock-bar-fill:nth-child(2) { animation-delay: 1.0s; }
.mock-bar-fill:nth-child(3) { animation-delay: 1.2s; }
.mock-bar-val   { font-size: 10px; color: rgba(255,255,255,0.35); width: 48px; text-align: right; flex-shrink: 0; }

/* ======================== SECCIONES ======================== */
.pos-section     { padding: 5rem 2rem; background: #0a0e1a; }
.pos-benefits-bg { background: #0d1018; }
.pos-section-inner { max-width: 1100px; margin: 0 auto; }

.pos-section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #a89aff; margin-bottom: 10px;
}

.pos-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; color: #fff; margin-bottom: 1rem; line-height: 1.2;
}

.pos-section-subtitle {
    font-size: 1rem; color: rgba(255,255,255,0.52);
    line-height: 1.7; max-width: 560px; margin-bottom: 2.5rem;
}

/* Clase utilitaria de entrada al scroll */
.pos-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.pos-reveal.visible { opacity: 1; transform: translateY(0); }
.pos-reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.pos-reveal-left.visible  { opacity: 1; transform: translateX(0); }
.pos-reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.6s ease, transform 0.6s ease; }
.pos-reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Delays escalonados */
.pos-delay-1 { transition-delay: 0.1s; }
.pos-delay-2 { transition-delay: 0.2s; }
.pos-delay-3 { transition-delay: 0.3s; }
.pos-delay-4 { transition-delay: 0.4s; }
.pos-delay-5 { transition-delay: 0.5s; }
.pos-delay-6 { transition-delay: 0.6s; }

/* ======================== BENEFICIOS ======================== */
.pos-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.pos-benefit-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 22px 18px;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    position: relative; overflow: hidden;
}

/* Efecto sweep de luz al hover */
.pos-benefit-card::before {
    content: '';
    position: absolute; top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transform: skewX(-15deg);
    transition: none;
}
.pos-benefit-card:hover::before {
    animation: posShine 0.6s ease forwards;
}

.pos-benefit-card:hover {
    border-color: rgba(58,54,224,0.45);
    background: rgba(58,54,224,0.06);
    transform: translateY(-6px);
}

.pos-benefit-icon {
    width: 42px; height: 42px;
    background: rgba(58,54,224,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #a89aff; margin-bottom: 12px;
    transition: transform 0.3s, background 0.3s;
}
.pos-benefit-card:hover .pos-benefit-icon {
    background: rgba(58,54,224,0.22);
    animation: posIconFloat 1.2s ease infinite;
}

.pos-benefit-card h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.pos-benefit-card p  { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.6; margin: 0; }

/* ======================== RUBROS ======================== */
.pos-rubros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.pos-rubro-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 18px 12px;
    text-align: center; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block; position: relative; overflow: hidden;
}

.pos-rubro-card::after {
    content: '';
    position: absolute; inset: 0; border-radius: 14px;
    background: radial-gradient(circle at 50% 50%, rgba(58,54,224,0.15), transparent 70%);
    opacity: 0; transition: opacity 0.3s;
}

.pos-rubro-card:hover {
    border-color: rgba(58,54,224,0.5);
    background: rgba(58,54,224,0.08);
    transform: translateY(-6px) scale(1.03);
}
.pos-rubro-card:hover::after { opacity: 1; }

.pos-rubro-emoji {
    font-size: 28px; margin-bottom: 8px; display: block;
    transition: transform 0.4s ease;
}
.pos-rubro-card:hover .pos-rubro-emoji { animation: posSpinPop 0.5s ease; }

.pos-rubro-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.pos-rubro-cta  { font-size: 11px; color: #a89aff; transition: color 0.2s; }
.pos-rubro-card:hover .pos-rubro-cta { color: #fff; }

/* ======================== PLANES ======================== */
.pos-plans-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.pos-plans-full { margin-top: 2rem; }
@media (max-width: 860px) { .pos-plans-grid { grid-template-columns: 1fr; } }

.pos-plan-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 26px 22px;
    position: relative; display: flex; flex-direction: column;
    transition: transform 0.35s ease, border-color 0.35s;
}
.pos-plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.18);
}

/* Plan featured: borde de gradiente moderno + glow elevado */
.pos-plan-card.pos-plan-featured {
    border: 2px solid transparent;
    background:
        linear-gradient(160deg, #14182e, #0e1224) padding-box,
        linear-gradient(135deg, #3a36e0 0%, #a89aff 45%, #ff6b2b 100%) border-box;
    box-shadow:
        0 18px 50px rgba(58,54,224,0.28),
        0 4px 16px rgba(0,0,0,0.35);
}
.pos-plan-card.pos-plan-featured:hover {
    transform: translateY(-9px);
    box-shadow:
        0 26px 64px rgba(58,54,224,0.38),
        0 6px 20px rgba(0,0,0,0.4);
}

/* Destello suave que recorre la card destacada */
.pos-plan-card.pos-plan-featured::before {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(168,154,255,0.07), transparent);
    transform: skewX(-14deg);
    animation: posShine 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 16px;
    z-index: 0;
}

.pos-plan-popular {
    position: absolute; top: -13px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3a36e0, #7a77ff);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 5px 18px; border-radius: 20px; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(58,54,224,0.5);
    z-index: 2;
}

.pos-plan-name {
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px;
}

.pos-plan-price {
    font-size: 2.1rem; font-weight: 800; color: #fff;
    margin-bottom: 3px; line-height: 1;
    animation: posCountUp 0.5s ease both;
}

.pos-plan-period { font-size: 12px; color: rgba(255,255,255,0.38); margin-bottom: 14px; }

.pos-plan-desc {
    font-size: 13px; color: rgba(255,255,255,0.48);
    margin-bottom: 18px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pos-plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }

.pos-plan-features li {
    font-size: 13px; color: rgba(255,255,255,0.62);
    padding: 6px 0; display: flex; align-items: flex-start; gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    animation: posListIn 0.4s ease both;
}
.pos-plan-features li:nth-child(1) { animation-delay: 0.05s; }
.pos-plan-features li:nth-child(2) { animation-delay: 0.10s; }
.pos-plan-features li:nth-child(3) { animation-delay: 0.15s; }
.pos-plan-features li:nth-child(4) { animation-delay: 0.20s; }
.pos-plan-features li:nth-child(5) { animation-delay: 0.25s; }
.pos-plan-features li:nth-child(6) { animation-delay: 0.30s; }
.pos-plan-features li:nth-child(7) { animation-delay: 0.35s; }
.pos-plan-features li:nth-child(8) { animation-delay: 0.40s; }

.pos-plan-features li:last-child { border-bottom: none; }
.pos-plan-features li i { font-size: 12px; margin-top: 2px; flex-shrink: 0; color: #1D9E75; }
.pos-plan-no { color: rgba(255,255,255,0.18) !important; }
.pos-plan-features li:has(.pos-plan-no) { color: rgba(255,255,255,0.22); }
.pos-plan-features-full li { padding: 7px 0; }

.pos-plan-cta-pri, .pos-plan-cta-sec {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; padding: 12px;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: all 0.25s; cursor: pointer; border: none;
    box-sizing: border-box; text-align: center;
    position: relative; overflow: hidden;
}

/* Shine en botón primario del plan */
.pos-plan-cta-pri::after {
    content: '';
    position: absolute; top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-15deg);
}
.pos-plan-cta-pri:hover::after { animation: posShine 0.5s ease forwards; }

.pos-plan-cta-pri { background: var(--primary-color); color: #fff; }
.pos-plan-cta-pri:hover { background: #5855e8; transform: translateY(-2px); }

.pos-plan-cta-sec {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.pos-plan-cta-sec:hover { border-color: rgba(255,255,255,0.45); transform: translateY(-1px); }

.pos-plans-note { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 1.2rem; }
.pos-plans-note a { color: #a89aff; text-decoration: none; }
.pos-plans-note a:hover { text-decoration: underline; }

/* Toggle facturación */
.pos-billing-toggle {
    display: inline-flex; gap: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px; padding: 4px; margin-bottom: 2rem;
}
.pos-billing-btn {
    background: transparent; border: none;
    color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500;
    padding: 8px 18px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; gap: 8px;
    font-family: 'Inter', sans-serif;
}
.pos-billing-btn.pos-billing-active { background: var(--primary-color); color: #fff; }
.pos-billing-save {
    font-size: 10px; font-weight: 700;
    background: rgba(255,107,43,0.2); color: var(--secondary-color);
    padding: 2px 7px; border-radius: 10px;
}

/* ======================== FAQ ======================== */
.pos-faq-list { max-width: 720px; }

.pos-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.2s;
    border-radius: 8px; padding: 0 10px;
    margin-bottom: 2px;
}
.pos-faq-item:hover { background: rgba(255,255,255,0.02); }

.pos-faq-q {
    width: 100%; background: none; border: none;
    padding: 18px 0; display: flex; justify-content: space-between;
    align-items: center; gap: 12px; cursor: pointer;
    text-align: left; color: #fff; font-size: 15px; font-weight: 500;
    font-family: 'Inter', sans-serif; transition: color 0.2s;
}
.pos-faq-q:hover { color: #a89aff; }
.pos-faq-q i { color: rgba(255,255,255,0.4); flex-shrink: 0; transition: transform 0.35s ease, color 0.2s; }
.pos-faq-q:hover i { color: #a89aff; }
.pos-faq-q-open i { transform: rotate(180deg); color: #a89aff !important; }

.pos-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}
.pos-faq-a.pos-faq-open { max-height: 300px; padding-bottom: 16px; }

.pos-faq-a p {
    font-size: 14px; color: rgba(255,255,255,0.52);
    line-height: 1.7; margin: 0;
    animation: posFadeIn 0.3s ease both;
}

/* Línea lateral colorida al abrir */
.pos-faq-item:has(.pos-faq-open) {
    border-left: 3px solid var(--primary-color);
    padding-left: 14px;
    border-bottom-color: transparent;
    background: rgba(58,54,224,0.04);
}

/* ======================== CTA FINAL ======================== */
.pos-cta-final {
    background: linear-gradient(135deg, rgba(58,54,224,0.18), rgba(88,85,232,0.08));
    border: 1px solid rgba(58,54,224,0.22);
    border-radius: 20px; padding: 3.5rem 2rem;
    text-align: center; position: relative; overflow: hidden;
}

/* Ondas de fondo */
.pos-cta-final::before,
.pos-cta-final::after {
    content: '';
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(58,54,224,0.2);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: posWave 4s ease-out infinite;
}
.pos-cta-final::after {
    animation-delay: 2s;
}

.pos-cta-final h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700; color: #fff; margin-bottom: 0.75rem;
    position: relative; z-index: 1;
}
.pos-cta-final p {
    font-size: 1rem; color: rgba(255,255,255,0.52);
    margin-bottom: 1.75rem; max-width: 460px;
    margin-left: auto; margin-right: auto;
    position: relative; z-index: 1;
}
.pos-cta-final-btns {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    position: relative; z-index: 1;
}

/* ======================== BOTONES GLOBALES ======================== */
.pos-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-color); color: #fff;
    font-size: 14px; font-weight: 600;
    padding: 13px 26px; border-radius: 8px;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.25s ease; font-family: 'Inter', sans-serif;
    position: relative; overflow: hidden;
}
.pos-btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-15deg);
}
.pos-btn-primary:hover { background: #5855e8; transform: translateY(-2px); }
.pos-btn-primary:hover::after { animation: posShine 0.5s ease forwards; }

.pos-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff;
    font-size: 14px; font-weight: 500;
    padding: 12px 22px; border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.pos-btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
    background: rgba(255,255,255,0.04);
}

.pos-btn-full { width: 100%; justify-content: center; box-sizing: border-box; }
.pos-btn-row  { display: flex; gap: 10px; }

/* ======================== DEMO PAGE ======================== */
.pos-demo-page {
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
    background: linear-gradient(135deg, #0a0e1a 0%, #16163a 100%);
}
.pos-demo-container {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 340px;
    gap: 2.5rem; align-items: start;
}
@media (max-width: 860px) {
    .pos-demo-container { grid-template-columns: 1fr; }
    .pos-demo-info-col { order: -1; }
}

.pos-demo-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.pos-demo-subtitle { font-size: 15px; color: rgba(255,255,255,0.52); margin-bottom: 2rem; line-height: 1.6; }

/* Stepper */
.pos-stepper { display: flex; align-items: center; gap: 0; margin-bottom: 1.75rem; }
.pos-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.38); flex: 1;
    transition: color 0.3s;
}
.pos-step.pos-step-active { color: #fff; font-weight: 500; }
.pos-step.pos-step-done   { color: #1D9E75; }

.pos-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
    transition: all 0.3s ease;
}
.pos-step-active .pos-step-num {
    background: var(--primary-color); border-color: var(--primary-color); color: #fff;
    animation: posPulse 2s infinite;
}
.pos-step-done .pos-step-num {
    background: rgba(29,158,117,0.2); border-color: #1D9E75; color: #1D9E75;
}
.pos-step-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); margin: 0 8px; max-width: 40px; }

/* Form card */
.pos-form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px; padding: 28px;
}
.pos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .pos-form-row { grid-template-columns: 1fr; } }
.pos-form-group { display: flex; flex-direction: column; gap: 6px; }
.pos-form-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); }

.pos-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 10px 14px;
    color: #fff; font-size: 14px; font-family: 'Inter', sans-serif;
    width: 100%; box-sizing: border-box;
    transition: border-color 0.25s, background 0.25s;
    outline: none;
}
.pos-input:focus {
    border-color: rgba(58,54,224,0.7);
    background: rgba(58,54,224,0.06);
}
.pos-input::placeholder { color: rgba(255,255,255,0.25); }
.pos-input option { background: #1a1a3e; color: #fff; }
textarea.pos-input { resize: vertical; }

/* Rubro select */
.pos-rubro-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px; margin-bottom: 18px;
}
.pos-rubro-select-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 10px 8px;
    text-align: center; cursor: pointer;
    font-size: 12px; color: rgba(255,255,255,0.6);
    transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.pos-rubro-select-btn:hover { border-color: rgba(58,54,224,0.4); transform: scale(1.04); }
.pos-rubro-select-btn.selected {
    border: 2px solid var(--primary-color);
    background: rgba(58,54,224,0.12);
    color: #fff; font-weight: 600;
    animation: posSlideUp 0.25s ease;
}

/* Horario */
.pos-horario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pos-horario-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 14px 8px;
    text-align: center; cursor: pointer;
    font-size: 12px; color: rgba(255,255,255,0.6);
    transition: all 0.25s; display: flex; flex-direction: column;
    align-items: center; gap: 4px; font-family: 'Inter', sans-serif;
}
.pos-horario-btn i      { font-size: 18px; margin-bottom: 4px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.pos-horario-btn strong { color: rgba(255,255,255,0.75); font-size: 13px; }
.pos-horario-btn span   { color: rgba(255,255,255,0.35); font-size: 11px; }
.pos-horario-btn:hover  { border-color: rgba(58,54,224,0.4); transform: translateY(-3px); }
.pos-horario-btn.selected {
    border: 2px solid var(--primary-color);
    background: rgba(58,54,224,0.12);
    animation: posSlideUp 0.25s ease;
}
.pos-horario-btn.selected i, .pos-horario-btn.selected strong { color: #fff; }

/* Error */
.pos-form-error {
    display: flex; align-items: center; gap: 8px;
    color: var(--secondary-color); font-size: 13px; margin-top: 10px;
    animation: posSlideUp 0.3s ease;
}

/* Éxito */
.pos-success-avatar {
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(29,158,117,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #1D9E75;
    margin: 0 auto 1rem;
    animation: posSlideUp 0.5s ease, posFeaturedPulse 2s 0.5s ease-in-out infinite;
}
.pos-success-resumen {
    background: rgba(255,255,255,0.05);
    border-radius: 10px; padding: 12px 16px; text-align: left;
    animation: posSlideUp 0.4s ease 0.2s both;
}
.pos-success-resumen p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0 0 4px; }
.pos-success-resumen p:last-child { margin-bottom: 0; }
.pos-success-resumen strong { color: #fff; }

/* Plan preselect */
.pos-plan-preselect {
    font-size: 13px; color: rgba(255,255,255,0.5);
    margin: 0 0 1.5rem; display: flex; align-items: center; gap: 6px;
    animation: posSlideLeft 0.4s ease;
}
.pos-plan-preselect i      { color: #a89aff; }
.pos-plan-preselect strong { color: #fff; }

/* ======================== DEMO INFO COL ======================== */
.pos-demo-info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px; padding: 22px; margin-bottom: 14px;
    transition: border-color 0.3s, transform 0.3s;
}
.pos-demo-info-card:hover { border-color: rgba(58,54,224,0.3); transform: translateY(-2px); }

.pos-demo-info-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }

.pos-demo-benefit {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: flex-start; transition: background 0.2s;
    border-radius: 6px; padding-left: 4px;
}
.pos-demo-benefit:hover { background: rgba(255,255,255,0.02); }
.pos-demo-benefit:last-child { border-bottom: none; padding-bottom: 0; }

.pos-demo-benefit-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(58,54,224,0.14);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #a89aff; flex-shrink: 0;
    transition: background 0.3s, transform 0.3s;
}
.pos-demo-benefit:hover .pos-demo-benefit-icon {
    background: rgba(58,54,224,0.28);
    transform: scale(1.1);
}
.pos-demo-benefit strong { font-size: 13px; font-weight: 600; color: #fff; display: block; margin-bottom: 3px; }
.pos-demo-benefit p { font-size: 12px; color: rgba(255,255,255,0.45); margin: 0; line-height: 1.5; }

.pos-demo-profile-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px; padding: 20px; margin-bottom: 14px;
    transition: border-color 0.3s;
}
.pos-demo-profile-card:hover { border-color: rgba(58,54,224,0.25); }

.pos-profile-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(58,54,224,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #a89aff;
    float: left; margin-right: 12px; margin-bottom: 4px;
}
.pos-profile-info { overflow: hidden; }
.pos-profile-info strong { font-size: 14px; color: #fff; display: block; }
.pos-profile-info span   { font-size: 12px; color: rgba(255,255,255,0.4); }

.pos-profile-quote {
    font-size: 13px; color: rgba(255,255,255,0.48);
    line-height: 1.6; margin: 14px 0 12px; clear: both; font-style: italic;
}
.pos-profile-meta { display: flex; flex-direction: column; gap: 4px; }
.pos-profile-meta span {
    font-size: 12px; color: rgba(255,255,255,0.38);
    display: flex; align-items: center; gap: 6px;
}
.pos-profile-meta i { font-size: 11px; }

.pos-demo-back-link {
    font-size: 13px; color: rgba(255,255,255,0.38);
    text-decoration: none; display: inline-flex;
    align-items: center; gap: 6px; transition: color 0.2s, gap 0.2s;
}
.pos-demo-back-link:hover { color: rgba(255,255,255,0.7); gap: 10px; }

/* ======================== SCROLL PROGRESS BAR ======================== */
.pos-scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, #3a36e0, #a89aff, #ff6b2b);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(168,154,255,0.6);
}

/* ======================== SPOTLIGHT CURSOR (cult-ui inspired) ======================== */
/* Glow radial que sigue al mouse, definido por --x / --y via JS */
.pos-benefit-card, .pos-plan-card, .pos-rubro-card {
    --x: 50%; --y: 50%;
}
.pos-benefit-card::after, .pos-plan-card > .pos-spot, .pos-rubro-card::after {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(
        300px circle at var(--x) var(--y),
        rgba(168,154,255,0.16),
        rgba(58,54,224,0.08) 30%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.pos-benefit-card:hover::after, .pos-rubro-card:hover::after, .pos-plan-card:hover > .pos-spot {
    opacity: 1;
}
.pos-plan-card > .pos-spot {
    border-radius: 16px;
}
/* Asegurar que el contenido quede sobre el spotlight */
.pos-benefit-card > *, .pos-plan-card > *:not(.pos-spot), .pos-rubro-card > * {
    position: relative; z-index: 1;
}
.pos-rubro-card::after { z-index: 0; }

/* ======================== GRADIENTE ANIMADO EN TEXTO ======================== */
.pos-gradient-text {
    background: linear-gradient(90deg, #a89aff, #ff6b2b, #3a36e0, #a89aff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: posGradientMove 6s linear infinite;
}
@keyframes posGradientMove {
    to { background-position: 300% center; }
}

/* ======================== MAGNETIC BUTTONS ======================== */
.pos-magnetic { transition: transform 0.15s ease-out; will-change: transform; }

/* ======================== RIPPLE click ======================== */
.pos-ripple { position: relative; overflow: hidden; }
.pos-ripple-dot {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0); animation: posRipple 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes posRipple {
    to { transform: scale(3); opacity: 0; }
}

/* ======================== MARQUEE de rubros (cinta infinita) ======================== */
.pos-marquee {
    overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    padding: 1rem 0;
}
.pos-marquee-track {
    display: flex; gap: 14px; width: max-content;
    animation: posMarquee 28s linear infinite;
}
.pos-marquee:hover .pos-marquee-track { animation-play-state: paused; }
@keyframes posMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.pos-marquee-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px; padding: 8px 18px;
    font-size: 13px; color: rgba(255,255,255,0.6);
    white-space: nowrap; flex-shrink: 0;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.pos-marquee-pill:hover {
    border-color: rgba(58,54,224,0.45);
    color: #fff; background: rgba(58,54,224,0.08);
}

/* ======================== TILT solo con mouse fino (no touch) ======================== */
@media (hover: hover) and (pointer: fine) {
    .pos-tilt { transition: transform 0.1s ease-out; }
}
@media (hover: none), (pointer: coarse) {
    .pos-plan-card, .pos-benefit-card { transform: none !important; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 600px) {
    .pos-hero { padding: 6rem 1.25rem 3rem; }
    .pos-section { padding: 3.5rem 1.25rem; }
    .pos-form-card { padding: 20px 16px; }
    .pos-demo-page { padding: 6rem 1.25rem 3rem; }
    .pos-horario-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .pos-plans-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
