/* styles/porfadato.css
   - Consolidado (sin duplicados)
   - Mantiene compatibilidad con clases ya usadas en el proyecto
*/

/* =========================
   1) TIPOGRAFÍA OFICIAL
========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* =========================
   2) TOKENS DE MARCA
========================= */
:root {
    --pf-green: #81D552;
    --pf-blue: #2C47A3;

    --pf-bg: #f6f8f6;
    --pf-surface: #ffffff;
    --pf-text: #0d1b12;
    --pf-muted: rgba(13, 27, 18, .62);

    --pf-border: rgba(44, 71, 163, .15);
    --pf-border-strong: rgba(44, 71, 163, .22);
    --pf-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --pf-shadow-soft: 0 8px 20px rgba(0, 0, 0, .05);

    --pf-radius-lg: .75rem;
    --pf-radius-xl: 1rem;
    --pf-radius-2xl: 1.25rem;

    --pf-container: 1280px;
    --pf-pad: 24px;
    --pf-pad-lg: 40px;
}

.dark {
    --pf-bg: #102216;
    --pf-surface: rgba(255, 255, 255, .04);
    --pf-text: #ffffff;
    --pf-muted: rgba(255, 255, 255, .65);

    --pf-border: rgba(129, 213, 82, .26);
    --pf-border-strong: rgba(129, 213, 82, .34);

    --pf-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    --pf-shadow-soft: 0 8px 22px rgba(0, 0, 0, .22);
}

/* =========================
   3) RESET / BASE
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
}

.pf {
    font-family: 'Montserrat', sans-serif;
    background: var(--pf-bg);
    color: var(--pf-text);
    transition: background-color .25s ease, color .25s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Helpers */
.pf-muted {
    color: var(--pf-muted);
}

.pf-accent,
.pf-accenttext {
    color: var(--pf-green);
}

.pf-success {
    color: #078829;
}

.pf-link {
    color: var(--pf-blue);
    text-decoration: none;
}

.pf-link:hover {
    opacity: .9;
}

.pf-navlink {
    color: var(--pf-text);
    opacity: .82;
}

.pf-navlink:hover {
    color: var(--pf-blue);
    opacity: 1;
}

/* Tipografía */
.pf-h1,
.pf-h2,
.pf-h3,
.pf-hero__title {
    color: var(--pf-text);
    letter-spacing: -.02em;
    margin: 0;
}

.pf-h1 {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 900;
}

.pf-h2 {
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 800;
}

.pf-h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
}

@media (min-width:1024px) {
    .pf-h1 {
        font-size: 3.75rem;
    }

    .pf-h2 {
        font-size: 2rem;
    }
}

/* =========================
   4) LAYOUT REUTILIZABLE
========================= */
.pf-container {
    max-width: var(--pf-container);
    margin: 0 auto;
    padding: 0 var(--pf-pad);
}

@media (min-width:1024px) {
    .pf-container {
        padding: 0 var(--pf-pad-lg);
    }
}

.pf-section {
    padding: 3rem 0;
}

@media (min-width:1024px) {
    .pf-section {
        padding: 4.5rem 0;
    }
}

.pf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pf-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pf-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width:768px) {
    .pf-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pf-grid-works {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width:768px) {
    .pf-grid-works {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pf-center {
    text-align: center;
}

/* =========================
   5) HEADER
========================= */
.pf-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, .80);
    border-bottom: 1px solid var(--pf-border);
    backdrop-filter: blur(10px);
}

.dark .pf-header {
    background: rgba(16, 34, 22, .80);
}

.pf-header__inner {
    height: auto;
    padding: .75rem 0;
}

.pf-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 140px;
}

.pf-brand__mark {
    color: var(--pf-green);
    display: flex;
    align-items: center;
}

.pf-brand__name {
    font-weight: 800;
    font-size: 1.125rem;
    margin-left: -20px;
}

.pf-brand__mark img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.pf-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    flex: 1;
}

@media (min-width:768px) {
    .pf-nav {
        display: flex;
    }
}

.pf-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* =========================
   6) FOOTER (CENTRALIZADO para footer.php actual)
   - Footer verde completo
   - Links blancos
   - Icon buttons claros
   - Copy oscuro suave
========================= */
.pf-footer {
    background: var(--pf-green);
    border-top: 0;
    padding: 0;
    /* el padding lo da .pf-container (abajo) */
    position: relative;
    overflow: hidden;
    top: -2px;
    margin-left: -10px;
}

