/*
Theme Name: Listivo Child
Theme URI: https://listivotheme.com/
Author: TangibleDesign
Author URI: https://tangibledesign.net/
Description: Listivo
Template: listivo
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: translation-ready
Text Domain: listivo
*/

/* ─────────────────────────────────────────────
   FC Sidebar Logo — botón "Ir a la home" en el panel de usuario
   Se inyecta desde functions.php arriba de .fc-sidebar-profile
   dentro de .fc-panel-sidebar
   ───────────────────────────────────────────── */
.fc-panel-sidebar .fc-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 14px;
    margin: 0 0 6px;
    border-bottom: 1px solid #e6e9ef;
    overflow: hidden;
}

/* Sidebar colapsado (solo iconos): ocultar el logo horizontal porque no cabe */
.fc-panel-sidebar--collapsed .fc-sidebar-logo {
    display: none !important;
}

.fc-panel-sidebar .fc-sidebar-logo a,
.fc-panel-sidebar .fc-sidebar-logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.fc-panel-sidebar .fc-sidebar-logo a:hover,
.fc-panel-sidebar .fc-sidebar-logo .custom-logo-link:hover {
    opacity: 0.75;
}

.fc-panel-sidebar .fc-sidebar-logo img,
.fc-panel-sidebar .fc-sidebar-logo .custom-logo {
    max-width: 160px !important;
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
    .fc-panel-sidebar .fc-sidebar-logo {
        padding: 14px 12px 10px;
    }
    .fc-panel-sidebar .fc-sidebar-logo img,
    .fc-panel-sidebar .fc-sidebar-logo .custom-logo {
        max-width: 140px !important;
        max-height: 38px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .fc-panel-sidebar .fc-sidebar-logo {
        padding: 10px 10px 8px;
    }
    .fc-panel-sidebar .fc-sidebar-logo img,
    .fc-panel-sidebar .fc-sidebar-logo .custom-logo {
        max-width: 120px !important;
        max-height: 32px !important;
    }
}

/* ═════════════════════════════════════════════════════════════════
   PRICING PAGE · FULLCARRO · DARK CARD GRID
   Inspirado en el layout del usuario: fondo oscuro, cards rounded,
   plan destacado con borde naranja brand, detalles colapsables.
   ═════════════════════════════════════════════════════════════════ */

/* ═══ Dark mode TOTAL en toda la página /panel/package/ ═══ */
body.fc-pricing-page,
body.fc-pricing-page .site-content,
body.fc-pricing-page .elementor-location-main,
body.fc-pricing-page .elementor {
    background: #0F1720 !important;
    color: #FDFDFE !important;
}

body.fc-pricing-page .elementor-section,
body.fc-pricing-page .elementor-section-wrap > .elementor-section {
    background: #0F1720 !important;
}

body.fc-pricing-page .elementor-section:has(.elementor-widget-lst_panel),
body.fc-pricing-page .elementor-section:has(.elementor-widget-heading) {
    padding: 60px 20px 80px !important;
}

/* Forzar la sección (normalmente 2 cols) a una sola columna centrada */
body.fc-pricing-page .elementor-section:has(.elementor-widget-lst_panel) .elementor-container,
body.fc-pricing-page .elementor-section:has(.elementor-widget-heading) .elementor-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    gap: 0 !important;
}

body.fc-pricing-page .elementor-column {
    width: 100% !important;
    max-width: 1240px !important;
    flex: none !important;
}

