/*
 * Profit360 — sistema visual (manual de marca v1.0)
 * Lima #B6F500 · Carbón #18181B · Blanco #FFFFFF · Sora
 * Reglas: botones lima con texto carbón; nunca texto lima sobre blanco.
 * Se apoya en Bootstrap 5.3 y reemplaza sus variables.
 */

:root {
    --p-lima: #B6F500;
    --p-lima-hover: #A6E000;
    --p-lima-suave: rgba(182, 245, 0, .16);
    --p-lima-rgb: 182, 245, 0;
    /* Texto sobre el color principal, principal como texto sobre fondo oscuro y sobre fondo claro. */
    --p-lima-tinta: #18181B;
    --p-lima-claro: #B6F500;
    --p-lima-oscuro: #4d7a00;
    --p-carbon: #18181B;
    --p-carbon-2: #232327;
    --p-carbon-3: #2E2E33;
    --p-carbon-borde: rgba(255, 255, 255, .08);
    --p-fondo: #F5F5F4;
    --p-superficie: #FFFFFF;
    --p-borde: #E7E5E4;
    --p-borde-fuerte: #D6D3D1;
    --p-texto: #18181B;
    --p-texto-2: #71717A;
    --p-texto-3: #A1A1AA;
    --p-exito: #16A34A;
    --p-peligro: #DC2626;
    --p-aviso: #F59E0B;

    /* Acento: Profit360 usa lima; cada gimnasio puede tener el suyo (ver layouts/base) */
    --p-acento: var(--p-lima);
    --p-acento-texto: var(--p-lima-tinta);

    --p-radio: 16px;
    --p-radio-sm: 10px;
    --p-sombra: 0 1px 2px rgba(24, 24, 27, .04), 0 12px 32px -16px rgba(24, 24, 27, .14);
    --p-sombra-alta: 0 24px 64px -24px rgba(24, 24, 27, .35);

    --bs-body-font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-color: var(--p-texto);
    --bs-body-bg: var(--p-fondo);
    --bs-secondary-color: var(--p-texto-2);
    --bs-border-color: var(--p-borde);
    --bs-border-radius: var(--p-radio-sm);
    --bs-border-radius-lg: var(--p-radio);
    --bs-link-color: var(--p-carbon);
    --bs-link-color-rgb: 24, 24, 27;
    --bs-link-hover-color: var(--p-carbon);
    --bs-link-hover-color-rgb: 24, 24, 27;
    --bs-emphasis-color: var(--p-carbon);
    --bs-heading-color: var(--p-carbon);
    --bs-focus-ring-color: rgba(182, 245, 0, .45);
}

body {
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .p-titulo { font-weight: 800; letter-spacing: -.03em; }
h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; }
.fw-semibold, strong { font-weight: 600; }
.text-secondary { color: var(--p-texto-2) !important; }
small, .small { font-size: .875rem; }

a { text-decoration-color: var(--p-lima); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--p-carbon); }

::selection { background: var(--p-lima); color: var(--p-lima-tinta); }

/* ---------- Tipografía de marca ---------- */

.p-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--p-texto-2);
}

.p-barra::after {
    content: '';
    display: block;
    width: 56px;
    height: 6px;
    margin-top: .9rem;
    background: var(--p-lima);
}

.p-barra-centro::after { margin-left: auto; margin-right: auto; }

.p-resaltado {
    background: linear-gradient(transparent 62%, var(--p-lima) 62%);
    padding: 0 .1em;
}

/* ---------- Botones ---------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-padding-y: .6rem;
    --bs-btn-border-radius: var(--p-radio-sm);
    letter-spacing: -.01em;
    transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1rem; }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .4rem; --bs-btn-font-size: .85rem; }

.btn-primario,
.btn-marca {
    --bs-btn-color: var(--p-acento-texto);
    --bs-btn-bg: var(--p-acento);
    --bs-btn-border-color: var(--p-acento);
    --bs-btn-hover-color: var(--p-acento-texto);
    --bs-btn-hover-bg: var(--p-acento);
    --bs-btn-hover-border-color: var(--p-acento);
    --bs-btn-active-color: var(--p-acento-texto);
    --bs-btn-active-bg: var(--p-acento);
    --bs-btn-active-border-color: var(--p-acento);
    --bs-btn-disabled-color: var(--p-acento-texto);
    --bs-btn-disabled-bg: var(--p-acento);
    --bs-btn-disabled-border-color: var(--p-acento);
}
.btn-primario:hover, .btn-marca:hover { filter: brightness(.94); box-shadow: 0 8px 20px -10px var(--p-acento); }

.btn-carbon {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--p-carbon);
    --bs-btn-border-color: var(--p-carbon);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
}

.btn-borde {
    --bs-btn-color: var(--p-carbon);
    --bs-btn-bg: var(--p-superficie);
    --bs-btn-border-color: var(--p-borde-fuerte);
    --bs-btn-hover-color: var(--p-carbon);
    --bs-btn-hover-bg: var(--p-fondo);
    --bs-btn-hover-border-color: var(--p-carbon);
    --bs-btn-active-bg: var(--p-fondo);
    --bs-btn-active-border-color: var(--p-carbon);
}

.btn-borde-claro {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, .25);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .08);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .12);
}

.btn-peligro-suave {
    --bs-btn-color: var(--p-peligro);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(220, 38, 38, .3);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--p-peligro);
    --bs-btn-hover-border-color: var(--p-peligro);
}

/* ---------- Formularios ---------- */

.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.form-text { color: var(--p-texto-2); font-size: .8rem; }

.form-control, .form-select {
    border-color: var(--p-borde-fuerte);
    border-radius: var(--p-radio-sm);
    padding: .7rem .9rem;
    font-size: .95rem;
    background-color: var(--p-superficie);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control-sm, .form-select-sm { padding: .45rem .7rem; font-size: .85rem; }
.form-control-lg { padding: .85rem 1rem; font-size: 1rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--p-carbon);
    box-shadow: 0 0 0 4px var(--p-lima-suave);
}
.form-control::placeholder { color: var(--p-texto-3); }
.input-group-text {
    background: var(--p-fondo);
    border-color: var(--p-borde-fuerte);
    color: var(--p-texto-2);
    font-size: .85rem;
}
.form-check-input { border-color: var(--p-borde-fuerte); }
.form-check-input:checked { background-color: var(--p-carbon); border-color: var(--p-carbon); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--p-lima-suave); border-color: var(--p-carbon); }

/* ---------- Superficies ---------- */

.p-card {
    background: var(--p-superficie);
    border: 1px solid var(--p-borde);
    border-radius: var(--p-radio);
    box-shadow: var(--p-sombra);
}
.p-card-cuerpo { padding: 1.5rem; }
.p-card-cabecera {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--p-borde);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.p-card-cabecera h2, .p-card-cabecera h3 { font-size: 1rem; margin: 0; font-weight: 700; letter-spacing: -.01em; }

.p-card-oscura {
    background: var(--p-carbon);
    color: #fff;
    border-radius: var(--p-radio);
    position: relative;
    overflow: hidden;
}
.p-card-oscura h1, .p-card-oscura h2, .p-card-oscura h3 { color: #fff; }
.p-card-oscura .text-secondary { color: rgba(255, 255, 255, .6) !important; }
.p-card-oscura::before {
    content: '';
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(var(--p-lima-rgb), .22), transparent 70%);
    pointer-events: none;
}