/* Si más adelante quitas los inline del container, ya queda listo */
.pf-footer .pf-container {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* Layout interior */
.pf-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (min-width:768px) {
    .pf-footer__inner {
        flex-direction: row;
        align-items: center;
    }
}

/* Brand dentro del footer */
.pf-footer .pf-brand {
    min-width: 140px;
}

.pf-footer .pf-brand__mark img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.pf-footer .pf-brand__name {
    color: #0d1b12;
    font-weight: 900;
}

/* Links (blancos) */
.pf-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-weight: 700;
    font-size: .9rem;
    justify-content: center;
}

.pf-footer__links .pf-link {
    color: rgba(255, 255, 255, .92);
    font-weight: 800;
}

.pf-footer__links .pf-link:hover {
    opacity: .9;
}

/* Iconos */
.pf-footer__icons {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: center;
}

/* Icon button base (se usa en cards y footer) */
.pf-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .90);
    border: 1px solid rgba(0, 0, 0, .06);
    color: #0d1b12;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease, filter .15s ease, opacity .15s ease;
}

.pf-iconbtn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* En footer: deja el look claro “como tu inline” */
.pf-footer .pf-iconbtn {
    background: rgba(255, 255, 255, .65);
    border-color: rgba(0, 0, 0, .06);
    color: #0d1b12;
}

.pf-footer .pf-iconbtn svg {
    display: block;
    fill: currentColor;
}

/* Copy */
.pf-footer__copy {
    margin-top: 1.25rem;
    text-align: center;
    color: rgba(13, 27, 18, .75);
    font-size: .85rem;
    font-weight: 700;
}

/* Responsive footer */
@media (max-width:720px) {
    .pf-footer__inner {
        justify-content: center;
        text-align: center;
    }

    .pf-footer__links {
        justify-content: center;
    }
}

/* --- Compatibilidad (clases antiguas de footer: NO afectan) --- */
.pf-footer__wave,
.pf-footer__fill,
.pf-footer__panel,
.pf-footer__content {
    display: none;
}


.pf-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    /* sube el verde 2px */
    height: 2px;
    background: var(--pf-green);
}

/* .pf-footer--bg,
.pf-footer--green {
    /* mantenidas por compatibilidad 
} */

/* =========================
   7) BOTONES
========================= */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    border-radius: var(--pf-radius-lg);
    transition: transform .15s ease, filter .15s ease, opacity .15s ease, background-color .15s ease, border-color .15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: 0;
    cursor: pointer;
}

.pf-btn--sm {
    height: 40px;
    padding: 0 16px;
    min-width: 84px;
    font-size: .9rem;
}

.pf-btn--lg {
    height: 56px;
    padding: 0 24px;
    min-width: 160px;
    font-size: 1rem;
    border-radius: var(--pf-radius-xl);
}

.pf-btn--primary {
    background: var(--pf-green);
    color: #0d1b12;
}

.pf-btn--primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.pf-btn--secondary {
    background: rgba(44, 71, 163, .10);
    color: var(--pf-blue);
}

.dark .pf-btn--secondary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.pf-btn--secondary:hover {
    opacity: .92;
}

.pf-btn--hide-xs {
    display: none;
}

@media (min-width:640px) {
    .pf-btn--hide-xs {
        display: inline-flex;
    }
}

.pf-btn--outline {
    background: transparent;
    border: 2px solid var(--pf-border-strong);
    color: var(--pf-text);
}

.pf-btn--outline:hover {
    border-color: rgba(129, 213, 82, .55);
    background: rgba(129, 213, 82, .10);
}

.pf-btn--shadow {
    box-shadow: 0 14px 30px rgba(129, 213, 82, .18);
}

/* =========================
   8) HERO
========================= */
.pf-hero {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width:1024px) {
    .pf-hero {
        flex-direction: row;
        justify-content: space-between;
    }
}

.pf-hero__content {
    width: 100%;
}

@media (min-width:1024px) {
    .pf-hero__content {
        width: 50%;
    }
}

.pf-hero__lead {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

@media (min-width:1024px) {
    .pf-hero__lead {
        font-size: 1.2rem;
    }
}

.pf-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
}

.pf-hero__image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--pf-radius-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--pf-shadow);
    background: center/cover no-repeat;
}

@media (min-width:1024px) {
    .pf-hero__image {
        width: 50%;
    }
}

.pf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .20), rgba(0, 0, 0, 0));
}

.pf-bg-hero {
    background-image: url("../images/onepage.png");
}