body.fc-pricing-page .elementor-widget-wrap {
    align-content: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Título centrado y blanco */
body.fc-pricing-page .elementor-widget-heading {
    text-align: center !important;
    width: 100% !important;
}
body.fc-pricing-page .elementor-widget-heading .elementor-widget-container {
    text-align: center !important;
}
body.fc-pricing-page .elementor-widget-heading h1,
body.fc-pricing-page .elementor-widget-heading h2,
body.fc-pricing-page .elementor-heading-title {
    font-family: 'Comfortaa', cursive !important;
    font-weight: 700 !important;
    font-size: clamp(34px, 4.5vw, 50px) !important;
    letter-spacing: -1px !important;
    color: #FDFDFE !important;
    line-height: 1.1 !important;
    text-align: center !important;
    margin: 0 auto 14px !important;
    max-width: 780px !important;
    width: 100% !important;
}

/* Toggle sobre fondo oscuro */
body.fc-pricing-page .fc-billing-toggle-wrap {
    margin: 10px 0 40px;
}
body.fc-pricing-page .fc-billing-toggle {
    background: #1E2B3A !important;
    border: 1px solid #2A3B50 !important;
    box-shadow: none !important;
}
body.fc-pricing-page .fc-billing-toggle__btn {
    color: #A6B2BF !important;
}
body.fc-pricing-page .fc-billing-toggle__btn:hover {
    color: #FDFDFE !important;
}
body.fc-pricing-page .fc-billing-toggle__btn.is-active {
    background: #FF9540 !important;
    color: #0F1720 !important;
    box-shadow: 0 2px 8px rgba(255,149,64,.35) !important;
}
body.fc-pricing-page .fc-billing-toggle__badge {
    background: #FDFDFE;
    color: #B85D1A;
}

/* ═══ Grid de cards (centered) ═══ */
body.fc-pricing-page .listivo-panel-packages-v2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 1200px;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* ═══ CARD · reset total + nueva estética dark ═══ */
body.fc-pricing-page .listivo-panel-package-v2 {
    all: unset;
    background: #1E2B3A !important;
    border: 1px solid #2A3B50 !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
    min-height: 300px;
    overflow: visible !important;
}
body.fc-pricing-page .listivo-panel-package-v2:hover {
    transform: translateY(-5px);
    border-color: #3D5270 !important;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
}

/* Head como bloque simple */
body.fc-pricing-page .listivo-panel-package-v2__head {
    all: unset;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
body.fc-pricing-page .listivo-panel-package-v2__body {
    all: unset;
    display: flex !important;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

/* Título del plan */
body.fc-pricing-page .listivo-panel-package-v2__head > div:first-child {
    font-family: 'Comfortaa', cursive !important;
    font-weight: 400 !important;
    font-size: 30px !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
    color: #FDFDFE !important;
    margin: 0 !important;
}

/* Label normal (pequeño debajo del nombre) */
body.fc-pricing-page .listivo-panel-package-v2__label {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #A6B2BF !important;
    background: #2A3B50 !important;
    padding: 4px 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    width: fit-content;
}

/* Precio */
body.fc-pricing-page .listivo-panel-package-v2__main-value {
    all: unset;
    font-family: 'Comfortaa', cursive !important;
    font-weight: 400 !important;
    font-size: 40px !important;
    letter-spacing: -1px !important;
    color: #FDFDFE !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px !important;
}
body.fc-pricing-page .listivo-panel-package-v2__main-value .fc-price-number {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}
body.fc-pricing-page .listivo-panel-package-v2__main-value .fc-price-period {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #A6B2BF;
    font-weight: 400;
    letter-spacing: 0;
}

/* Neutro gratis naranja */
body.fc-pricing-page .fc-pkg--free .listivo-panel-package-v2__main-value {
    color: #FF9540 !important;
}

/* Ahorro anual */
body.fc-pricing-page .fc-price-savings {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,149,64,.15);
    color: #FFB779;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin: 8px 0 0;
    width: fit-content;
    letter-spacing: 0.2px;
}
body.fc-pricing-page .fc-price-savings::before {
    content: "↓";
    font-weight: 700;
}

/* Descripción corta (resumen) */
body.fc-pricing-page .listivo-panel-package-v2__description {
    all: unset;
    display: block !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #CBD5F5 !important;
    margin: 18px 0 0 !important;
}

/* ═══ DETAILS · lista completa colapsable ═══ */
body.fc-pricing-page .listivo-panel-package-v2__attributes {
    all: unset;
    display: block !important;
    margin-top: 16px;
    border-top: 1px solid #2A3B50;
    padding-top: 0;
    overflow: hidden;
}
body.fc-pricing-page .fc-details-toggle {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 2px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #A6B2BF;
    text-transform: uppercase;
    transition: color .2s ease;
}
body.fc-pricing-page .fc-details-toggle:hover {
    color: #FDFDFE;
}
body.fc-pricing-page .fc-details-toggle__chevron {
    display: inline-block;
    transition: transform .25s ease;
    font-size: 10px;
}
body.fc-pricing-page .fc-details-toggle[aria-expanded="true"] .fc-details-toggle__chevron {
    transform: rotate(180deg);
}
body.fc-pricing-page .fc-details-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
body.fc-pricing-page .fc-details-panel--open {
    max-height: 400px;
}
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute {
    all: unset;
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0 !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #CBD5F5;
    line-height: 1.5;
}
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute-icon-wrapper {
    flex-shrink: 0;
    margin: 0;
}
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute-icon {
    width: 16px !important;
    height: 16px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute-icon svg {
    width: 14px;
    height: 14px;
}
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute-icon svg,
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute-icon svg path {
    fill: #FF9540 !important;
}
body.fc-pricing-page .fc-details-panel .listivo-panel-package-v2__attribute-value {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 13px !important;
    color: #CBD5F5 !important;
    line-height: 1.5 !important;
}

/* ═══ CTA Button ═══ */
body.fc-pricing-page .listivo-panel-package-v2__button {
    all: unset;
    display: block !important;
    margin-top: auto !important;
    padding-top: 20px !important;
}
body.fc-pricing-page .listivo-panel-package-v2__button .listivo-simple-button {
    all: unset;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    font-size: 14px !important;
    padding: 13px 18px !important;
    border-radius: 12px !important;
    background: #FDFDFE !important;
    color: #0F1720 !important;
    border: 1px solid transparent !important;
    cursor: pointer;
    transition: all .2s ease !important;
    white-space: nowrap;
}
body.fc-pricing-page .listivo-panel-package-v2__button .listivo-simple-button::after {
    content: "→";
    font-size: 15px;
    transition: transform .2s ease;
}
body.fc-pricing-page .listivo-panel-package-v2__button .listivo-simple-button:hover {
    background: #FF9540 !important;
    color: #FDFDFE !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(255,149,64,.5) !important;
}
body.fc-pricing-page .listivo-panel-package-v2__button .listivo-simple-button:hover::after {
    transform: translateX(2px);
}

/* ═══ RECOMENDADO · Nitro — borde naranja + badge "Más vendido" ═══ */
body.fc-pricing-page .fc-pkg--recommended {
    border-color: #FF9540 !important;
    border-width: 2px !important;
    padding: 27px 23px !important;  /* compensa el border extra */
    box-shadow: 0 20px 40px -12px rgba(255,149,64,.3);
}
body.fc-pricing-page .fc-pkg--recommended::before {
    content: "⭐ Más vendido";
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, #FFD27A 0%, #FFB347 100%);
    color: #0F1720;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(255,149,64,.4);
}
body.fc-pricing-page .fc-pkg--recommended:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 52px -14px rgba(255,149,64,.45);
}
body.fc-pricing-page .fc-pkg--recommended .listivo-panel-package-v2__button .listivo-simple-button {
    background: #FF9540 !important;
    color: #FDFDFE !important;
}
body.fc-pricing-page .fc-pkg--recommended .listivo-panel-package-v2__button .listivo-simple-button:hover {
    background: #EB7C25 !important;
}

/* ═══ GT · Badge Pro en gold ═══ */
body.fc-pricing-page .fc-pkg-accent--gt::before {
    content: "🏆 Pro";
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, #C9A961 0%, #8B7A3D 100%);
    color: #FDFDFE;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(139,122,61,.4);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    body.fc-pricing-page .listivo-panel-packages-v2 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }
}
@media (max-width: 600px) {
    body.fc-pricing-page .elementor-section:has(.elementor-widget-lst_panel) {
        padding: 40px 14px 50px !important;
    }
    body.fc-pricing-page .listivo-panel-packages-v2 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    body.fc-pricing-page .listivo-panel-package-v2 {
        padding: 24px 20px !important;
    }
    body.fc-pricing-page .listivo-panel-package-v2__main-value {
        font-size: 36px !important;
    }
}

/* Fade-in staggered */
body.fc-pricing-page .listivo-panel-package-v2 {
    animation: fcCardFadeIn .5s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes fcCardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   Logo swap global (header, footer, sticky, etc.)
   Aplicado a cualquier <img> con clase .fc-custom-logo que agrega
   el swap JS desde functions.php
   ───────────────────────────────────────────── */
.fc-custom-logo {
    max-width: 180px !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    /* Centra verticalmente dentro del contenedor del header */
    margin-top: auto !important;
    margin-bottom: auto !important;
    align-self: center !important;
    vertical-align: middle;
}

/* Centrar vertical y horizontalmente el logo dentro del wrapper del header,
   SIN pelear con el sistema de sticky del tema padre:
   - Cuando el body NO tiene .listivo-menu-sticky--active → mostrar el logo normal con flex
   - Cuando SÍ tiene .listivo-menu-sticky--active → el tema padre oculta el normal
     y muestra el sticky, al que le aplicamos flex también.
   Así evitamos que aparezcan los dos logos al mismo tiempo al hacer scroll. */
body:not(.listivo-menu-sticky--active) .listivo-menu-v2__logo:not(.listivo-menu-v2__logo--sticky) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

body.listivo-menu-sticky--active .listivo-menu-v2__logo--sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 1024px) {
    .fc-custom-logo {
        max-width: 150px !important;
        max-height: 40px !important;
    }
}

@media (max-width: 600px) {
    .fc-custom-logo {
        max-width: 130px !important;
        max-height: 34px !important;
    }
}
