/* ==========================================================================
   WEBREDES STORE - TEMA PROFESIONAL PRESTASHOP (COMPATIBLE PS 8 Y PS 9)
   Identidad Tecnológica: Redes, Seguridad, Servidores, Licenciamiento
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
    --wr-primary: #0f172a;        /* Azul Slate oscuro industrial */
    --wr-secondary: #1e293b;      /* Slate medio para tarjetas y bordes */
    --wr-accent: #0284c7;         /* Azul Tech Cobalto (Color de acción principal) */
    --wr-accent-hover: #0369a1;   /* Azul Tech oscuro en interacción */
    --wr-accent-light: #f0f9ff;   /* Fondo tenue celeste para cajas de iconos */
    --wr-accent-border: #bae6fd;  /* Borde celeste de acento */
    --wr-accent-glow: rgba(2, 132, 199, 0.25);
    --wr-success: #16a34a;        /* Verde stock disponible */
    --wr-danger: #ef4444;         /* Rojo ofertas / agotado */
    --wr-text: #0f172a;           /* Texto principal */
    --wr-text-muted: #64748b;     /* Texto secundario */
    --wr-bg-main: #fcfdfd;        /* Fondo general suave */
    --wr-bg-card: #ffffff;        /* Fondo blanco de tarjetas */
    --wr-bg-subtle: #f8fafc;      /* Fondo gris pizarra muy claro */
    --wr-border: #e2e8f0;         /* Bordes de tarjetas y separadores */
    --wr-radius-sm: 8px;
    --wr-radius-md: 12px;
    --wr-radius-lg: 16px;
    --wr-radius-pill: 9999px;
    --wr-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.03);
    --wr-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.06);
    --wr-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
   2. ESTILOS GLOBALES Y TIPOGRAFÍA
   -------------------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--wr-bg-main);
    color: var(--wr-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--wr-accent);
    color: #ffffff;
}

a {
    color: var(--wr-accent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--wr-accent-hover);
}

/* --------------------------------------------------------------------------
   3. CABECERA (HEADER) Y NAVEGACIÓN MODERNA
   -------------------------------------------------------------------------- */
#header {
    background: #ffffff;
    border-bottom: 1px solid var(--wr-border);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 100;
}

/* Efecto cuando el usuario hace scroll */
#header.header-scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border-color: transparent;
}

/* Barra superior oscura de contacto */
#header .nav {
    background: var(--wr-primary) !important;
    color: #94a3b8;
    font-size: 0.825rem;
    padding: 0.4rem 0;
}

#header .nav a {
    color: #cbd5e1 !important;
    font-size: 0.825rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

#header .nav a:hover {
    color: #38bdf8 !important;
}

/* Navegación y menú principal */
.header-top {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

#header .top-menu a[data-depth="0"] {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    color: #ffffff !important;
    padding: 0.5rem 0.85rem;
    position: relative;
    transition: color 0.2s ease;
}

#header .top-menu a[data-depth="0"]:hover {
    color: var(--wr-accent) !important;
}

#header .top-menu a[data-depth="0"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--wr-accent);
    transition: width 0.25s ease;
}

#header .top-menu a[data-depth="0"]:hover::after {
    width: 80%;
}

/* Buscador Moderno Tipo Píldora */
#search_widget {
    min-width: 260px;
}

#search_widget form {
    position: relative;
    display: flex;
    align-items: center;
}

#search_widget input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 0.5rem 2.8rem 0.5rem 1.25rem;
    background-color: var(--wr-bg-subtle);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-pill);
    font-size: 0.875rem;
    color: var(--wr-text);
    transition: all 0.25s ease;
}

#search_widget input[type="text"]:focus {
    background-color: #ffffff;
    border-color: var(--wr-accent);
    box-shadow: 0 0 0 3px var(--wr-accent-glow);
    outline: none;
}

#search_widget button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--wr-text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#search_widget button[type="submit"]:hover {
    color: var(--wr-accent);
}

/* Carrito de Compras en la Cabecera */
#_desktop_cart .blockcart {
    background: var(--wr-bg-subtle);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-pill);
    padding: 0.5rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

#_desktop_cart .blockcart:hover {
    background: var(--wr-primary);
    border-color: var(--wr-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

#_desktop_cart .blockcart:hover a,
#_desktop_cart .blockcart:hover i {
    color: #ffffff !important;
}

#_desktop_cart .cart-products-count {
    background-color: var(--wr-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--wr-radius-pill);
    margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   4. BARRA DE BENEFICIOS Y CONFIANZA TI (TRUST BAR)
   -------------------------------------------------------------------------- */
.webredes-trust-bar-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.webredes-trust-bar {
    background: #ffffff;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-lg);
    padding: 1.5rem 1rem;
    box-shadow: var(--wr-shadow-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.webredes-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--wr-border);
}

.webredes-trust-bar .trust-item:last-child {
    border-right: none;
}

