/*
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.3 !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: 40px !important; /* exactly 2 lines at 15px * 1.3 */
    max-height: 40px !important;
    min-height: 40px !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 {
        font-size: 12px !important;
        height: 34px !important;
        max-height: 34px !important;
        min-height: 34px !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 */
.elementor-18926,
#mfn-header-template,
#mfn-header-template .mfn-builder-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !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 14px !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.3 !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: 36px !important;
    max-height: 36px !important;
    min-height: 36px !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;
}

/* ISBN & Ref */
.caim-sp-ids-row {
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

/* Sinopsis */
.caim-sp-sinopsis-wrapper {
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.caim-sp-sinopsis-title {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.caim-sp-sinopsis-body {
    position: relative;
    overflow: hidden;
}

.caim-sp-sinopsis-body.caim-sinopsis-collapsed {
    max-height: 130px;
}

.caim-sp-sinopsis-inner {
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
}

.caim-sp-sinopsis-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
    pointer-events: none;
}

.caim-sp-sinopsis-toggle {
    background: none;
    border: none;
    color: #0F766E;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- COLUMNA 3: Card de compra y precio --- */
.caim-sp-col-price {
    position: sticky;
    top: 100px;
}

.caim-sp-price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.caim-sp-price-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 6px;
}

.caim-sp-price-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.caim-sp-price-original {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 4px;
}

.caim-sp-price-sale {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-top: 4px;
}

.caim-sp-badge-discount {
    display: inline-block;
    align-self: flex-start;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.caim-sp-qty-label {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px;
}

/* Selector de cantidad */
.caim-sp-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    overflow: hidden;
    max-width: 140px;
    margin-bottom: 20px;
    height: 38px;
}

.caim-sp-qty-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    width: 38px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.caim-sp-qty-input {
    border: none;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    height: 100%;
    padding: 0;
    -moz-appearance: textfield;
}

.caim-sp-qty-input::-webkit-outer-spin-button,
.caim-sp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botón comprar */
.caim-sp-btn-comprar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: #003333 !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background 0.2s;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 51, 51, 0.15);
}

.caim-sp-btn-comprar:hover {
    background: #004d4d !important;
}

.caim-sp-delivery-info {
    font-size: 11.5px;
    color: #475569;
    text-align: center;
    margin-bottom: 20px;
}

/* Trust Icons inside Card */
.caim-sp-trust-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.caim-sp-trust-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 10px;
    color: #64748b;
    line-height: 1.3;
}

.caim-sp-trust-ico {
    font-size: 18px;
    margin-bottom: 4px;
}

