/*======= CLIENTCORE · TIENDA DE PLANES (V13) =======*/
/* Solo colores de brand.css */

#order-standard_cart.cc-store-page {
    padding: 8px 0 40px;
    font-family: Inter, sans-serif;
    color: var(--brand-ink);
}

/* ---------- Encabezado ---------- */
.cc-store-page .cc-store-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 24px;
}

.cc-store-page .cc-store-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--state-success);
}

.cc-store-page .cc-store-intro h1 {
    margin: 6px 0 6px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-ink);
}

.cc-store-page .cc-store-intro p {
    margin: 0;
    font-size: 15px;
    color: var(--brand-muted);
}

/* ---------- Acciones (dominios, carrito, moneda) ---------- */
.cc-store-page .cc-store-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-store-page .cc-store-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    background: var(--neutral-white);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.cc-store-page a.cc-store-tool:hover,
.cc-store-page a.cc-store-tool:focus {
    border-color: var(--brand-border-7);
    background: var(--brand-tint);
    color: var(--brand-primary);
    text-decoration: none;
}

.cc-store-page .cc-store-badge {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--brand-primary);
    color: var(--neutral-white);
    font-size: 11px;
    text-align: center;
}

/* Selector de moneda que entrega WHMCS */
.cc-store-page .cc-store-tool-html { padding: 0 6px; }
.cc-store-page .cc-store-tool-html form,
.cc-store-page .cc-store-tool-html .form-group { margin: 0; }
.cc-store-page .cc-store-tool-html select,
.cc-store-page .cc-store-tool-html .form-control {
    height: 36px;
    min-width: 80px;
    padding: 4px 8px;
    border: 0;
    background-color: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    box-shadow: none;
}

/* ---------- Pestañas de categorías ---------- */
.cc-store-page .cc-store-tabs {
    display: flex;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 26px 0 26px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    background: var(--neutral-white);
    scrollbar-width: thin;
}

.cc-store-page .cc-store-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--brand-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.cc-store-page .cc-store-tab:hover,
.cc-store-page .cc-store-tab:focus {
    background: var(--brand-soft-1);
    color: var(--brand-primary);
    text-decoration: none;
}

.cc-store-page .cc-store-tab.is-active,
.cc-store-page .cc-store-tab.is-active:hover {
    background: var(--brand-primary);
    color: var(--neutral-white);
}

.cc-store-page .cc-store-alert { border-radius: 12px; }

/* ---------- Tarjetas de planes ---------- */
.cc-store-page .cc-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px 18px;
    align-items: stretch;
    margin: 0;
}

.cc-store-page .cc-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 24px 22px 22px;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    background: var(--neutral-white);
    transition: box-shadow .2s ease, transform .2s ease;
}

.cc-store-page .cc-plan:hover {
    box-shadow: 0 14px 34px rgba(var(--brand-dark-rgb), .08);
}

.cc-store-page .cc-plan.is-featured {
    border: 2px solid var(--brand-primary);
    box-shadow: 0 18px 40px rgba(var(--brand-dark-rgb), .12);
}

.cc-store-page .cc-plan-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cc-store-page .cc-plan-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft-1);
    color: var(--brand-primary);
    font-size: 17px;
}

.cc-store-page .cc-plan.is-featured .cc-plan-icon {
    background: var(--brand-primary);
    color: var(--brand-accent);
}

.cc-store-page .cc-plan-name {
    margin: 14px 0 2px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
}

.cc-store-page .cc-plan-tagline,
.cc-store-page .cc-plan-stock {
    margin: 0;
    font-size: 12.5px;
    color: var(--brand-muted);
}

/* Precio */
.cc-store-page .cc-plan-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0 18px;
    text-align: left;
}

.cc-store-page .cc-plan-from {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-muted);
}

.cc-store-page .cc-plan-price {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-primary);
}

.cc-store-page .cc-plan-price small {
    margin-left: 5px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-muted);
}

.cc-store-page .cc-plan-cycle {
    font-size: 12.5px;
    color: var(--brand-muted);
}

.cc-store-page .cc-plan-equiv {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--brand-soft-1);
    color: var(--state-success);
    font-size: 12px;
    font-weight: 600;
}

.cc-store-page .cc-plan-equiv.is-empty { visibility: hidden; }

.cc-store-page .cc-plan-setup {
    font-size: 12px;
    color: var(--brand-muted);
}