/* KPI */
.p-kpi { padding: 1.25rem 1.5rem; }
.p-kpi-valor { font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.p-kpi-icono {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--p-lima-suave);
    color: var(--p-carbon);
    font-size: 1.15rem;
}

/* Listas */
.p-lista { list-style: none; margin: 0; padding: 0; }
.p-lista > li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid var(--p-borde);
}
.p-lista > li:last-child { border-bottom: 0; }

.p-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    background: var(--p-fondo);
    color: var(--p-carbon);
    border: 1px solid var(--p-borde);
}
.p-avatar-acento { background: var(--p-acento); color: var(--p-acento-texto); border-color: transparent; }
.p-avatar-lg { width: 48px; height: 48px; font-size: 1rem; border-radius: 14px; }

/* Tablas */
.p-tabla { margin: 0; --bs-table-bg: transparent; }
.p-tabla > :not(caption) > * > * { padding: .9rem 1.5rem; border-color: var(--p-borde); vertical-align: middle; }
.p-tabla thead th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--p-texto-2);
    background: #FAFAF9;
}
.p-tabla tbody tr { transition: background-color .12s ease; }
.p-tabla tbody tr:hover { background: #FAFAF9; }

/* Estados */
.p-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    background: var(--p-fondo);
    color: var(--p-texto-2);
    border: 1px solid var(--p-borde);
}
.p-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-chip-ok { background: #ECFDF3; color: #15803D; border-color: #BBF7D0; }
.p-chip-alerta { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.p-chip-error { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.p-chip-marca { background: var(--p-lima); color: var(--p-lima-tinta); border-color: var(--p-lima); }
.p-chip-oscuro { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .14); }

/* Alertas */
.alert { border-radius: var(--p-radio-sm); border-width: 1px; font-size: .925rem; padding: .9rem 1.1rem; }
.alert-success { background: #ECFDF3; border-color: #BBF7D0; color: #14532D; }
.alert-danger { background: #FEF2F2; border-color: #FECACA; color: #7F1D1D; }
.alert-info { background: #F4F4F5; border-color: var(--p-borde-fuerte); color: var(--p-carbon); }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }

/* Vacíos */
.p-vacio { text-align: center; padding: 3rem 1.5rem; color: var(--p-texto-2); }
.p-vacio-icono {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--p-fondo);
    color: var(--p-carbon);
    font-size: 1.5rem;
}

/* ---------- Barra superior (app) ---------- */

.p-topbar {
    background: var(--p-carbon);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--p-carbon-borde);
}
.p-topbar .container { min-height: 64px; display: flex; align-items: center; gap: 1rem; }
.p-topbar-marca { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.02em; min-width: 0; }
.p-topbar-marca:hover { color: #fff; }
.p-topbar-marca img { height: 28px; width: auto; }
.p-topbar-marca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-topbar-nav { display: flex; gap: .25rem; margin-left: 1rem; }
.p-topbar-nav a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem .8rem;
    border-radius: 8px;
    transition: color .15s ease, background-color .15s ease;
}
.p-topbar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.p-topbar-nav a.activo { color: var(--p-lima-tinta); background: var(--p-acento); color: var(--p-acento-texto); }

.p-usuario {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: none;
    border: 0;
    color: #fff;
    padding: .25rem .4rem .25rem .25rem;
    border-radius: 999px;
    transition: background-color .15s ease;
}
.p-usuario:hover, .p-usuario[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.p-usuario .p-avatar { background: var(--p-carbon-3); color: #fff; border-color: transparent; }
.p-usuario-nombre { font-size: .85rem; font-weight: 600; line-height: 1.1; text-align: left; }
.p-usuario-rol { font-size: .72rem; color: rgba(255, 255, 255, .55); }

.dropdown-menu {
    --bs-dropdown-border-color: var(--p-borde);
    --bs-dropdown-border-radius: 12px;
    --bs-dropdown-link-active-bg: var(--p-fondo);
    --bs-dropdown-link-active-color: var(--p-carbon);
    --bs-dropdown-font-size: .9rem;
    box-shadow: var(--p-sombra-alta);
    padding: .4rem;
}
.dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-weight: 500; }

.p-franja {
    font-size: .875rem;
    padding: .6rem 0;
    background: var(--p-superficie);
    border-bottom: 1px solid var(--p-borde);
}
.p-franja-urgente { background: var(--p-lima); border-bottom-color: var(--p-lima); }

/* Navegación inferior en celulares */
.p-nav-movil { display: none; }
@media (max-width: 767.98px) {
    .p-topbar-nav { display: none; }
    .p-usuario-texto { display: none; }
    .p-nav-movil {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: var(--p-carbon);
        padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--p-carbon-borde);
    }
    .p-nav-movil a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .15rem;
        padding: .35rem 0;
        border-radius: 10px;
        color: rgba(255, 255, 255, .6);
        text-decoration: none;
        font-size: .7rem;
        font-weight: 600;
    }
    .p-nav-movil a i { font-size: 1.2rem; }
    .p-nav-movil a { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .p-nav-movil a.activo { color: var(--p-lima-claro); }
    .p-con-nav-movil { padding-bottom: 5rem; }
}

.p-pie {
    margin-top: auto;
    padding: 1.5rem 0;
    font-size: .8rem;
    color: var(--p-texto-3);
}
.p-pie a { color: var(--p-texto-2); text-decoration: none; font-weight: 600; }
.p-pie img { height: 16px; vertical-align: -3px; }

/* Encabezado de página */
.p-encabezado { margin-bottom: 1.75rem; }
.p-encabezado h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: .35rem 0 0; }

/* ---------- Acceso (login / registro) ---------- */

.p-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.p-auth-lado {
    background: var(--p-carbon);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.p-auth-lado::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -200px;
    background: radial-gradient(circle, rgba(var(--p-lima-rgb), .20), transparent 65%);
    pointer-events: none;
}
.p-auth-lado h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; }
.p-auth-lado .p-eyebrow { color: rgba(255, 255, 255, .55); }
.p-auth-logo { height: 40px; width: auto; align-self: flex-start; }
.p-auth-beneficios { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.p-auth-beneficios li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(255, 255, 255, .8); }
.p-auth-beneficios i {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--p-lima);
    color: var(--p-lima-tinta);
    font-size: .85rem;
}
.p-auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: var(--p-superficie); }
.p-auth-form > div { width: 100%; max-width: 420px; }
.p-auth-form-ancho > div { max-width: 520px; }
.p-auth-movil-logo, .p-gimnasio-marca.p-auth-movil-logo { display: none; }
@media (max-width: 991.98px) {
    .p-auth { grid-template-columns: 1fr; }
    .p-auth-lado { display: none; }
    .p-auth-movil-logo { display: block; height: 32px; margin-bottom: 2rem; }
    .p-gimnasio-marca.p-auth-movil-logo { display: flex; height: auto; }
    .p-auth-form { align-items: flex-start; padding-top: 2.5rem; }
}

.p-gimnasio-marca { display: flex; align-items: center; gap: .9rem; }
.p-gimnasio-marca .p-avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.p-gimnasio-marca img { max-height: 56px; max-width: 160px; }

/* ---------- Planes ---------- */

