/**
 * FICHA DE PRODUCTO ANDES ORGANICS - PROPUESTA 1 (PREMIUM PRO)
 * Scope: .andes-product-pro
 */

:root {
  --andes-green-light: #81aa58;
  --andes-green: #65893b;
  --andes-green-dark: #3e7220;
}


.andes-product-pro {
    max-width: 1320px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    color: #2d3436;
    background-color: #fdfdfd;
}

/* 1. HERO SECTION */
.andes-product-pro .andes-product-hero {
    display: grid;
    grid-template-columns: 48% 52%; /* Ajuste de balance: Galería un poco más pequeña */
    gap: 60px; /* Mayor separación entre columnas */
    margin-bottom: 80px;
    align-items: flex-start; /* FIX: Alineación superior para evitar saltos con el Ver Más */
}

.andes-product-pro .andes-product-gallery-card {
    background: #fff;
    border: none !important; /* FIX: Eliminar cualquier borde gris */
    border-radius: 22px;
    padding: 0 !important; /* FIX: Reducir padding al mínimo para agrandar imagen */
    box-shadow: 0 8px 30px rgba(0,0,0,0.04) !important; /* Sombra sutil premium */
    position: sticky;
    top: 40px;
    overflow: hidden; /* Asegura que la imagen respete el border-radius */
}

.andes-product-pro .andes-product-gallery-card img {
    border-radius: 0; /* Quitamos el radio interno si el contenedor ya tiene */
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border: none !important; /* Asegurar que la imagen no traiga borde */
}

/* Related products and cards cleanup */
.andes-product-pro .andes-related-card,
.andes-product-pro .andes-product-spec-card,
.andes-product-pro .andes-product-tech-table-wrapper {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    background: #fff !important;
}

.andes-product-pro .andes-related-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
}

/* FIX: Quitar bordes y sombras feas de los thumbnails de WooCommerce */
.andes-product-pro .woocommerce-product-gallery .flex-control-thumbs li {
    padding: 0 !important;
    margin: 0 !important;
}
.andes-product-pro .woocommerce-product-gallery .flex-control-thumbs li img {
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    padding: 3px !important;
    transition: all 0.25s ease !important;
    background: #fff !important;
    box-shadow: none !important;
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
}

.andes-product-pro .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.andes-product-pro .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    border: 2px solid #65893b !important;
    border-radius: 8px !important;
    background: #fff !important;
}

.andes-product-pro .andes-product-summary-card {
    padding: 0 10px;
}

.andes-product-pro .andes-category-badge {
    margin-bottom: 20px;
}

.andes-product-pro .andes-product-badge {
    display: inline-block;
    background: rgba(129, 170, 88, 0.1) !important;
    color: #65893b !important;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.andes-product-pro .andes-product-title {
    font-size: 42px !important; 
    font-weight: 700 !important;
    color: #1a1a1a;
    line-height: 1.12 !important;
    margin-bottom: 20px;
    letter-spacing: -0.015em !important;
}

.andes-product-pro .andes-product-price {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #65893b !important;
    margin-bottom: 30px;
    display: block;
}

.andes-product-pro .andes-product-short-val {
    font-size: 18px !important;
    color: #4b4b4b !important;
    margin-bottom: 35px;
    line-height: 1.65 !important;
    max-width: 95%;
}

.andes-product-pro .andes-product-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.andes-product-pro .andes-product-bullets li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.andes-product-pro .andes-product-bullets li i {
    color: #388e3c;
    font-size: 20px;
}

.andes-product-pro .andes-product-trust-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.andes-product-pro .trust-mini-card {
    background: #fff;
    border: 1px solid #edf2f7;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.andes-product-pro .trust-mini-card:hover {
    transform: translateY(-2px);
}

.andes-product-pro .trust-mini-card i {
    font-size: 28px;
    color: #388e3c;
}

.andes-product-pro .trust-mini-card span {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.2;
}

.andes-product-pro .trust-mini-card small {
    display: block;
    font-weight: 400;
    color: #777;
    margin-top: 2px;
}

/* CTAS / BOTONES */
.andes-product-pro .andes-product-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.andes-product-pro .andes-primary-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.andes-product-pro .andes-product-primary-cta,
.andes-product-pro .andes-product-ecommerce-cta,
.andes-product-pro .single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 20px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    height: 58px !important; /* Alto consistente */
    line-height: 1.2 !important;
    margin: 0 !important; /* Reset margin */
    width: 100% !important;
    border: none !important;
}