/* =========================
   9) CARDS / KPIs
========================= */
.pf-card {
    background: var(--pf-surface);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-2xl);
    box-shadow: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.pf-card:hover {
    border-color: rgba(129, 213, 82, .60);
    box-shadow: var(--pf-shadow-soft);
}

.pf-kpi {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pf-kpi__top {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.pf-icon {
    color: var(--pf-green);
    font-size: 32px;
    line-height: 1;
}

.pf-kpi__label {
    color: var(--pf-muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
}

.pf-kpi__value {
    font-size: 1.8rem;
    font-weight: 900;
    margin: .35rem 0 0 0;
}

.pf-kpi__trend {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-top: .6rem;
    font-weight: 800;
    font-size: .9rem;
}

/* =========================
   10) CARRUSEL / ITEMS
========================= */
.pf-browse__head {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

@media (min-width:768px) {
    .pf-browse__head {
        flex-direction: row;
        align-items: flex-end;
    }
}

.pf-actionlink {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 900;
    color: var(--pf-blue);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.pf-actionlink:hover {
    opacity: .9;
}

.pf-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0 16px 16px;
    margin: 0 -16px;
}

@media (min-width:1024px) {
    .pf-carousel {
        padding: 0 24px 16px;
        margin: 0 -24px;
    }
}

.pf-item {
    flex: 0 0 auto;
    width: 288px;
    cursor: pointer;
}

.pf-item__media {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--pf-radius-2xl);
    overflow: hidden;
    background: rgba(0, 0, 0, .03);
    border: 1px solid var(--pf-border);
}

.dark .pf-item__media {
    background: rgba(255, 255, 255, .04);
}

.pf-item__bg {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    transition: transform .5s ease;
}

.pf-item:hover .pf-item__bg {
    transform: scale(1.08);
}

.pf-item__fav {
    position: absolute;
    top: 16px;
    right: 16px;
}

.pf-pill {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-block;
    background: rgba(129, 213, 82, .90);
    color: #0d1b12;
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pf-item__meta {
    margin-top: 1rem;
}

.pf-item__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.pf-item__sub {
    margin: .25rem 0 0 0;
    font-size: .9rem;
    font-weight: 700;
    color: var(--pf-green);
}

/* Backgrounds items */
.pf-item-bg-1 {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuAsE6yUE4YNE9rUmWntKxZls01ghJn0QafhZP_cwU3tgVpKhFwD4sBwujjaXGH_FAoEC5fzSn80hYQtR8NFCoM9p3THwm0IeLNeQxk6GdKDa8XBxiy-JWk-9Z5GR-lb9_3FwlbgOKgaFFr5ZNtCbjmzTsk7n_xOTmm7PqsMTAtycsDVKFhPJchlvD6WZ9M3NJiB_TA1ZzuVSTMLwIvMfSflt6LK8WU6tH6MJm7WRRJZ3ET-rpVhb6-bEWaPsePcqAzF9VRREd4hyto");
}

.pf-item-bg-2 {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuCTnNc17x_gv6mULDAEDphlJycs_sQ9q-Dga4QRGTIQrDjwRyyzn7mwIAFdJqX8Zkja3tbfUXE2-kdC_7pjQ-oZUmKZbNMqFLN6IlZ6xBmaa3kO2Ivd0wtrSZWhMVj_7L-Bla3hAL9yNpNZ8xN4NarDudQMoWUMeQaVKYOSq4m7zYaWE4-cUaHrekGDSPHkeNhlK5_JddPooujefBPtEom6vxAkH80OEHFmWc3oocie9bWep1A2mYdHNcu3QjBcKpM00ASzVwyt-0Y");
}

.pf-item-bg-3 {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuDYbTRX03Gx5L9gIKo6on_fMRCJR_1xvpa3A9dNj7oLfcQKS--5qwkD5-zCVPAcfhbAhNnTRcH9yXrvietdgCcI-C-qj0_dzPUNfsHDtsD6dh6T8FpGrFpd3Q-RUVC6tZ0Ngmw9HLwuuSfagraVYRzK4e82zwZdbVH2F-YBynWx-oO-BHHDLd79UduBcktm0PTzTKHnkZNqg73L9M0SY4v-Uet-Kd51HZJxKBuL7OSQWUS6YC5fFtNRJSzrNeiE0QU0sg48XxXbTQU");
}

.pf-item-bg-4 {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB9brc-b9N_jn85OgkDEIjzm6BXTsQoNh0c0nRMiQ_ZxwW2O54qNDHipk23YWn5g6D9Mc_BsVCI6vklstGdmC8u2nEHZmh705vc5vhQUZufIyXWmoF0fRO0fQIoDtSikAEaTr8Wt9_M7owIvh8XF-5ss3FZ3_Y9X_WfZ8EaAnP98XEmSvYhYU_RdVBH598SA09gD6iajDbz32QRtmqxnvC86NUpemka_CBKuGf7l3KjH049a27DDZPNzj_voKi-d_0olKvvyYFdrGg");
}

/* =========================
   11) CÓMO FUNCIONA
========================= */
.pf-section--soft {
    background: rgba(44, 71, 163, .08);
    border-radius: 24px;
    padding: 3rem 1.25rem;
}

.dark .pf-section--soft {
    background: rgba(255, 255, 255, .06);
}

@media (min-width:1024px) {
    .pf-section--soft {
        padding: 4rem 3rem;
    }
}

.pf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
}

.pf-step__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(129, 213, 82, .18);
    color: var(--pf-green);
    border: 1px solid rgba(129, 213, 82, .28);
}

.pf-step__icon .material-symbols-outlined {
    font-size: 40px;
    font-variation-settings: 'FILL' 1;
}

.pf-dashed-left,
.pf-dashed-right {
    display: none;
    position: absolute;
    top: 40px;
    width: 50%;
    border-top: 2px dashed rgba(129, 213, 82, .35);
}

@media (min-width:768px) {
    .pf-dashed-left {
        display: block;
        left: -25%;
    }

    .pf-dashed-right {
        display: block;
        right: -25%;
    }
}

/* =========================
   12) UTILIDADES
========================= */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================
   13) RRSS (Social)
========================= */
.pf-social {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.pf-social__btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pf-border);
    background: rgba(255, 255, 255, .75);
    color: var(--pf-text);
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease, opacity .15s ease, border-color .15s ease, background-color .15s ease;
}