.webredes-trust-bar .trust-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--wr-radius-md);
    background-color: var(--wr-accent-light);
    border: 1px solid var(--wr-accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.webredes-trust-bar .trust-icon-box i {
    font-size: 1.6rem;
    color: var(--wr-accent);
}

.webredes-trust-bar .trust-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wr-primary);
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.webredes-trust-bar .trust-content p {
    font-size: 0.8rem;
    color: var(--wr-text-muted);
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .webredes-trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .webredes-trust-bar .trust-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 575px) {
    .webredes-trust-bar {
        grid-template-columns: 1fr;
    }
    .webredes-trust-bar .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--wr-border);
        padding-bottom: 0.75rem;
    }
    .webredes-trust-bar .trust-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   5. SECCIÓN DE CATEGORÍAS EN PORTADA (HOME)
   -------------------------------------------------------------------------- */
.bodegon-section-header h2,
.webredes-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wr-primary);
    margin-bottom: 0.4rem;
}

.bodegon-section-header p,
.webredes-section-header p {
    font-size: 1rem;
    color: var(--wr-text-muted);
    margin-bottom: 1.5rem;
}

.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.category-card {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: var(--wr-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2.25rem 2rem;
    text-decoration: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: var(--wr-shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wr-shadow-lg);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 55%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.5) 65%, rgba(15, 23, 42, 0.15) 100%);
}

.category-info {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 100%;
}

.category-info h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Botón con efecto Glassmorphism en tarjetas */
.category-info .btn-ver-mas {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--wr-radius-pill);
    transition: all 0.3s ease;
}

.category-info .btn-ver-mas i {
    font-size: 1.1rem;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.category-card:hover .btn-ver-mas {
    background: var(--wr-accent);
    border-color: var(--wr-accent);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    gap: 0.75rem;
}

.category-card:hover .btn-ver-mas i {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .category-card {
        height: 290px;
        padding: 1.5rem;
    }
    .category-info h3 {
        font-size: 1.35rem;
    }
}

/* --------------------------------------------------------------------------
   6. CARRUSELES Y CONTENEDORES DE PRODUCTOS EN EL HOME
   -------------------------------------------------------------------------- */
.bodegon-home-products,
.webredes-home-products {
    background-color: var(--wr-bg-subtle);
    padding: 3.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--wr-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.bodegon-carousel-header,
.webredes-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.bodegon-carousel-header h3,
.webredes-carousel-header h3,
.products-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--wr-primary);
    text-transform: uppercase;
    margin: 0;
}

.bodegon-carousel-wrapper {
    position: relative;
    width: 100%;
}

.bodegon-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding: 0.5rem 0.25rem 1.5rem 0.25rem;
}

.bodegon-carousel::-webkit-scrollbar {
    height: 6px;
}
.bodegon-carousel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.bodegon-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.bodegon-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--wr-accent);
}

.carousel-item-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    .carousel-item-card {
        flex: 0 0 calc(25% - 1rem);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-item-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Grilla de los Más Vendidos */
.bodegon-bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   7. TARJETAS DE PRODUCTO INDIVIDUAL (PRODUCT MINIATURE)
   -------------------------------------------------------------------------- */
.product-miniature {
    background: var(--wr-bg-card);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--wr-shadow-sm);
}

.product-miniature:hover {
    transform: translateY(-5px);
    box-shadow: var(--wr-shadow-md);
    border-color: #cbd5e1;
}

.product-miniature .thumbnail-container {
    background: #ffffff;
    margin: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.product-miniature .thumbnail-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-miniature:hover .thumbnail-container img {
    transform: scale(1.05);
}

.product-miniature .product-description {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-miniature .product-title a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wr-primary);
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-miniature .product-title a:hover {
    color: var(--wr-accent);
}

.product-price-and-shipping-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    padding: 0.6rem 0 0.4rem 0;
}

.product-miniature .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wr-primary);
}

.product-miniature .discount-percentage {
    background: #fef2f2;
    color: var(--wr-danger);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    border: 1px solid #fee2e2;
}

/* Botón Añadir al Carrito en Tarjeta */
.bodegon-cart-action-block {
    margin-top: 0.75rem;
}

