/*
Theme Name:   BeTheme Child
Description:  Tema hijo para BeTheme - Caimanes Editores
Author:       Antigravity
Template:     betheme
Version:      1.0.0
*/

/* ============================================================
   CAIMÁN EDITORES — Estilo Librería de la U
   Replica del estilo de libreriadelau.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&display=swap');

/* Global Reset to match Libreria de la U style */
body, input, select, textarea, button {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', -apple-system, sans-serif !important;
}

/* ─────────────────────────────────────────────
   1. NUCLEAR RESET: Kill BeTheme Isotope completely
   ───────────────────────────────────────────── */
.woocommerce .products_wrapper.isotope_wrapper,
.woocommerce .products_wrapper.mfn-woo-products,
.woocommerce .products_wrapper.lm_wrapper,
.woocommerce .products_wrapper {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    height: auto !important;
    list-style: none !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce.columns-5 ul.products,
.woocommerce.columns-4 ul.products,
.woocommerce.columns-3 ul.products,
.woocommerce.columns-10 ul.products {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* ─────────────────────────────────────────────
   2. PRODUCT CARD — Every li.product, no exceptions
   The "first" and "last" classes get special BeTheme
   treatment that makes them invisible. Override ALL.
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce ul.products li.isotope-item,
.woocommerce ul.products li.product:first-child,
.woocommerce ul.products li.product:last-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #eaeaea !important;
    overflow: hidden !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
    border-color: #ccc !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}

/* ─────────────────────────────────────────────
   3. PRODUCT IMAGE
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product .mfn-li-product-row-image {
    position: relative !important;
    overflow: hidden !important;
    background: #fff !important;
    padding: 16px 16px 0 !important;
    display: block !important;
}

.woocommerce ul.products li.product .image_frame {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

.woocommerce ul.products li.product .image_wrapper {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* The actual product image */
.woocommerce ul.products li.product .image_wrapper img,
.woocommerce ul.products li.product .mfn-product-list-gallery-item img,
.woocommerce ul.products li.product img.attachment-shop_catalog,
.woocommerce ul.products li.product img.size-shop_catalog,
.woocommerce ul.products li.product .product-loop-thumb img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    background: #fff !important;
    border: none !important;
    box-sizing: border-box !important;
    transition: transform 0.35s ease !important;
}

.woocommerce ul.products li.product:hover .mfn-product-list-gallery-item img,
.woocommerce ul.products li.product:hover .image_wrapper img {
    transform: scale(1.05) !important;
}

/* Hide BeTheme mask/overlay on images */
.woocommerce ul.products li.product .mask {
    display: none !important;
}

/* ─────────────────────────────────────────────
   4. HOVER BUTTONS — "VER INFORMACIÓN" + "AGREGAR AL CARRITO"
   Estilo libreriadelau.com: Teal button + outlined button
   ───────────────────────────────────────────── */

/* BeTheme image_links container (hover overlay) */
.woocommerce ul.products li.product .image_links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: absolute !important;
    bottom: 42px !important; /* Positions buttons over the text block, leaving cover and price visible */
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    padding: 12px 16px !important;
    background: #ffffff !important; /* Solid white background to hide the text underneath */
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 10 !important;
    align-items: stretch !important;
    pointer-events: none !important;
}

