/*
Theme Name: Industing Child
Template: industing
Theme URI: http://themewar.com/wp/industing/
Author: ThemeWar
Author URI: http://themewar.com/
Description: Child theme for Industing. Child themes are the recommended way of making modifications to a theme. <a href="http://codex.wordpress.org/Child_Themes">Reade More</a>
Version: 1.0
License: 
License URI: 
Text Domain: industing-child
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/
/* Contenedor general de los elementos a la derecha */

/* Atacamos cualquier elemento de Elementor que intente usar otra fuente */
.elementor-element *, 
.elementor-widget-container *,
.elementor-heading-title {
    font-family: inherit; /* Obliga a heredar de nuestras reglas de h1, h2 o p */
}

/* Forzado extra para la página de soluciones si usa selectores de ID */
[data-elementor-type="wp-page"] h1, 
[data-elementor-type="wp-page"] h2, 
[data-elementor-type="wp-page"] h3 {
    font-family: 'Exo 2', sans-serif !important;
}

[data-elementor-type="wp-page"] p, 
[data-elementor-type="wp-page"] span {
    font-family: 'Inter', sans-serif !important;
}

/* Tus estilos empiezan aquí */
.product-categories {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}
.product-categories a{
    padding: 10px 15px;
background-color: #f2f2f2;
border-radius: 7px;
margin: 3px;
white-space: nowrap;
}

.logo img {
    height: 70px!important;
}

.topbar_right {
    display: -webkit-flex;
    display: block;
    -webkit-justify-content: right;
    -moz-justify-content: right;
    -ms-justify-content: right;
    -o-justify-content: right;
    justify-content: right;
    flex-direction: column;
    align-items: flex-end;
}
.topbar_right>div.elementos:first-child {
    margin-bottom: 10px;
    margin-top: 10px;
}
.topbar_right>div.elementos {
    
    display: inline-block;
  width: 100%;
}
.info_element i {
    left: 0;
    top: 0!important;
    position: unset;
}
.info_element a{
    color: #fff!important;;
}
.topbar_element.search_element {
    border: 1px solid #979797;
    border-radius: 7px;
    padding: 10px;
    background-color: #ffffff;
}
.topbar_element {
    position: unset;
    display: inline-block;
}
.settings_cart {
    padding-top: 0px;
    margin-right: 15px;
}

/* botón solicitar presupuesto */
.budget_button {
    display: inline-block;
    margin-left: 10px;
}

.btn-presupuesto{
    background: url('button-bg.svg') no-repeat center center;
    background-size: 100% 100%;
    color: #ffffff;
    padding: 15px 45px;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    
}

.elementor-button {
    background: url('button-bg.svg') no-repeat center center;
    background-size: 100% 100%;
    color: #ffffff!important;
    padding: 15px 45px;
    font-weight: normal;
    font-size: 14px!important;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    background-color: unset!important;
}



.btn-presupuesto:hover {
    filter: brightness(0.85); /* Oscurece al hover */
    color: #ffffff;
    text-decoration: none;
}

.search_element input[type="search"] {
    width: 235px;
}

/* ============================================
   MODO CATÁLOGO - BOTÓN PRESUPUESTO
   ============================================ */

/* Ocultar elementos de compra */
.woocommerce div.product form.cart,
.woocommerce-page div.product form.cart,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .stock,
.woocommerce .quantity,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.woocommerce .product_meta,
.woocommerce .onsale {
    display: none !important;
}