.btn-add-bg {
    background-color: var(--wr-primary) !important;
    border: none !important;
    color: #ffffff !important;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem !important;
    border-radius: var(--wr-radius-sm);
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-add-bg:hover:not(:disabled) {
    background-color: var(--wr-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--wr-accent-glow);
}

.btn-add-bg:disabled {
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   8. PÁGINAS DE CATEGORÍA Y LISTADO DE PRODUCTOS
   -------------------------------------------------------------------------- */
#category .block-category {
    background-color: var(--wr-bg-subtle);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

#category .block-category h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--wr-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#category .category-description p {
    color: var(--wr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Barra lateral de filtros (Faceted Search) */
#search_filters_wrapper {
    background: #ffffff;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-md);
    padding: 1.5rem;
    box-shadow: var(--wr-shadow-sm);
}

#search_filters_wrapper .facet .facet-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wr-primary);
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#search_filters_wrapper .facet .facet-label a {
    color: var(--wr-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

#search_filters_wrapper .facet .facet-label a:hover {
    color: var(--wr-accent);
    text-decoration: none;
}

/* Grilla de Catálogo */
#js-product-list .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

#js-product-list .products .product-miniature,
#js-product-list .products > div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
}

/* --------------------------------------------------------------------------
   9. ELIMINACIÓN TOTAL DE IMÁGENES EN MINIATURA DE CATEGORÍAS Y SUBCATEGORÍAS
   -------------------------------------------------------------------------- */
#category .block-category .category-cover,
#category .block-category .category-thumbnail,
#category .block-category img,
.category-cover,
.category-thumbnail,
.block-category .category-cover,
.category-image,
#subcategories .subcategory-image,
#subcategories img,
.subcategories-list .subcategory-image,
.subcategories-list img,
.subcategories .subcategory-image,
.subcategories img,
.subcategory-image,
ul.subcategories-list li .subcategory-image {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Subcategorías diseñadas como Píldoras/Chips Modernas */
#subcategories,
.subcategories,
.subcategories-block {
    margin: 1.5rem 0 2.5rem 0;
}

#subcategories .subcategories-title,
.subcategories .subcategories-title,
#subcategories .subcategory-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wr-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

#subcategories ul,
.subcategories ul,
.subcategories-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#subcategories li,
.subcategories li,
.subcategory-item {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

#subcategories .subcategory-name,
#subcategories .subcategory-link,
.subcategories .subcategory-name,
.subcategories a,
.subcategory-item a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.55rem 1.25rem !important;
    background-color: var(--wr-bg-subtle) !important;
    color: var(--wr-primary) !important;
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-pill) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

#subcategories .subcategory-name:hover,
#subcategories .subcategory-link:hover,
.subcategories .subcategory-name:hover,
.subcategories a:hover,
.subcategory-item a:hover {
    background-color: var(--wr-primary) !important;
    color: #ffffff !important;
    border-color: var(--wr-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--wr-shadow-sm) !important;
}

/* --------------------------------------------------------------------------
   10. FICHA DE PRODUCTO (PRODUCT PAGE) Y ALINEACIÓN DE MÓDULOS
   -------------------------------------------------------------------------- */
#product #content {
    margin-bottom: 2.5rem;
}

#product .product-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem 0;
}

/* Galería de Fotos y Portada */
#product .images-container {
    position: sticky;
    top: 20px;
}

#product .product-cover {
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-lg);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--wr-shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
}

#product .product-cover img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#product .product-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#product .product-images > li.thumb-container {
    display: inline-block;
    margin: 0;
}

#product .product-images > li.thumb-container > .thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    padding: 0.25rem;
    background: #ffffff;
    border: 2px solid var(--wr-border);
    border-radius: var(--wr-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

#product .product-images > li.thumb-container > .thumb:hover,
#product .product-images > li.thumb-container > .thumb.selected {
    border-color: var(--wr-accent);
    transform: scale(1.05);
}

/* Columna de Información del Producto */
#product .product-information {
    padding-left: 1.5rem;
}

@media (max-width: 767px) {
    #product .product-information {
        padding-left: 0;
        margin-top: 1.5rem;
    }
}

#product h1[itemprop="name"],
#product .h1.product-detail-name,
#product .product-information h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--wr-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

/* Badges Técnicos TI WebRedes */
.bodegon-technical-badges,
.webredes-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.tech-badge {
    background-color: var(--wr-accent-light);
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--wr-radius-sm);
    border: 1px solid var(--wr-accent-border);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tech-badge i {
    font-size: 1.1rem;
    color: var(--wr-accent);
}

/* Bloque de Precios en Producto */
#product .product-prices {
    background: var(--wr-bg-subtle);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-md);
    padding: 1.25rem 1.75rem;
    margin: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

#product .product-prices .current-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
}

#product .product-prices .current-price span[itemprop="price"],
#product .product-prices .current-price .current-price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--wr-primary);
}

#product .product-prices .has-discount .regular-price {
    font-size: 1.15rem;
    color: var(--wr-text-muted);
    text-decoration: line-through;
}

#product .product-prices .discount {
    background-color: #fef2f2;
    color: var(--wr-danger);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #fee2e2;
}

/* Variantes */
#product .product-variants {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#product .product-variants-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#product .product-variants-item .control-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

#product .product-variants-item select.form-control {
    border-radius: var(--wr-radius-sm);
    border: 1px solid var(--wr-border);
    padding: 0.6rem 1rem;
    max-width: 320px;
    height: auto;
    font-size: 0.95rem;
}

/* Alineación Perfecta de Cantidad y Botón Comprar */
#product .product-actions .product-add-to-cart {
    margin-top: 1.5rem;
}

#product .product-quantity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

#product .product-quantity .qty {
    flex: 0 0 auto;
    margin-bottom: 0;
}

#product .product-quantity #quantity_wanted {
    width: 80px;
    height: 48px;
    text-align: center;
    border-radius: var(--wr-radius-sm);
    border: 1px solid var(--wr-border);
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #ffffff;
}

#product .product-quantity .add {
    flex: 1 1 220px;
    margin-bottom: 0;
}

#product .product-quantity .add .add-to-cart {
    height: 48px;
    width: 100%;
    border-radius: var(--wr-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--wr-primary);
    border-color: var(--wr-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.25s ease;
    cursor: pointer;
}

#product .product-quantity .add .add-to-cart:hover:not(:disabled) {
    background-color: var(--wr-accent);
    border-color: var(--wr-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--wr-accent-glow);
}

/* Disponibilidad / Stock */
#product #product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--wr-radius-sm);
}

#product #product-availability:not(:empty) {
    background-color: #f0fdf4;
    color: var(--wr-success);
    border: 1px solid #bbf7d0;
}

#product #product-availability .product-unavailable {
    background-color: #fef2f2;
    color: var(--wr-danger);
    border-color: #fecaca;
}