.woocommerce ul.products li.product:hover .image_links {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Common styling for both hover buttons (Teal background, Raleway font) */
.woocommerce ul.products li.product .image_links a {
    display: block !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    background: #0F766E !important;
    color: #fff !important;
    border: 2px solid #0F766E !important;
}

.woocommerce ul.products li.product .image_links a:hover {
    background: #0D6B63 !important;
    border-color: #0D6B63 !important;
}

/* Reverse HTML display order: "VER INFORMACIÓN" first, "AGREGAR AL CARTITO" second */
.woocommerce ul.products li.product .image_links a.link {
    order: 1 !important;
}
.woocommerce ul.products li.product .image_links a.add_to_cart_button {
    order: 2 !important;
}

/* Hide SVG icons inside buttons */
.woocommerce ul.products li.product .image_links a svg {
    display: none !important;
}

/* Add custom text content via CSS (hiding original SVG/tooltip text) */
.woocommerce ul.products li.product .image_links a.add_to_cart_button,
.woocommerce ul.products li.product .image_links a.link {
    font-size: 0 !important;
}

.woocommerce ul.products li.product .image_links a.add_to_cart_button::after {
    content: 'AGREGAR AL CARRITO' !important;
    font-size: 12px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

.woocommerce ul.products li.product .image_links a.link::after {
    content: 'VER INFORMACIÓN' !important;
    font-size: 12px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

/* Hide tooltip text */
.woocommerce ul.products li.product .image_links a .tooltip-txt,
.woocommerce ul.products li.product .image_links a[data-tooltip] {
    font-size: 0 !important;
}

/* ─────────────────────────────────────────────
   5. PRODUCT TITLE — Truncated to exactly 2 lines
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .title h2,
.woocommerce ul.products li.product .mfn-li-product-row .title {
    font-family: 'Raleway', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000 !important;
    line-height: 1.4 !important;
    padding: 10px 12px 4px !important;
    margin: 0 !important;
    text-align: center !important;
    text-transform: capitalize !important;
    
    /* Force exactly 2 lines — same height for all */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: content-box !important;
    height: 3.0em !important; /* exactly 2 lines at line-height 1.4 with extra descender space */
    max-height: 3.0em !important;
    min-height: 3.0em !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title a,
.woocommerce ul.products li.product .title h2 a,
.woocommerce ul.products li.product .mfn-li-product-row .title a,
.woocommerce ul.products li.product .title a {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .title {
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .title a:hover {
    color: #C67D20 !important;
}

/* ─────────────────────────────────────────────
   6. PRODUCT PRICE — Like libreriadelau.com
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .mfn-li-product-row .price {
    font-family: 'Montserrat', sans-serif !important;
    padding: 4px 12px 14px !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
}

/* Regular price (no sale) */
.woocommerce ul.products li.product .price > .woocommerce-Price-amount,
.woocommerce ul.products li.product .price > span > .woocommerce-Price-amount {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

/* Struck-through original price */
.woocommerce ul.products li.product .price del {
    font-size: 12px !important;
    color: #979494 !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
    display: block !important;
    margin-bottom: 2px;
}

.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #979494 !important;
}

/* Sale price */
.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    background: none !important;
    display: inline !important;
}

.woocommerce ul.products li.product .price ins .woocommerce-Price-amount {
    color: #222 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* ─────────────────────────────────────────────
   7. SALE BADGE — Red pill, bottom-left of image
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale,
.woocommerce ul.products li.product .mfn-badge {
    position: absolute !important;
    bottom: 8px !important;
    left: 12px !important;
    top: auto !important;
    right: auto !important;
    background: #E53935 !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    line-height: 1.5 !important;
    min-width: auto !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 5;
    margin: 0 !important;
    display: inline-block !important;
}

/* ─────────────────────────────────────────────
   8. HIDE ELEMENTS — Clean card like libreriadelau
   ───────────────────────────────────────────── */

/* Hide bottom add-to-cart row */
.woocommerce ul.products li.product .mfn-li-product-row-buttons,
.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > a.add_to_cart_button,
.woocommerce ul.products li.product > a.product_type_simple {
    display: none !important;
}

/* Hide wishlist, compare, quick-view */
.woocommerce ul.products li.product .button-wishlist,
.woocommerce ul.products li.product .button-compare,
.woocommerce ul.products li.product .mfn-product-quick-view {
    display: none !important;
}

/* Star rating */
.woocommerce ul.products li.product .star-rating {
    margin: 2px auto !important;
    font-size: 11px !important;
    text-align: center !important;
}

/* ─────────────────────────────────────────────
   9. BeTheme product row structural resets
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product .mfn-li-product-row {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

/* ─────────────────────────────────────────────
   10. ELEMENTOR TABS
   ───────────────────────────────────────────── */
.elementor-widget-tabs .elementor-tabs-wrapper {
    display: flex !important;
    justify-content: center !important;
    border-bottom: 2px solid #eaeaea !important;
    gap: 0 !important;
    margin-bottom: 4px !important;
}

.elementor-widget-tabs .elementor-tab-title {
    font-family: 'Raleway', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #888 !important;
    padding: 12px 28px !important;
    border: none !important;
    background: transparent !important;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
}

.elementor-widget-tabs .elementor-tab-title.elementor-active {
    color: #222 !important;
    border-bottom: 3px solid #C67D20 !important;
}

.elementor-widget-tabs .elementor-tab-title:hover {
    color: #555 !important;
}

.elementor-widget-tabs .elementor-tabs-content-wrapper {
    border: none !important;
    padding-top: 24px !important;
}

.elementor-widget-tabs .elementor-tab-content {
    padding: 0 !important;
    border: none !important;
}

/* ─────────────────────────────────────────────
   11. RESPONSIVE
   ───────────────────────────────────────────── */
@media screen and (max-width: 1400px) {
    .woocommerce ul.products,
    .woocommerce.columns-5 ul.products,
    .woocommerce.columns-4 ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media screen and (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce.columns-5 ul.products,
    .woocommerce.columns-4 ul.products,
    .woocommerce.columns-3 ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .woocommerce ul.products li.product .image_wrapper img,
    .woocommerce ul.products li.product .mfn-product-list-gallery-item img,
    .woocommerce ul.products li.product .product-loop-thumb img {
        height: 200px !important;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce.columns-5 ul.products,
    .woocommerce.columns-4 ul.products,
    .woocommerce.columns-3 ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .woocommerce ul.products li.product .image_wrapper img,
    .woocommerce ul.products li.product .mfn-product-list-gallery-item img,
    .woocommerce ul.products li.product .product-loop-thumb img {
        height: 180px !important;
    }
    
    .woocommerce ul.products li.product .title h2 a,
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .mfn-woo-product-title {
        font-size: 12px !important;
        height: 2.6em !important;
        max-height: 2.6em !important;
        min-height: 2.6em !important;
    }
}

@media screen and (max-width: 480px) {
    .woocommerce ul.products {
        gap: 8px !important;
    }
    
    .woocommerce ul.products li.product .mfn-li-product-row-image {
        padding: 10px 10px 0 !important;
    }
    
    .woocommerce ul.products li.product .image_wrapper img,
    .woocommerce ul.products li.product .mfn-product-list-gallery-item img,
    .woocommerce ul.products li.product .product-loop-thumb img {
        height: 150px !important;
    }
    
    .woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
    .woocommerce ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 14px !important;
    }
}

/* ─────────────────────────────────────────────
   12. GLOBAL OVERRIDES
   ───────────────────────────────────────────── */

/* Kill ALL BeTheme inline styles on product items */
.woocommerce ul.products li.product[style],
.woocommerce ul.products li.product.first[style],
.woocommerce ul.products li.product.last[style] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure woo container doesn't restrict width */
.woocommerce .products_wrapper,
.woocommerce .products_wrapper.isotope_wrapper {
    max-width: 100% !important;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Elementor heading font */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Premium Serif Headings style */
.playfair-heading,
h1.entry-title,
.template-homepage h2,
.elementor-heading-title.playfair {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
}

/* Separator below image area */
.woocommerce ul.products li.product .mfn-li-product-row-image {
    border-bottom: 1px solid #f5f5f5 !important;
}

/* ─────────────────────────────────────────────
   13. FOOTER REPETITION FIX
   ───────────────────────────────────────────── */
/* Show global footer template on the homepage, and instead hide the local inline homepage footer */
.home [data-id="sec_footer"] {
    display: none !important;
}

/* ─────────────────────────────────────────────
   14. HEADER — Full Width Container Fix
   BeTheme wraps the Elementor header content inside
   .section.the_content > .section_wrapper which has
   max-width: 1240px (from BeTheme's grid-width setting).
   Override to make the header truly full-width.
   ───────────────────────────────────────────── */

/* 1. Remove BeTheme's max-width & padding from header wrapper */
#mfn-header-template .section_wrapper,
#mfn-header-template .section.the_content > .section_wrapper,
#mfn-header-template .the_content_wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 2. Remove section margin/padding resets inside header */
#mfn-header-template .section.the_content {
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. Make Elementor full_width containers truly span 100% */
.elementor-18926 .elementor-section-full_width > .elementor-container,
#mfn-header-template .elementor-section-full_width > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* 4. Add balanced inner padding and center-align each header section container */
.elementor-18926 .caiman-top-bar-section > .elementor-container,
#mfn-header-template .caiman-top-bar-section > .elementor-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.elementor-18926 .caiman-main-bar-section > .elementor-container,
#mfn-header-template .caiman-main-bar-section > .elementor-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    min-height: 80px;
    align-items: center !important;
}

.elementor-18926 .caiman-nav-bar-section > .elementor-container,
#mfn-header-template .caiman-nav-bar-section > .elementor-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* 5. Ensure header element itself is full width, stacks on top, and allows overflow */
.elementor-18926,
#mfn-header-template,
#mfn-header-template .mfn-builder-content,
#mfn-header-template .section.the_content,
#mfn-header-template .section_wrapper,
#mfn-header-template .the_content_wrapper,
header.elementor-location-header,
.elementor-location-header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 999999999 !important;
    overflow: visible !important;
}

#mfn-header-template .elementor-section,
#mfn-header-template .elementor-container,
#mfn-header-template .elementor-column,
#mfn-header-template .elementor-widget-wrap,
#mfn-header-template .elementor-widget-nav-menu,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget-nav-menu,
.elementor-18926 .elementor-section,
.elementor-18926 .elementor-container,
.elementor-18926 .elementor-column,
.elementor-18926 .elementor-widget-wrap,
.elementor-18926 .elementor-widget-nav-menu {
    overflow: visible !important;
}

/* ─────────────────────────────────────────────
   15. HEADER — Visual Refinements
   Matching Libreria de la U proportions
   ───────────────────────────────────────────── */

/* Top bar: compact & balanced */
.caiman-top-bar-section {
    font-size: 12px !important;
    font-family: 'Raleway', sans-serif !important;
}
.caiman-top-bar-section a {
    font-size: 12px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.caiman-top-bar-section a:hover {
    text-decoration: underline !important;
}

/* Main bar: logo, search, icons alignment */
.caiman-main-bar-section {
    background-color: #fff !important;
}

/* Logo sizing */
.caiman-main-bar-section .elementor-widget-image img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Search bar styling */
.caiman-main-bar-section .elementor-search-form__container,
.caiman-main-bar-section form.search-form {
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: #fafafa !important;
    transition: border-color 0.2s ease !important;
}
.caiman-main-bar-section .elementor-search-form__container:focus-within,
.caiman-main-bar-section form.search-form:focus-within {
    border-color: #835a2c !important;
    background: #fff !important;
}

.caiman-main-bar-section .elementor-search-form__input,
.caiman-main-bar-section input[type="search"],
.caiman-main-bar-section input[type="text"] {
    font-size: 15px !important;
    font-family: 'Raleway', sans-serif !important;
    color: #333 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    height: 44px !important;
    padding: 0 16px !important;
    width: 100% !important;
}

/* Nav bar: clean border-top separator */
.caiman-nav-bar-section {
    border-top: 1px solid #ebebeb !important;
    background: #fff !important;
}

/* Nav menu items spacing */
.caiman-nav-bar-section .elementor-nav-menu a,
.caiman-nav-bar-section .elementor-nav-menu--main .elementor-item {
    font-family: 'Raleway', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-transform: none !important;
    padding: 14px 18px !important;
    color: #222 !important;
}
.caiman-nav-bar-section .elementor-nav-menu--main .elementor-item:hover,
.caiman-nav-bar-section .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #835a2c !important;
}

/* ─────────────────────────────────────────────
   16. HEADER — Spacing & Alignment Corrections
   Aligns elements to the far right to create a balanced
   layout matching Librería de la U.
   ───────────────────────────────────────────── */

/* Align top bar elements */
.elementor-18926 .caiman-top-bar-section .elementor-column,
#mfn-header-template .caiman-top-bar-section .elementor-column {
    display: flex !important;
    align-items: center !important;
}

.elementor-18926 .caiman-top-bar-section .elementor-column:first-child .elementor-widget-wrap,
#mfn-header-template .caiman-top-bar-section .elementor-column:first-child .elementor-widget-wrap {
    justify-content: flex-start !important;
}

.elementor-18926 .caiman-top-bar-section .elementor-column:last-child .elementor-widget-wrap,
#mfn-header-template .caiman-top-bar-section .elementor-column:last-child .elementor-widget-wrap {
    justify-content: flex-end !important;
}

.encuentranos-text {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-right: 10px !important;
}

.caiman-top-social-icons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.caiman-top-social-icons .social-icon-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    color: #003333 !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.caiman-top-social-icons .social-icon-circle:hover {
    background-color: #D98E32 !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
}

.caiman-top-social-icons .social-icon-circle svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
}