.pf-social__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 213, 82, .60);
    background: rgba(129, 213, 82, .12);
}

.pf-social__btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.dark .pf-social__btn {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.dark .pf-social__btn:hover {
    border-color: rgba(129, 213, 82, .45);
    background: rgba(129, 213, 82, .10);
}

/* =========================
   14) FIX: Material Symbols
========================= */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    -webkit-font-smoothing: antialiased !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =========================
   15) SweetAlert2 (skin existente)
========================= */
.pf-swal-popup {
    border-radius: var(--pf-radius-2xl) !important;
    border: 1px solid var(--pf-border) !important;
    background: var(--pf-surface) !important;
    color: var(--pf-text) !important;
    box-shadow: var(--pf-shadow) !important;
}

.pf-swal-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    color: var(--pf-text) !important;
    letter-spacing: -.02em !important;
}

.pf-swal-html {
    margin-top: .5rem !important;
}

.pf-swal-form {
    text-align: left;
}

.pf-swal-label {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 .35rem 0;
    color: var(--pf-text);
}

.pf-swal-input {
    width: 100%;
    height: 44px;
    border-radius: var(--pf-radius-lg);
    border: 1px solid var(--pf-border-strong);
    padding: 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    outline: none;
    background: rgba(255, 255, 255, .9);
    color: var(--pf-text);
    font-size: 1.1rem;
}

.dark .pf-swal-input {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.pf-swal-input:focus {
    border-color: rgba(129, 213, 82, .65);
    box-shadow: 0 0 0 4px rgba(129, 213, 82, .18);
}

.pf-swal-link {
    color: var(--pf-blue);
    font-weight: 900;
    text-decoration: none;
    font-size: 10px;
}

.pf-swal-link:hover {
    opacity: .9;
}

.pf-swal-confirm {
    background: var(--pf-green) !important;
    color: #0d1b12 !important;
    border-radius: var(--pf-radius-lg) !important;
    font-weight: 900 !important;
    padding: 12px 18px !important;
}

.pf-swal-cancel {
    background: rgba(44, 71, 163, .10) !important;
    color: var(--pf-blue) !important;
    border-radius: var(--pf-radius-lg) !important;
    font-weight: 900 !important;
    padding: 12px 18px !important;
}

.dark .pf-swal-cancel {
    background: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
}

/* =========================
   16) MARKETPLACE
========================= */
.pf-search {
    position: relative;
    flex: 1;
    max-width: 680px;
}

.pf-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(13, 27, 18, .45);
}

.pf-search__input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 44px;
    border-radius: var(--pf-radius-xl);
    border: 1px solid var(--pf-border);
    background: rgba(255, 255, 255, .90);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    outline: none;
}