/* Botón */
.cc-store-page .cc-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px;
    border: 1.5px solid var(--brand-primary);
    border-radius: 12px;
    background: var(--neutral-white);
    color: var(--brand-primary);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .15s ease, color .15s ease;
}

.cc-store-page .cc-plan-btn:hover,
.cc-store-page .cc-plan-btn:focus,
.cc-store-page .cc-plan.is-featured .cc-plan-btn {
    border-color: var(--brand-primary-600);
    background: var(--brand-primary-600);
    color: var(--neutral-white);
}

.cc-store-page .cc-plan.is-featured .cc-plan-btn:hover {
    border-color: var(--brand-primary-700);
    background: var(--brand-primary-700);
}

/* Características */
.cc-store-page .cc-plan-desc { margin-top: 20px; }

.cc-store-page .cc-plan-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.cc-store-page .cc-plan-highlights[hidden] { display: none; }

.cc-store-page .cc-plan-highlights div {
    padding: 9px 10px;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    background: var(--brand-tint);
}

.cc-store-page .cc-plan-highlights b {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    color: var(--brand-dark);
}

.cc-store-page .cc-plan-highlights span {
    font-size: 11.5px;
    color: var(--brand-muted);
}

.cc-store-page .cc-plan-features {
    font-size: 13px;
    line-height: 1.7;
}

.cc-store-page .cc-plan-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--brand-border);
    list-style: none;
}

.cc-store-page .cc-plan-list li {
    display: flex;
    gap: 9px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--brand-ink);
}

.cc-store-page .cc-plan-list li i {
    margin-top: 3px;
    color: var(--state-success);
    font-size: 12px;
}

.cc-store-page .cc-plan-list strong { font-weight: 700; }

@media (max-width: 575px) {
    .cc-store-page .cc-store-tools { width: 100%; }
    .cc-store-page .cc-store-tool { flex: 1 1 auto; justify-content: center; }
    .cc-store-page .cc-store-tabs { width: 100%; }
}

/* ---------- Anular estilos base de standard_cart (mayor especificidad) ---------- */
#order-standard_cart.cc-store-page .products { margin: 0; }

#order-standard_cart.cc-store-page .products .product {
    margin: 0;
    padding: 24px 22px 22px;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    background: var(--neutral-white);
}

#order-standard_cart.cc-store-page .products .product.is-featured {
    border: 2px solid var(--brand-primary);
}

#order-standard_cart.cc-store-page .products .product div.product-desc {
    float: none;
    width: auto;
    margin-top: 20px;
    padding: 0;
    font-size: inherit;
}

#order-standard_cart.cc-store-page .products .product div.product-pricing {
    margin: 16px 0 18px;
}

#order-standard_cart.cc-store-page .products .product div.product-pricing span.price {
    font-size: 34px;
}

/*======= V14 · MENÚ DE CATEGORÍAS A LA IZQUIERDA Y BOTONES =======*/
.cc-store-page .cc-store-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 26px;
}

.cc-store-page .cc-store-main { min-width: 0; }

.cc-store-page .cc-store-layout .cc-store-tabs {
    position: sticky;
    top: 20px;
    flex-direction: column;
    width: auto;
    margin: 0;
    padding: 10px;
    overflow: visible;
}

.cc-store-page .cc-store-tabs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--brand-border);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
}

.cc-store-page .cc-store-tabs-title i { color: var(--brand-primary); }

.cc-store-page .cc-store-layout .cc-store-tab {
    padding: 11px 14px;
    white-space: normal;
}

.cc-store-page .cc-store-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Botón "Activar plan": verde petróleo, hover gris oscuro */
#order-standard_cart.cc-store-page .cc-plan .cc-plan-btn,
#order-standard_cart.cc-store-page .cc-plan.is-featured .cc-plan-btn {
    border-color: var(--brand-cta);
    background: var(--brand-cta);
    color: var(--neutral-white);
}

#order-standard_cart.cc-store-page .cc-plan .cc-plan-btn:hover,
#order-standard_cart.cc-store-page .cc-plan .cc-plan-btn:focus,
#order-standard_cart.cc-store-page .cc-plan.is-featured .cc-plan-btn:hover {
    border-color: var(--brand-cta-hover);
    background: var(--brand-cta-hover);
    color: var(--neutral-white);
}

/* Tablet y celular: el menú vuelve a ser una barra horizontal arriba */
@media (max-width: 991px) {
    .cc-store-page .cc-store-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .cc-store-page .cc-store-layout .cc-store-tabs {
        position: static;
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding: 6px;
    }
    .cc-store-page .cc-store-tabs-title { display: none; }
    .cc-store-page .cc-store-layout .cc-store-tab { white-space: nowrap; padding: 10px 16px; }
}

