/*
Theme Name: FESUP Pro Theme Fixed
Version: 2.3.2
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

/* --- GLOBAL STYLES --- */

/* Bootstrap 3.3.4 (magee-shortcodes) pone html{font-size:10px} rompiendo
   TODOS los rem del sitio. Lo restauramos al estándar del navegador (16px). */
html {
    font-size: 16px !important;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    background-color: #f9fafb !important;
    padding-top: 100px !important;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    body {
        padding-top: 140px !important;
    }
}

/* --- PARAGRAPH / TYPOGRAPHY --- */
/* Solo contenido editorial (artículos, Elementor). NO afecta footer, login, etc. */
.prose p,
article p,
.entry-content p,
.elementor-widget-text-editor p,
.elementor-widget-text-editor,
.elementor-text-editor p {
    font-size: 20px !important;
    line-height: 1.7 !important;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER & NAVIGATION --- */
#main-header {
    height: auto;
    display: flex;
    flex-direction: column;
    background: white !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

#main-header > .container {
    height: 100px;
}

@media (min-width: 1024px) {
    #main-header {
        flex-direction: row;
        height: 140px;
        align-items: center;
    }

    #main-header > .container {
        height: 100%;
    }
}

#main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

#main-header img {
    height: 70px !important;
    width: auto !important;
    display: block !important;
}

@media (min-width: 768px) {
    #main-header img {
        height: 90px !important;
    }
}

/* Navigation fallbacks if Tailwind fails */
nav.hidden.lg\:block {
    display: none;
}

@media (min-width: 1024px) {
    nav.hidden.lg\:block {
        display: block !important;
    }

    .lg\:hidden {
        display: none !important;
    }
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2563eb;
}


/* --- WOOCOMMERCE ORDERS & ACCOUNT --- */
.woocommerce-account .woocommerce {
    max-width: 1100px !important;
    margin: 4rem auto !important;
    padding: 20px !important;
    display: block !important;
}


/* Asegurar que el contenido de pedidos no se tape */
.woocommerce-MyAccount-content {
    background: white !important;
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #edf2f7 !important;
    margin-top: 20px !important;
}

/* Títulos de sección */
.woocommerce-account h2,
.woocommerce-account h3 {
    color: #1e3a8a !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
}

/* Tablas de pedidos */
table.shop_table {
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 20px !important;
    border-collapse: separate !important;
    overflow: hidden !important;
}

table.shop_table thead th {
    background: #1e3a8a !important;
    color: white !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    padding: 18px !important;
    border: none !important;
}

table.shop_table td {
    padding: 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 16px !important;
    color: #4a5568 !important;
}

/* Botones en pedidos */
.woocommerce-button.button.view,
.woocommerce-Button.button {
    background: #2563eb !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
    display: inline-block !important;
}

.woocommerce-button.button.view:hover {
    background: #1e3a8a !important;
}

/* Navegación Mi Cuenta — menú vertical uniforme */
.woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    width: 100% !important;
    padding: 13px 18px !important;
    background: #f1f5f9 !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #e2e8f0 !important;
    color: #1e40af !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
}

/* Formularios de login/registro */
.woocommerce-form-login,
.woocommerce-form-register {
    background: white !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    max-width: 500px !important;
    margin: 4rem auto !important;
}

.woocommerce-form-row input.input-text {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-top: 5px !important;
}

/* --- WOOCOMMERCE SHOP & PRODUCTS --- */
.woocommerce-shop .woocommerce,
.tax-product_cat .woocommerce,
.post-type-archive-product .woocommerce {
    max-width: 1200px !important;
    margin: 0 auto 4rem auto !important;
    padding: 0 1rem !important;
}

/* --- WOOCOMMERCE PAGE HEADER (Hero Section) --- */
/* Wrapper for Title & Breadcrumb to create a visible Header */
.woocommerce-products-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    padding: 60px 20px !important;
    margin-bottom: 50px !important;
    text-align: center !important;
    border-radius: 0 0 30px 30px !important;
    box-shadow: 0 10px 30px -10px rgba(30, 58, 138, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Decorative background elements */
.woocommerce-products-header::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -10% !important;
    width: 50% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%) !important;
    transform: rotate(30deg) !important;
    pointer-events: none !important;
}