/* Bloque Reassurance (Confianza) */
#block-reassurance,
.block-reassurance {
    background: var(--wr-bg-subtle);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-md);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--wr-shadow-sm);
}

#block-reassurance ul,
.block-reassurance ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#block-reassurance li,
.block-reassurance li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--wr-border);
}

#block-reassurance li:last-child,
.block-reassurance li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#block-reassurance .block-reassurance-item,
.block-reassurance .block-reassurance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

#block-reassurance img,
.block-reassurance img,
#block-reassurance svg,
.block-reassurance svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

#block-reassurance .block-reassurance-text,
.block-reassurance .block-reassurance-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wr-secondary);
    line-height: 1.4;
}

/* Pestañas (Tabs) de Producto */
#product .tabs {
    background: #ffffff;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-lg);
    padding: 2rem;
    margin-top: 3.5rem;
    box-shadow: var(--wr-shadow-sm);
}

#product .nav-tabs {
    border-bottom: 2px solid #f1f5f9;
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
}

#product .nav-tabs .nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wr-text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    background: transparent;
}

#product .nav-tabs .nav-link:hover {
    color: var(--wr-primary);
}

#product .nav-tabs .nav-link.active {
    color: var(--wr-accent);
    border-bottom-color: var(--wr-accent);
    background: transparent;
}

#product .tab-content {
    padding-top: 1.5rem;
    color: var(--wr-secondary);
    line-height: 1.7;
}

/* Ficha Técnica y Características en Detalles del Producto (Formato Tabla Limpia y Ordenada) */
#product .product-features {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

#product .product-features .h6 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wr-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

#product dl.data-sheet {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-md) !important;
    overflow: hidden !important;
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--wr-shadow-sm) !important;
}

#product dl.data-sheet dt.name {
    grid-column: 1 !important;
    font-weight: 700 !important;
    color: var(--wr-primary) !important;
    background-color: #f8fafc !important;
    border: none !important;
    border-bottom: 1px solid var(--wr-border) !important;
    border-right: 1px solid var(--wr-border) !important;
    padding: 0.85rem 1.25rem !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    text-transform: none !important;
}

#product dl.data-sheet dd.value {
    grid-column: 2 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid var(--wr-border) !important;
    padding: 0.85rem 1.25rem !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    text-transform: none !important;
}

#product dl.data-sheet dt.name:last-of-type,
#product dl.data-sheet dd.value:last-of-type {
    border-bottom: none !important;
}

@media (max-width: 640px) {
    #product dl.data-sheet {
        grid-template-columns: 1fr !important;
    }
    #product dl.data-sheet dt.name {
        grid-column: 1 !important;
        border-right: none !important;
        border-bottom: none !important;
        background-color: #f1f5f9 !important;
        padding-bottom: 0.35rem !important;
    }
    #product dl.data-sheet dd.value {
        grid-column: 1 !important;
        padding-top: 0.2rem !important;
        padding-bottom: 0.85rem !important;
    }
}

/* Badges de Referencia y Stock en Detalles del Producto */
#product .product-reference,
#product .product-quantities {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-right: 1rem !important;
    margin-bottom: 1rem !important;
    padding: 0.5rem 1rem !important;
    background: #f8fafc !important;
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-sm) !important;
    font-size: 0.9rem !important;
}

#product .product-reference .label,
#product .product-quantities .label {
    font-weight: 700 !important;
    color: var(--wr-primary) !important;
    margin-bottom: 0 !important;
}

/* Bloque de Documentación Técnica */
.bodegon-downloads-block,
.webredes-downloads-block {
    border-radius: var(--wr-radius-md);
    overflow: hidden;
    border: 1px solid var(--wr-border);
    box-shadow: var(--wr-shadow-sm);
}

.webredes-downloads-block .card-header {
    background-color: var(--wr-bg-subtle);
    border-bottom: 1px solid var(--wr-border);
}

.webredes-downloads-block .card-header i {
    color: var(--wr-accent);
}

/* Módulos de Pie de Producto (Accesorios, Relacionados, Misma Categoría) */
.product-accessories,
.category-products,
.crossselling-products,
.viewed-products,
.featured-products-footer,
#product-comments-list-header {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid #f1f5f9;
}

.product-accessories .products-section-title,
.category-products .products-section-title,
.crossselling-products .products-section-title,
.product-accessories h2,
.product-accessories p.h5,
.category-products h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wr-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.product-accessories .products,
.category-products .products,
.crossselling-products .products,
.viewed-products .products,
.featured-products-footer .products,
.product-footer .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 1.5rem 0 !important;
    padding: 0 !important;
}

.product-accessories .products .product-miniature,
.category-products .products .product-miniature,
.crossselling-products .products .product-miniature,
.viewed-products .products .product-miniature {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   11. PIE DE PÁGINA (FOOTER) CORPORATIVO
   -------------------------------------------------------------------------- */
#footer {
    background-color: var(--wr-primary) !important;
    color: #cbd5e1;
    padding-top: 4rem;
    margin-top: 5rem;
}

#footer h1, #footer h2, #footer h3, #footer h4, #footer .h3 {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

#footer p, #footer a, #footer li {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    line-height: 1.8;
}

#footer a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

#footer .footer-after {
    background: #020617;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #1e293b;
}