.dark .pf-search__input {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.pf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

/* Tendencias (soporta ambas: .pf-trendcard y .pf-trend-card) */
.pf-trending {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.pf-trendcard,
.pf-trend-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    height: 210px;
    border-radius: var(--pf-radius-2xl);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--pf-border);
    box-shadow: var(--pf-shadow-soft);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

@media (max-width:520px) {

    .pf-trendcard,
    .pf-trend-card {
        width: 100%;
        flex: 1 1 auto;
        height: 190px;
    }
}

.pf-market .pf-trend-card:hover,
.pf-market .pf-trendcard:hover {
    border-color: var(--pf-green);
    box-shadow: 0 10px 26px rgba(44, 71, 163, .18);
    transform: translateY(-2px);
}

.pf-trendcard__bg,
.pf-trend-card__bg {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    transform: scale(1);
    transition: transform .7s ease;
}

.pf-trendcard:hover .pf-trendcard__bg,
.pf-trend-card:hover .pf-trend-card__bg {
    transform: scale(1.08);
}

.pf-trendcard__overlay,
.pf-trend-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .75), rgba(0, 0, 0, .10));
}

.pf-trendcard__content,
.pf-trend-card__content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    z-index: 2;
}

.pf-trendpill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    padding: .35rem .6rem;
    border-radius: 9999px;
    background: rgba(129, 213, 82, .18);
    border: 1px solid rgba(129, 213, 82, .35);
    color: var(--pf-green);
    font-weight: 900;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pf-trendtitle {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 1.25rem;
    line-height: 1.15;
    max-width: 280px;
}

.pf-trendtext {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    font-size: .9rem;
    max-width: 320px;
}

.pf-trendcta {
    margin-top: .5rem;
    width: fit-content;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--pf-radius-lg);
    border: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background: var(--pf-green);
    color: #0d1b12;
}

/* Productos (desktop-first + responsive) */
.pf-products {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width:1024px) {
    .pf-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    .pf-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:420px) {
    .pf-products {
        grid-template-columns: 1fr;
    }
}

.pf-product {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.pf-product__media {
    aspect-ratio: 1/1;
    border-radius: var(--pf-radius-xl);
    border: 1px solid var(--pf-border);
    overflow: hidden;
    background: rgba(0, 0, 0, .03);
    position: relative;
}

.dark .pf-product__media {
    background: rgba(255, 255, 255, .04);
}

.pf-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .35s ease;
}

.pf-product:hover .pf-product__img {
    transform: scale(1.05);
}

.pf-product__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .06);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dark .pf-product__badge {
    background: rgba(16, 34, 22, .70);
    border-color: rgba(255, 255, 255, .10);
    color: #fff;
}

.pf-product__school {
    margin: 0;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pf-blue);
}

.pf-product__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.25;
}

.pf-product__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .25rem;
}

.pf-product__price {
    font-size: 1.05rem;
    font-weight: 900;
}

.pf-product__cart {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--pf-radius-lg);
    border: 1px solid rgba(44, 71, 163, .12);
    background: rgba(44, 71, 163, .08);
    color: var(--pf-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter .15s ease, transform .15s ease, background-color .15s ease;
}

.pf-product__cart:hover {
    transform: translateY(-1px);
    background: rgba(129, 213, 82, .18);
    border-color: rgba(129, 213, 82, .35);
    color: #0d1b12;
}

.pf-pager {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pf-market .pf-h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 800;
}

@media (min-width:1024px) {
    .pf-market .pf-h2 {
        font-size: 1.55rem;
    }
}

/* =========================
   17) HEADER USER (unificado)
========================= */
.pf-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem .6rem;
    border-radius: var(--pf-radius-lg);
    border: 1px solid var(--pf-border);
    background: transparent;
    cursor: pointer;
    user-select: none;
    transition: box-shadow .2s, border-color .2s, background .2s;
}

.pf-user:hover {
    border-color: rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.pf-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .9rem;
    color: var(--pf-bg);
    background: var(--pf-blue, #2a63ff);
}

.pf-user__avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #0d1b12;
    background: rgba(46, 107, 255, .14);
    border: 1px solid rgba(46, 107, 255, .20);
}

.pf-user__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-align: left;
}