/* WhatsApp */
.andes-product-pro .andes-product-primary-cta {
    background: #25d366 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2) !important;
}
.andes-product-pro .andes-product-primary-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.3) !important;
}

/* Add to Cart / Comprar */
.andes-product-pro .andes-product-ecommerce-cta,
.andes-product-pro .single_add_to_cart_button {
    background: #fff !important;
    color: #388e3c !important;
    border: 2px solid #388e3c !important;
}
.andes-product-pro .andes-product-ecommerce-cta:hover,
.andes-product-pro .single_add_to_cart_button:hover {
    background: #f1f8e9 !important;
    transform: translateY(-2px) !important;
}

/* Fix para el form de WooCommerce */
.andes-product-pro form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
}
.andes-product-pro form.cart .quantity {
    display: none !important;
}

/* ─── Suprimir popups específicos de añadir al carrito sin afectar el cart drawer ─── */
.single-product .added_to_cart.wc-forward,
.single-product a.added_to_cart,
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .porto-added-to-cart-popup,
.single-product .popup-added-to-cart,
.single-product .success-message-container {
    display: none !important;
}


/* ─── Estados visuales botón Añadir al carrito (type=button, AJAX manual) ─── */
.andes-product-ecommerce-cta[disabled],
.andes-add-cart-btn[disabled] {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
.andes-add-cart-btn.andes-added {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #fff !important;
}

/* Fila Secundaria (Ficha Técnica) */
.andes-product-pro .andes-product-secondary-cta {
    background: #fff;
    color: #555 !important;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.andes-product-pro .andes-product-secondary-cta:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .andes-product-pro .andes-primary-ctas {
        grid-template-columns: 1fr;
    }
}

/* 2. SPEC STRIP */
.andes-product-pro .andes-product-spec-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    padding: 0 10px;
}