/* ==========================================================================
   OPTIMIZACIÓN DE RENDIMIENTO (CORE WEB VITALS - CONTENT VISIBILITY)
   ========================================================================== */
.bodegon-home-products,
.webredes-home-products,
.product-accessories,
.category-products,
.crossselling-products,
.viewed-products {
    content-visibility: auto;
    contain-intrinsic-size: auto none auto 480px;
}

#footer {
    content-visibility: auto;
    contain-intrinsic-size: auto none auto 380px;
}


/* ==========================================================================
   ALINEACIÓN Y COHESIÓN DE LA FICHA DE PRODUCTO (IMAGEN + RESUMEN + BSALE)
   ========================================================================== */
/* ==========================================================================
   ALINEACIÓN Y COHESIÓN DE LA FICHA DE PRODUCTO (IMAGEN + RESUMEN + BSALE)
   ========================================================================== */
#product .product-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    margin-bottom: 2.5rem !important;
}

#product .product-images-column {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-right: 1.5rem !important;
    padding-left: 0.5rem !important;
    position: sticky !important;
    top: 20px !important;
}

#product .product-cover {
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-lg) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: var(--wr-shadow-sm) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 1.25rem !important;
    padding: 1.5rem !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 480px !important;
    width: 100% !important;
}

#product .product-cover img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

#product .product-info-column {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-left: 1.5rem !important;
    padding-right: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
}

#product h1.product-detail-name,
#product .product-detail-name {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: var(--wr-primary) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em !important;
}

/* Precios con diseño limpio */
#product .product-prices {
    background: #f8fafc !important;
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-md) !important;
    padding: 1.15rem 1.5rem !important;
    margin: 0.75rem 0 1rem 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1rem !important;
}

#product .tax-shipping-delivery-label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.85rem !important;
    color: var(--wr-text-muted) !important;
}

#product .delivery-information {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 0.2rem 0.65rem !important;
    border-radius: var(--wr-radius-pill) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

#product .product-information {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding-left: 0 !important;
}

/* Resumen del producto destacado profesionalmente */
#product .product-information [id^="product-description-short"],
#product .product-info-column .product-description {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    margin: 0.75rem 0 1.25rem 0 !important;
    background: #f8fafc !important;
    border-left: 4px solid var(--wr-accent) !important;
    padding: 0.85rem 1.15rem !important;
    border-radius: 0 var(--wr-radius-sm) var(--wr-radius-sm) 0 !important;
    border-top: 1px solid var(--wr-border) !important;
    border-right: 1px solid var(--wr-border) !important;
    border-bottom: 1px solid var(--wr-border) !important;
}

/* Formulario de compra y Módulo de Stock Bsale */
#product .product-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
}

#product .product-quantity {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.85rem !important;
    margin: 1rem 0 !important;
}

#product .product-quantity .qty {
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

#product .product-quantity #quantity_wanted {
    width: 80px !important;
    height: 48px !important;
    text-align: center !important;
    border-radius: var(--wr-radius-sm) !important;
    border: 1px solid var(--wr-border) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background-color: #ffffff !important;
}

#product .product-quantity .add {
    flex: 1 1 200px !important;
    margin-bottom: 0 !important;
}

#product .product-quantity .add .add-to-cart {
    height: 48px !important;
    width: 100% !important;
    border-radius: var(--wr-radius-sm) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    background-color: var(--wr-primary) !important;
    border-color: var(--wr-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

#product .product-quantity .add .add-to-cart:hover:not(:disabled) {
    background-color: var(--wr-accent) !important;
    border-color: var(--wr-accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px var(--wr-accent-glow) !important;
}

/* Módulo de Stock Bsale: tarjeta ordenada directamente bajo añadir al carrito */
#bodegon-stock-wrapper,
.bodegon-stock-wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1rem !important;
    order: 10 !important;
    clear: both !important;
    display: block !important;
}

.bodegon-stock-card {
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-md) !important;
    background: #ffffff !important;
    box-shadow: var(--wr-shadow-sm) !important;
    overflow: hidden !important;
}

.bodegon-stock-card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--wr-border) !important;
    padding: 0.65rem 1rem !important;
}

.bodegon-stock-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--wr-primary) !important;
}

/* Pestañas de especificaciones a ancho completo (100% Full Width) */
.product-full-width-details {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin-top: 2.5rem !important;
    margin-bottom: 3rem !important;
    display: block !important;
}

#product .tabs {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-lg) !important;
    padding: 2.25rem !important;
    box-shadow: var(--wr-shadow-sm) !important;
    margin-top: 0 !important;
}

/* Forzar que el tab pane activo siempre sea visible al 100% de opacidad */
#product .tab-content > .tab-pane {
    display: none;
}

#product .tab-content > .tab-pane.active {
    display: block !important;
    opacity: 1 !important;
}

/* Normalización de la descripción larga en pestañas (evitar rotura por estilos inline) */
#product .tab-content .product-description {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    color: #ffffff !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

#product .tab-content .product-description * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#product .tab-content [style*="width"] {
    max-width: 100% !important;
}

/* Formato profesional para tablas de especificaciones técnicas */
#product .tab-content table,
.product-description table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 1.5rem 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--wr-border) !important;
    border-radius: var(--wr-radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--wr-shadow-sm) !important;
}