/* Wrapper del botón */
.catalogo-presupuesto-wrapper {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

/* Botón Solicitar Presupuesto */
.btn-presupuesto-single {
    background: url('button-bg.svg') no-repeat center center;
    background-size: 100% 100%;
    color: #ffffff;
    padding: 15px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-presupuesto-single:hover {
    filter: brightness(0.85);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .btn-presupuesto-single {
        padding: 12px 30px;
        font-size: 11px;
        max-width: 100%;
    }
    
    .catalogo-presupuesto-wrapper {
        margin: 20px 0;
        padding: 15px 0;
    }
}
/* ============================================
   PLANTILLA PERSONALIZADA PRODUCTOS - MERY
   ============================================ */

.mery-product-container {
    padding: 60px 0;
}

/* Galería de imágenes */
.mery-product-gallery {
    margin-bottom: 30px;
}

.main-product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Información del producto */
.mery-product-info {
    padding-left: 30px;
}

.product-categories {
    margin-bottom: 15px;
}

.cat-tag {
    background: #d32f2f;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
    text-transform: uppercase;
}

.product-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a2547;
    margin-bottom: 20px;
}

.product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

/* Botón Presupuesto */
.mery-budget-button {
    margin: 30px 0;
}


/* Especificaciones */
.product-specifications {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-specifications h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a2547;
}

/* Características con iconos */
.product-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

/* Tabs */
.mery-product-tabs {
    margin-top: 0px;
    padding-top: 0px;
}

.tab-content {
    margin-bottom: 40px;
}

.tab-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a2547;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #ffffff;
    background-color: #202A4F;
    border-color: #dee2e6 #dee2e6 #fff;
    border-radius: unset;
}
.nav-item>a {
    color: #5B5B5B;
}
.nav-item>a:hover {
    color: #D61016;
}
/* Responsive */
@media (max-width: 768px) {
    .mery-product-info {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-features {
        flex-direction: column;
    }
}
/* atributos */

.product-caracteristicas{
    display: flex;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.caracteristica-item {
    text-align: center;
}
.caracteristica-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: block;
    margin: auto auto 0px auto;
}
.caracteristica-item span {
    display: block;
    font-size: 14px;
    color: #333;
}
/* ============================================
   TABLAS DE FICHA TÉCNICA - Estilo Minimalista
   ============================================ */

.tabla-ficha-tecnica,
#descripcion table,
#ficha-tecnica table,
#configurables table,
#aplicaciones table,
#descargas table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Encabezados (th) */
.tabla-ficha-tecnica thead th,
#descripcion table thead th,
#ficha-tecnica table thead th,
#configurables table thead th {
    background: #e8ecf0;
    color: #333333;
    font-weight: 500;
    text-transform: none;
    font-size: 15px;
    padding: 16px 20px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #d0d5dd;
}

/* PRIMERA FILA (siempre con fondo gris, aunque sea td) */
.tabla-ficha-tecnica tbody tr:first-child td,
#descripcion table tbody tr:first-child td,
#ficha-tecnica table tbody tr:first-child td,
#configurables table tbody tr:first-child td,
#aplicaciones table tbody tr:first-child td,
#descargas table tbody tr:first-child td {
    background: #e8ecf0;
    color: #333333;
    font-weight: 600;
    border-bottom: 1px solid #d0d5dd;
    padding: 16px 20px;
}

/* Primera celda de la primera fila */
.tabla-ficha-tecnica tbody tr:first-child td:first-child,
#descripcion table tbody tr:first-child td:first-child,
#ficha-tecnica table tbody tr:first-child td:first-child,
#configurables table tbody tr:first-child td:first-child {
    border-right: 1px solid #d0d5dd;
}

/* Celdas normales (después de la primera fila) */
.tabla-ficha-tecnica td,
#descripcion table td,
#ficha-tecnica table td,
#configurables table td,
#aplicaciones table td,
#descargas table td {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid #e8ecf0;
    vertical-align: top;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Primera columna (después de la primera fila) */
.tabla-ficha-tecnica tbody tr:not(:first-child) td:first-child,
#descripcion table tbody tr:not(:first-child) td:first-child,
#ficha-tecnica table tbody tr:not(:first-child) td:first-child,
#configurables table tbody tr:not(:first-child) td:first-child {
    background: #ffffff;
    font-weight: 500;
    color: #333333;
    width: 35%;
    border-right: 1px solid #e8ecf0;
}

/* Segunda columna (después de la primera fila) */
.tabla-ficha-tecnica tbody tr:not(:first-child) td:last-child,
#descripcion table tbody tr:not(:first-child) td:last-child,
#ficha-tecnica table tbody tr:not(:first-child) td:last-child,
#configurables table tbody tr:not(:first-child) td:last-child {
    background: #ffffff;
    color: #555555;
}

/* Última fila sin borde inferior */
.tabla-ficha-tecnica tbody tr:last-child td,
#descripcion table tbody tr:last-child td,
#ficha-tecnica table tbody tr:last-child td,
#configurables table tbody tr:last-child td {
    border-bottom: none;
}

/* Filas (excepto primera) */
.tabla-ficha-tecnica tbody tr:not(:first-child),
#descripcion table tbody tr:not(:first-child),
#ficha-tecnica table tbody tr:not(:first-child),
#configurables table tbody tr:not(:first-child) {
    background: #ffffff;
    transition: background-color 0.2s ease;
}

/* Hover (solo en filas después de la primera) */
.tabla-ficha-tecnica tbody tr:not(:first-child):hover,
#descripcion table tbody tr:not(:first-child):hover,
#ficha-tecnica table tbody tr:not(:first-child):hover,
#configurables table tbody tr:not(:first-child):hover {
    background: #f8f9fa;
}

