/*
Theme Name: March Child Theme
Theme URI: https://march.co
Description: Tema hijo para March, tienda e-commerce de esparcibles naturales. Construido sobre Hello Elementor.
Author: Antigravity AI
Version: 1.0.0
Template: hello-elementor
Text Domain: march
*/

/* ==========================================================================
   March Child Theme - Estilos Globales para WooCommerce y Elementor
   ========================================================================== */

/* Aplicar bordes redondeados a todas las imágenes por defecto */
img {
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.march-hero-img-col {
    border-radius: 12px !important;
}

.march-bb-img-col {
    border-radius: 12px !important;
}

/* Bordes redondeados para contenedores de imágenes (Elementor y WooCommerce) */
.elementor img,
.elementor-widget-image .elementor-image,
.elementor-widget-image figure,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-loop-product__link,
ul.products li.product a img,
.product-thumbnail,
.product-image {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Botones de WooCommerce */
.woocommerce .button,
.woocommerce .single_add_to_cart_button {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.woocommerce .button:hover,
.woocommerce .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* WooCommerce Notices */
.woocommerce-message {
    border-top: 3px solid #28a745 !important;
    border-radius: 0 !important;
}

.woocommerce-error {
    border-top: 3px solid #dc3545 !important;
    border-radius: 0 !important;
}

.woocommerce-info {
    border-top: 3px solid #17a2b8 !important;
    border-radius: 0 !important;
}

/* Formatos de formulario */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
    border-radius: 50px !important;
    padding: 12px 20px !important;
    border: 1px solid #e2e2e2 !important;
    transition: all 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Elementor section styling */
.elementor-section {
    overflow: hidden;
}

.elementor-section[data-elementor-type="section"] {
    position: relative;
}

/* Grid layouts */
.elementor-column-gap-wider {
    gap: 20px;
}

.elementor-column-gap-widest {
    gap: 30px;
}

/* Widget spacing control */
.elementor-widget:not(:last-child) {
    margin-bottom: 20px;
}

.elementor-widget-image {
    transition: transform 0.3s ease;
}

.elementor-widget-image:hover {
    transform: scale(1.02);
}

/* Botones de Elementor */
.elementor-button {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* Widgets comunes */
.elementor-widget-image-carousel .swiper-slide {
    border-radius: 12px;
    overflow: hidden;
}

.elementor-widget-gallery .elementor-gallery-item {
    border-radius: 12px;
    overflow: hidden;
}

.elementor-widget-video-wrapper,
.elementor-wrapper video {
    border-radius: 12px;
    overflow: hidden;
}

/* Navegación de pestañas */
.elementor-tabs .elementor-tab-title {
    border-radius: 50px !important;
    padding: 12px 20px !important;
    border: 1px solid #e2e2e2 !important;
    transition: all 0.3s ease !important;
}

.elementor-tabs .elementor-tab-title.elementor-active {
    border-color: #667eea !important;
    background: #f8f9fa !important;
}

/* Efectos de hover */
.elementor-widget-image:hover {
    cursor: pointer;
}

/* Layout de columnas */
.elementor-column {
    transition: all 0.3s ease;
}

.elementor-column:hover {
    opacity: 0.95;
}

/* Control de espaciado */
.elementor-container {
    padding: 0 20px;
}

/* Tipografía */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Efectos de partículas */
.elementor-section.has-particles {
    position: relative;
}

.elementor-section.has-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#667eea 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
}

/* Animaciones */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animated-float {
    animation: float 6s ease-in-out infinite;
}

/* Efecto Parallax */
.elementor-widget-image img {
    transition: transform 2s cubic-bezier(0.2, 0.4, 0.2, 1);
}

.elementor-widget-image:hover img {
    transform: translateY(-15px) scale(1.02);
}

/* Gradientes */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}