.p-plan { display: flex; flex-direction: column; height: 100%; padding: 1.75rem; }
.p-plan-precio { font-size: 2.5rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.p-plan-precio small { font-size: .9rem; font-weight: 500; color: var(--p-texto-2); letter-spacing: 0; }
.p-plan-items { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; font-size: .9rem; }
.p-plan-items li { display: flex; gap: .6rem; align-items: flex-start; }
.p-plan-items i { color: var(--p-lima-tinta); background: var(--p-lima); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: .7rem; flex: none; margin-top: .15rem; }
.p-plan-destacado { background: var(--p-carbon); color: #fff; border-color: var(--p-carbon); box-shadow: var(--p-sombra-alta); }
.p-plan-destacado h3, .p-plan-destacado .p-plan-precio { color: #fff; }
.p-plan-destacado .p-plan-precio small, .p-plan-destacado .text-secondary { color: rgba(255, 255, 255, .6) !important; }
.p-plan-destacado .p-plan-items { color: rgba(255, 255, 255, .85); }
.p-plan-actual { outline: 2px solid var(--p-carbon); outline-offset: -2px; }

/* ---------- Landing ---------- */

.p-landing-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.p-landing-nav .container { min-height: 80px; display: flex; align-items: center; gap: 2rem; }
.p-landing-nav img { height: 32px; }
.p-landing-nav nav { display: flex; gap: 1.75rem; margin-left: auto; }
.p-landing-nav nav a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .9rem; font-weight: 600; }
.p-landing-nav nav a:hover { color: #fff; }
@media (max-width: 767.98px) { .p-landing-nav nav { display: none; } .p-landing-nav .container > div:last-child { margin-left: auto; } }
@media (max-width: 399.98px) { .p-landing-nav img { height: 26px; } .p-landing-nav .container { gap: 1rem; } }

.p-hero {
    background: var(--p-carbon);
    color: #fff;
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.p-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
    pointer-events: none;
}
.p-hero::after {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    right: -200px;
    top: -160px;
    background: radial-gradient(circle, rgba(var(--p-lima-rgb), .18), transparent 62%);
    pointer-events: none;
}
.p-hero .container { position: relative; z-index: 1; }
.p-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.p-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .72); max-width: 34rem; line-height: 1.6; }
.p-hero .p-eyebrow { color: var(--p-lima-claro); }
.p-hero-nota { color: rgba(255, 255, 255, .5); font-size: .85rem; }

/* Maqueta de la app en el hero */
.p-maqueta {
    background: #fff;
    color: var(--p-carbon);
    border-radius: 28px;
    padding: 1.25rem;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 10px rgba(255, 255, 255, .06);
    transform: rotate(-2deg);
}
.p-maqueta-marco { position: relative; max-width: 360px; margin-left: auto; }
.p-maqueta-cabecera { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.p-maqueta-dia { background: var(--p-carbon); color: #fff; border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: .9rem; }
.p-maqueta-dia .p-eyebrow { color: var(--p-lima-claro); font-size: .65rem; }
.p-maqueta-progreso { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; margin-top: .8rem; }
.p-maqueta-progreso span { display: block; height: 100%; width: 62%; background: var(--p-lima); border-radius: 99px; }
.p-maqueta-ej { display: flex; align-items: center; gap: .75rem; padding: .7rem .2rem; border-bottom: 1px solid var(--p-borde); font-size: .85rem; }
.p-maqueta-ej:last-child { border-bottom: 0; }
.p-maqueta-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--p-borde-fuerte); flex: none; display: grid; place-items: center; font-size: .75rem; }
.p-maqueta-check.ok { background: var(--p-lima); border-color: var(--p-lima); }
.p-maqueta-flotante {
    position: absolute;
    left: -2rem;
    bottom: -1.4rem;
    background: var(--p-lima);
    color: var(--p-lima-tinta);
    border-radius: 16px;
    padding: .8rem 1rem;
    font-weight: 700;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    transform: rotate(3deg);
}
@media (max-width: 991.98px) { .p-maqueta-marco { margin: 3rem auto 0; } .p-maqueta { transform: none; } .p-maqueta-flotante { left: -.5rem; } }

.p-seccion { padding: 6rem 0; }
.p-seccion-titulo { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; }

.p-funcion { padding: 1.75rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.p-funcion:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 24px 48px -24px rgba(24, 24, 27, .22); }
.p-funcion h3 { font-size: 1.1rem; margin: 1.1rem 0 .5rem; letter-spacing: -.02em; }
.p-funcion p { color: var(--p-texto-2); font-size: .925rem; margin: 0; line-height: 1.6; }

.p-paso-numero {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--p-lima);
    color: var(--p-lima-tinta);
    font-weight: 800;
    font-size: 1.2rem;
}

.p-faq .accordion-item { border: 1px solid var(--p-borde); border-radius: var(--p-radio-sm) !important; margin-bottom: .75rem; overflow: hidden; background: var(--p-superficie); }
.p-faq .accordion-button { font-weight: 600; padding: 1.15rem 1.35rem; background: var(--p-superficie); color: var(--p-carbon); box-shadow: none; }
.p-faq .accordion-button:not(.collapsed) { background: var(--p-superficie); color: var(--p-carbon); }
.p-faq .accordion-button:focus { box-shadow: 0 0 0 4px var(--p-lima-suave); }
.p-faq .accordion-body { color: var(--p-texto-2); padding: 0 1.35rem 1.25rem; line-height: 1.65; }

.p-cta-final { background: var(--p-lima); color: var(--p-lima-tinta); border-radius: 28px; padding: 4rem 2rem; position: relative; overflow: hidden; }
.p-cta-final h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.02; }
.p-cta-final img { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .14; filter: brightness(0); }

.p-landing-pie { background: var(--p-carbon); color: rgba(255, 255, 255, .55); padding: 3rem 0; font-size: .875rem; }
.p-landing-pie img { height: 28px; }
.p-landing-pie a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.p-landing-pie a:hover { color: #fff; }

/* ---------- Pantallas de estado / error ---------- */

.p-estado { flex: 1; display: grid; place-items: center; padding: 4rem 1.5rem; text-align: center; }
.p-estado-codigo { font-size: clamp(5rem, 14vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--p-carbon); }
.p-estado-codigo span { display: inline-block; background: var(--p-lima); padding: 0 .12em; border-radius: 12px; }

/* Utilidades */
.p-separador { height: 1px; background: var(--p-borde); margin: 1.5rem 0; }
.p-ancho-legible { max-width: 40rem; }
.p-num { font-variant-numeric: tabular-nums; }

/* ---------- Entrenamiento ---------- */

.btn-check:checked + .btn-borde {
    background: var(--p-lima-suave);
    border-color: var(--p-carbon);
    box-shadow: inset 0 0 0 1px var(--p-carbon);
    color: var(--p-carbon);
}

.p-superserie { box-shadow: inset 4px 0 0 var(--p-acento), var(--p-sombra); }
.p-lista > li.p-superserie { box-shadow: inset 4px 0 0 var(--p-acento); }
.p-superserie-item { box-shadow: inset 4px 0 0 var(--p-acento); }

.p-arrastre { cursor: grab; color: var(--p-texto-3); font-size: 1.1rem; touch-action: none; }
.p-arrastre:active { cursor: grabbing; }
.sortable-ghost { opacity: .4; background: var(--p-lima-suave); }
.flex-none { flex: none; }
.min-w-0 { min-width: 0; }

.p-ejercicio { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--p-borde); }
.p-ejercicio:last-child { border-bottom: 0; }

