/*
Theme Name: Atec
Theme URI: http://example.com/twenty-twenty-two-child/
Description: A child theme for the Twenty Twenty Two theme
Author: Mauro Molina Mazon
Author URI: http://example.com
Template: astra
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: child theme
Text Domain: atec
*/

:root {
    --primary-color: #3375FE;
    --secondary-color: #1F3B4C;
}

footer aside.footer-widget-area img.image {
    max-width: 250px !important;
}

header li a {
    color: #1F3B4C !important;
}

h1, h2, h3, h4, h5, h6, p, span, label {
    color: var(--secondary-color);
}

.sub-menu a {
    color: #000 !important;
}

/* Estilos para productos WooCommerce */
.woocommerce .woocommerce-product-gallery__wrapper img {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.woocommerce .woocommerce-product-gallery__image img {
    transition: transform 0.3s ease;
}

.woocommerce .woocommerce-product-gallery__image:hover img {
    transform: scale(1.02);
}

/* Estilos para el botón de agregar al carrito */
.woocommerce .single_add_to_cart_button {
    background: linear-gradient(135deg, #387dff 0%, #2d6aff 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.woocommerce .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(56, 125, 255, 0.4) !important;
}

/* Estilos para el input de cantidad */
.woocommerce .quantity .qty {
    border: 2px solid rgba(56, 125, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.woocommerce .quantity .qty:focus {
    outline: none !important;
    border-color: #387dff !important;
    box-shadow: 0 0 0 3px rgba(56, 125, 255, 0.1) !important;
}

/* Estilos para las tabs */
.woocommerce .woocommerce-tabs .tabs li a {
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
}

.woocommerce .woocommerce-tabs .tabs li.active a,
.woocommerce .woocommerce-tabs .tabs li a:hover {
    color: #387dff !important;
}

/* Estilos para las notificaciones de WooCommerce */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #f7faff !important;
    border-left: 4px solid #387dff !important;
    border-radius: 8px !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-error {
    border-left-color: #ef4444 !important;
}

/* Estilos para el precio */
.woocommerce .price {
    color: #387dff !important;
}

.woocommerce .price del {
    color: #9ca3af !important;
    opacity: 0.7 !important;
}

/* Estilos para las estrellas de rating */
.woocommerce .star-rating {
    color: #387dff !important;
}

.woocommerce .star-rating span:before {
    color: #387dff !important;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA SINGLE PRODUCT
   ============================================ */

/* Header de la página solo en single product */
body.single-product #masthead,
body.single-product header,
body.single-product .site-header,
body.single-product header.site-header,
body.single-product .main-header,
body.single-product .ast-header-wrapper,
body.single-product .site-header-wrapper {
    background: linear-gradient(135deg, #387dff 0%, #2d6aff 100%) !important;
    box-shadow: 0 2px 10px rgba(56, 125, 255, 0.2) !important;
}

body.single-product #masthead *,
body.single-product header *,
body.single-product .site-header *,
body.single-product header.site-header *,
body.single-product .main-header *,
body.single-product .ast-header-wrapper *,
body.single-product .site-header-wrapper * {
    color: #ffffff !important;
}

body.single-product #masthead a,
body.single-product header a,
body.single-product .site-header a,
body.single-product header.site-header a,
body.single-product .main-header a,
body.single-product .ast-header-wrapper a,
body.single-product .site-header-wrapper a {
    color: #ffffff !important;
}

body.single-product #masthead a:hover,
body.single-product header a:hover,
body.single-product .site-header a:hover,
body.single-product header.site-header a:hover,
body.single-product .main-header a:hover,
body.single-product .ast-header-wrapper a:hover,
body.single-product .site-header-wrapper a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.single-product #masthead svg,
body.single-product header svg,
body.single-product .site-header svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Contenedor del producto */
.atec-product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header del producto */
.atec-product-header {
    transition: transform 0.3s ease;
}

/* Galería de imágenes mejorada */
.atec-product-images .woocommerce-product-gallery__wrapper {
    position: relative;
    margin: 0;
}

.atec-main-image-wrapper {
    position: relative;
    overflow: hidden;
}

.atec-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.atec-main-image-link {
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.atec-main-image-link:hover {
    transform: scale(1.02);
}

.atec-product-images .woocommerce-product-gallery__image img {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Quitar hover del título */
.atec-product-header {
    transition: none !important;
}

.atec-product-header:hover {
    transform: none !important;
}

/* Estilos para categorías */
.atec-product-categories {
    margin-top: 0.5rem;
}

.atec-product-categories a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.atec-product-categories a:hover {
    background: rgba(56, 125, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 125, 255, 0.2);
}

/* Thumbnails mejorados */
.atec-thumbnails-gallery {
    margin-top: 1rem;
}

.atec-thumbnails-gallery .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.atec-thumbnails-gallery .scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.atec-product-thumbnail {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.atec-product-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(135deg, #387dff, #2d6aff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atec-product-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(56, 125, 255, 0.25);
}

.atec-product-thumbnail:hover::before {
    opacity: 1;
}

.atec-product-thumbnail.active {
    border-color: #387dff;
    box-shadow: 0 4px 15px rgba(56, 125, 255, 0.3);
}

.atec-product-thumbnail.active::before {
    opacity: 1;
}

.atec-product-thumbnail img {
    transition: transform 0.3s ease;
}

.atec-product-thumbnail:hover img {
    transform: scale(1.05);
}

/* Sección de información del producto */
.atec-product-summary {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Precio mejorado */
.atec-product-summary .price {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #387dff !important;
    margin-bottom: 1.5rem !important;
    display: block;
}

.atec-product-summary .price del {
    font-size: 1.5rem !important;
    color: #9ca3af !important;
    opacity: 0.6 !important;
    margin-right: 1rem;
}

/* Descripción corta */
.atec-product-summary .woocommerce-product-details__short-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

/* Botón de agregar al carrito mejorado */
.atec-product-summary .single_add_to_cart_button {
    width: 100%;
    padding: 1.25rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #387dff 0%, #2d6aff 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(56, 125, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.atec-product-summary .single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(56, 125, 255, 0.4) !important;
}

.atec-product-summary .single_add_to_cart_button:active {
    transform: translateY(-1px) !important;
}

/* Input de cantidad mejorado */
.atec-product-summary .quantity {
    margin-bottom: 1.5rem;
}

.atec-product-summary .quantity .qty {
    border: 2px solid rgba(56, 125, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-align: center;
    background: #f7faff !important;
    transition: all 0.3s ease !important;
}

.atec-product-summary .quantity .qty:focus {
    outline: none !important;
    border-color: #387dff !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(56, 125, 255, 0.1) !important;
}

/* Meta información */
.atec-product-summary .product_meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.atec-product-summary .product_meta span {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Tabs mejoradas */
.atec-product-tabs-wrapper .woocommerce-tabs {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.atec-product-tabs-wrapper .tabs {
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 2rem;
}

.atec-product-tabs-wrapper .tabs li a {
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
    transition: all 0.3s ease !important;
}

.atec-product-tabs-wrapper .tabs li.active a {
    background: #f7faff !important;
    color: #387dff !important;
    border-bottom: 3px solid #387dff !important;
}

.atec-product-tabs-wrapper .wc-tab {
    padding: 1.5rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .atec-product-summary {
        position: relative;
        top: 0;
    }
    
    .atec-product-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .atec-product-header {
        padding: 2rem 1.5rem !important;
    }
    
    .atec-product-header h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .woocommerce .woocommerce-product-gallery {
        margin-bottom: 2rem;
    }
    
    .woocommerce .woocommerce-tabs .tabs {
        flex-direction: column;
    }
    
    .woocommerce .woocommerce-tabs .tabs li {
        width: 100%;
    }
    
    .atec-product-header h1 {
        font-size: 2rem !important;
    }
    
    .atec-product-summary .price {
        font-size: 2rem !important;
    }
    
    .atec-product-images .woocommerce-product-gallery__wrapper {
        padding: 1rem;
    }
}

.woocommerce-product-gallery {
    width: 100% !important;
}

body.single-product #masthead a, body.single-product header a, body.single-product .site-header a, body.single-product header.site-header a {
    color: #ffffff !important;
}

.wp-block-uagb-container.uagb-block-ede7e72a .uagb-container__shape-bottom svg {
    width: calc( 101% + 2.4px ) !important;
}

.entry-header  {
    display: none !important;
}

.woocommerce-shop {
    columns: initial !important;
}

.woocommerce-shop header {
    background: var(--primary-color) !important;
}

.woocommerce-products-header__title.page-title {
    display: none !important;
}

.ast-grid-common-col.product {
    background: linear-gradient(to bottom, #ffffff 0%, #f7faff 100%);
    border: 20px !important;
    border: 1px solid rgba(56, 125, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(56, 125, 255, 0.25);
}

.ast-grid-common-col.product .review-rating {
    display: none !important;
}

.ast-grid-common-col.product img {
    min-height: 250px;
    max-height: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.astra-shop-thumbnail-wrap a.product_type_simple.product_type_simple {
    display: none !important;
}

.astra-shop-summary-wrap {
    padding: 5px 20px !important;
}

.entry-content :where(h1,h2,h3,h4,h5,h6) {
    color: var(--secondary-color) !important;
}

.cover :where(h1,h2,h3,h4,h5,h6) {
    color: #fff !important;
}

/* Contact Form 7 Custom Styles */
.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #387dff;
    box-shadow: 0 0 0 3px rgba(56, 125, 255, 0.15);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
}

.wpcf7-textarea {
    max-height: 200px;
}

.wpcf7-form input.wpcf7-submit {
    background-color: #387dff;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
    box-shadow: 0 4px 6px -1px rgba(56, 125, 255, 0.2), 0 2px 4px -1px rgba(56, 125, 255, 0.1);
}

.wpcf7-form input.wpcf7-submit:hover {
    background-color: #2d6aff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(56, 125, 255, 0.25), 0 4px 6px -2px rgba(56, 125, 255, 0.1);
}

.wpcf7-form span.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #ef4444;
}

.wpcf7-form div.wpcf7-response-output {
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1rem;
}