/* 
Theme Custom Styles 
Corporate Colors: 
- Orange: #ff9800
- Pink: #ff4081
- Dark Blue: #1e3a8a
- Cyan: #15d3d3
*/

/* 1. Barra superior Naranja */
.top-header:before,
.top-header {
    background: #ff9800 !important;
}

/* 2. Cabecera principal y Menú inferior Cian (sin franjas blancas) */
.main-header,
.below-header,
.below-header-bar,
.top-store-menu,
.mhdrfour .below-header,
#masthead .below-header {
    background: #15d3d3 !important;
    position: relative;
    border: none !important;
    box-shadow: none !important;
}

/* Ocultar los pseudo-elementos del tema que inyectan fondos blancos */
.main-header::before,
.below-header::before,
.top-footer::before,
.widget-footer::before,
.below-footer::before {
    background: transparent !important;
    display: none !important;
    content: none !important;
}

.below-header,
.main-header {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Acomodar color del texto del menú si es necesario */
.below-header .top-store-menu > li > a {
    color: #ffffff !important;
}

/* 3. Wave Header (Ola debajo del menú) */
.below-header::after {
    content: '';
    position: absolute;
    bottom: -40px; /* Adjust based on wave height */
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2315d3d3"/></svg>') no-repeat center bottom;
    background-size: 100% 100%;
    z-index: 10;
    pointer-events: none;
}

/* 4. Colores corporativos globales */
/* Cambiar el azul por defecto (#00badb) al rosa corporativo (#ff4081) en los links y botones */
a {
    color: #ff4081;
}
a:hover {
    color: #1e3a8a;
}
.site-title span a:hover, 
.main-header-bar .header-icon a:hover, 
.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: #ff4081 !important;
}
.th-button, 
button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"], 
.woocommerce a.button {
    background: linear-gradient(135deg, #ff4081, #ff6b9d) !important;
    color: #fff !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    font-weight: 600 !important;
}
.th-button:hover, 
button:hover, 
input[type="button"]:hover, 
input[type="reset"]:hover, 
input[type="submit"]:hover, 
.woocommerce a.button:hover {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* 5. Footer Wave (Ola arriba del footer) */
/* Primero damos color oscuro al footer completo y a sus contenedores internos */
#colophon,
.site-footer,
footer,
.top-footer,
.widget-footer {
    background-color: #1e3a8a !important;
    background: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.below-footer,
.below-footer-bar {
    background-color: #1e3a8a !important;
    background: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    border-top: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 6. Footer Copyright Responsive */
.below-footer-col1 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
.footer-copyright {
    text-align: center !important;
    padding: 15px 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

footer a {
    color: #ff9800 !important;
}

.top-footer {
    position: relative;
    padding-top: 50px !important;
    margin-top: 60px !important;
}

.top-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M1200,120H0V73.71c47.79-22.2,103.59-32.17,158-28,70.36,5.37,136.33,33.31,206.8,37.5,73.84,4.36,147.54-16.88,218.2-35.26,69.27-18,138.3-24.88,209.4-13.08,36.15,6,69.85,17.84,104.45,29.34,92.66,30.78,216.17,70.07,303.17,3.3V120Z" fill="%231e3a8a"/></svg>') no-repeat center bottom;
    background-size: 100% 100%;
    z-index: 10;
    pointer-events: none;
}

/* 6. Ocultar firma de ThemeHunk */
.powered-by-wordpress {
    display: none !important;
}

/* 7. Ajuste de ancho de contenedor principal */
.container {
    width: 90% !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 8. Separar el contenido principal de la ola de la cabecera (Responsive) */
#content.page-content {
    margin-bottom: 2rem !important; /* separación vertical en móviles */
    margin-top: 2.8rem !important; /* Dispositivos móviles y tablets (evita solapamiento) */
}

@media (min-width: 992px) {
    #content.page-content {
        margin-top: 3.5rem !important; /* Pantallas de escritorio (más espacio visual) */
    }
}

/* 9. Corrección de alto del Slider y optimización de espaciados */
@media (max-width: 768px) {
    /* Corrige el alto fijo del slider en móvil que generaba grandes huecos vacíos arriba/abajo */
    .chapas-slider .swiper-slide img {
        height: auto !important;
    }
}

/* Reducir el espacio excesivo entre el título, las migas de pan y el slider/contenido */
.page-head {
    padding-bottom: 0.5rem !important;
}
.thunk-page .thunk-content-wrap {
    padding-top: 0.5rem !important;
}
.chapas-slider {
    margin-top: 0.5rem !important;
}

/* 10. Estilos Premium para los widgets del Footer */
.widget-footer .widget {
    margin-bottom: 0.5rem !important;
}
.widget-footer .widget-title {
    color: #ff9800 !important; /* Color corporativo Naranja */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 8px;
}
.widget-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff4081; /* Detalle rosa corporativo */
}
.widget-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85) !important; /* Blanco suave para mejor legibilidad */
}