/* Celdas vacías */
.tabla-ficha-tecnica td:empty,
#descripcion table td:empty,
#ficha-tecnica table td:empty {
    background: #ffffff;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .tabla-ficha-tecnica,
    #descripcion table,
    #ficha-tecnica table,
    #configurables table,
    #aplicaciones table,
    #descargas table {
        font-size: 14px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .tabla-ficha-tecnica thead,
    #descripcion table thead,
    #ficha-tecnica table thead,
    #configurables table thead {
        display: none;
    }
    
    /* Primera fila en móvil */
    .tabla-ficha-tecnica tbody tr:first-child,
    #descripcion table tbody tr:first-child,
    #ficha-tecnica table tbody tr:first-child,
    #configurables table tbody tr:first-child {
        display: block;
        border-bottom: 1px solid #d0d5dd;
    }
    
    .tabla-ficha-tecnica tbody tr:first-child td,
    #descripcion table tbody tr:first-child td,
    #ficha-tecnica table tbody tr:first-child td,
    #configurables table tbody tr:first-child td {
        display: block;
        width: 100%;
        padding: 14px 15px;
        border: none;
        border-bottom: 1px solid #d0d5dd;
        background: #e8ecf0;
        font-weight: 600;
    }
    
    .tabla-ficha-tecnica tbody tr:first-child td:first-child,
    #descripcion table tbody tr:first-child td:first-child,
    #ficha-tecnica table tbody tr:first-child td:first-child,
    #configurables table tbody tr:first-child td:first-child {
        border-right: none;
    }
    
    .tabla-ficha-tecnica tbody tr:first-child td:last-child,
    #descripcion table tbody tr:first-child td:last-child,
    #ficha-tecnica table tbody tr:first-child td:last-child,
    #configurables table tbody tr:first-child td:last-child {
        border-bottom: none;
    }
    
    /* Resto de filas */
    .tabla-ficha-tecnica tbody tr:not(:first-child),
    #descripcion table tbody tr:not(:first-child),
    #ficha-tecnica table tbody tr:not(:first-child),
    #configurables table tbody tr:not(:first-child) {
        display: block;
        margin-bottom: 0;
        border: none;
        border-bottom: 1px solid #e8ecf0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .tabla-ficha-tecnica tbody tr:not(:first-child):last-child,
    #descripcion table tbody tr:not(:first-child):last-child,
    #ficha-tecnica table tbody tr:not(:first-child):last-child,
    #configurables table tbody tr:not(:first-child):last-child {
        border-bottom: none;
    }
    
    .tabla-ficha-tecnica tbody tr:not(:first-child) td,
    #descripcion table tbody tr:not(:first-child) td,
    #ficha-tecnica table tbody tr:not(:first-child) td,
    #configurables table tbody tr:not(:first-child) td {
        display: block;
        width: 100%;
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid #e8ecf0;
    }
    
    .tabla-ficha-tecnica tbody tr:not(:first-child) td:first-child,
    #descripcion table tbody tr:not(:first-child) td:first-child,
    #ficha-tecnica table tbody tr:not(:first-child) td:first-child,
    #configurables table tbody tr:not(:first-child) td:first-child {
        background: #e8ecf0;
        color: #333333;
        border-right: none;
        border-bottom: 1px solid #d0d5dd;
        font-weight: 600;
        text-transform: none;
        font-size: 14px;
    }
    
    .tabla-ficha-tecnica tbody tr:not(:first-child) td:last-child,
    #descripcion table tbody tr:not(:first-child) td:last-child,
    #ficha-tecnica table tbody tr:not(:first-child) td:last-child,
    #configurables table tbody tr:not(:first-child) td:last-child {
        border-bottom: none;
    }
    
    .tabla-ficha-tecnica tbody tr:not(:first-child):hover,
    #descripcion table tbody tr:not(:first-child):hover,
    #ficha-tecnica table tbody tr:not(:first-child):hover {
        background: #f8f9fa;
    }
}
.relatedProductArea{
    margin-bottom: 30px;
}

.thumbnail-img { 
    cursor: pointer; 
    opacity: 0.7; 
    border: 2px solid transparent; 
    transition: 0.2s; 
    max-width: 80px;
}
.thumbnail-img:hover,
.thumbnail-img.active { 
    opacity: 1; 
    border-color: #0073aa; 
}
.main-image { 
    cursor: zoom-in; 
    overflow: hidden; 
}
.main-image img { 
    transition: transform 0.2s; 
    width: 100%; 
    height: auto; 
}