/*======= V15 · FONDO DEL MENÚ DE CATEGORÍAS =======*/
.cc-store-page .cc-store-layout .cc-store-tabs {
    border-color: var(--brand-soft-6);
    background: var(--brand-menu-bg);
}

.cc-store-page .cc-store-tabs-title { border-bottom-color: var(--brand-soft-6); }

.cc-store-page .cc-store-layout .cc-store-tab { color: var(--brand-dark-2); }

.cc-store-page .cc-store-layout .cc-store-tab:hover,
.cc-store-page .cc-store-layout .cc-store-tab:focus {
    background: var(--neutral-white);
    color: var(--brand-primary);
}

.cc-store-page .cc-store-layout .cc-store-tab.is-active,
.cc-store-page .cc-store-layout .cc-store-tab.is-active:hover {
    background: var(--brand-primary);
    color: var(--neutral-white);
}

/*======= V58 · TÍTULOS MÁS PROPORCIONALES Y NOMBRES DE PLAN EN UNA LÍNEA =======*/
#order-standard_cart.cc-store-page .cc-store-intro h1 {
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    max-width: 900px;
}

#order-standard_cart.cc-store-page .cc-plan-name {
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.3;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*======= V59 · PRECIOS MÁS PROPORCIONALES Y OTROS CICLOS DE PAGO =======*/
#order-standard_cart.cc-store-page .cc-plan-price { font-size: 30px; letter-spacing: -.01em; }

#order-standard_cart.cc-store-page .cc-plan-price small {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-ink);
    opacity: .75;
}

#order-standard_cart.cc-store-page .cc-plan-more {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--brand-muted);
}

@media (max-width: 575px) {
    #order-standard_cart.cc-store-page .cc-plan-price { font-size: 28px; }
}

/*======= V60 · INSTALACIÓN BAJO EL CICLO Y ESPACIOS AJUSTADOS (TODOS LOS PLANES) =======*/
#order-standard_cart.cc-store-page .cc-plan-setup {
    font-size: 12.5px;
    color: var(--brand-ink);
    opacity: .8;
}

#order-standard_cart.cc-store-page .cc-plan-setup b { font-weight: 700; }

/* Sin "equivale a" (planes mensuales) no se deja una línea vacía */
#order-standard_cart.cc-store-page .cc-plan-equiv.is-empty { display: none; }

#order-standard_cart.cc-store-page .cc-plan-more { margin-top: 10px; }

/*======= V62 · SELECTOR DE MONEDA: UN SOLO BORDE =======*/
#order-standard_cart .cc-store-tool-html {
    padding: 0;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#order-standard_cart .cc-store-tool-html:hover { border-color: var(--brand-border-7); }

#order-standard_cart .cc-store-tool-html:focus-within {
    border-color: var(--brand-primary-600);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-600-rgb), .14);
}

#order-standard_cart .cc-store-tool-html select,
#order-standard_cart .cc-store-tool-html select.form-control,
#order-standard_cart .cc-store-tool-html .form-control {
    height: 38px;
    min-height: 38px;
    min-width: 92px;
    margin: 0;
    padding-left: 13px !important;
    border: 0 !important;
    border-radius: 10px;
    outline: 0;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/*======= V95 · PRECIOS EN UF (módulo UF Chile) =======*/
#order-standard_cart.cc-store-page .cc-plan-uf-clp {
    margin-top: 2px;
    font-size: 14px;
    color: var(--brand-dark-2);
}

#order-standard_cart.cc-store-page .cc-plan-uf-clp b { font-weight: 700; color: var(--brand-ink); }

#order-standard_cart.cc-store-page .cc-plan-uf-note {
    font-size: 11.5px;
    color: var(--brand-muted);
}

/*======= V104 · COLUMNAS POR GRUPO (panel ClientCore) =======*/
@media (min-width: 992px) {
    #order-standard_cart.cc-store-page .cc-store-grid.cc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #order-standard_cart.cc-store-page .cc-store-grid.cc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #order-standard_cart.cc-store-page .cc-store-grid.cc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 576px) and (max-width: 991px) {
    #order-standard_cart.cc-store-page .cc-store-grid.cc-cols-2,
    #order-standard_cart.cc-store-page .cc-store-grid.cc-cols-3,
    #order-standard_cart.cc-store-page .cc-store-grid.cc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