/* Page Title (H1) inside the Header */
.woocommerce-products-header__title.page-title {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 15px 0 !important;
    position: relative !important;
    z-index: 10 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Breadcrumbs styled as "Pills" under the title */
.woocommerce-breadcrumb {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    backdrop-filter: blur(5px) !important;
}

.woocommerce-breadcrumb a {
    color: white !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
}

.woocommerce-breadcrumb a:hover {
    opacity: 0.8 !important;
}

/* Breadcrumb separator */
.woocommerce-breadcrumb::after,
.woocommerce-breadcrumb::before {
    display: none !important;
    /* Hide default pseudo-elements if any */
}

/* Fix for result count appearing in header sometimes */
.woocommerce-result-count {
    margin: 0 0 20px 0 !important;
    color: #64748b !important;
    font-size: 0.9rem !important;
}

/* Fix: [products] shortcode wrapper en contexto Elementor/página.
   WooCommerce inyecta un <style> inline con .columns-4 { column-count: 4 }
   lo que activa CSS Multi-Column y hace que width:100% se resuelva
   respecto al ancho de cada columna (~203px) en vez del contenedor completo. */
.e-con .woocommerce,
.e-con-inner .woocommerce,
.elementor-widget-container .woocommerce,
.woocommerce.columns-1,
.woocommerce.columns-2,
.woocommerce.columns-3,
.woocommerce.columns-4,
.woocommerce.columns-5,
.woocommerce.columns-6 {
    column-count: unset !important;
    columns: unset !important;
    width: 100% !important;
    float: none !important;
    max-width: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Force grid layout and override WooCommerce defaults */
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Clean up WooCommerce default clear floats */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
    background: white !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 0 25px 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
    list-style: none !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #2563eb !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.woocommerce ul.products li.product img,
ul.products li.product img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    margin: 0 0 20px 0 !important;
    display: block !important;
    background: #f8fafc !important;
    padding: 20px !important;
    transition: transform 0.5s ease !important;
}

.woocommerce ul.products li.product:hover img,
ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    padding: 0 20px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
    min-height: 3em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
}

.woocommerce ul.products li.product span.price,
ul.products li.product span.price {
    display: block !important;
    padding: 0 20px !important;
    font-size: 1.3rem !important;
    color: #2563eb !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
    margin: auto 20px 0 20px !important;
    background: #1e3a8a !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s !important;
    display: block !important;
    border: none !important;
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
}

.woocommerce ul.products li.product .onsale,
ul.products li.product .onsale {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: #ef4444 !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    z-index: 10 !important;
    margin: 0 !important;
    min-height: auto !important;
    line-height: 1 !important;
}

/* Pagination & Sorting */
.woocommerce-ordering,
.woocommerce-result-count {
    margin-bottom: 2.5rem !important;
    font-size: 0.95rem !important;
    color: #64748b !important;
}

.woocommerce-ordering select {
    padding: 10px 15px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    outline: none !important;
    background-color: white !important;
}

nav.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 4rem !important;
    padding: 0 !important;
    list-style: none !important;
}

nav.woocommerce-pagination ul li {
    margin: 0 !important;
}

nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

nav.woocommerce-pagination ul li span.current {
    background: #1e3a8a !important;
    color: white !important;
    border-color: #1e3a8a !important;
}

/* --- WOOCOMMERCE SINGLE PRODUCT PAGE --- */

/* Breadcrumb en página de producto — estilo hero igual que la tienda */
.single-product .woocommerce-breadcrumb {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: rgba(191, 219, 254, 0.9) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 14px 30px !important;
    margin: 0 0 0 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: 3px solid rgba(251, 146, 60, 0.6) !important;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2) !important;
}

.single-product .woocommerce-breadcrumb a {
    color: rgba(191, 219, 254, 1) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: white !important;
    opacity: 1 !important;
}