.andes-product-pro .andes-product-spec-card {
    background: #fff;
    border: none !important; /* FIX: Quitar bordes grises */
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.andes-product-pro .andes-product-spec-card:hover {
    border-color: #388e3c;
    box-shadow: 0 10px 30px rgba(56, 142, 60, 0.08);
    transform: translateY(-5px);
}

.andes-product-pro .andes-product-spec-card i {
    display: block;
    font-size: 30px;
    color: #388e3c;
    margin-bottom: 15px;
}

.andes-product-pro .andes-product-spec-card .spec-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.andes-product-pro .andes-product-spec-card .spec-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* 3. APPLICATIONS */
.andes-product-pro .andes-product-applications {
    background: #fff;
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 80px;
    border: none !important; /* FIX: Quitar bordes grises */
    box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important;
}

.andes-product-pro .andes-product-applications h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.andes-product-pro .andes-apps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.andes-product-pro .andes-product-app-card {
    text-align: center;
    transition: all 0.3s ease;
}

.andes-product-pro .andes-product-app-card .app-icon {
    width: 80px;
    height: 80px;
    background: #f1f8e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #388e3c;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(56, 142, 60, 0.1);
}

.andes-product-pro .andes-product-app-card:hover .app-icon {
    background: #388e3c;
    color: #fff;
    transform: scale(1.15) rotate(5deg);
}

.andes-product-pro .andes-product-app-card span {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    line-height: 1.3;
    display: block;
}

/* 4. DETAIL GRID (DESKTOP: 56% specs | 44% descripcion) */
.andes-product-pro .andes-product-detail-grid {
    display: grid !important;
    grid-template-columns: 56% 44% !important;
    gap: 0 !important;
    margin-bottom: 80px !important;
    align-items: stretch !important;  /* permite a la columna completar su borde lateral */
}

/* VER MÁS / VER MENOS — SISTEMA SIMPLE */

/* Hero: base */
.andes-hero-description {
    position: relative;
}
.andes-hero-description-content {
    line-height: 1.55;
}
.andes-hero-description-content > *:last-child {
    margin-bottom: 0 !important;
}
.andes-hero-description.is-collapsed {
    overflow: hidden;
}
.andes-hero-description.is-collapsed .andes-hero-description-content > p,
.andes-hero-description.is-collapsed .andes-hero-description-content > div,
.andes-hero-description.is-collapsed .andes-hero-description-content > span {
    display: -webkit-box !important;
    overflow: hidden;
    max-height: calc(1.55em * 3);
    margin: 0 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.andes-hero-description.is-expanded .andes-hero-description-content {
    display: block;
    max-height: none;
}
.andes-hero-description.is-expanded .andes-hero-description-content > p,
.andes-hero-description.is-expanded .andes-hero-description-content > div,
.andes-hero-description.is-expanded .andes-hero-description-content > span {
    display: block !important;
    max-height: none !important;
}

/* Descripción producto: colapsada por defecto vía CSS */
.andes-product-description-body {
    position: relative;
    overflow: hidden;
    max-height: 360px;
    line-height: 1.7;
    /* NO transition en max-height — usamos clases */
}

/* Estado expandido */
.andes-product-description-body.is-expanded {
    max-height: none !important;
    overflow: visible !important;
}

/* Fade inferior cuando está colapsada */
.andes-product-description-body:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    z-index: 1;
}
.andes-product-description-body.is-expanded::after {
    display: none;
}

/* ==========================================================================
   Eliminación de Bordes Grises en Imágenes de Producto (Global/Controlado)
   ========================================================================== */

/* Galería principal y miniaturas */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image img,
.andes-product-gallery img,
.product-images img,
.product-thumbnails img,
.woocommerce-product-gallery__wrapper .flex-viewport {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Listados, catálogo, recomendador y relacionados */
.product-image,
.porto-product-image,
.product-inner img,
.andes-related-product-card,
.andes-related-product-card img,
.andes-product-card,
.andes-product-card img,
.products .product img,
.andes-portable-media img,
ul.products li.product .product-image {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Opcional: si la card misma tiene borde gris y queremos que sea blanco/invisible */
.products .product,
.andes-related-product-card,
.product-inner {
    border-color: transparent !important;
    /* Si necesitan sombra muy sutil en vez de borde duro: */
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

/* Botón toggle — siempre a la izquierda, justo después del texto */
.andes-hero-description-toggle,
.andes-product-description-toggle {
    display: none; /* JS lo muestra */
    background: transparent !important;
    border: none !important;
    color: #388e3c !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    padding: 0 !important;
    margin-top: 14px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    text-transform: none !important;
    text-align: left !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
    /* Prohibidos: margin-top:auto / align-self:center / margin:auto */
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
}
.andes-hero-description-toggle:hover,
.andes-product-description-toggle:hover {
    color: #1a6b45 !important;
}
.andes-hero-description-toggle:focus,
.andes-hero-description-toggle:focus-visible,
.andes-product-description-toggle:focus,
.andes-product-description-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Fix for Summary Card overflow */
.andes-product-pro .andes-product-summary-card {
    overflow: visible !important;
}

.andes-product-pro .andes-product-short-val {
    overflow: visible !important;
    margin-bottom: 15px !important;
}

.andes-product-pro .andes-product-detail-grid h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    color: #1a1a1a !important;
    border-bottom: 3px solid #f1f8e9 !important;
    display: inline-block !important;
    padding-bottom: 8px !important;
}

.andes-product-pro .andes-product-description {
    background: transparent !important;
    padding: 0 0 0 50px !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 1px solid #f0f0f0 !important;
    box-shadow: none !important;
    color: #444 !important;
    font-size: 16px !important;
    /* NO flex, NO height:100% — el botón debe fluir naturalmente debajo del texto */
    display: block !important;
    height: auto !important;
}

.andes-product-pro .andes-product-description p {
    margin-bottom: 20px !important;
}

.andes-product-pro .andes-product-tech-table-wrapper {
    background: transparent !important;
    padding: 0 50px 0 0 !important; /* Padding derecho ahora que está a la izquierda */
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: sticky !important;
    top: 120px !important;
    z-index: 5 !important;
    align-self: start !important; /* necesario para que sticky funcione con stretch */
}

.andes-product-pro .andes-product-tech-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.andes-product-pro .andes-product-tech-table tr th,
.andes-product-pro .andes-product-tech-table tr td {
    border-bottom: 1px solid #f0f0f0 !important;
}

.andes-product-pro .andes-product-tech-table tr:last-child th,
.andes-product-pro .andes-product-tech-table tr:last-child td {
    border-bottom: none !important;
}

.andes-product-pro .andes-product-tech-table th {
    text-align: left !important;
    padding: 14px 20px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    width: 1% !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
    border-right: 1px solid #f0f0f0 !important;
    background: #fcfcfc !important;
}

.andes-product-pro .andes-product-tech-table td {
    padding: 14px 20px !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

/* 5. SUPPORT BAND */
.andes-product-pro .andes-product-support-band {
    background: #f1f8e9;
    border-radius: 22px;
    padding: 40px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.andes-product-pro .support-main-icon {
    font-size: 60px;
    color: #388e3c;
}

.andes-product-pro .support-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.andes-product-pro .support-content p {
    margin: 0 0 20px 0;
    color: #444;
    line-height: 1.6;
}

.andes-product-pro .support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.andes-product-pro .support-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.andes-product-pro .support-item i {
    color: #388e3c;
}

/* 6. FINAL CTA */
.andes-product-pro .andes-product-final-cta {
    background: #388e3c;
    border-radius: 22px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.andes-product-pro .andes-product-final-cta h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.andes-product-pro .andes-product-final-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.andes-product-pro .andes-product-final-cta .btn-final-wa {
    background: #fff;
    color: #388e3c !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.andes-product-pro .andes-product-final-cta .btn-final-wa:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

/* 7. RELATED PREMIUM */
.andes-product-pro .andes-product-related-pro {
    background: #fff;
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 80px;
    border: none !important; /* FIX: Quitar bordes grises */
    box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important;
}

.andes-product-pro .andes-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
    border-bottom: 2px solid #f1f8e9;
    padding-bottom: 20px;
}

.andes-product-pro .andes-related-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.andes-product-pro .andes-related-header p {
    margin: 0;
    color: #777;
    font-size: 16px;
}

.andes-product-pro .btn-view-all {
    color: #388e3c;
    font-weight: 700;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.andes-product-pro .btn-view-all:hover {
    gap: 12px;
}

.andes-product-pro .andes-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.andes-product-pro .andes-related-card {
    background: #fff;
    border: none !important; /* FIX: Quitar bordes grises */
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02) !important;
}

.andes-product-pro .andes-related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #388e3c;
}

.andes-product-pro .andes-related-image {
    background: #fdfdfd;
    padding: 20px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f8f8f8;
}

.andes-product-pro .andes-related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.andes-product-pro .andes-related-card:hover .andes-related-image img {
    transform: scale(1.05);
}

.andes-product-pro .andes-related-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.andes-product-pro .andes-related-category {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: block;
}

.andes-product-pro .andes-related-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.andes-product-pro .andes-related-title a {
    text-decoration: none !important;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.andes-product-pro .andes-related-card:hover .andes-related-title a {
    color: #388e3c;
}

.andes-product-pro .andes-related-price {
    font-size: 18px;
    font-weight: 800;
    color: #388e3c;
    margin-bottom: 20px;
}

.andes-product-pro .andes-related-link {
    font-size: 14px;
    font-weight: 700;
    color: #388e3c;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.andes-product-pro .andes-related-link i {
    transition: transform 0.3s ease;
}

.andes-product-pro .andes-related-card:hover .andes-related-link i {
    transform: translateX(5px);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .andes-product-pro .andes-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .andes-product-pro .andes-product-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .andes-product-pro .andes-product-spec-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    .andes-product-pro .andes-apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .andes-product-pro .andes-product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
        display: flex !important;
        flex-direction: column-reverse !important; /* Mantener la descripción arriba en móviles si lo desean, o column normal. specs era izquierda, descr derecha. En movil es mejor description arriba y specs abajo. Como invertimos el DOM (specs izquierda=arriba, descr derecha=abajo), column-reverse pone descripción arriba. */
    }
    .andes-product-pro .andes-product-description {
        padding: 0 !important;
        border-left: none !important;
    }
    .andes-product-pro .andes-product-tech-table-wrapper {
        padding: 0 !important;
        border-left: none !important;
    }
    .andes-product-pro .andes-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .andes-product-pro .andes-product-title {
        font-size: 36px;
    }
    .andes-product-pro .andes-product-spec-strip {
        grid-template-columns: 1fr 1fr;
    }
    .andes-product-pro .andes-apps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .andes-product-pro .andes-product-support-band {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .andes-product-pro .support-main-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
    .andes-product-pro .support-grid {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    .andes-product-pro .andes-related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .andes-product-pro .andes-related-grid {
        grid-template-columns: 1fr;
    }
    .andes-product-pro .andes-product-applications {
        padding: 40px 20px;
    }
}

/* 8. MINI-GRID IDEAL PARA (COMPACTO) */
.andes-product-apps-inline {
    margin-top: 48px;
    width: 100%;
}

.andes-product-apps-inline-title {
    font-size: 14px;
    font-weight: 800;
    color: #1f2933;
    margin-bottom: 14px;
}

.andes-product-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 16px;
}

.andes-product-app-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
}

.andes-product-app-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 999px;
    background: #f1f8e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
}

.andes-product-app-icon i {
    font-size: 18px;
}

.andes-product-app-label {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: #2f3542;
}

@media (max-width: 768px) {
    .andes-product-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .andes-product-apps-grid {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────────────────────────────
   REFINAMIENTO VISUAL ADICIONAL
   ────────────────────────────────────────────────────────────────── */

/* Subtítulos más sutiles adentro de la descripción del hero */
.andes-product-pro .andes-hero-description-content h2,
.andes-product-pro .andes-hero-description-content h3,
.andes-product-pro .andes-hero-description-content h4,
.andes-product-pro .andes-hero-description-content strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #2f3a2f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* Lista con checks elegante */
.andes-product-pro .andes-product-bullets li {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 16px !important;
    font-size: 15px !important;
    color: #555 !important;
    font-weight: 500 !important;
}
.andes-product-pro .andes-product-bullets li i {
    color: #65893b !important;
    font-size: 18px !important;
}

/* ──────────────────────────────────────────────────────────────────
   LIMPIEZA GLOBAL DE IMÁGENES DE PRODUCTO (SIN BORDES GRISES Y RADIOS UNIFICADOS)
   ────────────────────────────────────────────────────────────────── */
.product-image,
.porto-product-image,
.product-inner img,
.andes-related-product-card,
.andes-related-product-card img,
.andes-product-card,
.andes-product-card img,
.products .product img,
.andes-portable-media img,
ul.products li.product .product-image,
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-control-thumbs li,
.woocommerce-product-gallery .flex-control-thumbs img,
.product-thumbnail,
.thumbnail,
.attachment-woocommerce_thumbnail,
.attachment-woocommerce_single,
.product-grid img,
.related.products img,
.upsells img {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* Forzar radios uniformes en contenedores y evitar esquinas rotas */
.andes-product-gallery-card,
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.product-inner,
.product-image-container,
.andes-related-card,
.andes-product-related-card {
    border-radius: 18px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    background: #fff !important;
}

.andes-product-gallery-card img,
.woocommerce-product-gallery__image img,
.product-inner img,
.andes-related-card img,
.andes-product-related-card img {
    border-radius: 18px !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

/* Color Palette Variable overrides */
.andes-product-pro .andes-product-badge {
    background: rgba(129, 170, 88, 0.1) !important;
    color: #65893b !important;
}
.andes-product-pro .andes-product-price {
    color: #65893b !important;
}

/* Andes final image cleanup: remove gray frames on single product only */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a,
body.single-product .woocommerce-product-gallery__image img,
body.single-product .product-images,
body.single-product .product-image-slider,
body.single-product .product-image-slider .img-thumbnail,
body.single-product .product-image-slider .img-thumbnail .inner,
body.single-product .product-image-slider .img-thumbnail img,
body.single-product .product-thumbnails,
body.single-product .product-thumbnails .img-thumbnail,
body.single-product .product-thumbnails .img-thumbnail .inner,
body.single-product .product-thumbnails img,
body.single-product .product-image,
body.single-product .product-image img,
body.single-product .img-thumbnail,
body.single-product .img-thumbnail .inner,
body.single-product .inner,
body.single-product .flex-viewport,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .product-images,
body.single-product .product-image-slider,
body.single-product .product-thumbnails,
body.single-product .flex-viewport {
    overflow: visible !important;
}

body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a,
body.single-product .product-images,
body.single-product .product-image-slider,
body.single-product .product-image-slider .img-thumbnail,
body.single-product .product-image-slider .img-thumbnail .inner,
body.single-product .product-image-slider img,
body.single-product .product-thumbnails,
body.single-product .product-thumbnails .img-thumbnail,
body.single-product .product-thumbnails .img-thumbnail .inner,
body.single-product .product-thumbnails img,
body.single-product .flex-viewport,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    padding: 0 !important;
    margin: 0 !important;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .product-image-slider img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    -webkit-clip-path: inset(2px);
    clip-path: inset(2px);
}
body.single-product .product-thumbnails {
    margin-top: 14px !important;
}
body.single-product .product-thumbnails .img-thumbnail,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    background: #fff !important;
    border: 1px solid rgba(129, 170, 88, 0.35) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    padding: 4px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.single-product .product-thumbnails .img-thumbnail:hover,
body.single-product .product-thumbnails .img-thumbnail.selected,
body.single-product .product-thumbnails .owl-item.current .img-thumbnail,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs .flex-active {
    border-color: #65893b !important;
}
body.single-product .product-thumbnails img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
    border-radius: 4px !important;
}
.andes-product-pro .andes-hero-description-toggle,
.andes-product-pro .andes-product-description-toggle {
    color: #65893b !important;
}
.andes-product-pro .andes-hero-description-toggle:hover,
.andes-product-pro .andes-product-description-toggle:hover {
    color: #3e7220 !important;
}
