/* =============================================
   INACI Product Template - Estilos
   ============================================= */

/* Contenedor general */
.inaci-product-info {
    padding: 5px 0;
}

/* ---- Compartir en redes sociales ---- */
.inaci-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.inaci-share-label {
    font-size: 13px;
    color: #333;
    font-weight: 700;
    font-style: italic;
}

.inaci-share-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inaci-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.inaci-social-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.inaci-social-btn:hover {
    opacity: 0.85;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.inaci-fb { background-color: #3b5998; }
.inaci-tw { background-color: #1da1f2; }
.inaci-yt { background-color: #ff0000; }
.inaci-email { background-color: #ff6600; }
.inaci-pin { background-color: #bd081c; }
.inaci-wa-share { background-color: #25d366; }
.inaci-li { background-color: #0077b5; }
.inaci-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.inaci-tk { background-color: #010101; }

/* ---- Modalidad ---- */
.inaci-modalidad {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #e8f4fd;
    border-left: 4px solid #0073aa;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
}

.inaci-modalidad-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.inaci-modalidad strong {
    color: #c41230;
    font-size: 13px;
    text-transform: uppercase;
}

.inaci-modalidad span {
    color: #333;
    font-size: 13px;
}

/* ---- Botones de acción ---- */
.inaci-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    align-items: stretch;
    max-width: 320px;
}

.inaci-btn {
    display: block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* WhatsApp */
.inaci-btn-whatsapp {
    background: #25d366;
    color: #fff !important;
}

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

/* Inscripción */
.inaci-btn-inscripcion {
    background: #0073aa;
    color: #fff !important;
}

.inaci-btn-inscripcion:hover {
    background: #005a87;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Brochure */
.inaci-btn-brochure {
    background: #c41230;
    color: #fff !important;
}

.inaci-btn-brochure:hover {
    background: #8b0000;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Portal */
.inaci-btn-portal {
    background: #e8a317;
    color: #fff !important;
}

.inaci-btn-portal:hover {
    background: #c48a10;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Beca */
.inaci-btn-beca {
    background: #6a1b9a;
    color: #fff !important;
}

.inaci-btn-beca:hover {
    background: #4a148c;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ---- Info adicional ---- */
.inaci-extra-info {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.inaci-info-item {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.inaci-info-item:last-child {
    margin-bottom: 0;
}

.inaci-info-item strong {
    color: #ffd54f;
    font-size: 13px;
}

.inaci-remuneracion {
    font-size: 18px !important;
    font-weight: 800;
    color: #ffd54f;
    letter-spacing: 1px;
}

/* ---- Indexaciones ---- */
.inaci-indexaciones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    justify-content: center;
}

.inaci-index-badge {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* ---- Logo Financiador ---- */
.inaci-logo-financiador {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.inaci-logo-financiador img {
    max-height: 45px;
    width: auto;
}

.inaci-logo-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- INVERSIÓN ---- */
.inaci-inversion {
    background: none !important;
    border: none !important;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: none !important;
}

.inaci-inversion-titulo {
    background: none !important;
    color: #1a237e !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px;
    padding: 0 0 8px 0 !important;
    margin: 0 0 2px 0 !important;
    text-transform: uppercase;
    border-bottom: 3px solid #c41230 !important;
    display: inline-block;
}

.inaci-inversion-body {
    padding: 0 !important;
    background: none !important;
    margin-top: 0;
}

.inaci-inversion-tabla {
    width: 100%;
    border-collapse: collapse;
}

.inaci-inversion-tabla tr {
    border-bottom: 1px solid #e8e8e8;
}

.inaci-inversion-tabla tr:last-child {
    border-bottom: none;
}

.inaci-inversion-tabla td {
    padding: 9px 4px !important;
    font-size: 14px;
    vertical-align: middle;
    background: none !important;
}

.inaci-inv-label {
    white-space: nowrap;
    padding-right: 10px !important;
    color: #444 !important;
    font-weight: 500;
    width: 40%;
}

.inaci-inv-sep {
    width: 15px;
    text-align: center;
    color: #aaa !important;
    font-weight: 300;
}

.inaci-inv-value {
    color: #1a1a1a !important;
    font-weight: 600;
}

/* Totales */
.inaci-inv-total td {
    padding-top: 10px !important;
}

.inaci-inv-total .inaci-inv-label strong {
    color: #c41230 !important;
    font-size: 14px;
    font-weight: 700;
}

.inaci-inv-total .inaci-inv-value strong {
    color: #c41230 !important;
    font-size: 15px;
    font-weight: 800;
}

.inaci-inv-total:first-of-type td {
    border-top: 2px solid #1a237e;
    padding-top: 10px !important;
}

/* Incluye */
.inaci-inv-incluye {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
    color: #2e7d32 !important;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none !important;
}

/* =============================================
   LAYOUT PRODUCTO ÚNICO - Imagen izquierda, Info derecha
   ============================================= */

/* Contenedor principal del producto */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Imagen del producto (columna izquierda) */
.single-product div.product .woocommerce-product-gallery {
    width: 45% !important;
    float: none !important;
    flex-shrink: 0;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    max-height: 500px;
    overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Thumbnails de galería debajo de la imagen principal */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 70px;
    flex-shrink: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #0073aa;
}

/* Summary / Info (columna derecha) */
.single-product div.product .summary {
    width: 50% !important;
    float: none !important;
    flex: 1;
    min-width: 0;
    padding-left: 0;
}

/* Título del producto */
.single-product div.product .product_title {
    font-size: 20px;
    font-weight: 800;
    color: #1a237e;
    line-height: 1.3;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Ocultar tabs y related products */
.single-product div.product .woocommerce-tabs,
.single-product .related.products,
.single-product .up-sells {
    display: none !important;
}

/* Limpiar floats */
.single-product div.product::after {
    content: "";
    display: table;
    clear: both;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
    }
    
    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        width: 100% !important;
    }
    
    .inaci-share {
        align-items: flex-start;
    }
    
    .inaci-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .inaci-action-buttons {
        max-width: 100%;
    }
    
    .inaci-extra-info {
        padding: 12px;
    }
    
    .inaci-remuneracion {
        font-size: 15px !important;
    }
    
    .inaci-logo-financiador {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .inaci-share-icons {
        flex-wrap: wrap;
    }
    
    .inaci-social-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .inaci-indexaciones {
        justify-content: flex-start;
    }
}

/* ---- TEMARIO / DESCRIPCIÓN DEL PROGRAMA ---- */
.inaci-temario {
    clear: both;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.inaci-temario-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inaci-temario-header i {
    font-size: 18px;
    font-style: normal;
}

.inaci-temario-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inaci-temario-body {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.inaci-temario-body p {
    margin-bottom: 12px;
}

.inaci-temario-body p:last-child {
    margin-bottom: 0;
}

.inaci-temario-body h1,
.inaci-temario-body h2,
.inaci-temario-body h3,
.inaci-temario-body h4 {
    color: #1a237e;
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.inaci-temario-body h2 { font-size: 18px; }
.inaci-temario-body h3 { font-size: 16px; }
.inaci-temario-body h4 { font-size: 15px; }

.inaci-temario-body ul,
.inaci-temario-body ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.inaci-temario-body li {
    margin-bottom: 6px;
    position: relative;
}

.inaci-temario-body ul li::marker {
    color: #c41230;
}

.inaci-temario-body strong {
    color: #1a237e;
}

.inaci-temario-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.inaci-temario-body table th,
.inaci-temario-body table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 13px;
}

.inaci-temario-body table th {
    background: #1a237e;
    color: #fff;
    font-weight: 600;
}

.inaci-temario-body table tr:nth-child(even) {
    background: #f5f7ff;
}

@media (max-width: 768px) {
    .inaci-temario-body {
        padding: 15px 16px;
        font-size: 13px;
    }
    
    .inaci-temario-header {
        padding: 12px 16px;
    }
}

/* =============================================
   OVERRIDE: WooCommerce Loop & Elementor Products Widget
   Para que se vea como las cards con overlay y botón VER MÁS
   ============================================= */

/* Contenedor de productos WooCommerce estándar */
ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product,
.elementor-widget-wc-products ul.products li.product {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #fff;
    list-style: none;
}

ul.products li.product:hover,
.elementor-widget-woocommerce-products ul.products li.product:hover,
.elementor-widget-wc-products ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Imagen del producto en el loop */
ul.products li.product a img,
.elementor-widget-woocommerce-products ul.products li.product a img,
.elementor-widget-wc-products ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

ul.products li.product:hover a img {
    transform: scale(1.05);
}

/* Link principal del producto - overlay */
ul.products li.product > a,
ul.products li.product a.woocommerce-LoopProduct-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

ul.products li.product > a::after,
ul.products li.product a.woocommerce-LoopProduct-link::after {
    content: "VER MÁS";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #c41230;
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(196, 18, 48, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
}

ul.products li.product:hover > a::after,
ul.products li.product:hover a.woocommerce-LoopProduct-link::after {
    background: #a00e28;
    box-shadow: 0 6px 20px rgba(196, 18, 48, 0.55);
    transform: translateX(-50%) scale(1.05);
}

/* Gradient overlay sobre la imagen */
ul.products li.product > a::before,
ul.products li.product a.woocommerce-LoopProduct-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 5;
    border-radius: 12px;
    pointer-events: none;
    transition: background 0.3s ease;
}

ul.products li.product:hover > a::before,
ul.products li.product:hover a.woocommerce-LoopProduct-link::before {
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}

/* OCULTAR: título, precio, rating, botón "leer más" / "añadir al carrito" del loop */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-category__title,
ul.products li.product .price,
ul.products li.product .star-rating,
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
ul.products li.product .product_type_simple,
ul.products li.product .woocommerce-loop-product__link + a,
ul.products li.product .attachment-woocommerce_thumbnail + .woocommerce-loop-product__title,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .star-rating {
    display: none !important;
}

/* Asegurar que no haya padding extra */
.woocommerce ul.products li.product {
    padding: 0 !important;
    text-align: center;
}

/* Elementor widget específico - quitar padding inner */
.elementor-widget-woocommerce-products .products,
.elementor-widget-wc-products .products {
    gap: 20px;
}

/* =============================================
   GRID DE PRODUCTOS (SHORTCODE)
   ============================================= */

/* Título del grid */
.inaci-grid-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #1a237e;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.inaci-grid-titulo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #c41230;
    border-radius: 2px;
}

/* Grid container */
.inaci-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    padding: 0;
}

.inaci-grid-cols-1 { grid-template-columns: 1fr; }
.inaci-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.inaci-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.inaci-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.inaci-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.inaci-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Card */
.inaci-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.inaci-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.inaci-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* Imagen */
.inaci-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.inaci-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.inaci-card:hover .inaci-card-img-wrap img {
    transform: scale(1.05);
}

/* Overlay con botón */
.inaci-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
    opacity: 1;
    transition: background 0.3s ease;
}

.inaci-card:hover .inaci-card-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}

/* Botón VER MÁS */
.inaci-card-btn {
    display: inline-block;
    background: #c41230;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(196, 18, 48, 0.4);
    transition: all 0.3s ease;
}

.inaci-card:hover .inaci-card-btn {
    background: #a00e28;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 18, 48, 0.55);
}

/* No products */
.inaci-no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* =============================================
   TABS DE CATEGORÍAS
   ============================================= */

.inaci-tabs-container {
    margin: 0 auto;
}

.inaci-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 0;
}

.inaci-tab {
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.inaci-tab:hover {
    color: #1a237e;
}

.inaci-tab.active {
    color: #c41230;
    border-bottom-color: #c41230;
}

.inaci-tab-panel {
    display: none;
}

.inaci-tab-panel.active {
    display: block;
    animation: inaciFadeIn 0.4s ease;
}

@keyframes inaciFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BANNER SLIDER (1 imagen a la vez)
   ============================================= */

.inaci-banner {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 12px;
}

.inaci-banner-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.inaci-banner-track {
    position: relative;
    width: 100%;
}

.inaci-banner-slide {
    display: none;
    width: 100%;
    animation: inaciFadeIn 0.6s ease;
}

.inaci-banner-slide.active {
    display: block;
}

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

.inaci-banner-slide a {
    display: block;
    line-height: 0;
}

.inaci-banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Flechas banner */
.inaci-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #1a237e;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.inaci-banner-arrow:hover {
    background: #1a237e;
    color: #fff;
}

.inaci-banner-prev { left: 12px; }
.inaci-banner-next { right: 12px; }

/* Dots / indicadores */
.inaci-banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.inaci-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.inaci-banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.inaci-banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive banner */
@media (max-width: 768px) {
    .inaci-banner-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .inaci-banner-prev { left: 8px; }
    .inaci-banner-next { right: 8px; }
    
    .inaci-banner-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .inaci-banner-dot {
        width: 8px;
        height: 8px;
    }
}

/* Banner slide: imagen con botón Ver más centrado encima */
.inaci-banner-slide a {
    display: block !important;
    line-height: 0 !important;
    position: relative !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.inaci-banner-slide a::before {
    content: none !important;
    display: none !important;
}

.inaci-banner-slide a::after {
    content: "Ver más" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(196, 18, 48, 0.9) !important;
    color: #fff !important;
    padding: 12px 35px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.inaci-banner-slide a:hover::after {
    background: rgba(196, 18, 48, 1) !important;
    transform: translate(-50%, -50%) scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}

.inaci-banner-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px !important;
}

/* =============================================
   SLIDER / CARRUSEL DE PRODUCTOS
   ============================================= */

.inaci-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.inaci-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
}

.inaci-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.inaci-slider-item {
    flex: 0 0 calc(100% / var(--inaci-visible));
    min-width: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.inaci-slider-item .inaci-card {
    margin: 0;
}

/* Flechas */
.inaci-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1a237e;
    background: #fff;
    color: #1a237e;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.inaci-slider-arrow:hover {
    background: #1a237e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.inaci-slider-prev {
    left: 0;
}

.inaci-slider-next {
    right: 0;
}

/* Responsive slider */
@media (max-width: 1024px) {
    .inaci-slider-container {
        padding: 0 40px;
    }
    
    .inaci-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .inaci-slider-container {
        padding: 0 35px;
    }
    
    .inaci-slider-item {
        flex: 0 0 50%;
    }
    
    .inaci-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .inaci-slider-container {
        padding: 0 30px;
    }
    
    .inaci-slider-item {
        flex: 0 0 100%;
    }
}

/* =============================================
   PAGINACIÓN
   ============================================= */

.inaci-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

/* Flechas « ‹ › » */
.inaci-pag-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    color: #1a237e !important;
    border: 2px solid #ddd;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.inaci-pag-arrow:hover {
    background: #1a237e;
    color: #fff !important;
    border-color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.inaci-pag-arrow.disabled {
    background: #f5f5f5;
    color: #ccc !important;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

/* Números de página */
.inaci-pag-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #333 !important;
    border: 2px solid #ddd;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inaci-pag-num:hover {
    background: #e8eaf6;
    border-color: #1a237e;
    color: #1a237e !important;
    transform: translateY(-2px);
}

.inaci-pag-num.active {
    background: #c41230;
    color: #fff !important;
    border-color: #c41230;
    cursor: default;
    box-shadow: 0 4px 12px rgba(196, 18, 48, 0.35);
}

.inaci-pag-num.active:hover {
    transform: none;
}

/* Puntos suspensivos */
.inaci-pag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 42px;
    color: #999;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Info: Página X de Y */
.inaci-pag-meta {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.inaci-pag-meta span {
    color: #999;
    font-weight: 400;
}

/* =============================================
   GRID RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .inaci-grid-cols-4,
    .inaci-grid-cols-5,
    .inaci-grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .inaci-grid-cols-3,
    .inaci-grid-cols-4,
    .inaci-grid-cols-5,
    .inaci-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inaci-grid {
        gap: 12px;
    }
    
    .inaci-card-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .inaci-tabs-nav {
        gap: 5px;
    }
    
    .inaci-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .inaci-grid-cols-2,
    .inaci-grid-cols-3,
    .inaci-grid-cols-4,
    .inaci-grid-cols-5,
    .inaci-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inaci-card-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .inaci-card-overlay {
        padding-bottom: 15px;
    }
    
    .inaci-grid-titulo {
        font-size: 22px;
    }
    
    .inaci-pag-arrow,
    .inaci-pag-num {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .inaci-pag-arrow {
        font-size: 17px;
    }
}

/* =============================================
   CARRITO WOOCOMMERCE - BOTONES INACI
   ============================================= */

/* BASE: botón carrito */
.inaci-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #c41230;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(196, 18, 48, 0.35);
}

.inaci-cart-btn svg {
    flex-shrink: 0;
}

.inaci-cart-btn:hover:not(:disabled) {
    background: #a00e28;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 18, 48, 0.5);
    color: #fff !important;
}

.inaci-cart-btn:disabled {
    background: #ccc;
    color: #888 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Estado: agregado al carrito → verde */
.inaci-cart-btn.inaci-cart-added {
    background: #2e7d32 !important;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.4);
    color: #fff !important;
}
.inaci-cart-btn.inaci-cart-added:hover {
    background: #1b5e20 !important;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.5);
}

/* TAMAÑO FULL: página de producto único */
.inaci-cart-btn-full {
    width: 100%;
    padding: 11px 20px;
    font-size: 14px;
    border-radius: 6px;
}

/* TAMAÑO SM: cards de archivo/grid */
.inaci-cart-btn-sm {
    width: 100%;
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    border-top: 2px solid rgba(196, 18, 48, 0.15);
}
.inaci-cart-btn-sm:hover:not(:disabled) {
    transform: none;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

/* El card necesita overflow visible para el botón debajo */
.inaci-card {
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

.inaci-card .inaci-card-link {
    flex: 1;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: block;
}

/* Si el botón SM está dentro del card, redondear esquinas solo abajo */
.inaci-card > .inaci-cart-btn-sm {
    margin-top: 0;
    flex-shrink: 0;
}


/* =============================================
   CARRITO WOOCOMMERCE - BOTONES INACI v1.2
   ============================================= */

/* BASE: botón carrito */
.inaci-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #c41230;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(196, 18, 48, 0.35);
}
.inaci-cart-btn svg { flex-shrink: 0; }
.inaci-cart-btn:hover:not(:disabled) {
    background: #a00e28;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 18, 48, 0.5);
    color: #fff !important;
}
.inaci-cart-btn:disabled {
    background: #ccc; color: #888 !important;
    cursor: not-allowed; box-shadow: none; transform: none;
}
.inaci-cart-btn.inaci-cart-added {
    background: #2e7d32 !important;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.4);
    color: #fff !important;
}
.inaci-cart-btn.inaci-cart-added:hover {
    background: #1b5e20 !important;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.5);
}
.inaci-cart-btn-full {
    width: 100%; padding: 11px 20px; font-size: 14px; border-radius: 6px;
}
.inaci-cart-btn-sm {
    width: 100%; padding: 9px 14px; font-size: 12px;
    border-radius: 0 0 12px 12px; box-shadow: none;
    border-top: 2px solid rgba(196,18,48,0.15);
}
.inaci-cart-btn-sm:hover:not(:disabled) { transform: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12); }

/* Card fix para botón */
.inaci-card { overflow: visible !important; display: flex; flex-direction: column; }
.inaci-card .inaci-card-link { flex: 1; border-radius: 12px 12px 0 0; overflow: hidden; display: block; }
.inaci-card > .inaci-cart-btn-sm { flex-shrink: 0; margin-top: 0; }

/* Spinner animation */
@keyframes inaci-spin { to { transform: rotate(360deg); } }

/* =============================================
   MODAL DEL CARRITO
   ============================================= */

.inaci-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
    backdrop-filter: blur(2px);
}
.inaci-cart-overlay.active { display: block; animation: inaciFadeIn 0.25s ease; }

.inaci-cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 95vw;
    height: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.inaci-cart-modal.active {
    display: flex;
    right: 0;
}

/* Header del modal */
.inaci-cm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #c41230, #a00e28);
    color: #fff;
    flex-shrink: 0;
}
.inaci-cm-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none !important;
}
.inaci-cm-header svg { opacity: 0.9; }
.inaci-cm-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.inaci-cm-close:hover { background: rgba(255,255,255,0.3); }

/* Body del modal */
.inaci-cm-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
}

/* Loading */
.inaci-cm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 50px 20px;
    color: #888;
    font-size: 14px;
}
.inaci-cm-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #c41230;
    border-radius: 50%;
    animation: inaci-spin 0.8s linear infinite;
}
.inaci-cm-loading-overlay {
    opacity: 0.5;
    pointer-events: none;
}

/* Carrito vacío */
.inaci-cm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 50px 20px;
    color: #aaa;
    text-align: center;
}
.inaci-cm-empty p { margin: 0; font-size: 16px; font-weight: 600; color: #888; }
.inaci-cm-empty small { font-size: 13px; color: #bbb; }

/* Lista de ítems */
.inaci-cm-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.inaci-cm-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #efefef;
    position: relative;
    transition: border-color 0.2s;
}
.inaci-cm-item:hover { border-color: #e0e0e0; }

.inaci-cm-item-img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.inaci-cm-item-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 5px;
}
.inaci-cm-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a237e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inaci-cm-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #c41230;
}

/* Qty controls */
.inaci-cm-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.inaci-cm-qty-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: #444;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}
.inaci-cm-qty-btn:hover { border-color: #c41230; color: #c41230; background: #fff5f5; }
.inaci-cm-qty-val {
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: #333;
}

/* Botón eliminar */
.inaci-cm-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: none;
    background: #ffebee;
    color: #c41230;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}
.inaci-cm-remove:hover { background: #c41230; color: #fff; }

/* Footer del modal */
.inaci-cm-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 2px solid #f0f0f0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.inaci-cm-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
}
.inaci-cm-subtotal span { font-weight: 500; }
.inaci-cm-subtotal strong { font-size: 18px; color: #1a237e; font-weight: 800; }

.inaci-cm-checkout-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #c41230;
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(196, 18, 48, 0.35);
    box-sizing: border-box;
}
.inaci-cm-checkout-btn:hover {
    background: #a00e28;
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(196, 18, 48, 0.5);
}

.inaci-cm-continue-btn {
    background: none;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}
.inaci-cm-continue-btn:hover { border-color: #1a237e; color: #1a237e; background: #f5f7ff; }

/* Bloquear scroll de body cuando modal abierto */
body.inaci-modal-open { overflow: hidden; }

@media (max-width: 480px) {
    .inaci-cart-modal { width: 100%; }
    .inaci-cart-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}