#product .tab-content table thead td,
#product .tab-content table thead th,
.product-description table thead td,
.product-description table thead th {
    background-color: var(--wr-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.25rem !important;
    border: none !important;
    font-size: 0.95rem !important;
}

#product .tab-content table thead h3,
#product .tab-content table thead span,
.product-description table thead h3,
.product-description table thead span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

#product .tab-content table tr,
.product-description table tr {
    border-bottom: 1px solid var(--wr-border) !important;
    transition: background-color 0.15s ease;
}

#product .tab-content table tr:last-child,
.product-description table tr:last-child {
    border-bottom: none !important;
}

#product .tab-content table tr:hover,
.product-description table tr:hover {
    background-color: #f1f5f9 !important;
}

#product .tab-content table td,
#product .tab-content table th,
.product-description table td,
.product-description table th {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    border: none !important;
    border-bottom: 1px solid var(--wr-border) !important;
    vertical-align: middle !important;
}

#product .tab-content table tr:last-child td,
.product-description table tr:last-child td {
    border-bottom: none !important;
}

/* Primera columna: Nombres de atributos / campos técnicos */
#product .tab-content table td:first-child,
#product .tab-content table th:first-child,
.product-description table td:first-child,
.product-description table th:first-child {
    font-weight: 700 !important;
    color: var(--wr-primary) !important;
    width: 32% !important;
    background-color: #f8fafc !important;
    border-right: 1px solid var(--wr-border) !important;
}

/* Segunda columna: Valores de las especificaciones */
#product .tab-content table td:nth-child(2),
.product-description table td:nth-child(2) {
    color: #334155 !important;
    background-color: #ffffff !important;
}

@media (max-width: 767px) {
    #product .product-images-column,
    #product .product-info-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #product .product-info-column {
        margin-top: 1.5rem !important;
    }
}

/* Prevención global de desbordamiento horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
/* ==========================================================================
   WEBREDES B2B ENTERPRISE STYLES - PS 8 & 9
   ========================================================================== */

/* 1. Hero Enterprise */
.webredes-hero-enterprise {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 60%, #1e293b 100%);
  color: #ffffff;
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.webredes-hero-enterprise::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 9999px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.hero-partner-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.hero-headline {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-hero-cta i {
  font-size: 18px;
}

.btn-wa-hero {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.btn-wa-hero:hover {
  background: #15803d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}

/* Hero Stats Card */
.hero-stats-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap i {
  font-size: 22px;
  color: #ffffff;
}

.stat-icon-wrap.bg-blue { background: #0284c7; }
.stat-icon-wrap.bg-green { background: #16a34a; }
.stat-icon-wrap.bg-orange { background: #ea580c; }
.stat-icon-wrap.bg-purple { background: #9333ea; }

.stat-content strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-content span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  display: block;
}

/* 2. Trust Pillars */
.trust-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  height: 100%;
}

.trust-pillar-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.08);
}

.pillar-icon {
  font-size: 28px;
  color: #0284c7;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.pillar-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* 3. Section Titles */
.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.section-badge.badge-cloud {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
}

.section-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  max-width: 650px;
  margin: 0 auto;
}

/* 4. B2B Solution Cards */
.b2b-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.b2b-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #0284c7;
}

.b2b-cat-card.card-highlight {
  border: 2px solid #0284c7;
  background: #f8fafc;
}

.b2b-cat-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 9999px;
}

.b2b-cat-icon {
  width: 48px;
  height: 48px;
  background: #f0f9ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.b2b-cat-icon i {
  font-size: 26px;
  color: #0284c7;
}

.b2b-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.b2b-cat-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.b2b-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none !important;
}

.b2b-cat-link i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.b2b-cat-card:hover .b2b-cat-link i {
  transform: translateX(4px);
}

/* 5. Cloud Spotlight */
.webredes-cloud-spotlight {
  background: linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cloud-plan-box {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
}

.cloud-plan-box:hover {
  border-color: #38bdf8;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.cloud-vendor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.cloud-product-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.cloud-product-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 20px;
}

.cloud-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.cloud-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cloud-features-list .check-icon {
  font-size: 18px;
  color: #22c55e;
  flex-shrink: 0;
}

.btn-quote-cloud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none !important;
}

.btn-quote-cloud:hover {
  transform: translateY(-2px);
}


/* ==========================================================================
   WEBREDES B2B HEADER & FULL-WIDTH INDEX SYSTEM - PS 8 & PS 9
   ========================================================================== */

/* --- 1. BARRA SUPERIOR (TOPBAR CORPORATIVA) --- */
.webredes-topbar {
  background: #0b1120 !important;
  border-bottom: 1px solid #1e293b;
  padding: 8px 0;
  font-size: 13px;
  color: #94a3b8;
  position: relative;
  z-index: 100;
}

.topbar-items-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  text-decoration: none !important;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.topbar-item:hover {
  color: #ffffff;
}

.topbar-item i {
  font-size: 15px;
}

.topbar-wa {
  color: #4ade80 !important;
  font-weight: 600;
}

.topbar-wa strong {
  color: #22c55e;
}

.topbar-email i {
  color: #38bdf8;
}

.topbar-badge {
  color: #fde047 !important;
  font-weight: 600;
}

.topbar-sep {
  color: #334155;
  font-size: 12px;
}

/* User & Cart in Topbar */
.topbar-user-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.topbar-user-wrapper a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.topbar-user-wrapper a:hover {
  color: #38bdf8 !important;
}

.topbar-user-wrapper i {
  font-size: 16px;
  color: #94a3b8;
}

#_desktop_cart .header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

#_desktop_cart .header:hover {
  background: #0284c7;
  border-color: #0284c7;
}