.caiman-top-wompi {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.caiman-top-wompi .wompi-logo {
    max-height: 26px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Align main header icons to the far right of its column */
.caiman-icons-col .caiman-header-icons {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 28px !important;
}
.caiman-icons-col .elementor-widget-shortcode,
.caiman-icons-col .elementor-widget-container,
.caiman-icons-col .elementor-shortcode {
    width: 100% !important;
}

/* Ensure child icons display flex and text aligns nicely */
.caiman-icons-col .caiman-icon-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #524437 !important;
    text-decoration: none !important;
}

.caiman-icons-col .caiman-icon-item:hover {
    color: #835a2c !important;
}

.caiman-icons-col .caiman-icon-item .icon-label {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
}

/* ─────────────────────────────────────────────
   17. ELEMENTOR SECTION 564409e — Background + Uniform Alignment
   Forces all 3 columns (logo, search, icons) to center-align
   vertically within the dark teal header bar.
   ───────────────────────────────────────────── */
.elementor-18926 .elementor-element.elementor-element-564409e:not(.elementor-motion-effects-element-type-background),
.elementor-18926 .elementor-element.elementor-element-564409e > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: #003333 !important;
}

/* Section padding — uniform vertical space */
.elementor-18926 .elementor-element.elementor-element-564409e {
    padding: 12px 0 !important;
}

/* Container: force flexbox vertical centering */
.elementor-18926 .elementor-element.elementor-element-564409e > .elementor-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    min-height: 70px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* All 3 columns: center their content vertically */
.elementor-18926 .elementor-element.elementor-element-564409e .elementor-column {
    display: flex !important;
    align-items: center !important;
}

.elementor-18926 .elementor-element.elementor-element-564409e .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* ── Column 1: Logo (20%) ── */
.elementor-18926 .elementor-element.elementor-element-5644032 .elementor-widget-wrap {
    justify-content: flex-start !important;
}

.elementor-18926 .elementor-element.elementor-element-5644032 .elementor-widget-image {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-18926 .elementor-element.elementor-element-5644032 .elementor-widget-image img {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* ── Column 2: Search (55%) ── */
.elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-widget-wrap {
    justify-content: center !important;
    padding: 0 20px !important;
}

.elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__container {
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: rgba(255,255,255,0.95) !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

.elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__container:focus-within {
    border-color: #C67D20 !important;
    background: #fff !important;
}

.elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__input {
    font-size: 14px !important;
    font-family: 'Raleway', sans-serif !important;
    color: #333 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    height: 42px !important;
    padding: 0 30px !important;
    width: 100% !important;
}

.elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    color: #666 !important;
}

/* ── Column 3: Icons (25%) ── */
.elementor-18926 .elementor-element.elementor-element-133d5b7 .elementor-widget-wrap {
    justify-content: flex-end !important;
}

.elementor-18926 .elementor-element.elementor-element-133d5b7 .caiman-header-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 24px !important;
    width: 100% !important;
}

.elementor-18926 .elementor-element.elementor-element-133d5b7 .caiman-icon-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    gap: 3px !important;
}

.elementor-18926 .elementor-element.elementor-element-133d5b7 .caiman-icon-item:hover {
    color: #C67D20 !important;
}

.elementor-18926 .elementor-element.elementor-element-133d5b7 .caiman-icon-item svg {
    stroke: currentColor !important;
    width: 22px !important;
    height: 22px !important;
}

.elementor-18926 .elementor-element.elementor-element-133d5b7 .caiman-icon-item .icon-label {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    color: inherit !important;
    text-transform: uppercase !important;
}


/* ─────────────────────────────────────────────
   18. PRODUCT TITLE (mfn-woo-product-title) — Smaller font
   ───────────────────────────────────────────── */
.woocommerce ul.products li.product .mfn-woo-product-title {
    font-family: 'Raleway', -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #000 !important;
    line-height: 1.4 !important;
    padding: 8px 10px 4px !important;
    margin: 0 !important;
    text-align: center !important;
    text-transform: capitalize !important;

    /* Truncate to 2 lines */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: content-box !important;
    height: 3.0em !important; /* exactly 2 lines at line-height 1.4 with extra descender space */
    max-height: 3.0em !important;
    min-height: 3.0em !important;
}