/* Layout Wrapper — en páginas de producto no hay div.woocommerce,
   el div.product está directamente dentro de #primary.content-area.
   Aplicamos max-width tanto a .woocommerce (por si existe) como a #primary. */
.single-product .woocommerce,
.single-product #primary.content-area,
.single-product main.site-main {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Grid layout: imagen izq (55%) + summary derecha (45%), tabs abajo */
.single-product div.product {
    display: grid !important;
    grid-template-columns: 55% 45% !important;
    grid-template-rows: auto auto !important;
    gap: 40px !important;
    padding: 30px !important;
    align-items: start !important;
}

/* Image Gallery Column — columna 1, fila 1 */
.single-product div.product div.images {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product div.images img {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Summary Column (Purchase Card) — columna 2, fila 1+2 (sticky) */
.single-product div.product div.summary {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    padding: 35px !important;
    border-radius: 35px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 40px 100px rgba(30, 58, 138, 0.08) !important;
    position: sticky !important;
    top: 100px !important;
    height: fit-content !important;
    align-self: start !important;
}

/* Tabs — columna 1, fila 2 */
.single-product div.product .woocommerce-tabs {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Responsive: una sola columna en móvil */
@media (max-width: 900px) {
    .single-product div.product {
        grid-template-columns: 1fr !important;
    }
    .single-product div.product div.summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
        position: relative !important;
        top: 0 !important;
    }
    .single-product div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    .single-product div.product div.images img {
        max-width: 280px !important;
    }
}

/* Product Title */
.single-product h1.product_title {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #1e3a8a !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
    text-transform: uppercase !important;
}

/* Product Price */
.single-product p.price {
    font-size: 1.4rem !important;
    color: #2563eb !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
}

.single-product p.price del {
    color: #94a3b8 !important;
    font-size: 1rem !important;
    margin-right: 15px !important;
    opacity: 0.6 !important;
}

/* Short Description */
.single-product .woocommerce-product-details__short-description {
    font-size: 1rem !important;
    color: #4b5563 !important;
    line-height: 1.8 !important;
    margin-bottom: 30px !important;
    background: #f8fafc !important;
    padding: 20px !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 0 12px 12px 0 !important;
}

/* Add to Cart Section */
.single-product form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

.single-product form.cart .quantity input {
    width: 60px !important;
    padding: 8px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    text-align: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #1e3a8a !important;
}

.single-product form.cart button.single_add_to_cart_button {
    background: #2563eb !important;
    color: white !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    flex-grow: 1 !important;
    transition: all 0.3s !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2) !important;
}

.single-product table.variations select {
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.single-product form.cart button.single_add_to_cart_button:hover {
    background: #1e3a8a !important;
    transform: translateY(-2px) !important;
}

/* Atributos destacados: Pertenece a / Escala a */
.single-product .fesup-product-attrs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 22px !important;
    padding: 16px !important;
    background: #f0f4ff !important;
    border-radius: 14px !important;
    border: 1px solid #c7d7f9 !important;
}

.single-product .fesup-attr-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    font-size: 0.78rem !important;
}

.single-product .fesup-attr-label {
    font-weight: 800 !important;
    color: #1e3a8a !important;
    text-transform: uppercase !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    min-width: 90px !important;
}

.single-product .fesup-attr-value {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
}

/* Product Meta (SKU, Categories, Tags) — oculto, no aporta info al usuario */
.single-product .product_meta {
    display: none !important;
}

/* Tabs Section */
.woocommerce-tabs {
    clear: both !important;
    margin-top: 50px !important;
    padding: 0 40px 40px 40px !important;
}

.woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex !important;
    gap: 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 15px 25px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
}

.woocommerce-tabs .panel {
    background: #f8fafc !important;
    padding: 30px !important;
    border-radius: 20px !important;
    color: #334155 !important;
    line-height: 1.8 !important;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.5rem !important;
    color: #1e3a8a !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
}

/* Related Products — ocultos */
.related.products {
    display: none !important;
}