#_desktop_cart .header:hover i,
#_desktop_cart .header:hover span {
  color: #ffffff !important;
}

#_desktop_cart .shopping-cart {
  color: #38bdf8 !important;
  font-size: 16px;
}

#_desktop_cart .cart-products-count {
  background: #0284c7;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

/* --- 2. CABECERA PRINCIPAL (LOGO + BUSCADOR + CTA) --- */
.webredes-main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

#_desktop_logo img {
  max-height: 48px;
  width: auto;
}

.header-search-wrapper {
  padding: 0 15px;
}

.header-search-wrapper #search_widget {
  width: 100%;
  position: relative;
  margin: 0;
}

.header-search-wrapper #search_widget form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-wrapper #search_widget input[type="text"] {
  width: 100% !important;
  height: 46px !important;
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 0 46px 0 20px !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.header-search-wrapper #search_widget input[type="text"]:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.header-search-wrapper #search_widget .search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #0284c7;
  font-size: 22px;
  pointer-events: none;
}

.header-search-wrapper #search_widget .clear {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
}

/* WhatsApp Quote Header Button */
.btn-wa-quote-header {
  background: #16a34a !important;
  border: none !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
  transition: all 0.2s ease;
  text-align: left;
}

.btn-wa-quote-header:hover {
  background: #15803d !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
  color: #ffffff !important;
}

.btn-wa-quote-header i {
  font-size: 24px;
}

.btn-wa-quote-header .btn-text-wrap small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.btn-wa-quote-header .btn-text-wrap strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.1;
}

/* --- 3. BARRA DE NAVEGACION (NAVBAR FULL-WIDTH) --- */
.webredes-navbar {
  background: #0f172a !important;
  border-bottom: 2px solid #0284c7;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.webredes-navbar #top-menu {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.webredes-navbar #top-menu > li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.webredes-navbar #top-menu > li > a {
  display: block !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 13px 18px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  position: relative;
}

.webredes-navbar #top-menu > li:hover > a,
.webredes-navbar #top-menu > li.active > a {
  color: #38bdf8 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.webredes-navbar #top-menu > li:hover > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #38bdf8;
}

/* Submenu Dropdown Styling */
.webredes-navbar .sub-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15) !important;
  padding: 12px 0 !important;
  min-width: 230px !important;
}

.webredes-navbar .sub-menu li a {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.webredes-navbar .sub-menu li a:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  padding-left: 24px !important;
}

/* --- 4. UNBOXING HOME (FULL-WIDTH EDGE-TO-EDGE) --- */
body#index #wrapper {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body#index #wrapper > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body#index #wrapper > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body#index #content-wrapper {
  padding: 0 !important;
  width: 100% !important;
}

body#index #main {
  padding: 0 !important;
  margin: 0 !important;
}

body#index .breadcrumb {
  display: none !important;
}

.webredes-hero-enterprise {
  padding: 56px 0 76px 0 !important;
  margin-bottom: 0 !important;
}


/* ==========================================================================
   PERFECT B2B HEADER & UNBOXED HERO - FIX OCT 2026
   ========================================================================== */

/* 1. TOPBAR */
.webredes-topbar {
  background: #0b1120 !important;
  padding: 9px 0 !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  z-index: 100 !important;
}

.topbar-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  white-space: nowrap !important;
}

.topbar-link {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  transition: color 0.2s ease !important;
}

.topbar-link:hover {
  color: #38bdf8 !important;
}

.topbar-wa {
  color: #4ade80 !important;
  font-weight: 600 !important;
}

.topbar-wa strong {
  color: #22c55e !important;
}

.topbar-badge {
  color: #fde047 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

.topbar-sep {
  color: #334155 !important;
  font-size: 12px !important;
}

.topbar-user-wrap {
  display: inline-flex !important;
  align-items: center !important;
}

.topbar-user-wrap a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.topbar-user-wrap a:hover {
  color: #38bdf8 !important;
}

.topbar-cart-wrap {
  display: inline-flex !important;
  align-items: center !important;
}

.topbar-cart-wrap .header {
  background: #0284c7 !important;
  color: #ffffff !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.topbar-cart-wrap .header:hover {
  background: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}

.topbar-cart-wrap .header i,
.topbar-cart-wrap .header span {
  color: #ffffff !important;
  font-size: 13px !important;
}

.topbar-cart-wrap .cart-products-count {
  font-weight: 800 !important;
}

/* 2. MAIN HEADER */
.webredes-main-header {
  background: #ffffff !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.main-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.header-logo-col {
  flex: 0 0 auto !important;
}

.header-logo-col img {
  max-height: 48px !important;
  width: auto !important;
  display: block !important;
}

.header-search-col {
  flex: 1 1 auto !important;
  max-width: 600px !important;
}

.header-search-col #search_widget {
  width: 100% !important;
  position: relative !important;
  margin: 0 !important;
}

.header-search-col #search_widget form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
}