.pf-user__name {
    font-weight: 900;
    font-size: .9rem;
    color: var(--pf-text);
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-user__email {
    font-size: .75rem;
    font-weight: 800;
    color: var(--pf-muted);
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-user__chev {
    font-size: 22px;
    color: var(--pf-muted);
    margin-left: .1rem;
}

@media (max-width:820px) {
    .pf-user__email {
        display: none;
    }

    .pf-user__name {
        max-width: 120px;
    }

    .pf-user__meta {
        display: none;
    }
}

/* =========================
   18) SELL (sell.php) — Unificado
========================= */
.pf-sell-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width:1024px) {
    .pf-sell-grid {
        grid-template-columns: 1.2fr .9fr;
        gap: 1.25rem;
    }
}

.pf-stepper {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.pf-stepper__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.pf-stepper__kicker {
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pf-text);
}

.pf-stepper__title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-top: .25rem;
}

.pf-stepper__pct {
    font-weight: 900;
    font-size: .85rem;
}

.pf-stepper__bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(19, 236, 19, .08);
    overflow: hidden;
    border: 1px solid var(--pf-border);
}

.pf-stepper__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--pf-green);
}

.pf-sell-section {
    margin-top: .25rem;
}

.pf-sell-section__head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
}

.pf-sell-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(19, 236, 19, .10);
    border: 1px solid rgba(19, 236, 19, .22);
    color: var(--pf-green);
}

.pf-sell-h3 {
    margin: 0;
    font-weight: 900;
    font-size: 1.05rem;
}

.pf-sell-divider {
    height: 1px;
    background: var(--pf-border);
    margin: 1rem 0;
}

.pf-dropzone {
    border: 2px dashed var(--pf-border);
    border-radius: var(--pf-radius-xl);
    background: #fff;
    padding: 1.25rem;
    text-align: center;
}

.pf-dropzone:hover {
    border-color: rgba(19, 236, 19, .6);
}

.pf-dropzone__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 236, 19, .10);
    margin-bottom: .5rem;
}

.pf-dropzone__title {
    font-weight: 900;
    margin: 0;
}

.pf-dropzone__hint {
    margin: .25rem 0 0;
    color: var(--pf-muted);
    font-weight: 700;
}

.pf-dropzone__btn {
    margin-top: .75rem;
}

.pf-dropzone--dragover {
    border-color: rgba(19, 236, 19, .75);
    background: rgba(19, 236, 19, .06);
    box-shadow: 0 0 0 4px rgba(19, 236, 19, .10);
}

.pf-sell-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

.pf-sell-thumb {
    width: 70px;
    aspect-ratio: 1/1;
    border-radius: var(--pf-radius-lg);
    border: 1px solid var(--pf-border);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pf-sell-thumb--add {
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-muted);
    background: transparent;
}

.pf-sell-thumb__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    color: #0d1b12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .15s ease, transform .15s ease, filter .15s ease;
}

.pf-sell-thumb:hover .pf-sell-thumb__remove {
    opacity: 1;
    transform: translateY(0);
}

.dark .pf-sell-thumb__remove {
    background: rgba(16, 34, 22, .75);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.pf-sell-thumb__remove:hover {
    filter: brightness(1.03);
}

.pf-sell-thumb__status {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(6px);
}

.pf-sell-thumb--uploading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 18, .22);
}

.pf-sell-thumb--uploading .pf-sell-thumb__status {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(0, 0, 0, .06);
    color: #0d1b12;
}

.pf-sell-thumb--ok .pf-sell-thumb__status {
    background: rgba(129, 213, 82, .92);
    border: 1px solid rgba(0, 0, 0, .06);
    color: #0d1b12;
}

.pf-sell-thumb--error::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(225, 29, 72, .22);
}

.pf-sell-thumb--error .pf-sell-thumb__status {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(225, 29, 72, .25);
    color: #b91c1c;
}

.pf-sell-thumb__retry {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 72, .25);
    background: rgba(255, 255, 255, .92);
    font-weight: 900;
    cursor: pointer;
}

.pf-sell-thumb--photo.is-selected {
    outline: 3px solid rgba(129, 213, 82, .75);
    outline-offset: 2px;
}

.pf-sell-fields {
    display: grid;
    gap: .75rem;
}

.pf-sell-2cols {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}

@media (min-width:720px) {
    .pf-sell-2cols {
        grid-template-columns: 1fr 1fr;
    }
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.pf-label {
    font-weight: 900;
    font-size: .9rem;
    color: var(--pf-muted);
}

.pf-input,
.pf-select,
.pf-textarea {
    width: 100%;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-lg);
    background: transparent;
    padding: .8rem .9rem;
    outline: none;
    color: var(--pf-text);
    font-family: inherit;
    font-size: 1rem;
}