/* --- WOOCOMMERCE SIDEBAR/FOOTER WIDGETS --- */
/* Target #sidebar container precisely */
#sidebar {
    max-width: 1200px !important;
    margin: 3rem auto 6rem auto !important;
    padding: 0 20px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 40px !important;
    clear: both !important;
}

#sidebar>ul {
    display: contents !important;
    /* Allow direct <li> children to be grid items */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Individual Widget Container (li) */
#sidebar li.widget,
#sidebar>ul>li {
    background: white !important;
    padding: 35px !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f1f5f9 !important;
    list-style: none !important;
    height: fit-content !important;
    transition: transform 0.3s ease !important;
}

#sidebar li.widget:hover,
#sidebar>ul>li:hover {
    transform: translateY(-5px) !important;
    border-color: #2563eb !important;
}

/* Widget Titles */
#sidebar h2,
#sidebar .widgettitle,
#sidebar .widget-title {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: #1e3a8a !important;
    margin: 0 0 25px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: block !important;
}

/* Search Form Widget (#searchform) */
#sidebar #searchform {
    display: flex !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

#sidebar #searchform #s,
#sidebar .widget_search input[type="text"] {
    flex-grow: 1 !important;
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.3s !important;
}

#sidebar #searchform #s:focus {
    background: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05) !important;
}

#sidebar #searchform #searchsubmit,
#sidebar .widget_search input[type="submit"] {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    transition: background 0.2s !important;
}

#sidebar #searchform #searchsubmit:hover {
    background: #1d4ed8 !important;
}

/* List Widgets (Pages, Categories, Archives) */
#sidebar ul ul,
#sidebar .widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#sidebar li li,
#sidebar .widget ul li {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f8fafc !important;
}

#sidebar li li:last-child,
#sidebar .widget ul li:last-child {
    border-bottom: none !important;
}

#sidebar li li a,
#sidebar .widget ul li a {
    display: block !important;
    padding: 12px 0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    padding-left: 20px !important;
}

#sidebar li li a::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #2563eb !important;
    font-size: 11px !important;
    opacity: 0.7 !important;
    transition: all 0.2s !important;
}

#sidebar li li a:hover {
    color: #1e3a8a !important;
    padding-left: 25px !important;
}

#sidebar li li a:hover::before {
    left: 5px !important;
    opacity: 1 !important;
}

/* --- Ticker Actualidad --- */
.ticker-scroll {
    display: flex;
    animation: ticker 8s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- HERO IMAGE CROSSFADE --- */
.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.hero-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 1.2s ease-in-out;
}

.hero-img-wrapper img.hero-img-back {
    position: relative; /* ocupa el espacio del contenedor */
}

.hero-img-active {
    opacity: 1;
}

.hero-img-hidden {
    opacity: 0;
}

/* Filtro para que el distintivo encaje con la estética azul de la web */
.hero-img-distintivo {
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.55)) brightness(1.05) saturate(0.9);
    border-radius: 1.5rem;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* --- SHOP LAYOUT: two-column (sidebar + products) --- */
.fesup-shop-layout {
    display: flex !important;
    align-items: flex-start !important;
    gap: 32px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 20px 60px !important;
}

/* Sidebar */
.fesup-shop-sidebar {
    flex: 0 0 220px !important;
    width: 220px !important;
    position: sticky !important;
    top: 100px !important;
}

/* Título "CATEGORÍAS" */
.fesup-sidebar-title {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #94a3b8 !important;
    margin: 0 0 10px 4px !important;
    padding: 0 !important;
    border: none !important;
}

/* Lista — misma estructura que woocommerce-MyAccount-navigation ul */
.fesup-sidebar-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.fesup-sidebar-item {
    margin: 0 !important;
    width: 100% !important;
}