.woocommerce ul.products li.product .mfn-woo-product-title a {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* ─────────────────────────────────────────────
   19. IMAGE_LINKS — Fix SVG icons & button display
   ───────────────────────────────────────────── */
/* Reset any inline <defs><style> and hide SVGs completely */
.woocommerce ul.products li.product .image_links a svg,
.woocommerce ul.products li.product .image_links a svg * {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* 1. Neutralize BeTheme's native overlay position, size, and animations on the wrapper.
   Position the overlay to cover 100% of the image wrapper with a semi-transparent teal background. */
.woocommerce ul.products li.product .image_frame .image_wrapper .image_links,
.woocommerce ul.products li.product .image_frame .image_links,
.woocommerce ul.products li.product .image_links,
.image_links {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    background: rgba(15, 118, 110, 0.85) !important; /* Teal semi-transparente */
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 99 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    animation: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* 2. Show container correctly on hover */
.woocommerce ul.products li.product:hover .image_frame .image_wrapper .image_links,
.woocommerce ul.products li.product:hover .image_frame .image_links,
.woocommerce ul.products li.product:hover .image_links,
.product:hover .image_links {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 3. Forcefully style the buttons and cancel BeTheme's circle button styles */
.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a,
.woocommerce ul.products li.product .image_frame .image_links a,
.woocommerce ul.products li.product .image_links a,
.image_links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important; /* Letra de 10px para un look más refinado */
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important; /* Semi-bold en lugar de bold grueso */
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    border-radius: 4px !important; /* Borde levemente redondeado */
    padding: 5px 8px !important; /* Reducción drástica del padding vertical */
    cursor: pointer !important;
    width: 90% !important;
    max-width: 210px !important;
    height: auto !important;
    min-height: 28px !important; /* Altura mínima menor */
    box-sizing: border-box !important;
    line-height: 1.2 !important; /* Altura de línea compacta */
    position: relative !important;
    overflow: hidden !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

/* --- Botón VER INFORMACIÓN (Delineado Blanco en fondo Teal) --- */
.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.link,
.woocommerce ul.products li.product .image_links a.link,
.image_links a.link {
    background: transparent !important;
    border: 1.5px solid #ffffff !important; /* Borde más delgado */
    color: #ffffff !important;
}

.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.link::after,
.woocommerce ul.products li.product .image_links a.link::after,
.image_links a.link::after {
    content: 'VER INFORMACI\D3N' !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.link:hover,
.woocommerce ul.products li.product .image_links a.link:hover,
.image_links a.link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
}

.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.link:hover::after,
.woocommerce ul.products li.product .image_links a.link:hover::after,
.image_links a.link:hover::after {
    color: #ffffff !important;
}

/* --- Botón AGREGAR AL CARRITO (Sólido Blanco, Texto Teal) --- */
.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.add_to_cart_button,
.woocommerce ul.products li.product .image_links a.add_to_cart_button,
.image_links a.add_to_cart_button {
    background: #ffffff !important;
    border: 1.5px solid #ffffff !important;
    color: #0F766E !important;
}

.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.add_to_cart_button::after,
.woocommerce ul.products li.product .image_links a.add_to_cart_button::after,
.image_links a.add_to_cart_button::after {
    content: 'AGREGAR AL CARRITO' !important;
    color: #0F766E !important;
    font-size: 10px !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.add_to_cart_button:hover,
.woocommerce ul.products li.product .image_links a.add_to_cart_button:hover,
.image_links a.add_to_cart_button:hover {
    background: #e2fbf7 !important;
    border-color: #e2fbf7 !important;
}

.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.add_to_cart_button:hover::after,
.woocommerce ul.products li.product .image_links a.add_to_cart_button:hover::after,
.image_links a.add_to_cart_button:hover::after {
    color: #0D6B63 !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Order: VER INFORMACIÓN primero, AGREGAR AL CARRITO segundo */
.woocommerce ul.products li.product .image_links a.link {
    order: 1 !important;
}
.woocommerce ul.products li.product .image_links a.add_to_cart_button {
    order: 2 !important;
}

/* Eliminar artefactos de los tooltips de BeTheme (sólo ::before para no ocultar nuestro texto en ::after) */
.woocommerce ul.products li.product .image_links a[data-tooltip]::before,
.image_links a[data-tooltip]::before {
    display: none !important;
    content: none !important;
}


/* ============================================================
   SECCIÓN 20 — LAYOUT 3 COLUMNAS — Caimán Editores
   Estilo y distribución similar a Librería de la U
   ============================================================ */

.caim-single-product {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* --- GRID DE 3 COLUMNAS --- */
.caim-sp-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
}

/* --- COLUMNA 1: Galería e imagen + datos técnicos --- */
.caim-sp-col-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.caim-sp-gallery-wrap .woocommerce-product-gallery {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.caim-sp-gallery-wrap img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    max-width: 100%;
    height: auto;
}

/* Grid de datos técnicos */
.caim-sp-datos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.caim-sp-dato-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}

.caim-sp-dato-item:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
}

.caim-sp-dato-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.caim-sp-dato-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.caim-sp-dato-value {
    color: #334155;
    font-weight: 600;
    line-height: 1.3;
}

.caim-sp-dato-value strong {
    font-size: 14px;
    color: #0f172a;
}

/* --- COLUMNA 2: Info principal (sinopsis, autor, título) --- */
.caim-sp-col-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Título */
.caim-sp-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin: 0;
}

/* Autor */
.caim-sp-author-row {
    margin-top: -4px;
}

.caim-sp-author-link {
    font-size: 15px;
    font-weight: 600;
    color: #0F766E;
    text-decoration: none;
}

.caim-sp-author-link:hover {
    text-decoration: underline;
    color: #0f766e;
}

/* Editorial */
.caim-sp-editorial-row {
    font-size: 13.5px;
}

.caim-sp-editorial-link {
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px dashed #cbd5e1;
}

.caim-sp-editorial-link:hover {
    color: #334155;
    border-bottom-style: solid;
}

/* Badges */
.caim-sp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.caim-sp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: capitalize;
}

.caim-sp-badge-gray {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.caim-sp-badge-orange {
    background-color: #ffedd5;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

/* Categoría */
.caim-sp-cat-row {
    margin-top: 2px;
}

.caim-sp-cat-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
}

.caim-sp-cat-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Sinopsis / Descripción */
.caim-sp-sinopsis-box {
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.caim-sp-sinopsis-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.caim-sp-sinopsis-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

/* --- COLUMNA 3: Caja de Compra (Fila derecha) --- */
.caim-sp-buy-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Tipo de Formato (Físico vs Ebook) */
.caim-sp-format-selector {
    display: flex;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
    gap: 16px;
}

.caim-sp-format-btn {
    font-size: 14px;
    font-weight: 700;
    color: #0F766E;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 2.5px solid #0F766E;
    cursor: default;
}

/* Envío info */
.caim-sp-shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.caim-sp-shipping-icon {
    font-size: 16px;
}

/* Precio Principal */
.caim-sp-price-wrap {
    margin-bottom: 20px;
}

.caim-sp-price-wrap .price {
    font-family: 'Montserrat', sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caim-sp-price-wrap .price del {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.caim-sp-price-wrap .price ins {
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.caim-sp-price-wrap .price > .woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

/* Botón Añadir al Carrito */
.caim-sp-add-to-cart-wrapper .cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.caim-sp-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: fit-content;
    overflow: hidden;
}

.caim-sp-qty-btn {
    border: none;
    background: #f8fafc;
    color: #475569;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.caim-sp-qty-btn:hover {
    background: #e2e8f0;
}

.caim-sp-quantity-selector input.qty {
    width: 44px !important;
    height: 36px !important;
    border: none !important;
    border-left: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    appearance: textfield;
}

.caim-sp-btn-submit {
    width: 100% !important;
    background-color: #0F766E !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-align: center !important;
    line-height: 1.2 !important;
    height: auto !important;
}

.caim-sp-btn-submit:hover {
    background-color: #0d6b63 !important;
}

/* Botón Añadir a lista de deseos (opcional) */
.caim-sp-wishlist-wrap {
    margin-top: 15px;
    text-align: center;
}

.caim-sp-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.caim-sp-wishlist-btn:hover {
    color: #0F766E;
}


/* ============================================================
   RESPONSIVO TABLA Y COLUMNAS SINGLE PRODUCT
   ============================================================ */

@media (max-width: 1024px) {
    .caim-sp-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .caim-sp-col-image {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .caim-sp-buy-box {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .caim-sp-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SECCIÓN 21 — TABLA DE ESPECIFICACIONES TÉCNICAS
   ============================================================ */

.caim-sp-specs-section {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.caim-sp-specs-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.caim-sp-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.caim-sp-specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.caim-sp-specs-table tr:last-child {
    border-bottom: none;
}

.caim-sp-specs-label {
    width: 30%;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    text-align: left;
}

.caim-sp-specs-value {
    padding: 12px 16px;
    font-size: 14.5px;
    color: #334155;
    font-weight: 600;
    text-align: left;
}

/* Estilo responsivo para la tabla de especificaciones en pantallas pequeñas */
@media (max-width: 640px) {
    .caim-sp-specs-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1.5px solid #f1f5f9;
    }
    
    .caim-sp-specs-label {
        width: 100%;
        padding: 8px 16px 4px;
        background-color: transparent;
        font-size: 11px;
    }
    
    .caim-sp-specs-value {
        width: 100%;
        padding: 4px 16px 12px;
        font-size: 14px;
    }
}


/* ============================================================
   SECCIÓN 22 — SECCIÓN RESEÑAS (REVIEWS) LIBRERÍA DE LA U
   ============================================================ */

.caim-sp-reviews-section {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

/* Encabezado con estrellas */
.caim-sp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.caim-sp-reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Lista de Comentarios */
.caim-sp-comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.caim-sp-comment-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.caim-sp-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.caim-sp-comment-author {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
}

.caim-sp-comment-date {
    font-size: 12px;
    color: #94a3b8;
}

.caim-sp-comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

/* Mensaje cuando no hay reseñas */
.caim-sp-no-reviews {
    font-size: 14.5px;
    color: #64748b;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    margin-bottom: 30px;
}


/* Formulario de Reseñas */
.caim-sp-review-form-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
}

.caim-sp-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.caim-sp-form-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Fila de campos (Nombre y Email) */
.caim-sp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 640px) {
    .caim-sp-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.caim-sp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.caim-sp-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.caim-sp-form-input,
.caim-sp-form-textarea {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #334155 !important;
    outline: none !important;
    background: #fff !important;
    transition: border-color 0.2s !important;
}

.caim-sp-form-input:focus,
.caim-sp-form-textarea:focus {
    border-color: #0F766E !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

.caim-sp-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Selector de Estrellas del Formulario */
.caim-sp-form-rating-wrap {
    margin-bottom: 20px;
}

.caim-sp-rating-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

/* Ocultar selector nativo de estrellas de WooCommerce si se usa nuestra maquetación */
.caim-sp-review-form-wrapper .stars-rating-container {
    margin-bottom: 10px;
}

/* ============================================================
   SECCIÓN 22 — OTROS LIBROS SUGERIDOS — Caimán Editores
   ============================================================ */

.caim-sp-sugeridos {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #ebebeb !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.caim-sp-sugeridos-title {
    font-family: 'Raleway', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #211a14 !important;
    margin-bottom: 24px !important;
    text-align: left !important;
    letter-spacing: -0.02em !important;
}

.caim-sp-sugeridos-carousel {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.caim-sp-sugeridos-track {
    display: flex !important;
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    padding: 15px 4px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important; /* Firefox */
}

.caim-sp-sugeridos-track::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
}

.caim-sp-sugerido-card {
    flex: 0 0 calc(25% - 15px) !important; /* 4 cards on desktop */
    min-width: 220px !important;
    max-width: calc(25% - 15px) !important;
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.caim-sp-sugerido-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
    border-color: #0d6b63 !important;
}

.caim-sp-sugerido-img-link {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    position: relative !important;
    text-decoration: none !important;
}

.caim-sp-sugerido-img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 4px !important;
}

.caim-sp-sugerido-badges {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    min-height: 20px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.caim-sp-sugerido-name {
    font-family: 'Raleway', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #211a14 !important;
    text-decoration: none !important;
    margin: 0 0 6px 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 36px !important;
}

.caim-sp-sugerido-name:hover {
    color: #0d6b63 !important;
}

.caim-sp-sugerido-author {
    font-family: 'Raleway', sans-serif !important;
    font-size: 12px !important;
    color: #718096 !important;
    margin-bottom: 12px !important;
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

.caim-sp-sugerido-price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: auto !important; /* Push price container to the very bottom */
    width: 100% !important;
}

.caim-sp-sugerido-badge-off {
    background: #e53e3e !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
}

.caim-sp-sugerido-price-old {
    font-size: 12px !important;
    color: #a0aec0 !important;
    text-decoration: line-through !important;
}

.caim-sp-sugerido-price-cur {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0d6b63 !important;
}

.caim-sp-carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e2e8f0 !important;
    color: #2d3748 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.caim-sp-carousel-arrow:hover {
    background: #0d6b63 !important;
    color: #ffffff !important;
    border-color: #0d6b63 !important;
}

.caim-sp-carousel-prev {
    left: -20px !important;
}

.caim-sp-carousel-next {
    right: -20px !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .caim-sp-sugerido-card {
        flex: 0 0 calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }
}



/* ============================================================
   SECCIÓN 23 — RESPONSIVO GENERAL HEADER MÓVIL
   ============================================================ */

@media (max-width: 991px) {
    /* Ajustes generales del header para tablets */
    .elementor-18926 .elementor-element.elementor-element-564409e > .elementor-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 575px) {
    /* Ajustes del buscador para hacerlo más compacto */
    .elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__container {
        height: 38px !important;
    }
    .elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__input {
        height: 36px !important;
        padding: 0 20px !important;
        font-size: 13px !important;
    }
}


/* ─────────────────────────────────────────────
   MOBILE HEADER OPTIMIZATIONS (Symmetry & Space)
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
    /* 1. Top bar: compact and stacked */
    .elementor-18926 .caiman-top-bar-section > .elementor-container,
    #mfn-header-template .caiman-top-bar-section > .elementor-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 6px !important;
    }
    .caiman-top-bar-left {
        text-align: center !important;
        width: 100% !important;
        font-size: 11px !important;
    }
    .caiman-top-bar-section .caiman-top-bar-right {
        justify-content: center !important;
        width: 100% !important;
    }
    .caiman-top-bar-section .caiman-top-bar-right a {
        font-size: 11px !important;
    }

    /* 2. Main bar section: convert to flex-wrap row */
    body .elementor-18926 .elementor-element.elementor-element-564409e > .elementor-container,
    body .elementor-18926 .caiman-main-bar-section > .elementor-container,
    body #mfn-header-template .caiman-main-bar-section > .elementor-container,
    body .caiman-main-bar-section > .elementor-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        min-height: auto !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        align-items: center !important;
    }

    /* Row 1: Logo (40% width) and Icons (60% width) */
    .elementor-18926 .caiman-main-bar-section .caiman-logo-col,
    #mfn-header-template .caiman-main-bar-section .caiman-logo-col {
        width: 40% !important;
        max-width: 40% !important;
        flex: 0 0 40% !important;
        order: 1 !important;
    }
    .elementor-18926 .caiman-main-bar-section .caiman-icons-col,
    #mfn-header-template .caiman-main-bar-section .caiman-icons-col {
        width: 60% !important;
        max-width: 60% !important;
        flex: 0 0 60% !important;
        order: 2 !important;
    }

    /* Row 2: Search Input (100% width) below Row 1 */
    .elementor-18926 .caiman-main-bar-section .caiman-search-col,
    #mfn-header-template .caiman-main-bar-section .caiman-search-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        order: 3 !important;
        margin-top: 12px !important;
    }

    /* Scale elements nicely for compact height */
    .caiman-main-bar-section .elementor-widget-image img {
        max-height: 46px !important;
        width: auto !important;
    }
    .caiman-main-bar-section .elementor-search-form__container,
    .caiman-main-bar-section form.search-form {
        height: 40px !important;
        width: 100% !important;
    }
    .caiman-icons-col .caiman-header-icons {
        justify-content: flex-end !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .caiman-icons-col .caiman-icon-item .icon-label {
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }

    /* 3. Navigation Bar (Mobile Hamburger menu toggle) */
    .elementor-18926 .caiman-nav-bar-section,
    #mfn-header-template .caiman-nav-bar-section {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        background: #fafafa !important;
        border-bottom: 1px solid #ebebeb !important;
    }
    .elementor-18926 .caiman-nav-bar-section > .elementor-container,
    #mfn-header-template .caiman-nav-bar-section > .elementor-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        display: flex !important;
        justify-content: center !important;
    }
    .elementor-18926 .caiman-nav-bar-section .elementor-menu-toggle,
    #mfn-header-template .caiman-nav-bar-section .elementor-menu-toggle {
        margin: 0 auto !important;
        padding: 4px !important;
    }

    /* Forzar que la columna del menú ocupe el 100% de ancho en móviles */
    .elementor-18926 .caiman-nav-bar-section .caiman-nav-menu-wrapper,
    #mfn-header-template .caiman-nav-bar-section .caiman-nav-menu-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* ─────────────────────────────────────────────
   MOBILE/TABLET MENU OVERRIDES (Max Width 1024px)
   Ensure dropdown menus are vertical, stack, sit on top,
   and have white backgrounds.
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Force the dropdown container to be positioned absolutely, have a white background, and be on top of everything */
    .elementor-nav-menu--dropdown,
    #mfn-header-template .elementor-nav-menu--dropdown,
    .caiman-nav-bar-section .elementor-nav-menu--dropdown {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        z-index: 999999 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        border-top: 1px solid #ebebeb !important;
    }
    
    /* Ensure active dropdown displays properly */
    .elementor-nav-menu--dropdown.elementor-active,
    #mfn-header-template .elementor-nav-menu--dropdown.elementor-active,
    .caiman-nav-bar-section .elementor-nav-menu--dropdown.elementor-active {
        display: block !important;
    }

    /* Force the dropdown list to be vertical and stack */
    .elementor-nav-menu--dropdown ul.elementor-nav-menu,
    #mfn-header-template .elementor-nav-menu--dropdown ul.elementor-nav-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item,
    #mfn-header-template .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    /* Style the list item links nicely for readability */
    .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-item,
    .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-sub-item,
    #mfn-header-template .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-item,
    #mfn-header-template .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-sub-item {
        display: block !important;
        width: 100% !important;
        padding: 14px 24px !important;
        margin: 0 !important;
        color: #211a14 !important;
        font-family: 'Raleway', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: left !important;
        border-bottom: 1px solid #ebebeb !important;
        box-sizing: border-box !important;
        background: transparent !important;
    }

    .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-item:hover,
    .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-item.elementor-item-active,
    #mfn-header-template .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-item:hover,
    #mfn-header-template .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item a.elementor-item.elementor-item-active {
        color: #835a2c !important;
        background-color: #fcfcfc !important;
    }
}