/* Safari fix: el texto del <select> no respeta bien padding-left en algunos casos */
.pf-sell-school {
    position: relative;
}

.pf-sell-school__ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.pf-sell-school .pf-select.pf-sell-school__input {
    -webkit-appearance: none;
    appearance: none;

    /* BACKUP (a veces Safari lo ignora igual) */
    padding-left: 12px !important;

    /* FIX real: desplaza el texto sí o sí */
    text-indent: 32px;
    /* ajusta: 28–38px según tu icono */

    /* espacio para la flecha nativa o custom */
    padding-right: 44px !important;
    line-height: 1.2;
}

.pf-textarea {
    resize: vertical;
    min-height: 110px;
}

.pf-input:focus,
.pf-select:focus,
.pf-textarea:focus {
    border-color: rgba(19, 236, 19, .55);
    box-shadow: 0 0 0 4px rgba(19, 236, 19, .10);
}

.pf-sell-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pf-sell-money {
    position: relative;
}

.pf-sell-money__sym {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: var(--pf-muted);
}

.pf-sell-money__input {
    padding-left: 28px;
}

.pf-sell-school {
    position: relative;
    display: flex;
    align-items: center;
}

.pf-sell-school__ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--pf-muted);
    pointer-events: none;
}

.pf-sell-school__input {
    padding-left: 44px;
}

.pf-preview {
    position: relative;
}

@media (min-width:1024px) {
    .pf-preview__sticky {
        position: sticky;
        top: 92px;
        align-self: start;
    }
}

.pf-preview__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .25rem 0 .75rem;
}

.pf-preview__kicker {
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pf-muted);
    font-size: .8rem;
}

.pf-preview__chip {
    display: inline-flex;
}

.pf-preview-desc {
    margin-top: .75rem;
    color: var(--pf-muted);
    font-weight: 700;
}

.pf-listing {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--pf-border);
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    max-width: 360px;
    margin: 0 auto;
}

.pf-listing__media {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pf-listing__cond {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .72rem;
    font-weight: 900;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(0, 0, 0, .06);
}

.pf-listing__body {
    padding: 1.1rem 1.1rem 1.2rem;
}

.pf-listing__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.pf-listing__title {
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.15;
    margin: 0;
}

.pf-listing__price {
    font-weight: 900;
    font-size: 1.35rem;
    white-space: nowrap;
}

.pf-listing__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--pf-muted);
    font-weight: 800;
    margin: .6rem 0 .75rem;
    font-size: .9rem;
}

.pf-listing__desc {
    color: var(--pf-muted);
    font-weight: 700;
    font-size: .9rem;
    margin: 0 0 .9rem;
}

.pf-listing__seller {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.pf-listing__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 236, 19, .14);
    border: 1px solid rgba(19, 236, 19, .22);
}

.pf-listing__sellername {
    font-weight: 900;
    font-size: .85rem;
}

.pf-listing__sellerrank {
    font-weight: 800;
    font-size: .72rem;
    color: var(--pf-muted);
}

.pf-listing__fav {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--pf-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-listing__fav:hover {
    background: rgba(19, 236, 19, .10);
}

.pf-protip {
    margin-top: 1rem;
    border-radius: var(--pf-radius-xl);
    padding: 1rem;
    background: rgba(19, 236, 19, .08);
    border: 1px solid rgba(19, 236, 19, .25);
}

.pf-protip__head {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .35rem;
}

.pf-protip__title {
    margin: 0;
    font-weight: 900;
}

.pf-protip__text {
    margin: .2rem 0 0;
    color: var(--pf-muted);
    font-weight: 700;
    line-height: 1.45;
}

/* iPhone UX: evita zoom */
.pf-sell-page .pf-select,
.pf-sell-page .pf-textarea {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    padding: 14px 14px;
    border-radius: var(--pf-radius-xl);
}

.pf-sell-page .pf-select {
    min-height: 52px;
    padding-right: 42px;
    height: 52px;
}

.pf-sell-page .pf-textarea {
    min-height: 150px;
    line-height: 1.4;
}

.pf-sell-page .pf-label {
    font-size: .95rem;
}

.pf-sell-page .pf-sell-money__sym {
    left: 14px;
}

.pf-sell-page .pf-sell-money__input {
    padding-left: 34px;
}

.pf-sell-page .pf-sell-school__ico {
    left: 12px;
}

.pf-sell-page .pf-sell-school__input {
    padding-left: 40px;
}

/* Placeholder preview sin imagen */
.pf-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: rgba(19, 236, 19, .06);
    border: 2px dashed rgba(19, 236, 19, .35);
    border-radius: inherit;
    text-align: center;
}