/* Enlace normal — idéntico a .woocommerce-MyAccount-navigation ul li a */
.fesup-sidebar-item a {
    display: block !important;
    width: 100% !important;
    padding: 13px 18px !important;
    background: #f1f5f9 !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

/* Hover — idéntico a .woocommerce-MyAccount-navigation ul li a:hover */
.fesup-sidebar-item a:hover {
    background: #e2e8f0 !important;
    color: #1e40af !important;
}

/* Activo — idéntico a .woocommerce-MyAccount-navigation ul li.is-active a */
.fesup-sidebar-item.active a {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
}

/* Main product area takes remaining space */
.fesup-shop-layout .fesup-shop-categories {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
    .fesup-shop-layout {
        flex-direction: column !important;
    }

    .fesup-shop-sidebar {
        flex: none !important;
        width: 100% !important;
        position: static !important;
    }

    .fesup-sidebar-list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .fesup-sidebar-item {
        width: auto !important;
    }

    .fesup-sidebar-item a {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        border-radius: 50px !important;
    }
}

/* --- SHOP BY CATEGORIES (shortcode + archive-product.php) --- */
.fesup-shop-categories {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.fesup-category-section {
    margin-bottom: 3.5rem !important;
}

/* Category header */
.fesup-category-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 6px !important;
}

.fesup-category-header h2 {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #1e3a8a !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.2 !important;
}

/* Category divider line */
.fesup-category-divider {
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(to right, #f97316, #fdba74) !important;
    border-radius: 3px !important;
    margin-bottom: 28px !important;
}

/* Products grid - responsive */
.fesup-products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

@media (min-width: 640px) {
    .fesup-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .fesup-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 28px !important;
    }
}

@media (min-width: 1400px) {
    .fesup-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Product card */
.fesup-product-card {
    background: white !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.fesup-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #2563eb !important;
}

.fesup-product-card a,
.fesup-product-card a:visited {
    text-decoration: none !important;
}

/* Product image */
.fesup-product-image-link {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

.fesup-product-image-wrap {
    background: #f8fafc !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fesup-product-img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    transition: transform 0.5s ease !important;
}

.fesup-product-card:hover .fesup-product-img {
    transform: scale(1.05) !important;
}

/* Badges */
.fesup-badge {
    position: absolute !important;
    z-index: 10 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

.fesup-badge-featured {
    top: 12px !important;
    right: 12px !important;
    background: #f97316 !important;
    color: white !important;
}

.fesup-badge-sale {
    top: 12px !important;
    left: 12px !important;
    background: #ef4444 !important;
    color: white !important;
}

/* Product info */
.fesup-product-info {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.fesup-product-title-link {
    text-decoration: none !important;
}

.fesup-product-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s !important;
}

.fesup-product-title-link:hover .fesup-product-title {
    color: #2563eb !important;
}

.fesup-product-desc {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.6 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Price */
.fesup-product-price {
    margin-bottom: 16px !important;
}

.fesup-product-price .price,
.fesup-product-price .amount {
    color: #ea580c !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
}

.fesup-product-price .price del,
.fesup-product-price .price del .amount {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    opacity: 0.6 !important;
}

.fesup-product-price .price ins {
    text-decoration: none !important;
}

/* Fix: Bootstrap del plugin Magee Shortcodes pone .label { color: white },
   lo que afecta a los <th class="label"> de la tabla de variaciones de WooCommerce */
.single-product table.variations th.label {
    color: #1e3a8a !important;
}

/* Variations */
.fesup-product-variations {
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.fesup-variation-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
}

.fesup-variation-label input[type="radio"] {
    accent-color: #1e3a8a !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.fesup-variation-label span {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: color 0.2s !important;
}

.fesup-variation-label:hover span {
    color: #1e3a8a !important;
}

/* Add to cart button */
.fesup-product-button {
    margin-top: auto !important;
}

.fesup-product-button .button,
.fesup-product-button a.button,
.fesup-product-button a.add_to_cart_button,
.fesup-product-button a.product_type_variable,
.fesup-product-button a.product_type_simple {
    background: #1e3a8a !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 13px 20px !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    width: 100% !important;
    border: none !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.fesup-product-button .button:hover,
.fesup-product-button a.button:hover,
.fesup-product-button a.add_to_cart_button:hover,
.fesup-product-button a.product_type_variable:hover,
.fesup-product-button a.product_type_simple:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .fesup-category-header h2 {
        font-size: 1.4rem !important;
    }

    .fesup-shop-categories {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .fesup-product-img {
        height: 180px !important;
    }

    .fesup-product-info {
        padding: 16px !important;
    }
}

/* --- BLOG / INDEX (index.php) --- */
.fesup-blog-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.fesup-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .fesup-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .fesup-blog-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Tarjeta */
.fesup-blog-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fesup-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

/* Imagen */
.fesup-blog-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #1e3a8a;
    flex-shrink: 0;
}

.fesup-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.fesup-blog-card:hover .fesup-blog-img {
    transform: scale(1.06);
}

.fesup-blog-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    font-size: 3rem;
}

/* Badge fecha */
.fesup-blog-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #2563eb;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Cuerpo */
.fesup-blog-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Categorías */
.fesup-blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.fesup-blog-cat-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.fesup-blog-cat-tag:hover { color: #1e3a8a; }

/* Título */
.fesup-blog-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.35;
    margin: 0 0 10px;
}

.fesup-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.fesup-blog-title a:hover { color: #2563eb; }

/* Extracto */
.fesup-blog-excerpt {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer tarjeta */
.fesup-blog-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fesup-blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fesup-blog-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fesup-blog-author span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fesup-blog-readmore {
    font-size: 0.82rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: gap 0.2s, color 0.2s;
}

.fesup-blog-readmore:hover {
    color: #1e3a8a;
    gap: 8px;
}

/* Paginación */
.fesup-blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.fesup-blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.fesup-blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: white;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid #e2e8f0;
}

.fesup-blog-pagination a.page-numbers:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.fesup-blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

.fesup-blog-pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
    color: #94a3b8;
}

/* Sin posts */
.fesup-blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    font-size: 1.1rem;
}

/* --- CART COUNT BADGE (header) --- */
.fesup-cart-count {
    position: absolute !important;
    top: -2px !important;
    right: -4px !important;
    background: #ef4444 !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
    padding: 0 4px !important;
    border: 2px solid white !important;
    z-index: 20 !important;
}

.fesup-cart-count-mobile {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    background: #ef4444 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
    padding: 0 3px !important;
    border: 2px solid white !important;
    z-index: 20 !important;
}

/* --- PAGE CURSO --- */

.fesup-curso {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.fesup-curso-header {
    border-bottom: 4px solid #002855;
    margin-bottom: 35px;
}

.fesup-curso-contenido>* {
    margin-bottom: 25px;
}

.fesup-bloque {
    background: #f4f6f9;
    padding: 30px;
    border-radius: 12px;
}

/* --- MOBILE MENU FIX --- */
#mobile-menu-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    width: 100%;
}

#mobile-menu-container > ul > li:last-child {
    padding-bottom: 20px !important;
}

/* Asegurar que el menú móvil de nav no hereda flex de desktop */
@media (max-width: 1023px) {
    #mobile-menu-container ul.flex.flex-col {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Final Refinements */
#main-header a,
#main-header nav ul li a,
#main-header nav ul li a:hover,
#main-header nav ul li a:visited,
#main-header nav ul li a:focus,
#main-header nav ul li a:active,
#mobile-menu-container a,
#mobile-menu-container ul li a,
#mobile-menu-container ul li a:hover,
#mobile-menu-container ul li a:visited {
    text-decoration: none !important;
}

/* ========================================
   FESUP MI CUENTA - LOGIN & ACCOUNT PAGES
   ======================================== */

/* --- PAGE-LOGIN TEMPLATE WRAPPER (no hero, no white box) --- */
.fesup-page-login-wrap {
    margin: 0;
    padding: 0;
    width: 100%;
}

.fesup-page-login-wrap > .woocommerce {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- RESET WOOCOMMERCE CONTAINER for FESUP custom pages --- */
.fesup-my-account-page .woocommerce,
.woocommerce-account .woocommerce:has(.fesup-login-wrapper),
.woocommerce-account .woocommerce:has(.fesup-account-wrapper) {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- LOGIN PAGE WRAPPER --- */
.fesup-login-wrapper {
    margin: 0 !important;
    width: 100% !important;
}

/* --- LOGIN HERO --- */
.fesup-login-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    padding: 45px 20px 35px;
    text-align: center;
    overflow: hidden;
}

.fesup-login-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.08;
}

.fesup-login-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
}

.fesup-login-hero-content {
    position: relative;
    z-index: 10;
}

.fesup-login-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.fesup-login-hero h1 {
    color: white !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.1 !important;
}

.fesup-login-hero p {
    color: rgba(191, 219, 254, 0.9) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    letter-spacing: 0.02em;
}

/* --- LOGIN BODY --- */
.fesup-login-body {
    max-width: 960px;
    margin: -30px auto 0 !important;
    padding: 0 20px 60px !important;
    position: relative;
    z-index: 20;
}

/* --- LOGIN COLUMNS (when register enabled) --- */
.fesup-login-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .fesup-login-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- LOGIN CARD --- */
.fesup-login-card {
    background: white !important;
    border-radius: 24px !important;
    padding: 0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fesup-login-card--single {
    max-width: 480px;
    margin: 0 auto !important;
    width: 100%;
}

.fesup-login-card form {
    padding: 24px 32px 0 32px !important;
    flex-grow: 1;
}

/* --- CARD HEADER --- */
.fesup-login-card-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfd;
}

.fesup-login-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.fesup-login-card-icon--register {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25) !important;
}