/* ==========================================================================
   MODIFICACIÓN DEL BUSCADOR - CAIMÁN EDITORES
   ========================================================================== */

/* Contenedor del buscador con posición relativa para ubicar la lupa */
.caiman-search-col .elementor-search-form {
    position: relative;
    border-radius: 9999px !important;
}

/* Lupa gris personalizada (SVG) alineada a la izquierda */
.caiman-search-col .elementor-search-form::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23857464' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: 0.8;
    z-index: 2;
}

/* Ocultar la lupa nativa de Elementor (evita la doble lupa) */
.caiman-search-col .elementor-search-form__icon,
.caiman-search-col .elementor-search-form__container .elementor-search-form__icon,
.elementor-18926 .elementor-element.elementor-element-23c6705 .elementor-search-form__icon {
    display: none !important;
}

/* Ocultar el botón nativo de buscar en el extremo derecho */
.caiman-search-col .elementor-search-form__submit {
    display: none !important;
}

/* Estilo del campo de texto y espacio para que el texto no pise la lupa */
.caiman-search-col input[type="search"].elementor-search-form__input {
    border: none !important;
    background: transparent !important;
    color: #211a14 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    height: 38px !important;
    padding: 0 8px 0 36px !important;
    position: relative;
}


/* ============================================================
   SECCIÓN 24 — RESPONSIVE COMPLETO: HOME + GLOBAL
   Auditoría y mejora del responsive en todas las secciones
   ============================================================ */