/* Wrapper del breadcrumb */
.mery-breadcrumb-wrapper {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.mery-breadcrumb-wrapper>.header-container {

    padding-left: 0px;
}
.mery-breadcrumb-wrapper>.header-container>.woocommerce-breadcrumb {

    margin: 0px;
}

/* Si usas Bootstrap, ajustar el padding del container */
.mery-breadcrumb-wrapper .container {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .mery-breadcrumb-wrapper .woocommerce-breadcrumb {
        padding-left: 15px;
    }
}

/* Color para categoría 77 (ej: Cortinas Metálicas) */
a.cat-padre-77 {
    color: #ffffff !important; /* Rojo */
    font-weight: 600;
    background-color: #F25C5C;
    border-radius: 7px;
    padding: 10px 15px;
}
a.cat-padre-77:hover {
    color: #d61016 !important;
}

/* Color para categoría 68 (ej: Industriales y Logísticas) */
a.cat-padre-68 {
    color: #333333 !important; /* Azul */
    font-weight: 600;
    background-color: #FFD991;
    border-radius: 7px;
    padding: 10px 15px;
}
a.cat-padre-68:hover {
    color: #f9af3c !important;
}

/* Color para categoría 76 (ej: Automatización) */
a.cat-padre-76 {
      color: #ffffff !important; /* Azul */
    font-weight: 600;
    background-color: #3D4E8B;
    border-radius: 7px;
    padding: 10px 15px;
}
a.cat-padre-76:hover {
    color: #202a4f !important;
}
.mery-product-single{
    margin-bottom: 20px!important;
}

/* Modal Presupuesto - Responsive con Sistema de Colores Corporativo */
.mery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 33, 58, 0.7);
    animation: fadeIn 0.3s ease;
}

.mery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mery-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(26, 33, 58, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.mery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    font-weight: 300;
    color: #5B5B5B;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.mery-modal-close:hover {
    background: #F4F4F4;
    color: #1A213A;
}

.mery-modal-header {
    padding: 30px 30px 20px;
    background: #F4F4F4;
    border-bottom: 2px solid #202A4F;
}

.mery-modal-header h2 {
    margin: 0 0 10px;
    color: #1A213A;
    font-size: 28px;
    font-weight: 700;
}

.mery-modal-header p {
    margin: 0;
    color: #5B5B5B;
    font-size: 14px;
    line-height: 1.5;
}

.form-section {
    padding: 25px 30px;
    border-bottom: 1px solid #f2f2f2;
}

.form-section h3 {
    margin: 0 0 5px;
    color: #202A4F;
    font-size: 20px;
    font-weight: 600;
}

.section-desc {
    margin: 0 0 20px;
    color: #5B5B5B;
    font-size: 14px;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-inline .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #D61016;
}

/* Producto seleccionado - H3 */
.producto-selected-title {
    margin: 0;
    padding: 15px 20px;
    border-radius: 6px;
    color: #1A213A;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* Selects e Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #979797;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #202A4F;
    box-shadow: 0 0 0 3px rgba(32, 42, 79, 0.1);
}

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

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #979797;
    margin-top: 5px;
}

/* Checkbox minimalista - Ubicación */
.location-group {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}

.location-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333333;
    user-select: none;
    position: relative;
    padding-left: 35px;
    margin: 0;
}



.location-text {
    position: relative;
    font-weight: 500;
    padding-left: 8px;
    transition: all 0.3s ease;
}

.location-label:hover .location-text {
    border-left-color: #202A4F;
    color: #1A213A;
}

.location-label input[type="checkbox"]:checked ~ .location-text {
    border-left-color: #D61016;
    color: #1A213A;
    font-weight: 600;
}

.location-label input[type="checkbox"]:checked ~ .location-text::before {
    content: "✓";
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    color: #D61016;
    font-size: 16px;
    font-weight: bold;
}

/* Select de países */
#campos-internacional {
    animation: fadeIn 0.3s ease;
}

#campos-chile {
    transition: opacity 0.3s ease;
}

#campos-chile.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* File Upload */
.file-upload-wrapper {
    margin-top: 8px;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #F4F4F4;
    border: 2px dashed #979797;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    color: #5B5B5B;
}

.file-upload-btn:hover {
    background: #f2f2f2;
    border-color: #202A4F;
    color: #1A213A;
}

.file-upload-btn.drag-over {
    background: #f2f2f2;
    border-color: #D61016;
}

.file-upload-btn svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.file-upload-info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #979797;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #F4F4F4;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333333;
    border: 1px solid #f2f2f2;
}