.fesup-login-card-header h2 {
    color: #1e3a8a !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.01em;
}

.fesup-login-card-header p {
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* --- CARD FOOTER --- */
.fesup-login-card-footer {
    padding: 16px 32px !important;
    text-align: center !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.fesup-login-card-footer i.fas,
.fesup-login-card-footer i.fa-shield-alt {
    color: #22c55e !important;
    font-size: 14px !important;
    font-style: normal !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

.fesup-login-card-footer span {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
}

/* --- BACK TO LOGIN LINK --- */
.fesup-back-to-login {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #2563eb !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: all 0.3s !important;
}

.fesup-back-to-login:hover {
    color: #1e3a8a !important;
}

.fesup-back-to-login i {
    font-size: 12px !important;
    color: #2563eb !important;
    font-style: normal !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

.fesup-back-to-login:hover i {
    color: #1e3a8a !important;
}

/* --- FORM ELEMENTS --- */
.fesup-form-group {
    margin-bottom: 20px !important;
}

.fesup-form-group label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #334155 !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
}

.fesup-form-group label i {
    color: #2563eb;
    font-size: 14px;
}

.fesup-form-group label .required {
    color: #ef4444 !important;
    font-weight: 900;
}

.fesup-input {
    width: 100% !important;
    padding: 14px 18px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
}

.fesup-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.fesup-input:focus {
    background: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important;
}

/* --- REMEMBER ME & LOST PASSWORD ROW --- */
.fesup-form-row-inline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap;
    gap: 10px;
}

.fesup-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.fesup-checkbox {
    width: 18px !important;
    height: 18px !important;
    accent-color: #1e3a8a !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.fesup-lost-password {
    font-size: 0.8rem !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.fesup-lost-password:hover {
    color: #1e3a8a !important;
    text-decoration: underline !important;
}

/* --- REGISTER INFO BOX --- */
.fesup-register-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 20px;
}

.fesup-register-info i {
    color: #2563eb;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.fesup-register-info p {
    color: #1e40af !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* --- BUTTONS --- */
.fesup-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 24px !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 24px !important;
}

.fesup-btn i {
    font-size: 16px;
}

.fesup-btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3) !important;
}

