/* =========================================================
   XenonPC Menu PRO – Estilos
   ========================================================= */

/* --- Wrapper & Tabs --- */
.xenon-mega-wrapper {
    position: relative;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.tab-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #fff;
    padding: 10px 0;
}

.tab-trigger {
    text-decoration: none;
    color: black;
    padding: 10px 15px !important;
    font-size: 19px !important;
    font-weight: bold !important;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.tab-trigger:hover{
    color: #68d2da;
    border-bottom: 3px solid #68d2da;
}

/* --- Mega Menu Panel --- */
.mega-menu-content {
    position: absolute;
    top: 90%;
    width: 70vw;
    max-width: 95vw;
    background: #FFFFFF;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    border-bottom: 4px solid #029faa;
    padding: 8px;
    border-radius: 0 0 8px 8px;
    margin-top: 0px;
}

.mega-menu-content::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* --- Grid Container --- */
.mega-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* --- Logos de marca (clases heredadas) --- */
.logo-grid-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

.logo-item {
    flex: 1;
    text-align: center;
}

.logo-item a { text-decoration: none; }

.img-brand { max-width: 200px; height: auto; }
.img-intel { max-width: 160px; height: auto; }

/* --- Logos de texto --- */
.text-logo {
    font-family: 'Segoe UI', sans-serif;
    color: #000;
    display: inline-block;
}

.yoga-style {
    font-size: 44px;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.aura-style {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.gaming-neon {
    font-size: 44px;
    color: #00E5FF;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

/* --- Separador y fila inferior de iconos --- */
.pc-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.bottom-icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-bottom: 10px;
}

.bottom-icon-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.bottom-icon-item img {
    width: 35px;
    height: auto;
    object-fit: contain;
}

.bottom-icon-item span {
    font-size: 24px;
    font-weight: bold;
}

.bottom-icon-item:hover span { color: #029faa; }

/* --- Grid genérico (xenon-grid, usado en teléfonos) --- */
.xenon-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.brand-banner { width: 100%; max-width: 180px; }

.product-thumb {
    width: 180px;
    height: auto;
    display: block;
    margin: 10px auto;
    transition: 0.3s;
}

.pc-row-products {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.pc-item img { max-width: 180px; transition: 0.3s; }

/* --- Noticias --- */
.ultimas-noticias-wrapper {
    display: flex;
    gap: 20px;
}

.ultimas-noticias-col,
.ultimas-newsletter-col {
    flex: 1;
    border: 1px solid #f0f0f0;
    padding: 15px;
    border-radius: 8px;
}

.noticia-item {
    display: flex;
    margin-bottom: 15px;
}

.noticia-thumb {
    width: 70px;
    height: 70px;
    margin-right: 12px;
    flex-shrink: 0;
}

.noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.noticia-title {
    font-weight: bold;
    color: #0063cc;
    text-decoration: none;
    font-size: 15px;
}

.mega-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.btn-ver-mas {
    background: #000;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

/* --- Tab panes --- */
.tab-pane    { display: none; }
.active-pane { display: block; animation: fadeIn 0.3s; }
.is-visible  { display: block !important; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Grid de categorías (xenon-grid-v2) --- */
/* Elementor sobreescribe grid-template-columns via selector inline, por eso usamos grid */
.xenon-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* valor por defecto; Elementor lo sobreescribe */
    gap: 8px;
    width: 100%;
}

/* --- Tarjeta de categoría --- */
.xenon-cat-card {
    width: 100%;
    min-width: 0;           /* CRÍTICO: permite que el grid la encoja */
    box-sizing: border-box;
    border-radius: 8px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.xenon-cat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #029faa;
}

/* --- Enlace interno de la tarjeta --- */
.cat-flex-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* --- Cabecera con logo de la tarjeta --- */
.cat-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.cat-logo-wrapper img {
    width: 130px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Imagen del producto --- */
.cat-image-side {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.cat-image-side img {
    width: 55%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.xenon-cat-card:hover .cat-image-side img {
    transform: scale(1.08);
}

/* --- Nombre de categoría (fallback sin logo) --- */
.cat-text-side {
    text-align: center;
    width: 100%;
}

.cat-name {
    display: block;
    width: 100%;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}