.file-item .file-name {
    flex: 1;
    word-break: break-all;
}

.file-item .file-remove {
    background: #D61016;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.file-item .file-remove:hover {
    background: #8B0000;
}

/* Footer */
.form-footer {
    padding: 25px 30px 30px;
    background: #F4F4F4;
    border-top: 2px solid #202A4F;
}

.required-note {
    font-size: 12px;
    color: #5B5B5B;
    margin-bottom: 20px;
    font-style: italic;
}

.btn-enviar {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #D61016 0%, #8B0000 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(214, 16, 22, 0.3);
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 16, 22, 0.4);
    background: linear-gradient(135deg, #8B0000 0%, #D61016 100%);
}

.btn-enviar:active {
    transform: translateY(0);
}

.btn-enviar:disabled {
    background: #979797;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .mery-modal.active {
        padding: 0;
        align-items: flex-end;
    }
    
    .mery-modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        animation: slideUpMobile 0.3s ease;
    }
    
    .form-row-inline {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mery-modal-header {
        padding: 25px 20px 15px;
    }
    
    .mery-modal-header h2 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 18px;
    }
    
    .form-footer {
        padding: 20px;
    }
    
    .btn-enviar {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .producto-selected-title {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .mery-modal-header h2 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .location-label {
        font-size: 14px;
    }
}

/* Loading state */
.btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn-loading:after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error messages */
.form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(26, 33, 58, 0.15);
    animation: messageIn 0.35s ease;
}

.form-message.success {
    background: rgba(32, 42, 79, 0.08);
    color: #1A213A;
    border-color: #202A4F;
    display: block;
}

.form-message.error {
    background: rgba(214, 16, 22, 0.08);
    color: #8B0000;
    border-color: #D61016;
    display: block;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .form-message {
        animation: none;
    }
}

/* Input error state */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #D61016;
    background-color: rgba(214, 16, 22, 0.02);
}

/* Focus visible para accesibilidad */
.mery-modal-close:focus-visible,
.btn-enviar:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid #F9AF3C;
    outline-offset: 2px;
}

/* Scrollbar personalizada */
.mery-modal-container::-webkit-scrollbar {
    width: 8px;
}

.mery-modal-container::-webkit-scrollbar-track {
    background: #F4F4F4;
}

.mery-modal-container::-webkit-scrollbar-thumb {
    background: #979797;
    border-radius: 4px;
}

.mery-modal-container::-webkit-scrollbar-thumb:hover {
    background: #5B5B5B;
}

.commonSection{
    padding: 20px 0px;
}

.header-container .woocommerce-breadcrumb a {
    color: #D61016!important;
}

/* ===================================
   WIDGET PRODUCTOS - DISEÑO CARD
   =================================== */

.products .product-card {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Imagen */
.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* Aspect ratio 4:3 */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido */
.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 16px 0;
    line-height: 1.4;
    min-height: 44px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

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

/* Botones de acción */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: auto 10px 10px 10px;
    position: absolute;
    bottom: 10px;
}

.btn-cotizar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-cotizar:hover {
    background: #fee2e2;
    transform: translateY(-2px);
}

.btn-cotizar svg {
    width: 16px;
    height: 16px;
}

.producto-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product_dec {
    padding: 5px 5px 35px 5px;
  
}
.productImg {
    margin-bottom: 5px;
    position: relative;
}
.icon-info {
    color: #6b7280;
}

.btn-detalles {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-detalles:hover {
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cotizar {
        width: 100%;
        justify-content: center;
    }
    
    .producto-info {
        justify-content: center;
    }
}

/* Eliminar marker/bullet de productos */
.product-card,
.product_grid_items li,
.products .product-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    list-style: none !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* Si persiste, forzar */
.product-card::before,
.product-card::marker,
.product_grid_items li::before,
.product_grid_items li::marker {
    content: none !important;
    display: none !important;
}

.mery-budget-button{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    align-items:center;
}

/* Botón WhatsApp */

.btn-whatsapp-single{
    background: url('button-verde.svg') no-repeat center center;
    background-size: 100% 100%;
    color: #ffffff;
    /*padding: 15px 25px;*/
	padding: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;	
	
	
}

.btn-whatsapp-single svg{
    width:24px;
    height:24px;
    flex-shrink:0;
}

.btn-whatsapp-single:active{
    transform:translateY(0);
}

@media(max-width:768px){

    .mery-budget-button{
        flex-direction:column;
        align-items:stretch;
    }

    .btn-whatsapp-single,
    .btn-presupuesto-single{
        justify-content:center;
        width:100%;
    }

}