.fesup-btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4) !important;
}

.fesup-btn-secondary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3) !important;
}

.fesup-btn-secondary:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4) !important;
}

/* --- ACCOUNT PAGE (logged in) --- */
.fesup-account-wrapper {
    margin: 0 !important;
    width: 100% !important;
}

/* Reset MyAccount-content styling inside our wrapper */
.fesup-account-wrapper .woocommerce-MyAccount-content {
    background: white !important;
    padding: 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f1f5f9 !important;
}

.fesup-account-header {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    padding: 50px 20px 40px;
    overflow: hidden;
}

.fesup-account-header-bg {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.08;
}

.fesup-account-header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 60%);
}

.fesup-account-header-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fesup-account-avatar {
    flex-shrink: 0;
}

.fesup-account-avatar img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    object-fit: cover !important;
}

.fesup-account-user-info h1 {
    color: white !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}

.fesup-account-user-info p {
    color: rgba(191, 219, 254, 0.8) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* --- ACCOUNT BODY (nav lateral + content) --- */
.fesup-account-body {
    max-width: 1300px;
    margin: -20px auto 0 !important;
    padding: 0 20px 60px !important;
    position: relative;
    z-index: 20;
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

/* Nav lateral sticky */
.fesup-account-body .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    position: sticky !important;
    top: 160px !important;
}

/* Contenido principal */
.fesup-account-body .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* En móvil: apilado verticalmente */
@media (max-width: 768px) {
    .fesup-account-body {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .fesup-account-body .woocommerce-MyAccount-navigation {
        position: static !important;
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 640px) {
    .fesup-login-hero {
        padding: 30px 16px 25px;
    }

    .fesup-login-hero h1 {
        font-size: 1.4rem !important;
    }

    .fesup-login-hero-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
    }

    .fesup-login-card form {
        padding: 20px 20px 0 20px !important;
    }

    .fesup-login-card-header {
        padding: 24px 20px 18px;
    }

    .fesup-account-header {
        padding: 35px 16px 30px;
    }

    .fesup-account-header-content {
        flex-direction: column;
        text-align: center;
    }

    .fesup-account-user-info h1 {
        font-size: 1.3rem !important;
    }
}

/* --- Override global p font-size for our templates --- */
.fesup-login-wrapper p,
.fesup-account-wrapper p {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Hide default WooCommerce login/register styles when our template is active.
   El padding real lo pone .fesup-login-card form (24px 32px). Aquí solo
   reseteamos los estilos decorativos de WooCommerce. */
.fesup-login-wrapper .woocommerce-form-login,
.fesup-login-wrapper .woocommerce-form-register {
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* El padding del form lo controla .fesup-login-card form con alta especificidad */
.fesup-login-card .woocommerce-form-login,
.fesup-login-card .woocommerce-form-register {
    padding: 24px 32px 0 32px !important;
}

/* Override default WooCommerce form inputs inside our login */
.fesup-login-wrapper .woocommerce-Input,
.fesup-login-wrapper .input-text {
    width: 100% !important;
    padding: 14px 18px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    margin-top: 0 !important;
}

/* Override WooCommerce notices inside login */
.fesup-login-wrapper .woocommerce-error,
.fesup-login-wrapper .woocommerce-message,
.fesup-login-wrapper .woocommerce-info {
    margin: 20px auto !important;
    max-width: 920px !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
}

/* Ensure account page avatar is not limited by header img rules */
.fesup-account-avatar img {
    max-height: none !important;
}

/* ========================================
   FOOTER - FIX OVERRIDES
   ======================================== */

/* Logo: WooCommerce pone .woocommerce-page img{height:auto} que machaca Tailwind h-20.
   Forzamos la altura con alta especificidad */
footer img.h-20,
.woocommerce-page footer img {
    height: 5rem !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Tipografía: La regla global "p{font-size:20px}" machacaría el footer.
   Reseteamos para que Tailwind mande */
footer p,
footer li,
footer span,
footer a {
    font-size: inherit !important;
    line-height: inherit !important;
}

footer .text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

footer .text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

/* ========================================
   CART PAGE — usa las mismas clases que mi-cuenta
   (.fesup-account-wrapper, .fesup-account-header, .fesup-account-body)
   No se necesita CSS adicional; todos los estilos ya están definidos arriba.
   ======================================== */