.p-series { display: grid; gap: .5rem; }
.p-serie { display: flex; align-items: center; gap: .5rem; }
.p-serie-num {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    background: var(--p-fondo);
    border: 1px solid var(--p-borde);
}
.p-serie-campo {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--p-borde-fuerte);
    border-radius: var(--p-radio-sm);
    background: var(--p-superficie);
    padding-right: .6rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.p-serie-campo:focus-within { border-color: var(--p-carbon); box-shadow: 0 0 0 4px var(--p-lima-suave); }
.p-serie-campo input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: .55rem .7rem;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
}
.p-serie-campo input::-webkit-outer-spin-button,
.p-serie-campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p-serie-campo span { font-size: .75rem; color: var(--p-texto-2); font-weight: 600; }
.p-serie-quitar { flex: none; border: 0; background: none; color: var(--p-texto-3); font-size: 1.2rem; padding: 0 .2rem; }
.p-serie-quitar:hover { color: var(--p-peligro); }

/* Buscador de ejercicios (Tom Select) */
.ts-wrapper .ts-control { border-color: var(--p-borde-fuerte); border-radius: var(--p-radio-sm); padding: .55rem .75rem; }
.ts-wrapper.focus .ts-control { border-color: var(--p-carbon); box-shadow: 0 0 0 4px var(--p-lima-suave); }
.ts-wrapper.multi .ts-control > div { background: var(--p-lima); color: var(--p-lima-tinta); border-radius: 6px; font-weight: 600; }
.ts-dropdown { border-radius: var(--p-radio-sm); box-shadow: var(--p-sombra-alta); }
.ts-dropdown .optgroup-header { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--p-texto-2); }
.ts-dropdown .active { background: var(--p-lima-suave); color: var(--p-carbon); }

/* Tres campos por serie (reps en un tiempo) en celulares angostos */
@media (max-width: 575.98px) {
    .p-serie { gap: .35rem; }
    .p-serie-campo { padding-right: .4rem; }
    .p-serie-campo input { padding: .55rem .45rem; }
    .p-serie-campo span { font-size: .7rem; }
}

/* La P de Profit360 a la izquierda de la marca del gimnasio */
.p-topbar-isotipo { height: 30px; width: auto; flex: none; }
.p-topbar-separador { width: 1px; height: 28px; background: rgba(255, 255, 255, .16); flex: none; margin: 0 -.25rem; }
@media (max-width: 575.98px) {
    .p-topbar-isotipo { height: 24px; }
    .p-topbar .container { gap: .75rem; }
}

/* ---------- Páginas legales ---------- */
.p-legal { max-width: 46rem; line-height: 1.7; }
.p-legal h2 { font-size: 1.2rem; margin: 2.25rem 0 .75rem; scroll-margin-top: 90px; letter-spacing: -.02em; }
.p-legal ul { padding-left: 1.2rem; }
.p-legal li { margin-bottom: .4rem; }
.p-legal mark { background: #FEF3C7; color: #92400E; border-radius: 4px; }
.p-legal-indice a { color: var(--p-texto-2); text-decoration: none; }
.p-legal-indice a:hover { color: var(--p-carbon); }

/* ---------- Preloader (primera carga de la sesión) ---------- */
.p-precarga { display: none; }
html.p-con-precarga body { overflow: hidden; }
html.p-con-precarga .p-precarga {
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: radial-gradient(circle at 50% 45%, rgba(var(--p-lima-rgb), .14), transparent 55%), var(--p-carbon);
    transition: opacity .5s ease, visibility .5s ease;
}
.p-precarga.saliendo { opacity: 0; visibility: hidden; }
.p-precarga.saliendo .p-precarga-centro { transform: scale(1.06); }
.p-precarga-centro { display: grid; justify-items: center; gap: 28px; transition: transform .5s ease; }
.p-precarga-logo { width: 96px; height: auto; overflow: visible; filter: drop-shadow(0 0 28px rgba(var(--p-lima-rgb), .28)); }
.p-precarga-logo path { fill: var(--p-lima); transform-box: fill-box; }

/* Las barras suben de a una, como cargando; la P aparece arriba. */
.p-pre-barra1, .p-pre-barra2, .p-pre-palo { transform-origin: 50% 100%; animation: p-subir 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
.p-pre-barra2 { animation-delay: .12s; }
.p-pre-palo { animation-delay: .24s; }
.p-pre-p { transform-origin: 30% 60%; animation: p-cerrar 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes p-subir {
    0% { transform: scaleY(.15); opacity: .35; }
    35%, 70% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(.15); opacity: .35; }
}
@keyframes p-cerrar {
    0%, 15% { transform: translateY(10%) scale(.92); opacity: 0; }
    45%, 72% { transform: none; opacity: 1; }
    100% { transform: translateY(10%) scale(.92); opacity: 0; }
}

.p-precarga-linea { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.p-precarga-linea span { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--p-lima); animation: p-linea 1.1s ease-in-out infinite; }
@keyframes p-linea { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

@media (prefers-reduced-motion: reduce) {
    .p-precarga-logo path, .p-precarga-linea span { animation: none; }
}

/* ---------- Cronómetro ---------- */
.p-crono-boton {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    border: 0;
    border-radius: var(--p-radio);
    background: var(--p-carbon);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .12s ease;
}
.p-crono-boton:active { transform: scale(.99); }
.p-crono-boton .bi-play-circle-fill { color: var(--p-lima-claro); }
.p-crono-boton-icono {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--p-acento);
    color: var(--p-acento-texto);
    animation: p-latido 2.4s ease-in-out infinite;
}
@keyframes p-latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--p-lima-rgb), .45); } 50% { box-shadow: 0 0 0 10px rgba(var(--p-lima-rgb), 0); } }

.p-crono {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 50% 42%, rgba(var(--p-lima-rgb), .12), transparent 60%), var(--p-carbon);
    color: #fff;
    text-align: center;
    animation: p-aparecer .25s ease;
}
@keyframes p-aparecer { from { opacity: 0; } to { opacity: 1; } }
.p-crono-contenido { width: 100%; max-width: 420px; display: grid; justify-items: center; gap: .5rem; }
.p-crono-nombre { font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; }

.p-crono-anillo { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 1.25rem 0 .75rem; }
.p-crono-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.p-crono-pista { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.p-crono-avance { fill: none; stroke: var(--p-acento); stroke-width: 10; stroke-linecap: round; transition: stroke .3s ease; }
.p-crono-anillo::before {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--p-lima-rgb), .28), transparent 70%);
    opacity: 0;
    pointer-events: none;
}
.p-crono.corriendo .p-crono-anillo::before { animation: p-pulso 1.2s ease-in-out infinite; }
.p-crono.corriendo .p-crono-avance { filter: drop-shadow(0 0 10px rgba(var(--p-lima-rgb), .7)); }
@keyframes p-pulso { 0%, 100% { opacity: .25; transform: scale(.92); } 50% { opacity: .9; transform: scale(1.04); } }