.caim-sp-out-of-stock {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

/* --- SECCIÓN OTROS LIBROS SUGERIDOS (CARRUSEL) --- */
.caim-sp-sugeridos {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.caim-sp-sugeridos-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.caim-sp-sugeridos-carousel {
    position: relative;
}

.caim-sp-sugeridos-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.caim-sp-sugeridos-track::-webkit-scrollbar {
    height: 6px;
}

.caim-sp-sugeridos-track::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.caim-sp-sugeridos-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Tarjeta de sugerido */
.caim-sp-sugerido-card {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.caim-sp-sugerido-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.caim-sp-sugerido-img-link {
    display: block;
    margin-bottom: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caim-sp-sugerido-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.caim-sp-sugerido-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.caim-sp-sugerido-badges .caim-sp-badge {
    font-size: 9px;
    padding: 2px 6px;
}

.caim-sp-sugerido-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
    margin-bottom: 4px;
}

.caim-sp-sugerido-name:hover {
    color: #0F766E;
}

.caim-sp-sugerido-author {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caim-sp-sugerido-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.caim-sp-sugerido-badge-off {
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.caim-sp-sugerido-price-old {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.caim-sp-sugerido-price-cur {
    font-size: 14px;
    font-weight: 700;
    color: #003333;
}

/* Flechas de navegación */
.caim-sp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.caim-sp-carousel-arrow:hover {
    background: #f1f5f9;
}

.caim-sp-carousel-prev {
    left: -18px;
}

.caim-sp-carousel-next {
    right: -18px;
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 1024px) {
    .caim-sp-grid {
        grid-template-columns: 240px 1fr;
    }
    
    .caim-sp-col-price {
        grid-column: span 2;
        position: static;
    }

    .caim-sp-price-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

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

    .caim-sp-col-image {
        grid-column: span 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .caim-sp-col-price {
        grid-column: span 1;
    }

    .caim-sp-price-card {
        max-width: 100%;
    }
}


/* ─────────────────────────────────────────────
   21. PREMIUM FOOTER STYLE
   ───────────────────────────────────────────── */
.elementor-location-footer,
.caiman-footer {
    background: #002222 !important; /* Rich deep brand teal */
    color: #e2e8f0 !important;
    font-family: 'Raleway', sans-serif !important;
}

.elementor-location-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.caiman-footer {
    padding: 64px 20px 24px !important;
}

.caiman-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

.caiman-footer h4 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid #0f766e !important;
    padding-bottom: 8px !important;
    display: inline-block !important;
}

.caiman-footer p.footer-description {
    font-family: 'Raleway', sans-serif !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    line-height: 1.7 !important;
    margin: 15px 0 20px !important;
}

.caiman-footer a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    display: block !important;
    margin-bottom: 12px !important;
}

.caiman-footer a:hover {
    color: #f97316 !important; /* Orange accent */
    padding-left: 4px !important; /* Subtle slide effect */
}

.caiman-footer .logo-section .footer-logo-img {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
}

.caiman-footer .footer-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    font-size: 13px !important;
    color: #cbd5e1 !important;
}

.caiman-footer .footer-contact-item i {
    color: #f97316 !important; /* Orange contact icons */
    font-size: 14px !important;
    width: 16px !important;
    text-align: center !important;
}

.caiman-footer .footer-contact-item a {
    display: inline !important;
    margin-bottom: 0 !important;
}

.caiman-footer .footer-contact-item a:hover {
    padding-left: 0 !important;
}

.caiman-footer .footer-social-icons {
    display: flex !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.caiman-footer .footer-social-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 15px !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

.caiman-footer .footer-social-icon:hover {
    background: #f97316 !important; /* Hover to orange */
    color: #ffffff !important;
    border-color: #f97316 !important;
    transform: translateY(-3px) !important;
    padding-left: 0 !important;
}

.caiman-footer .payment-title {
    margin-top: 30px !important;
}

.caiman-footer .footer-payment-icons {
    display: flex !important;
    gap: 8px !important;
    margin-top: 15px !important;
    flex-wrap: wrap !important;
}

.caiman-footer .footer-payment-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.caiman-footer .footer-payment-icon i {
    font-size: 14px !important;
}

.caiman-footer .footer-bottom {
    max-width: 1280px !important;
    margin: 40px auto 0 !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.caiman-footer .footer-bottom p.copyright {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

.caiman-footer .footer-bottom-links a {
    display: inline-block !important;
    margin: 0 10px !important;
    color: #94a3b8 !important;
}

.caiman-footer .footer-bottom-links a:hover {
    color: #f97316 !important;
    padding-left: 0 !important;
}

@media (max-width: 991px) {
    .caiman-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 575px) {
    .caiman-footer .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .caiman-footer .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* ─────────────────────────────────────────────
   18. UNIFIED INNER PAGES DESIGN OVERRIDES
   ───────────────────────────────────────────── */

/* Page Hero Section Layout & Titles */
.page-id-1797 .elementor-element-f037069,
.page-id-112916 .elementor-element-37c473a2,
.page-id-4151 .elementor-element-8648a05,
.page-id-5000 .elementor-element-390df3e {
    padding: 80px 0 !important;
    text-align: center !important;
}

/* Specific Hero Titles */
.page-id-112916 .elementor-element-37c473a2 h2.elementor-heading-title,
.page-id-4151 .elementor-element-8648a05 h2.elementor-heading-title,
.page-id-5000 .elementor-element-390df3e h2.elementor-heading-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 52px !important;
    color: #ffffff !important;
    letter-spacing: 0.05em !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
}

.page-id-1797 .elementor-element-f037069 h2.elementor-heading-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 52px !important;
    color: #002222 !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
}

/* Section Subheadings (Clean styling, no underlines, no old-school hyphens look) */
.page-id-1797 .elementor-heading-title,
.page-id-112916 .elementor-heading-title,
.page-id-4151 .elementor-heading-title,
.page-id-5000 .elementor-heading-title {
    text-decoration: none !important;
}

.page-id-1797 .elementor-element-ee5adae h2.elementor-heading-title,
.page-id-1797 .elementor-element-e9bf8a6 h2.elementor-heading-title,
.page-id-1797 .elementor-element-b43d2de h2.elementor-heading-title,
.page-id-4151 .elementor-element-3b29653 h2.elementor-heading-title {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #835a2c !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}

/* General Typography for Inner Pages */
.page-id-1797 p,
.page-id-112916 p,
.page-id-4151 p,
.page-id-5000 p,
.page-id-1797 li,
.page-id-112916 li,
.page-id-4151 li,
.page-id-5000 li {
    font-family: 'Raleway', sans-serif !important;
    color: #4b5563 !important;
    line-height: 1.75 !important;
    font-size: 15px !important;
}

.page-id-1797 h3,
.page-id-112916 h3,
.page-id-4151 h3,
.page-id-5000 h3 {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    color: #002222 !important;
}

/* Elementor button style unificado (Teal/Gold hover) */
.page-id-112916 .elementor-button,
.page-id-5000 .elementor-button {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    background-color: #0f766e !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 14px 36px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.12) !important;
    border: none !important;
}

.page-id-112916 .elementor-button:hover,
.page-id-5000 .elementor-button:hover {
    background-color: #0d6b63 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.22) !important;
}

/* Image styling for publica-con-nosotros & cursos (Clean layout) */
.page-id-112916 .elementor-image img,
.page-id-5000 .elementor-image img {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    max-width: 100% !important;
    height: auto !important;
    transition: transform 0.3s ease !important;
}

.page-id-112916 .elementor-image img:hover,
.page-id-5000 .elementor-image img:hover {
    transform: scale(1.01) !important;
}

/* Authors section layout refinements (Editorial page) */
.page-id-1797 .elementor-element-236dcd87 {
    padding: 60px 0 !important;
    background-color: #f9f8f4 !important;
    border-radius: 16px !important;
    margin: 40px 0 !important;
}

.page-id-1797 .elementor-element-236dcd87 img {
    border-radius: 50% !important;
    max-width: 160px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border: 4px solid #ffffff !important;
    margin-bottom: 24px !important;
}

.page-id-1797 .elementor-element-236dcd87 h3 {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #002222 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 12px !important;
}

.page-id-1797 .elementor-element-236dcd87 .elementor-button {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    background-color: #835a2c !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 12px 32px !important;
    transition: all 0.3s ease !important;
    margin-top: 16px !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.page-id-1797 .elementor-element-236dcd87 .elementor-button:hover {
    background-color: #694822 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(131, 90, 44, 0.2) !important;
}

/* Complementos Page: Viste Arte cards styling overrides */
.page-id-4151 .woocommerce ul.products li.product {
    border: 1px solid #ebebeb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.page-id-4151 .woocommerce ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #dfdfdf !important;
}

/* Cursos and Catalogos grid alignment & styling */
.page-id-5000 .elementor-container {
    max-width: 1200px !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 */
    .elementor-18926 .caiman-main-bar-section > .elementor-container,
    #mfn-header-template .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;
    }
}