/* ── RESPONSIVE: Elementor Tabs (Home "Explora nuestro Catálogo") ── */
@media (max-width: 767px) {
    .elementor-widget-tabs .elementor-tabs-wrapper {
        flex-wrap: wrap !important;
        gap: 0 !important;
        justify-content: flex-start !important;
    }
    .elementor-widget-tabs .elementor-tab-title {
        font-size: 12px !important;
        padding: 10px 14px !important;
        flex: 1 1 auto !important;
        text-align: center !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
    .elementor-widget-tabs .elementor-tabs-content-wrapper {
        padding-top: 16px !important;
    }
}
/* ── FIN RESPONSIVE: Elementor Tabs ── */


/* ── RESPONSIVE: Hero Slider / Banner Principal ── */
@media (max-width: 991px) {
    /* Make hero section columns stack */
    .elementor-section.elementor-section-full_width > .elementor-container {
        flex-wrap: wrap !important;
    }
    
    /* Hero content inner padding adjustments */
    .elementor-section[data-id] > .elementor-container > .elementor-column {
        min-width: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Prevent slider dots from overlapping the buttons on mobile/tablets */
    .caiman-hero-slider .slide-content {
        padding: 30px 20px 80px 20px !important; /* Increase bottom padding to 80px to provide a clean area for dots */
    }
    .caiman-hero-slider .slider-dots {
        bottom: 24px !important; /* Position dots clearly below the buttons */
    }
}

@media (max-width: 767px) {
    /* Slide text adjustments for mobile */
    .elementor-widget-heading .elementor-heading-title {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Ensure hero images scale */
    .elementor-section .elementor-widget-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Hero buttons: ensure tappable size (min 44px) */
    .elementor-section .elementor-button {
        min-height: 44px !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
}
/* ── FIN RESPONSIVE: Hero Slider ── */


/* ── RESPONSIVE: Barra de Beneficios (Envíos, Pago Seguro, etc.) ── */
@media (max-width: 991px) {
    /* Force benefits section columns to wrap */
    .elementor-section .elementor-container .elementor-column[data-col] {
        min-width: 0 !important;
    }
}

@media (max-width: 767px) {
    /* Icon-box items: stack in 2-column grid */
    .elementor-widget-icon-box .elementor-icon-box-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .elementor-widget-icon-box .elementor-icon-box-title {
        font-size: 12px !important;
    }
    .elementor-widget-icon-box .elementor-icon-box-description {
        font-size: 11px !important;
    }
}
/* ── FIN RESPONSIVE: Barra de Beneficios ── */


/* ── RESPONSIVE: Sección Áreas de Conocimiento (Cards de Categorías) ── */
@media (max-width: 991px) {
    /* Elementor inner section columns — auto-wrap for category cards */
    .elementor-inner-section > .elementor-container > .elementor-column {
        min-width: 0 !important;
    }
}
/* ── FIN RESPONSIVE: Áreas de Conocimiento ── */


/* ── RESPONSIVE: Carruseles de Productos (Slick/Swiper) ── */
@media (max-width: 767px) {
    /* Ensure carousels don't overflow horizontally */
    .slick-slider,
    .swiper-container,
    .swiper {
        overflow: hidden !important;
    }
    
    .slick-slide,
    .swiper-slide {
        min-width: 180px !important;
    }
    
    /* Carousel navigation arrows: bigger for touch */
    .slick-prev,
    .slick-next,
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }
}
/* ── FIN RESPONSIVE: Carruseles ── */


/* ── RESPONSIVE: Sección Editoriales Aliadas (Marquee) ── */
@media (max-width: 767px) {
    .caiman-editoriales {
        padding: 30px 0 !important;
        overflow: hidden !important;
    }
    .caiman-editoriales h2 {
        font-size: 20px !important;
        margin-bottom: 24px !important;
    }
    .caiman-logo-track img {
        max-height: 35px !important;
    }
}

@media (max-width: 480px) {
    .caiman-editoriales h2 {
        font-size: 18px !important;
    }
    .caiman-logo-track img {
        max-height: 28px !important;
    }
}
/* ── FIN RESPONSIVE: Editoriales Aliadas ── */


/* ── RESPONSIVE: Banner "¿Eres Autor?" / CTAs de texto + imagen ── */
@media (max-width: 767px) {
    /* CTA sections: stack image and text */
    .elementor-section .elementor-column.elementor-col-50 {
        width: 100% !important;
    }
}
/* ── FIN RESPONSIVE: Banner CTA ── */


/* ── RESPONSIVE: Footer ── */
@media (max-width: 991px) {
    #Footer .widgets_wrapper .elementor-container > .elementor-column,
    #Footer .widgets_wrapper .section_wrapper > .one-fourth,
    #Footer .widgets_wrapper .section_wrapper > .one-third {
        width: 50% !important;
        float: left !important;
    }
}

@media (max-width: 767px) {
    #Footer .widgets_wrapper .elementor-container > .elementor-column,
    #Footer .widgets_wrapper .section_wrapper > .one-fourth,
    #Footer .widgets_wrapper .section_wrapper > .one-third {
        width: 100% !important;
        float: none !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }
    
    #Footer .widgets_wrapper {
        padding: 40px 16px !important;
    }
    
    #Footer .widgets_wrapper ul {
        text-align: center !important;
    }
    
    #Footer .widgets_wrapper .widget > h3 {
        text-align: center !important;
    }
}
/* ── FIN RESPONSIVE: Footer ── */


/* ── RESPONSIVE: Global Overflow Prevention ── */
html, body {
    overflow-x: hidden !important;
}

/* Prevent any element from causing horizontal scroll */
@media (max-width: 767px) {
    #Wrapper,
    #Content,
    .section_wrapper,
    .elementor-section-wrap,
    .elementor-section,
    .elementor-container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Elementor full-width sections: contain within viewport */
    .elementor-section-full_width > .elementor-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Images: prevent overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix BeTheme wrapper margin issue on mobile */
    #Wrapper {
        margin: 0 auto !important;
    }
}
/* ── FIN RESPONSIVE: Global Overflow ── */


/* ── RESPONSIVE: Elementor Accordion Titles ── */
.elementor-widget-tabs .elementor-tab-mobile-title {
    display: none !important;
}
/* ── FIN RESPONSIVE: Elementor Accordion Titles ── */