.pf-preview-empty__icon {
    font-size: 48px;
    color: var(--pf-green);
    opacity: .9;
}

.pf-preview-empty__text {
    font-size: .85rem;
    font-weight: 800;
    color: var(--pf-muted);
}

/* Cuando hay imagen, el placeholder no se ve */
.pf-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*MODULO DONDE SE VE EL ARTICULO */
.pf-article-wrap {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0 2.75rem;
}

.pf-article-card {
    width: 100%;
    max-width: 760px;
    padding: 1rem;
}

@media (min-width: 1200px) {
    .pf-article-card {
        max-width: 860px;
    }
}

@media (max-width: 480px) {
    .pf-article-card {
        padding: .9rem;
    }
}

/* Centrado del media */
.pf-article-media-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Carrusel */
.pf-carousel {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .02);
    width: 100%;
    margin: 0 auto;
}

.pf-carousel__viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0 auto;
    cursor: zoom-in;
}

@media (max-width: 480px) {
    .pf-carousel__viewport {
        aspect-ratio: 4 / 3;
    }
}

.pf-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 260ms ease;
    will-change: transform;
    align-items: stretch;
}

.pf-carousel__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.pf-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--pf-border);
    background: rgba(255, 255, 255, .85);
    color: var(--pf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
    z-index: 4;
}

.pf-carousel__nav:hover {
    background: rgba(255, 255, 255, .95);
}

.pf-carousel__nav:active {
    transform: translateY(-50%) scale(.98);
}

.pf-carousel__nav--prev {
    left: 10px;
}

.pf-carousel__nav--next {
    right: 10px;
}

.pf-carousel__nav[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* ✅ DOTS: ahora van SOBRE la imagen, abajo y centrados */
.pf-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: .45rem;
    justify-content: center;
    padding: 0;
    background: transparent;
    z-index: 5;
    pointer-events: none;
    /* el contenedor no intercepta, solo los botones */
}

.pf-carousel__dot {
    pointer-events: auto;
    /* botones sí clickeables */
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .70);
    background: rgba(0, 0, 0, .22);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.pf-carousel__dot.is-active {
    background: var(--pf-green);
    border-color: var(--pf-green);
}

/* Badge condición */
.pf-carousel__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 6;
}

/* Row CTA */
.pf-article-cta {
    margin-top: 1.15rem;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ===== Zoom modal ===== */
.pf-zoom {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 10, .82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.pf-zoom.is-open {
    display: flex;
}

.pf-zoom__panel {
    width: min(1100px, 100%);
    max-height: calc(100vh - 36px);
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.pf-zoom__img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 36px);
    display: block;
    object-fit: contain;
    background: rgba(0, 0, 0, .20);
}

.pf-zoom__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.pf-zoom__close:hover {
    background: rgba(255, 255, 255, .18);
}

.pf-zoom__hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    background: rgba(0, 0, 0, .30);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: .35rem .55rem;
    border-radius: 12px;
    display: flex;
    gap: .35rem;
    align-items: center;
    user-select: none;
}

/* =========================
   DROPDOWN USUARIO (PC)
========================= */
.pf-userdd {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pf-dd {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: var(--pf-surface);
    border: 1px solid var(--pf-border-strong);
    border-radius: var(--pf-radius-xl);
    box-shadow: var(--pf-shadow);
    padding: .5rem;
    display: none;
    z-index: 999;
}

.pf-userdd.is-open .pf-dd {
    display: block;
}

.pf-dd::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: var(--pf-surface);
    border-left: 1px solid var(--pf-border-strong);
    border-top: 1px solid var(--pf-border-strong);
    transform: rotate(45deg);
}

.pf-dd__item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .7rem;
    border-radius: .85rem;
    text-decoration: none;
    color: var(--pf-text);
    font-weight: 900;
    font-size: .92rem;
}

.pf-dd__item .material-symbols-outlined {
    font-size: 20px;
    color: var(--pf-blue);
}

.pf-dd__item:hover {
    background: rgba(44, 71, 163, .08);
}

.dark .pf-dd__item:hover {
    background: rgba(255, 255, 255, .08);
}

.pf-dd__sep {
    height: 1px;
    background: var(--pf-border);
    margin: .35rem .35rem;
}

.pf-dd__item--danger .material-symbols-outlined {
    color: #b91c1c;
}

.pf-dd__item--danger:hover {
    background: rgba(185, 28, 28, .10);
}