.header-search-col #search_widget input[type="text"] {
  width: 100% !important;
  height: 46px !important;
  background: #f8fafc !important;
  border: 2px solid #0284c7 !important;
  border-radius: 9999px !important;
  padding: 0 50px 0 22px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08) !important;
  transition: all 0.2s ease !important;
}

.header-search-col #search_widget input[type="text"]:focus {
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2) !important;
}

.header-search-col #search_widget .search {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #0284c7 !important;
  font-size: 24px !important;
  pointer-events: none !important;
}

.header-search-col #search_widget .clear {
  position: absolute !important;
  right: 48px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
}

.header-quote-col {
  flex: 0 0 auto !important;
}

.btn-b2b-header-quote {
  background: #16a34a !important;
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
  transition: all 0.2s ease !important;
}

.btn-b2b-header-quote:hover {
  background: #15803d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
  color: #ffffff !important;
}

.btn-b2b-header-quote i {
  font-size: 24px !important;
}

.btn-b2b-header-quote .quote-tag {
  display: block !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  opacity: 0.9 !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}

.btn-b2b-header-quote .quote-title {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

/* 3. NAVBAR */
.webredes-navbar {
  background: #0f172a !important;
  border-bottom: 3px solid #0284c7 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.navbar-row {
  width: 100% !important;
}

.webredes-navbar #top-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.webredes-navbar #top-menu > li {
  margin: 0 !important;
  padding: 0 !important;
}

.webredes-navbar #top-menu > li > a {
  display: block !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 20px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.webredes-navbar #top-menu > li:hover > a,
.webredes-navbar #top-menu > li.active > a {
  color: #38bdf8 !important;
  background: #1e293b !important;
}

.webredes-navbar #top-menu > li:hover > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: #38bdf8 !important;
}

/* 4. UNBOXING HOME (FULL WIDTH) */
body#index #wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: transparent !important;
}

body#index #wrapper > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body#index #wrapper > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body#index #content-wrapper {
  padding: 0 !important;
  width: 100% !important;
}

body#index #main {
  padding: 0 !important;
  margin: 0 !important;
}

body#index .breadcrumb {
  display: none !important;
}

.webredes-hero-enterprise {
  padding: 56px 0 80px 0 !important;
  width: 100% !important;
}


/* ==========================================================================
   FORCE BRILLIANT WHITE FOR MENU BAR ITEMS
   ========================================================================== */
#header .webredes-navbar,
.webredes-navbar {
    background-color: #0f172a !important;
    border-bottom: 3px solid #0284c7 !important;
}

#header .webredes-navbar a[data-depth="0"],
#header .webredes-navbar .top-menu a[data-depth="0"],
#header .webredes-navbar .dropdown-item,
.webredes-navbar #top-menu > li > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 14px 20px !important;
    display: inline-block !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
    transition: all 0.2s ease !important;
}

#header .webredes-navbar a[data-depth="0"]:hover,
#header .webredes-navbar .top-menu a[data-depth="0"]:hover,
#header .webredes-navbar .dropdown-item:hover,
.webredes-navbar #top-menu > li > a:hover {
    color: #38bdf8 !important;
    background-color: #1e293b !important;
}

/* Dropdown popover submenus (Must have dark text on white card) */
#header .webredes-navbar .popover.sub-menu,
.webredes-navbar .popover.sub-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25) !important;
    padding: 10px 0 !important;
    min-width: 250px !important;
}

#header .webredes-navbar .popover.sub-menu a,
#header .webredes-navbar .popover.sub-menu .dropdown-item,
.webredes-navbar .popover.sub-menu a {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    padding: 9px 20px !important;
    display: block !important;
    background: transparent !important;
}

#header .webredes-navbar .popover.sub-menu a:hover,
#header .webredes-navbar .popover.sub-menu .dropdown-item:hover,
.webredes-navbar .popover.sub-menu a:hover {
    color: #0284c7 !important;
    background: #f0f9ff !important;
    padding-left: 24px !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE PERFECTION (PS 8 & PS 9)
   ========================================================================== */
@media (max-width: 991px) {
  /* Topbar Mobile */
  .webredes-topbar {
    padding: 6px 0 !important;
  }
  .topbar-row {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
  }
  .topbar-left {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 11.5px !important;
  }
  .topbar-right {
    justify-content: center !important;
    gap: 12px !important;
    font-size: 11.5px !important;
  }
  .topbar-link {
    font-size: 11.5px !important;
  }

  /* Main Header Mobile */
  .webredes-main-header {
    padding: 12px 0 !important;
  }
  .main-header-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .header-logo-col {
    text-align: center !important;
  }
  .header-logo-col img {
    max-height: 40px !important;
    margin: 0 auto !important;
  }
  .header-search-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hero Banner Mobile */
  .webredes-hero-enterprise {
    padding: 36px 0 50px 0 !important;
  }
  .hero-headline {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  .hero-description {
    font-size: 0.95rem !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-partner-tag {
    display: flex !important;
    margin: 0 auto 16px auto !important;
    width: fit-content !important;
  }
  .hero-cta-group {
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }
  .btn-hero-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 16px !important;
  }
  .hero-stats-card {
    margin-top: 10px !important;
  }

  /* Section Titles Mobile */
  .section-main-title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .hero-headline {
    font-size: 1.45rem !important;
  }
  .cloud-product-name {
    font-size: 1.25rem !important;
  }
  .trust-pillar-card {
    padding: 12px 14px !important;
  }
}