/* ── RESPONSIVE: WooCommerce Cart & Checkout ── */
@media (max-width: 991px) {
    /* Stacking col-1, col-2, order review columns */
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review_heading {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767px) {
    /* Premium Mobile Cart: turn table rows into cards */
    .woocommerce-cart table.shop_table.cart thead {
        display: none !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item {
        display: block !important;
        margin-bottom: 16px !important;
        border: 1px solid #eaeaea !important;
        border-radius: 8px !important;
        padding: 12px !important;
        background: #fff !important;
        position: relative !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-top: none !important;
        border-bottom: 1px solid #f5f5f5 !important;
        text-align: right !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td:last-child {
        border-bottom: none !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td::before {
        content: attr(data-title) ": " !important;
        font-weight: 700 !important;
        color: #222 !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 0.05em !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td.product-remove {
        justify-content: flex-end !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail {
        justify-content: center !important;
        border-bottom: none !important;
        padding: 12px 0 !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail img {
        max-width: 90px !important;
        height: auto !important;
    }
    .woocommerce-cart table.shop_table.cart tr.cart_item td.product-name a {
        font-weight: 600 !important;
    }

    /* Stack coupon & update cart buttons */
    .woocommerce-cart .actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        padding: 16px !important;
        background: #fdfdfd !important;
        border: 1px solid #eaeaea !important;
        border-radius: 8px !important;
    }
    .woocommerce-cart .actions .coupon {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        float: none !important;
    }
    .woocommerce-cart .actions .coupon input[type="text"] {
        width: 100% !important;
        margin: 0 !important;
        height: 42px !important;
        border-radius: 6px !important;
    }
    .woocommerce-cart .actions button.button,
    .woocommerce-cart .actions input.button {
        width: 100% !important;
        margin: 0 !important;
        height: 42px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Cart Totals container stack */
    .woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        margin-top: 30px !important;
    }
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
        padding: 20px !important;
        border: 1px solid #eaeaea !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    /* Checkout fields stacking */
    .woocommerce-checkout form .form-row-first,
    .woocommerce-checkout form .form-row-last,
    .woocommerce-checkout form .form-row-wide {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* Checkout payment methods list style */
    .woocommerce-checkout #payment ul.payment_methods {
        padding: 0 !important;
    }
    .woocommerce-checkout #payment ul.payment_methods li {
        padding: 14px !important;
        border: 1px solid #ebebeb !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
        background: #fdfdfd !important;
        list-style: none !important;
    }
    .woocommerce-checkout #payment div.payment_box {
        padding: 12px !important;
        margin: 10px 0 0 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        background-color: #f7fafc !important;
        border-radius: 6px !important;
    }
}
/* ── FIN RESPONSIVE: Cart & Checkout ── */


/* ── RESPONSIVE: Single Product Layout ── */
@media (max-width: 991px) {
    .caim-sp-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .caim-sp-col-image {
        max-width: 450px !important;
        margin: 0 auto !important;
    }
    .caim-sp-buy-box, .caim-sp-price-card {
        margin-top: 10px !important;
    }
}

@media (max-width: 767px) {
    .caim-sp-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 10px 0 !important;
    }
    .caim-sp-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .caim-sp-price-card {
        padding: 18px !important;
    }
    .caim-sp-price-wrap .price ins,
    .caim-sp-price-wrap .price > .woocommerce-Price-amount,
    .caim-sp-price-sale {
        font-size: 24px !important;
    }
    .caim-sp-sinopsis-text {
        font-size: 13.5px !important;
    }
    .caim-sp-datos-grid {
        grid-template-columns: 1fr 1fr !important;
        border-radius: 8px !important;
    }
    .caim-sp-qty-wrapper {
        margin: 0 auto 12px !important;
    }
    .caim-sp-btn-comprar {
        height: 46px !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Related Products grid stack */
    .caim-sp-sugeridos-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .caim-sp-sugerido-card {
        margin: 0 !important;
        padding: 10px !important;
        border: 1px solid #eaeaea !important;
        border-radius: 6px !important;
        background: #fff !important;
        flex: none !important;
        max-width: 100% !important;
    }
    .caim-sp-sugerido-img {
        height: 130px !important;
    }
    .caim-sp-sugerido-name {
        font-size: 12px !important;
        height: 32px !important;
        overflow: hidden !important;
    }
    .caim-sp-carousel-arrow {
        display: none !important; /* Hide carousel arrows when stacked */
    }
}

@media (max-width: 480px) {
    .caim-sp-sugeridos-track {
        grid-template-columns: 1fr !important; /* 1 column for small phones */
    }
}
/* ── FIN RESPONSIVE: Single Product ── */


/* ── RESPONSIVE: WooCommerce My Account ── */
@media (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        float: none !important;
        margin-bottom: 24px !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        display: block !important;
        margin: 0 !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        display: block !important;
        padding: 12px 16px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        text-decoration: none !important;
        text-align: center !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
        background: #0F766E !important;
        color: #ffffff !important;
        border-color: #0F766E !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        float: none !important;
    }
}
/* ── FIN RESPONSIVE: My Account ── */


/* ── RESPONSIVE: Shop/Librería Sidebar Columns ── */
@media (max-width: 959px) {
    .with_aside .sidebar.columns {
        width: 100% !important;
        float: none !important;
        margin: 0 0 30px 0 !important;
        box-sizing: border-box !important;
    }
    .with_aside .sections_group {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
    }
}
/* ── FIN RESPONSIVE: Sidebar Columns ── */


/* ── RESPONSIVE: WooCommerce Notices (Alert boxes) ── */
@media (max-width: 767px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 12px 16px !important;
        font-size: 13.5px !important;
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .woocommerce-message a.button,
    .woocommerce-info a.button,
    .woocommerce-error a.button {
        float: none !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}
/* ── FIN RESPONSIVE: Notices ── */

/* ==========================================================================
   MEJORA DE TÍTULOS EN CUADRÍCULA DE PRODUCTOS
   ========================================================================== */
.woocommerce ul.products li.product .desc h4,
.woocommerce ul.products li.product h4,
.woocommerce ul.products li.product .mfn-compare-loop-title-h,
.mfn-compare-loop-title-h,
.mfn-compare-loop-title-h a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    min-height: 42px !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* ==========================================================================
   FORZAR VISIBILIDAD DE DOS BOTONES EN EL HOVER DE PRODUCTOS SIMPLES
   ========================================================================== */
.woocommerce ul.products li.product .image_frame .image_wrapper .image_links a.add_to_cart_button,
.woocommerce ul.products li.product .image_links a.add_to_cart_button,
.image_links a.add_to_cart_button {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   SECCIÓN 24 — ESTILOS COMPLEMENTARIOS DE SELLO U
   ========================================================================== */

/* 1. Contenedor principal de la página */
.sello-u-page-content {
    background-color: #faf9f6 !important; /* Soft warm background */
    padding: 0 !important;
}

.sello-u-inner-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Hero Banner */
.sello-u-hero-banner {
    background: linear-gradient(135deg, #002d2d 0%, #004d4d 100%) !important;
    color: #ffffff !important;
    padding: 36px 0 !important;
    border-bottom: 4px solid #D98E32 !important;
}

.sello-u-hero-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 48px !important;
}

/* Columna Izquierda: Logo */
.sello-u-hero-logo-col {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Columna Derecha: Texto */
.sello-u-hero-text {
    flex: 1 1 auto !important;
    text-align: left !important;
}

.sello-u-badge {
    background-color: #D98E32 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
}

.sello-u-hero-banner h1 {
    font-size: 48px !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.02em !important;
}

.sello-u-tagline {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #f3f4f6 !important;
    margin-bottom: 24px !important;
    line-height: 1.4 !important;
}

.sello-u-separator {
    width: 60px !important;
    height: 3px !important;
    background-color: #D98E32 !important;
    margin: 14px 0 !important;
}

.sello-u-intro {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #e5e7eb !important;
    margin-bottom: 32px !important;
}

.sello-u-btn-primary {
    background-color: #D98E32 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(217, 142, 50, 0.3) !important;
}

.sello-u-btn-primary:hover {
    background-color: #c47c25 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(217, 142, 50, 0.4) !important;
}

/* 3. Support Bar */
.sello-u-support-bar {
    background-color: #ffffff !important;
    padding: 30px 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    position: relative !important;
    z-index: 10 !important;
    border-bottom: 1px solid #eaeaea !important;
}

.sello-u-support-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}

.sello-u-support-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

.support-icon {
    font-size: 32px !important;
    line-height: 1 !important;
}

.support-content h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 4px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

.support-content p {
    font-size: 12px !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* 4. Section headers */
.sello-u-universities-section,
.sello-u-novedades-section,
.sello-u-categories-section {
    padding: 80px 0 !important;
}

.section-header {
    text-align: center !important;
    margin-bottom: 48px !important;
}

.section-header h2 {
    font-size: 32px !important;
    color: #111827 !important;
    margin-bottom: 12px !important;
}

.section-subtitle {
    font-size: 16px !important;
    color: #4b5563 !important;
    margin: 0 !important;
}

.sello-u-short-separator {
    width: 40px !important;
    height: 2px !important;
    background-color: #D98E32 !important;
    margin: 16px auto 0 auto !important;
}

/* 5. Universities Grid */
.sello-u-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
}

.sello-u-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    padding: 32px !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.sello-u-card:hover {
    border-color: #D98E32 !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

.card-logo-wrapper {
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
}

.univ-logo {
    max-height: 80px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.sello-u-card:hover .univ-logo {
    transform: scale(1.05) !important;
}

.sello-u-card h3 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 12px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sello-u-card p {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    flex-grow: 1 !important;
}

.card-cta {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #D98E32 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}

.card-cta span {
    display: inline-block !important;
    transition: transform 0.2s ease !important;
}

.sello-u-card:hover .card-cta {
    color: #0F766E !important;
}

.sello-u-card:hover .card-cta span {
    transform: translateX(4px) !important;
}

/* 6. Products Showcase */
.sello-u-novedades-section {
    background-color: #f3f4f6 !important;
    border-top: 1px solid #eaeaea !important;
    border-bottom: 1px solid #eaeaea !important;
}

/* 7. Category grid */
.sello-u-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

.sello-u-cat-card {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.sello-u-cat-card:hover {
    border-color: #0F766E !important;
    box-shadow: 0 4px 12px rgba(15,118,110,0.08) !important;
    transform: translateY(-2px) !important;
}

.cat-icon {
    font-size: 32px !important;
    margin-bottom: 12px !important;
}

.sello-u-cat-card h3 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
}

.cat-action {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: color 0.2s ease !important;
}

.sello-u-cat-card:hover .cat-action {
    color: #0F766E !important;
}

/* 8. Commercial CTA Banner */
.sello-u-commercial-cta {
    padding-bottom: 80px !important;
}

.cta-banner {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    border-radius: 16px !important;
    padding: 48px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px !important;
    box-shadow: 0 10px 25px -5px rgba(15,118,110,0.2) !important;
}

.cta-content {
    flex: 1 1 60% !important;
}

.cta-content h2 {
    color: #ffffff !important;
    font-size: 28px !important;
    margin-bottom: 12px !important;
}

.cta-content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #ccfbf1 !important;
    margin: 0 !important;
}

.cta-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex: 0 0 30% !important;
    min-width: 240px !important;
}

.sello-u-btn-cta {
    display: block !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
}

.whatsapp-btn {
    background-color: #25D366 !important;
    color: #ffffff !important;
}

.whatsapp-btn:hover {
    background-color: #1ebe57 !important;
    transform: translateY(-1px) !important;
}

.email-btn {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.email-btn:hover {
    background-color: #ffffff !important;
    color: #0f766e !important;
    transform: translateY(-1px) !important;
}

/* 9. Responsive overrides */
@media screen and (max-width: 1024px) {
    .sello-u-support-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
    
    .sello-u-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
    
    .cta-banner {
        flex-direction: column !important;
        padding: 32px !important;
        text-align: center !important;
    }
    
    .cta-actions {
        width: 100% !important;
    }
}

@media screen and (max-width: 768px) {
    .sello-u-hero-banner {
        padding: 32px 0 !important;
    }

    .sello-u-hero-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 24px !important;
    }

    .sello-u-hero-text {
        text-align: center !important;
    }

    .sello-u-separator {
        margin: 14px auto !important;
    }

    .sello-u-hero-banner h1 {
        font-size: 36px !important;
    }
    
    .sello-u-tagline {
        font-size: 16px !important;
    }
    
    .sello-u-intro {
        font-size: 14px !important;
    }
    
    .sello-u-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 600px) {
    .sello-u-support-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sello-u-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sello-u-cat-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   VARIABLE PRODUCTS & VARIATION SWATCHES CUSTOM STYLING
   ============================================================ */
.caim-sp-variable-form-wrap {
    margin-top: 15px;
    text-align: left;
}

.caim-sp-variable-form-wrap .variations {
    width: 100% !important;
    margin-bottom: 15px !important;
    border: none !important;
}

.caim-sp-variable-form-wrap .variations td {
    padding: 6px 0 !important;
    border: none !important;
    vertical-align: middle !important;
}

.caim-sp-variable-form-wrap .variations td.label {
    width: 30% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
}

.caim-sp-variable-form-wrap .variations td.value {
    width: 70% !important;
}

/* Style Select dropdowns if swatches not active */
.caim-sp-variable-form-wrap select {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    background-color: #fff !important;
}

/* Style variation price/info wrap */
.woocommerce-variation.single_variation {
    margin: 15px 0 !important;
    padding: 12px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    border: 1px solid #f3f4f6 !important;
}

.woocommerce-variation-price .price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0F766E !important;
    display: block !important;
}

/* Style the variation add to cart action row */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

/* Hide or restyle the default quantity in variations form */
.woocommerce-variation-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 60px !important;
    height: 40px !important;
    padding: 0 5px !important;
    text-align: center !important;
    border: 1px solid #eaeaea !important;
    border-radius: 6px !important;
}

/* Premium variations buy button */
.caim-sp-variable-form-wrap button.single_add_to_cart_button.button {
    width: 100% !important;
    background-color: #0F766E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Raleway', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
    line-height: 1 !important;
    height: auto !important;
    box-shadow: 0 4px 12px rgba(15,118,110,0.15) !important;
}

.caim-sp-variable-form-wrap button.single_add_to_cart_button.button:hover {
    background-color: #0D6B63 !important;
}

/* Variation Swatches adjustments (woo-variation-swatches plugin compatibility) */
.wvs-style-button .variable-items-wrapper .variable-item.button-variable-item {
    border-radius: 6px !important;
    border: 1px solid #eaeaea !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    min-width: auto !important;
    height: auto !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
}

.wvs-style-button .variable-items-wrapper .variable-item.button-variable-item.selected,
.wvs-style-button .variable-items-wrapper .variable-item.button-variable-item.selected:hover {
    border-color: #0F766E !important;
    background-color: #f0fdfa !important;
    color: #0F766E !important;
    box-shadow: 0 0 0 1px #0F766E !important;
}

/* Dynamic design for mobile variations form */
@media screen and (max-width: 768px) {
    .caim-sp-variable-form-wrap button.single_add_to_cart_button.button {
        padding: 12px 16px !important;
    }
}

/* ============================================================
   MICROSITIOS SELLO U — Clean Header & No Subheader
   ============================================================ */
body.tax-pa_editorial #Subheader,
body.tax-pa_editorial #SubHeader,
body.tax-pa_editorial .subheader_title,
body.tax-pa_editorial .title_box,
body.tax-pa_editorial #Header_wrapper #Subheader {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.tax-pa_editorial #Header_wrapper {
    background: transparent !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

body.tax-pa_editorial #Content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Micrositios Mobile Tabs & Grid */
body.tax-pa_editorial .caim-ms-tabs-header {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}
body.tax-pa_editorial .caim-ms-tabs-header::-webkit-scrollbar {
    display: none !important;
}
body.tax-pa_editorial .caim-ms-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@media screen and (max-width: 900px) {
    body.tax-pa_editorial .caim-ms-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        margin: 20px auto !important;
        padding: 0 15px !important;
    }
    body.tax-pa_editorial .caim-ms-main {
        order: 1 !important;
        width: 100% !important;
    }
    body.tax-pa_editorial .caim-ms-sidebar {
        order: 2 !important;
        width: 100% !important;
        margin-top: 15px !important;
    }
    body.tax-pa_editorial .caim-books-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    body.tax-pa_editorial .caim-book-cover-wrap {
        height: 185px !important;
        padding: 10px !important;
    }
}