/* 11. Tarjeta de Contenido Principal Premium */
.thunk-page .thunk-content-wrap {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    padding: 24px !important;
    background: #ffffff !important;
}

/* 12. Menú Lateral de Categorías Premium */
.menu-category-list ul.product-cat-list li.cat-item a {
    padding: 12px 15px !important;
    display: block !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #444 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}
.menu-category-list ul.product-cat-list li.cat-item a:hover {
    padding-left: 20px !important;
    background-color: rgba(21, 211, 211, 0.05) !important; /* Fondo cian muy suave */
    color: #ff4081 !important; /* Texto rosa corporativo */
}
.menu-category-list .toggle-cat-wrap {
    border-radius: 12px 12px 0 0 !important;
    background-color: #ff4081 !important; /* Cabecera del menú rosa */
}

/* 13. Tarjetas de Productos WooCommerce Premium */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}
.woocommerce ul.products li.product:hover, 
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.08) !important; /* Sombra sutil teñida del azul corporativo */
    border-color: rgba(21, 211, 211, 0.2) !important; /* Borde sutil cian */
}
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    border-radius: 12px !important;
    transition: transform 0.5s ease !important;
}
.woocommerce ul.products li.product:hover img,
.woocommerce-page ul.products li.product:hover img {
    transform: scale(1.03) !important;
}

/* Home Intro - Debajo del Slider (Chapas) */
.home-intro-section{
    padding: 48px 0 !important;
    background: #f7f7fb !important;
    border-top: 1px solid rgba(0,0,0,.05) !important;
    border-bottom: 1px solid rgba(0,0,0,.05) !important;
}
.home-intro-grid{
    display: block !important;
    width: 100% !important;
}

.home-intro-content{
    width: 100% !important;
}

.home-intro-badge{
    background: #111 !important;
    border-radius: 16px !important;
    padding: 18px 16px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.08) !important;
}

.badge-text{
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .25px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
}
/* Si no usas el badge del HTML, este bloque no afecta */
.home-intro-title{
    margin: 0 0 14px !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    color: #111 !important;
}
.home-intro-text{
    margin: 0 0 14px !important;
    color: #444 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}
.home-intro-highlights{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 14px !important;
    margin-top: 18px !important;
}
.highlight{
    background: #fff !important;
    border-radius: 14px !important;
    padding: 16px 14px !important;
    border: 1px solid rgba(0,0,0,.06) !important;
}
.highlight h3{
    margin: 0 0 10px !important;
    font-size: 16px !important;
    color: #111 !important;
}
.highlight ul{
    margin: 0 !important;
    padding-left: 18px !important;
}
.highlight li{
    margin: 6px 0 !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
.home-intro-cta{
    margin-top: 22px !important;
    display: block !important;
    width: 100% !important;
    grid-column: 1 / -1 !important; /* fuerza que ocupe 3 columnas si está dentro de .home-intro-highlights */
}
.home-intro-cta-text{
    font-weight: 900 !important;
    color: #111 !important;
    font-size: 18px !important;
    margin: 0 !important;
    padding: 18px 24px !important;
    background: linear-gradient(135deg, rgba(255,64,129,.12), rgba(21,211,211,.12)) !important;
    border: 1px solid rgba(255,64,129,.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 35px rgba(30,58,138,.10) !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}





@media (max-width: 980px){
    .home-intro-grid{ width: 100% !important; }
    .home-intro-highlights{ grid-template-columns: 1fr !important; }
    .home-intro-title{ font-size: 24px !important; }
}