.p-crono-tiempo, .p-crono-cuenta { position: absolute; inset: 0; }
.p-crono-tiempo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 41%;
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    white-space: nowrap;
}
.p-crono-tiempo small { font-size: .45em; color: var(--p-lima-claro); letter-spacing: 0; }
.p-crono-cuenta { font-size: clamp(6rem, 30vw, 9rem); font-weight: 800; color: var(--p-acento); display: none; place-items: center; }
.p-crono.preparando .p-crono-cuenta { display: grid; animation: p-golpe 1s ease-out infinite; }
.p-crono.preparando .p-crono-tiempo { display: none; }
@keyframes p-golpe { 0% { transform: scale(1.35); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .2; } }

.p-crono-objetivo { color: rgba(255, 255, 255, .65); font-weight: 600; }
.p-crono-cumplido { display: none; background: var(--p-acento); color: var(--p-acento-texto); font-weight: 700; padding: .45rem 1rem; border-radius: 999px; }
.p-crono.cumplido .p-crono-cumplido { display: inline-block; animation: p-golpe-suave .4s ease; }
.p-crono.cumplido .p-crono-avance { stroke: #fff; }
@keyframes p-golpe-suave { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

.p-crono-acciones { display: grid; grid-template-columns: 1fr 1.6fr; gap: .75rem; width: 100%; margin-top: 1.5rem; }

.p-recien-cargado { border-color: var(--p-carbon); box-shadow: 0 0 0 4px var(--p-lima-suave); background: var(--p-lima-suave); }

@media (prefers-reduced-motion: reduce) {
    .p-crono-boton-icono, .p-crono.corriendo .p-crono-anillo::before, .p-crono.preparando .p-crono-cuenta { animation: none; }
}

/* El pie no queda tapado por la navegación inferior del celular (Hoy / Mi rutina / Progreso) */
@media (max-width: 767.98px) {
    .p-pie.p-con-nav-movil { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
    .p-pie .container { justify-content: center !important; text-align: center; }
    .p-pie .container > * { justify-content: center; width: 100%; }
}

/* ---------- Logo del gimnasio ---------- */
.p-logo-gym { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.p-logo-gym img { display: block; width: auto; object-fit: contain; }
.p-logo-gym-barra img { height: 34px; max-width: 140px; }
.p-logo-gym-grande img { height: 56px; max-width: 200px; }
/* Logo oscuro con transparencia: placa blanca para que se vea sobre la barra carbón. */
.p-logo-fondo-oscuro { background: #fff; border-radius: 10px; padding: 4px 8px; }
.p-logo-gym-grande.p-logo-fondo-oscuro { border-radius: 14px; padding: 6px 12px; }
/* Logo con fondo propio: se muestra tal cual, con bordes redondeados. */
.p-logo-fondo-opaco img { border-radius: 8px; }


/* Elección de plan en el registro */
.p-opcion-plan { position: relative; cursor: pointer; margin: 0; display: flex; }
.p-opcion-plan input { position: absolute; opacity: 0; pointer-events: none; }
.p-opcion-plan > span {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    padding: .8rem 1rem;
    border: 1px solid var(--p-borde-fuerte);
    border-radius: var(--p-radio-sm);
    background: var(--p-superficie);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.p-opcion-plan:hover > span { border-color: var(--p-carbon); }
.p-opcion-plan input:checked + span { border-color: var(--p-carbon); box-shadow: inset 0 0 0 1px var(--p-carbon); background: var(--p-lima-suave); }
.p-opcion-plan input:focus-visible + span { outline: 2px solid var(--p-carbon); outline-offset: 2px; }

/* Vista previa de la app instalada en el celular (Configuración) */
.p-celular { position: relative; width: 190px; height: 380px; padding: 9px; border-radius: 38px; background: color-mix(in srgb, var(--p-carbon) 70%, #000); box-shadow: 0 24px 48px -22px rgba(0,0,0,.6), inset 0 0 0 2px var(--p-carbon-3); flex-shrink: 0; }
.p-celular::before { content: ""; position: absolute; top: 17px; left: 50%; width: 58px; height: 16px; margin-left: -29px; border-radius: 10px; background: color-mix(in srgb, var(--p-carbon) 70%, #000); z-index: 2; }
.p-celular-pantalla { position: relative; height: 100%; display: flex; flex-direction: column; padding: 40px 12px 12px; border-radius: 30px; overflow: hidden; background: radial-gradient(130% 75% at 15% 0%, #4A5326 0%, #23271A 42%, color-mix(in srgb, var(--p-carbon) 70%, #000) 100%); }
.p-celular-hora { position: absolute; top: 12px; left: 22px; font-size: .62rem; font-weight: 600; color: #fff; }
.p-celular-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; padding: 0 4px; }
.p-celular-app { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; font-size: .56rem; color: #fff; text-align: center; line-height: 1.1; }
.p-celular-app > span:last-child { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p-celular-icono { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; display: block; }
.p-celular-icono-vacio { background: rgba(255,255,255,.13); }
.p-celular-app-propia .p-celular-icono { box-shadow: 0 0 0 2px var(--p-acento, var(--p-lima)), 0 8px 18px -6px rgba(var(--p-lima-rgb),.55); animation: p-celular-pulso 2.4s ease-in-out infinite; }
.p-celular-app-propia { font-weight: 600; }
.p-celular-app-propia > span:last-child { overflow: visible; max-width: none; }
.p-celular-dock { margin-top: auto; display: flex; justify-content: space-around; padding: 9px 6px; border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.p-celular-dock .p-celular-icono { margin: 0 auto; }
@keyframes p-celular-pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .p-celular-app-propia .p-celular-icono { animation: none; } }

/* Guías de bienvenida */
.p-ayuda { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.p-ayuda:hover, .p-ayuda:focus-visible { background: var(--p-lima); color: var(--p-lima-tinta); border-color: var(--p-lima); }
.p-tour { position: fixed; inset: 0; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.p-tour.visible { opacity: 1; pointer-events: auto; }
.p-tour-velo { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p-tour-hueco { transition: x .45s cubic-bezier(.2,.8,.2,1), y .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); }
.p-tour-foco { position: fixed; border-radius: 18px; transition: top .45s cubic-bezier(.2,.8,.2,1), left .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.p-tour-foco::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--p-lima); box-shadow: 0 0 24px rgba(var(--p-lima-rgb), .45); animation: p-tour-latido 1.8s ease-out infinite; }
.p-tour-foco.sin-objetivo::after { display: none; }
@keyframes p-tour-latido { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.p-tour-tarjeta { position: fixed; width: min(370px, calc(100vw - 24px)); padding: 20px 20px 18px; border-radius: 22px; background: linear-gradient(160deg, var(--p-carbon-2) 0%, var(--p-carbon) 55%); color: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); transition: top .4s cubic-bezier(.2,.8,.2,1), left .4s cubic-bezier(.2,.8,.2,1); outline: none; }
.p-tour-tarjeta.centrada { top: 50% !important; left: 50% !important; bottom: auto !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); padding: 34px 28px 22px; text-align: center; }
.p-tour-entra { animation: p-tour-entra .4s cubic-bezier(.2,.8,.2,1); }
.p-tour-tarjeta.centrada.p-tour-entra { animation-name: p-tour-entra-centro; }
@keyframes p-tour-entra { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes p-tour-entra-centro { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
.p-tour-cabeza { display: flex; align-items: center; gap: 10px; }
.p-tour-icono { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--p-lima-rgb), .14); color: var(--p-lima); font-size: 1.15rem; }
.p-tour-paso { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.p-tour-cerrar { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.55); }
.p-tour-cerrar:hover { background: rgba(255,255,255,.08); color: #fff; }
.p-tour-titulo { margin: 14px 0 6px; font-size: 1.12rem; font-weight: 700; color: #fff; }
.p-tour-texto { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.74); }
.p-tour-pie { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.p-tour-puntos { display: flex; gap: 5px; }
.p-tour-puntos span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); transition: width .3s, background .3s; }
.p-tour-puntos span.activo { width: 20px; background: var(--p-lima); }
.p-tour-botones { margin-left: auto; display: flex; gap: 6px; }
.p-tour-btn { border: 0; border-radius: 12px; padding: 9px 14px; font-size: .85rem; font-weight: 600; background: transparent; color: rgba(255,255,255,.7); transition: background .2s, color .2s, transform .15s; }
.p-tour-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.p-tour-btn-primario { background: var(--p-lima); color: var(--p-lima-tinta); padding-inline: 18px; }
.p-tour-btn-primario:hover { background: var(--p-lima-hover); color: var(--p-carbon); }
.p-tour-btn:active { transform: scale(.97); }
.centrada .p-tour-cabeza { flex-direction: column; gap: 14px; }
.centrada .p-tour-icono { width: 68px; height: 68px; border-radius: 22px; font-size: 1.9rem; background: var(--p-lima); color: var(--p-lima-tinta); box-shadow: 0 14px 34px -10px rgba(var(--p-lima-rgb), .6); }
.centrada .p-tour-cerrar { position: absolute; top: 12px; right: 12px; }
.centrada .p-tour-titulo { font-size: 1.4rem; margin-top: 4px; }
.centrada .p-tour-pie { flex-direction: column-reverse; gap: 16px; }
.centrada .p-tour-botones { margin: 0; width: 100%; justify-content: center; }
.centrada .p-tour-btn-primario { flex: 1; max-width: 240px; padding-block: 12px; }
@media (max-width: 575.98px) {
    .p-tour-tarjeta:not(.centrada) { left: 12px !important; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .p-tour, .p-tour-foco, .p-tour-hueco, .p-tour-tarjeta { transition: none; }
    .p-tour-foco::after, .p-tour-entra { animation: none; }
}

/* Iniciar sesión general: resultados de la búsqueda de gimnasios */
.p-busqueda-gimnasios { display: grid; gap: 6px; }
.p-busqueda-gimnasio { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--p-borde, #E4E4E7); border-radius: 14px; background: #fff; color: var(--p-carbon); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .15s; }
.p-busqueda-gimnasio:hover, .p-busqueda-gimnasio:focus-visible { border-color: var(--p-lima); box-shadow: 0 0 0 3px var(--p-lima-suave); color: var(--p-carbon); }
.p-busqueda-gimnasio:active { transform: scale(.99); }
.p-busqueda-gimnasio .p-avatar { overflow: hidden; background: var(--p-carbon); color: var(--p-lima-claro); }
.p-busqueda-gimnasio .p-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.p-busqueda-gimnasio .bi-arrow-right { color: var(--p-texto-suave, #71717A); }

/* Tests físicos */
.p-test-valor { font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.p-test-grafico { display: block; width: 100%; height: 96px; overflow: visible; }
.p-test details summary { cursor: pointer; color: var(--p-carbon); }

/* Estadísticas */
.p-barras { display: flex; align-items: stretch; gap: 6px; height: 220px; }
.p-barra-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.p-barra-relleno { width: 100%; max-width: 36px; border-radius: 8px 8px 3px 3px; background: var(--p-carbon); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.p-barra-actual { background: var(--p-lima); box-shadow: 0 8px 20px -8px rgba(var(--p-lima-rgb), .7); }
.p-barra-valor { font-size: .72rem; font-weight: 700; color: var(--p-carbon); min-height: 1em; }
.p-barra-etiqueta { font-size: .66rem; color: var(--p-texto-suave, #71717A); white-space: nowrap; }
@media (max-width: 575.98px) { .p-barras { gap: 3px; height: 180px; } .p-barra-etiqueta { font-size: .55rem; } .p-barra-col:nth-child(odd) .p-barra-etiqueta { visibility: hidden; } }
.p-barra-h { display: block; height: 10px; border-radius: 6px; background: var(--p-superficie, #F4F4F5); overflow: hidden; }
.p-barra-h > span { display: block; height: 100%; border-radius: 6px; background: var(--p-carbon); }
.p-barra-h > span.p-barra-h-max { background: var(--p-lima); }
.p-lista-scroll { max-height: 360px; overflow-y: auto; }
.p-detalle summary { cursor: pointer; list-style: none; }
.p-detalle summary::-webkit-details-marker { display: none; }

/* IA */
.p-ia { overflow: hidden; }
.p-ia::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(var(--p-lima-rgb), .22), transparent); pointer-events: none; }
.p-ia-icono { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--p-lima); color: var(--p-lima-tinta); font-size: 1.4rem; box-shadow: 0 10px 26px -10px rgba(var(--p-lima-rgb), .7); }
.p-ia .form-control, .p-ia .form-select { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.p-ia .form-control::placeholder { color: rgba(255,255,255,.4); }
.p-ia .form-select option { color: var(--p-carbon); }
.p-ia .form-check-label { color: rgba(255,255,255,.8); }

/* Análisis con IA */
.p-informe-icono { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--p-carbon); color: var(--p-lima-claro); font-size: 1.1rem; flex-shrink: 0; }
.p-informe-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.p-informe-lista li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--p-superficie, #F4F4F5); font-size: .92rem; line-height: 1.45; }
.p-informe-lista li > i { position: absolute; left: 13px; top: 11px; font-size: .95rem; }
.p-informe-logros li > i { color: #3f8f00; }
.p-informe-alertas li > i { color: #c27c00; }
.p-informe-recomendaciones li > i { color: var(--p-carbon); }
.p-informe-mensaje { padding: 14px 16px; border-radius: 14px; background: var(--p-carbon); color: #fff; border-left: 4px solid var(--p-lima); line-height: 1.5; }
.p-card-ia { border: 1px solid rgba(var(--p-lima-rgb), .55); box-shadow: 0 14px 34px -22px rgba(var(--p-lima-rgb), .9); }

/* Cupo mensual de IA */
.p-cupo-barra { height: 8px; border-radius: 5px; background: var(--p-superficie, #F4F4F5); overflow: hidden; }
.p-cupo-barra > span { display: block; height: 100%; border-radius: 5px; background: var(--p-carbon); transition: width .6s; }
.p-cupo-barra > span.p-cupo-alto { background: #E8A100; }
.p-cupo-oscuro .p-cupo-barra { background: rgba(255,255,255,.12); }
.p-cupo-oscuro .p-cupo-barra > span { background: var(--p-lima); }
.p-cupo summary { cursor: pointer; }
.p-cupo-oscuro summary { color: var(--p-lima-claro); }


/* Guía para instalar la app */
.p-instalar-beneficios { margin-top: 0; }
.p-instalar-beneficios li { color: var(--p-carbon); }
.p-instalar-pasos { list-style: none; margin: 0; padding: 1rem 1.5rem 1.5rem; display: grid; gap: 1rem; }
.p-instalar-pasos li { display: flex; gap: .9rem; align-items: flex-start; }
.p-instalar-numero { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--p-lima); color: var(--p-lima-tinta); font-weight: 800; }
.p-instalar-mensaje { white-space: pre-line; padding: 14px 16px; border-radius: 14px; background: var(--p-superficie, #F4F4F5); font-size: .9rem; line-height: 1.55; }
.p-instalar-qr { width: 180px; height: 180px; padding: 10px; border-radius: 18px; border: 2px solid var(--p-carbon); background: #fff; }
.p-instalar-qr svg { width: 100%; height: 100%; display: block; }

/* 1RM y prescripción por porcentaje */
.p-1rm { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; line-height: 1.35; background: var(--p-lima-suave); color: var(--p-carbon); }
.p-1rm i { color: var(--p-lima-oscuro); }

/* Packs de tests por deporte */
.p-pack { display: block; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--p-borde, #E7E5E4); background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s; }
.p-pack:hover { border-color: var(--p-carbon); }
.p-pack:active { transform: scale(.99); }
.p-pack-activo { border-color: var(--p-lima); box-shadow: 0 0 0 3px var(--p-lima-suave); }
.p-pack-emoji { font-size: 1.7rem; line-height: 1; }

/* Bienestar y RPE */
.p-bienestar-item { margin: 0 0 .75rem; padding: 0; border: 0; }
.p-bienestar-item legend { margin-bottom: .35rem; }
.p-bienestar-opciones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.p-bienestar-opciones input, .p-rpe input { position: absolute; opacity: 0; pointer-events: none; }
.p-bienestar-opciones label > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1.5px solid var(--p-borde, #E7E5E4); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.p-bienestar-cara { font-size: 1.35rem; line-height: 1; }
.p-bienestar-texto { font-size: .6rem; color: var(--p-texto-suave, #71717A); text-align: center; line-height: 1.1; }
.p-bienestar-opciones input:checked + span { border-color: var(--p-lima); background: var(--p-lima-suave); transform: scale(1.04); }
.p-bienestar-opciones input:focus-visible + span, .p-rpe input:focus-visible + span { outline: 2px solid var(--p-carbon); outline-offset: 2px; }
.p-bienestar-hecho { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--p-lima-suave); font-size: .9rem; }
.p-bienestar-hecho i { color: var(--p-lima-oscuro); }
.p-rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.p-rpe label > span { display: grid; place-items: center; height: 38px; border-radius: 10px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--p-borde, #E7E5E4); background: #fff; transition: background .15s, color .15s; }
.p-rpe label:nth-child(n+5) > span { border-color: #f5d27a; }
.p-rpe label:nth-child(n+8) > span { border-color: #f3a3a3; }
.p-rpe input:checked + span { background: var(--p-carbon); color: var(--p-lima-claro); border-color: var(--p-carbon); }
.p-bienestar-dia { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 12px; background: var(--p-lima-suave); }
.p-bienestar-alerta { background: #FDECEC; color: #B42318; }

/* Landing: tarjetas de "Para quién" */
.p-publico { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem; border-radius: 24px; background: linear-gradient(160deg, var(--p-carbon-2) 0%, var(--p-carbon) 55%, color-mix(in srgb, var(--p-carbon) 70%, #000) 100%); color: rgba(255,255,255,.72); box-shadow: 0 24px 50px -28px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.p-publico::before { content: ""; position: absolute; top: -40%; right: -30%; width: 75%; height: 80%; background: radial-gradient(closest-side, rgba(var(--p-lima-rgb), .16), transparent); pointer-events: none; transition: opacity .25s; }
.p-publico:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), inset 0 0 0 1px rgba(var(--p-lima-rgb), .45); }
.p-publico-icono { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--p-lima); color: var(--p-lima-tinta); font-size: 1.4rem; box-shadow: 0 12px 28px -12px rgba(var(--p-lima-rgb), .7); margin-bottom: 1.4rem; }
.p-publico h3 { position: relative; margin: 0 0 .75rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: var(--p-lima-claro); }
.p-publico p { position: relative; margin: 0 0 1.4rem; line-height: 1.6; }
.p-publico ul { position: relative; list-style: none; margin: auto 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: .55rem; }
.p-publico li { display: flex; align-items: center; gap: .55rem; color: #fff; font-weight: 600; font-size: .92rem; }
.p-publico li i { color: var(--p-lima-claro); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .p-publico { transition: none; } .p-publico:hover { transform: none; } }
.p-cupo-prueba { padding: 8px 12px; border-radius: 10px; background: #FFF7E0; color: #7A5200; }
.p-cupo-prueba-oscuro { background: rgba(var(--p-lima-rgb), .12); color: rgba(255,255,255,.85); }
.p-cupo-prueba-oscuro strong { color: var(--p-lima-claro); }

/* Landing: pestañas de precios */
.p-segmentos { gap: 6px; padding: 6px; border-radius: 999px; background: #fff; width: fit-content; margin-inline: auto; box-shadow: inset 0 0 0 1px var(--p-borde, #E7E5E4); }
.p-segmentos .nav-link { border-radius: 999px; padding: .55rem 1.2rem; font-weight: 700; color: var(--p-texto-suave, #71717A); }
.p-segmentos .nav-link.active { background: var(--p-carbon); color: var(--p-lima-claro); }


/* Configuración: colores y vista previa en vivo de la app del socio */
.p-color { display: flex; gap: 8px; align-items: center; }
.p-color input[type="color"] { width: 48px; height: 42px; padding: 3px; border-radius: 12px; border: 1px solid var(--p-borde-fuerte); background: #fff; cursor: pointer; flex-shrink: 0; }
.p-color input[type="text"] { font-family: ui-monospace, monospace; text-transform: uppercase; }
.p-combinacion { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--p-borde); background: #fff; font-size: .82rem; font-weight: 600; transition: border-color .15s; }
.p-combinacion:hover { border-color: var(--p-carbon); }
.p-combinacion-puntos { display: inline-flex; }
.p-combinacion-puntos span { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.p-combinacion-puntos span + span { margin-left: -7px; }
.p-vista-pegada { position: sticky; top: 90px; }
.p-vista { width: 300px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 42px; background: #0B0B0D; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55), inset 0 0 0 2px #2A2A2F; }
.p-vista-pantalla { position: relative; overflow: hidden; border-radius: 33px; background: #F5F5F4; color: #18181B; font-size: 12px; }
.p-vista-estado { display: flex; justify-content: space-between; padding: 10px 22px 4px; background: var(--vp-oscuro); color: #fff; font-size: 11px; font-weight: 600; }
.p-vista-barra { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 12px; background: var(--vp-oscuro); color: #fff; }
.p-vista-marca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.p-vista-logo { display: grid; place-items: center; height: 30px; max-width: 110px; padding: 3px 7px; border-radius: 8px; background: #fff; }
.p-vista-logo img { max-height: 24px; max-width: 96px; object-fit: contain; }
.p-vista-inicial { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--vp-principal); color: var(--vp-tinta); font-weight: 800; }
.p-vista-nombre { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-vista-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 10px; font-weight: 700; flex-shrink: 0; }
.p-vista-cuerpo { padding: 14px 12px 12px; display: grid; gap: 8px; }
.p-vista-saludo { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.p-vista-dia { padding: 12px 14px; border-radius: 16px; background: linear-gradient(150deg, var(--vp-oscuro-2), var(--vp-oscuro)); color: #fff; }
.p-vista-eyebrow { color: var(--vp-claro); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.p-vista-dia-titulo { font-size: 18px; font-weight: 800; }
.p-vista-dia-sub { font-size: 10px; color: rgba(255,255,255,.6); }
.p-vista-porcentaje { font-size: 16px; font-weight: 800; }
.p-vista-progreso { height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.p-vista-progreso span { display: block; width: 60%; height: 100%; border-radius: 99px; background: var(--vp-principal); }
.p-vista-ej { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.p-vista-ej > i { color: #A1A1AA; }
.p-vista-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D6D3D1; flex-shrink: 0; font-size: 12px; }
.p-vista-check.ok { background: var(--vp-principal); border-color: var(--vp-principal); color: var(--vp-tinta); }
.p-vista-pres { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 6px; background: var(--vp-suave); color: #18181B; font-size: 10px; }
.p-vista-boton { margin-top: 2px; padding: 10px; border-radius: 12px; background: var(--vp-principal); color: var(--vp-tinta); text-align: center; font-weight: 800; font-size: 12.5px; }
.p-vista-nav { display: flex; justify-content: space-around; padding: 8px 6px 14px; background: var(--vp-oscuro); }
.p-vista-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255,255,255,.55); font-size: 9.5px; font-weight: 600; }
.p-vista-nav span i { font-size: 15px; }
.p-vista-nav span.activo { color: var(--vp-claro); }
@media (max-width: 991.98px) { .p-vista-pegada { position: static; } }

/* Precarga con el logo del gimnasio */
.p-precarga-logo-gym { display: grid; place-items: center; max-width: 220px; animation: p-latido-logo 1.6s ease-in-out infinite; }
.p-precarga-logo-gym img { max-width: 220px; max-height: 110px; object-fit: contain; }
.p-precarga-placa { padding: 12px 18px; border-radius: 16px; background: #fff; }
@keyframes p-latido-logo { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.04); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .p-precarga-logo-gym { animation: none; } }
.p-instalar-aviso { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--p-lima-suave); }
.p-instalar-aviso > i { font-size: 1.2rem; color: var(--p-lima-oscuro); }
.p-1rm { align-items: center; }
.p-1rm strong { margin-left: auto; padding-left: 8px; font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.p-bienestar-linea { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; }
.p-bienestar-linea > i { font-size: 1.15rem; color: var(--p-lima-oscuro); }

.p-bienestar-linea .btn, .p-bienestar-linea .fw-semibold { white-space: nowrap; }
.p-bienestar-linea > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Progresión automática y RIR */
.p-sugerencia-subir { background: rgba(22, 163, 74, .12); }
.p-sugerencia-subir i { color: #15803D; }
.p-sugerencia-mantener { background: var(--p-superficie, #F4F4F5); box-shadow: inset 0 0 0 1px var(--p-borde); }
.p-sugerencia-mantener i { color: var(--p-texto-2); }
.p-sugerencia-bajar { background: #FFF4E5; }
.p-sugerencia-bajar i { color: #B45309; }
.p-sugerencia small { font-size: .7em; }
.p-rir { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-rir input { position: absolute; opacity: 0; pointer-events: none; }
.p-rir label { flex: 1 1 0; }
.p-rir label > span b { font-size: .95rem; line-height: 1.1; }
.p-rir label > span small { font-weight: 500; font-size: .68rem; opacity: .75; line-height: 1.1; }
.p-rir label > span { display: grid; place-items: center; align-content: center; min-width: 38px; height: 44px; padding: 0 6px; border-radius: 10px; border: 1.5px solid var(--p-borde, #E7E5E4); background: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; }
.p-rir input:checked + span { background: var(--p-carbon); color: var(--p-lima-claro); border-color: var(--p-carbon); }
.p-rir input:focus-visible + span { outline: 2px solid var(--p-carbon); outline-offset: 2px; }

/* ¡Nuevo récord! */
.p-record { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 20px; background: rgba(9, 9, 11, .78); animation: p-record-fondo .3s ease; }
.p-record-tarjeta { position: relative; width: min(360px, 100%); padding: 32px 24px 24px; border-radius: 26px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--p-carbon-2), var(--p-carbon)); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(var(--p-lima-rgb), .4); animation: p-record-entra .5s cubic-bezier(.2,1.4,.4,1); }
.p-record-copa { width: 84px; height: 84px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 26px; background: var(--p-lima); color: var(--p-lima-tinta); font-size: 2.6rem; box-shadow: 0 16px 40px -12px rgba(var(--p-lima-rgb), .8); animation: p-record-copa 1.4s ease-in-out infinite; }
.p-record h2 { margin: 6px 0 4px; font-size: 1.35rem; font-weight: 800; color: #fff; }
.p-record-valor { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--p-lima-claro); line-height: 1.1; margin-bottom: 6px; }
.p-record-confeti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.p-record-confeti span { position: absolute; top: -20px; left: calc(var(--i) * 3.6%); width: 8px; height: 14px; border-radius: 2px; background: var(--p-lima); opacity: .9; animation: p-confeti calc(1.8s + (var(--i) * .05s)) cubic-bezier(.3,.6,.5,1) calc(var(--i) * .04s) forwards; }
.p-record-confeti span:nth-child(3n) { background: #fff; }
.p-record-confeti span:nth-child(4n) { width: 6px; height: 6px; border-radius: 50%; }
@keyframes p-confeti { to { transform: translateY(110vh) rotate(calc(var(--i) * 47deg)); opacity: .2; } }
@keyframes p-record-entra { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes p-record-fondo { from { opacity: 0; } }
@keyframes p-record-copa { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .p-record-confeti { display: none; } .p-record-tarjeta, .p-record-copa { animation: none; } }

/* Periodización: semana de descarga */
.p-chip-descarga { background: #E0F2FE; color: #075985; }
.p-sugerencia-descarga { background: #E0F2FE; color: #0C4A6E; }
.p-sugerencia-descarga i { color: #0284C7; }

/* Landing: foco en rendimiento */
.p-foco { padding: clamp(28px, 5vw, 56px); border-radius: 28px; overflow: hidden; }
.p-foco-titulo { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; margin: 0; }
.p-foco-texto { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.72); }
.p-foco-texto strong { color: var(--p-lima-claro); }
.p-foco-lista { height: 100%; padding: 18px 20px; border-radius: 18px; display: grid; gap: 10px; font-weight: 600; }
.p-foco-lista-titulo { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.p-foco-lista i { margin-right: 6px; }
.p-foco-no { background: rgba(255,255,255,.05); color: rgba(255,255,255,.5); }
.p-foco-no div:not(.p-foco-lista-titulo) { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.p-foco-si { background: rgba(var(--p-lima-rgb), .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--p-lima-rgb), .35); }
.p-foco-si i { color: var(--p-lima-claro); }


/* Montos en pesos en tarjetas chicas (panel de vendedores) */
.p-kpi-plata { font-size: clamp(1.25rem, 5.2vw, 2rem); white-space: nowrap; }
@media (max-width: 575.98px) { .p-kpi .p-kpi-icono { display: none; } }
