/*
Theme Name: Dospel Chile
Theme URI: https://dospelchile.cl
Author: Nivelación Digital
Author URI: https://nivelaciondigital.com
Description: Tema custom para Dospel Chile — catálogo de ventilación industrial y residencial con WooCommerce.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: dospel
*/

/* ── VARIABLES ── */
:root {
    --primary: #4DD4E6;
    --primary-dark: #015E73;
    --primary-darker: #024B5E;
    --accent: #0F285A;
    --accent-dark: #0A1E45;
    --navy: #0F285A;
    --lime: #A6C82D;
    --light-bg: #f6f7fb;
    --text: #2d2d2d;
    --text-light: #666;
    --white: #fff;
    --radius: 6px;
    --max-width: 1440px;
    --gutter: 48px;
    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* ── HEADER WRAP ── */
.header-wrap { position: relative; z-index: 100; }
.header-transparent { position: absolute; top: 0; left: 0; right: 0; }
.header-solid .site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
/* ── HEADER ── */
.site-header { background: transparent; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; height: 90px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.site-logo { padding: 8px 0; margin-right: auto; }
.site-logo img { height: 73px; display: block; }

/* ── HEADER SOCIAL ── */
.header-social { display: flex; align-items: center; gap: 16px; }
.header-social a { color: rgba(255,255,255,.7); transition: var(--transition); display: flex; align-items: center; }
.header-social a:hover { color: var(--white); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.main-nav a:hover { color: var(--white); }
.nav-cta { background: #4DD4E6; color: var(--navy) !important; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; }
.nav-cta:hover { background: #3ABFCE; }

/* ── HAMBURGER ── */
.hamburger { display: none; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }

/* ── HERO 100VH ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,40,90,.88) 0%, rgba(15,40,90,.6) 45%, transparent 100%); }
.hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 720px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); color: var(--white); padding: 8px 20px; border-radius: 24px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px; }
.hero-tag::before { content: ''; width: 8px; height: 8px; background: #4DD4E6; border-radius: 50%; }
.hero-inner h1 { font-size: 56px; font-weight: 800; line-height: 1.08; margin-bottom: 22px; letter-spacing: -1px; }
.hero-inner h1 em { font-style: normal; color: var(--lime); }
.hero-inner p { font-size: 18px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 40px; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.5); font-size: 12px; text-align: center; letter-spacing: 2px; text-transform: uppercase; }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 40px; background: rgba(255,255,255,.3); margin: 10px auto 0; }

/* ── BOTONES ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; border-radius: var(--radius); font-size: 14px; font-weight: 700; text-decoration: none; transition: var(--transition); letter-spacing: .3px; border: none; }
.btn-solid { background: #4DD4E6; color: var(--navy); }
.btn-solid:hover { background: #3ABFCE; transform: translateY(-2px); }
.btn-glass { background: rgba(255,255,255,.12); backdrop-filter: blur(6px); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
/* Hero buttons */
.hero .btn-solid { background: #fff; color: var(--navy); }
.hero .btn-solid:hover { background: #e8eaf0; }
.hero .btn-glass { background: #4DD4E6; color: var(--navy); border: none; }
.hero .btn-glass:hover { background: #3ABFCE; }
/* CTA button white */
.btn-cta-white { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; border-radius: var(--radius); font-size: 14px; font-weight: 700; background: #fff; color: var(--navy); transition: var(--transition); text-decoration: none; }
.btn-cta-white:hover { background: #e8eaf0; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); }

/* ── SECCIONES ── */
.section { padding: 100px var(--gutter); }
.section-label { font-size: 12px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 3px; text-align: center; margin-bottom: 12px; }
.section-title { font-size: 38px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-sub { text-align: center; color: #888; font-size: 16px; margin-bottom: 56px; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.bg-light { background: var(--light-bg); }

/* ── CATEGORÍAS 2 COLS ── */
.cats-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 320px; gap: 20px; max-width: var(--max-width); margin: 0 auto; }
.cat-card { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; text-decoration: none; }
.cat-bg { position: absolute; inset: 0; transition: .5s; }
.cat-card:hover .cat-bg { transform: scale(1.05); }
.cat-content { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.cat-content h3 { color: var(--white); font-size: 28px; font-weight: 800; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cat-content p { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 300; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.cat-link { color: var(--lime); font-size: 13px; font-weight: 600; margin-top: 10px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ── HOME PRODUCTOS ── */
.home-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: var(--max-width); margin: 0 auto; }
.home-product-card { background: var(--white); border-radius: 12px; overflow: hidden; transition: var(--transition); text-decoration: none; color: inherit; }
.home-product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(15,40,90,.1); }
.home-product-img { height: 240px; background: #fff; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; }
.home-product-img img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.home-product-badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: var(--white); font-size: 10px; font-weight: 700; padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; z-index: 2; }
.home-product-body { padding: 20px; }
.home-product-cat { font-size: 11px; color: #999; text-transform: uppercase; font-weight: 600; letter-spacing: .8px; }
.home-product-body h4 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 6px 0 8px; }
.home-product-price { font-size: 18px; font-weight: 800; color: var(--navy); }
.home-product-btn { display: block; width: 100%; margin-top: 14px; padding: 12px; background: var(--light-bg); border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--primary); text-align: center; transition: .2s; }
.home-product-card:hover .home-product-btn { background: #4DD4E6; color: var(--navy); }

/* ── CTA BANNER ── */
.cta-banner { position: relative; min-height: 420px; display: flex; align-items: center; background-size: cover; background-position: center; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,40,90,.92) 0%, rgba(15,40,90,.7) 50%, transparent 100%); }
.cta-content { position: relative; z-index: 2; padding: 60px var(--gutter); max-width: 600px; }
.cta-content h2 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.5px; }
.cta-content p { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.7; margin-bottom: 32px; font-weight: 300; }

/* ── MARCAS SECTION ── */
.marcas-section { position: relative; background-size: cover; background-position: center; }
.marcas-section::before { content: ''; position: absolute; inset: 0; background: rgba(15,40,90,.2); }
.marcas-section .section-inner { position: relative; z-index: 2; }
.marcas-logos { display: flex; justify-content: center; gap: 40px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.marcas-logos img { height: 56px; width: auto; }
@media (max-width: 768px) {
    .marcas-logos { flex-direction: column; align-items: center; gap: 16px; }
    .marcas-logos img { height: 38px; width: auto; }
}

/* ── TRUST BAR ── */
.trust-bar { padding: 60px var(--gutter); text-align: center; border-top: 1px solid #eee; }
.trust-bar > p { font-size: 13px; color: var(--navy); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 30px; }
.trust-logos { display: flex; justify-content: center; gap: 60px; align-items: center; opacity: .35; }
.trust-logos span { font-size: 20px; font-weight: 800; color: #333; letter-spacing: 2px; }

/* ══════════════════════════════════════════
   NOSOTROS PAGE
   ══════════════════════════════════════════ */

/* ── Banner ── */
.nosotros-hero { position: relative; min-height: 400px; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--white); }
.nosotros-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,40,90,.88) 0%, rgba(15,40,90,.6) 45%, transparent 100%); }
.nosotros-hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: var(--max-width); margin: 0 auto; width: 100%; }
.nosotros-hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.nosotros-hero p { font-size: 18px; color: rgba(255,255,255,.7); font-weight: 300; }

/* ── Bloques de texto ── */
.nosotros-block { max-width: var(--max-width); margin: 0 auto; }
.nosotros-text p { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 20px; }
.nosotros-text p:last-child { margin-bottom: 0; }

/* ── Propuesta de valor cards ── */
.nosotros-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nosotros-card { background: var(--white); border-radius: 12px; padding: 36px 28px; box-shadow: 0 2px 12px rgba(0,0,0,.05); border: 1px solid #eee; transition: var(--transition); }
.nosotros-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(15,40,90,.1); border-color: var(--primary); }
.nosotros-card-icon { width: 56px; height: 56px; background: var(--light-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 20px; }
.nosotros-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.nosotros-card p { font-size: 14px; line-height: 1.7; color: #666; }

/* ── Socios comerciales ── */
.nosotros-partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nosotros-partner { background: var(--white); border-radius: 12px; padding: 36px 28px; box-shadow: 0 2px 12px rgba(0,0,0,.05); border: 1px solid #eee; }
.nosotros-partner-logo { height: auto; width: 70%; max-width: 220px; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }
.nosotros-partner p { font-size: 14px; line-height: 1.7; color: #666; text-align: center; }

/* ── Nosotros Responsive ── */
@media (max-width: 768px) {
    .nosotros-hero { min-height: 280px; }
    .nosotros-hero-inner { padding: 0 24px; }
    .nosotros-hero h1 { font-size: 28px; }
    .nosotros-hero p { font-size: 15px; }
    .nosotros-block { padding: 0 8px; }
    .nosotros-cards { grid-template-columns: 1fr; }
    .nosotros-partners { grid-template-columns: 1fr; }
    .nosotros-text p { font-size: 15px; }
}

/* ══════════════════════════════════════════
   CONTACTO PAGE
   ══════════════════════════════════════════ */

/* ── Banner ── */
.contacto-hero { position: relative; min-height: 400px; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--navy); }
.contacto-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,.3) 100%); }
.contacto-hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: var(--max-width); margin: 0 auto; width: 100%; }
.contacto-hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; color: var(--navy); }
.contacto-hero p { font-size: 18px; color: rgba(15,40,90,.6); font-weight: 300; }

/* ── Grid 2 columnas ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ── Info ── */
.contacto-info h2 { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.contacto-info > p { font-size: 16px; line-height: 1.7; color: #666; margin-bottom: 36px; }
.contacto-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.contacto-item { display: flex; gap: 16px; align-items: flex-start; }
.contacto-item-icon { width: 48px; height: 48px; background: var(--light-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contacto-item-icon--wa { background: #e8f8ee; color: #25D366; }
.contacto-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contacto-item a, .contacto-item span { font-size: 15px; color: #555; }
.contacto-item a:hover { color: var(--primary); }
.contacto-horario { background: var(--light-bg); border-radius: 10px; padding: 20px 24px; }
.contacto-horario h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contacto-horario p { font-size: 14px; color: #666; }

/* ── Mapa ── */
.contacto-mapa { border-radius: 12px; overflow: hidden; min-height: 500px; box-shadow: 0 2px 12px rgba(0,0,0,.08); border: 1px solid #eee; }
.contacto-mapa iframe { display: block; width: 100%; height: 100%; min-height: 500px; }

/* ── Contacto Responsive ── */
@media (max-width: 768px) {
    .contacto-hero { min-height: 280px; }
    .contacto-hero-inner { padding: 0 16px; }
    .contacto-hero h1 { font-size: 28px; }
    .contacto-hero p { font-size: 15px; }
    .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
    .contacto-mapa { min-height: 350px; }
    .contacto-mapa iframe { min-height: 350px; }
}

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 64px var(--gutter); max-width: var(--max-width); margin: 0 auto; }
.footer-grid h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-grid p { font-size: 14px; line-height: 1.8; font-weight: 300; }
.footer-grid a { color: rgba(255,255,255,.55); font-size: 14px; display: block; line-height: 2.2; font-weight: 300; }
.footer-grid a:hover { color: var(--lime); }
.footer-logo img { height: 44px; margin-bottom: 12px; }
.footer-address { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.5; }
.footer-address svg { flex-shrink: 0; margin-top: 2px; stroke: var(--lime); }
.footer-waze-btn { display: inline-block; margin-top: 12px; padding: 8px 20px; background: var(--lime); color: var(--navy) !important; font-size: 12px; font-weight: 700; border-radius: var(--radius); text-transform: uppercase; letter-spacing: .5px; transition: var(--transition); line-height: 1; }
.footer-waze-btn:hover { background: #8fb524; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px var(--gutter); display: flex; justify-content: space-between; font-size: 12px; max-width: var(--max-width); margin: 0 auto; }
.footer-bottom a { color: rgba(255,255,255,.4); margin-left: 20px; }

/* ── WooCommerce overrides ── */
.woocommerce .woocommerce-breadcrumb { padding: 16px var(--gutter); font-size: 13px; color: #999; background: var(--white); border-bottom: 1px solid #eee; }
.woocommerce .woocommerce-breadcrumb a { color: var(--primary); }
.woocommerce div.product .product_title { color: var(--primary); font-size: 32px; }
.woocommerce div.product p.price { color: var(--primary); font-size: 28px; font-weight: 800; }
.woocommerce div.product .single_add_to_cart_button { background: var(--accent); border-radius: var(--radius); font-weight: 700; font-size: 15px; padding: 14px 32px; }
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--accent-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .cats-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 240px; }
    .home-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --gutter: 16px; }

    /* Announcement */
    /* Header */
    .site-header { padding: 0 16px; height: 64px; }
    .site-logo img { height: 48px; }
    .header-social { gap: 12px; }
    .header-social svg { width: 18px; height: 18px; }
    .hamburger { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,40,90,.97); backdrop-filter: blur(10px); flex-direction: column; padding: 16px; z-index: 99; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; width: 100%; }
    .nav-cta { text-align: center; margin-top: 12px; display: block; padding: 14px 24px; border-bottom: none; width: 100%; box-sizing: border-box; border-radius: var(--radius); }

    /* Hero */
    .hero { min-height: 65vh; }
    .hero-inner { padding: 0 16px; padding-top: 100px; }
    .hero-inner h1 { font-size: 32px; letter-spacing: -0.5px; text-align: left; }
    .hero-inner p { font-size: 16px; margin-bottom: 28px; text-align: left; }
    .hero-tag { font-size: 11px; padding: 6px 14px; margin-bottom: 20px; }
    .hero-btns { flex-direction: column; gap: 12px; }
    .hero-btns .btn { text-align: center; justify-content: center; padding: 14px 28px; }
    .scroll-hint { display: none; }

    /* Secciones */
    .section { padding: 50px 16px; }
    .section-label { font-size: 11px; letter-spacing: 2px; }
    .section-title { font-size: 24px; }
    .section-sub { font-size: 14px; margin-bottom: 32px; }

    /* Categorías */
    .cats-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px; gap: 12px; }
    .cat-content { padding: 16px; }
    .cat-content h3 { font-size: 16px; }

    /* Productos home */
    .home-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-product-img { height: 180px; }
    .home-product-body { padding: 14px; }
    .home-product-body h4 { font-size: 14px; }
    .home-product-price { font-size: 15px; }
    .home-product-badge { font-size: 9px; padding: 4px 10px; top: 10px; left: 10px; }
    .home-product-btn { padding: 10px; font-size: 12px; }

    /* CTA */
    .cta-banner { min-height: 320px; }
    .cta-banner::before { background: linear-gradient(to bottom, rgba(15,40,90,.9) 0%, rgba(15,40,90,.7) 100%); }
    .cta-content { padding: 40px 16px; }
    .cta-content h2 { font-size: 24px; }
    .cta-content p { font-size: 14px; }

    /* Trust */
    .trust-bar { padding: 32px 16px; }
    .trust-logos { flex-wrap: wrap; gap: 20px; }
    .trust-logos span { font-size: 14px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 16px; }
    .footer-bottom { flex-direction: column; gap: 8px; padding: 16px; text-align: center; }
    .footer-bottom a { margin-left: 0; margin-right: 12px; }
}

@media (max-width: 480px) {
    .hero { min-height: 60vh; }
    .hero-inner h1 { font-size: 28px; }
    .home-products-grid { grid-template-columns: repeat(2, 1fr); }
    .home-product-img { height: 160px; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 160px; }
}

/* ══════════════════════════════════════════
   SHOP / TIENDA
   ══════════════════════════════════════════ */

/* ── Banner cabecera ── */
/* ── Page/Shop Banner ── */
.page-banner { background: url('img/hero-fondo1.png') center/cover no-repeat; padding: 48px var(--gutter) 42px; position: relative; color: var(--white); }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,40,90,.88) 0%, rgba(15,40,90,.6) 45%, transparent 100%); }
.page-banner-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 2; }
.page-banner h1 { font-size: 28px; font-weight: 800; color: var(--white); margin: 0; }

.shop-banner { background: url('img/hero-fondo1.png') center/cover no-repeat; color: var(--white); padding: 48px var(--gutter) 40px; position: relative; }
.shop-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,40,90,.88) 0%, rgba(15,40,90,.6) 45%, transparent 100%); }
.shop-banner-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; }
.shop-banner h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.shop-banner p { font-size: 16px; opacity: .75; margin-bottom: 12px; }
.shop-breadcrumb { font-size: 13px; opacity: .6; }
.shop-breadcrumb a { color: var(--white); text-decoration: underline; }

/* ── Layout 2 columnas ── */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; max-width: var(--max-width); margin: 0 auto; padding: 40px var(--gutter); }

/* ── Sidebar ── */
.shop-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-block { background: var(--white); border-radius: 10px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); border: 1px solid #eee; }
.sidebar-block h4 { font-size: 14px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--light-bg); }

/* Buscador */
.shop-search { display: flex; border: 1px solid #ddd; border-radius: var(--radius); overflow: hidden; }
.shop-search input { flex: 1; padding: 10px 14px; border: none; font-size: 14px; font-family: var(--font); outline: none; }
.shop-search button { background: var(--primary); color: var(--white); border: none; padding: 10px 14px; cursor: pointer; transition: var(--transition); }
.shop-search button:hover { background: var(--primary-dark); }

/* Categorías sidebar */
.sidebar-cats { list-style: none; }
.sidebar-cats > li { margin-bottom: 2px; }
.sidebar-cats > li > a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text); transition: var(--transition); }
.sidebar-cats > li > a:hover, .sidebar-cats > li.active > a { background: var(--light-bg); color: var(--primary); font-weight: 600; }
.cat-count { background: var(--light-bg); color: var(--text-light); font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.sidebar-cats > li.active > a .cat-count { background: var(--primary); color: var(--white); }

/* Subcategorías */
.sidebar-subcats { list-style: none; margin-left: 12px; border-left: 2px solid var(--light-bg); padding-left: 0; }
.sidebar-subcats li a { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; font-size: 13px; color: var(--text-light); border-radius: 4px; transition: var(--transition); }
.sidebar-subcats li a:hover, .sidebar-subcats li.active a { color: var(--primary); font-weight: 600; }

/* CTA sidebar */
.sidebar-cta { background: var(--primary); color: var(--navy); text-align: center; }
.sidebar-cta h4 { color: var(--navy); border-bottom-color: rgba(15,40,90,.15); }
.sidebar-cta p { font-size: 14px; color: var(--navy); opacity: .85; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; display: block; margin-bottom: 12px; }
.sidebar-phone { color: var(--navy); font-size: 14px; font-weight: 600; }
.sidebar-phone:hover { color: var(--accent-dark); }

/* ── Subcategorías grid (dentro de categoría padre) ── */
.shop-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.shop-subcat-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: var(--transition); text-align: center; border: 1px solid #eee; }
.shop-subcat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,63,81,.1); border-color: var(--primary); }
.shop-subcat-img { height: 120px; background-size: cover; background-position: center; background-color: var(--light-bg); }
.shop-subcat-placeholder { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); opacity: .15; }
.shop-subcat-card span { display: block; padding: 14px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ── Toolbar ── */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.shop-result-count { display: none; }
.shop-ordering select { padding: 10px 36px 10px 16px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 13px; font-family: var(--font); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; appearance: none; -webkit-appearance: none; color: var(--text); font-weight: 500; }

/* ── Grilla de productos WC ── */
.shop-content .woocommerce ul.products,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-3,
.woocommerce ul.products[class*="columns-"] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.shop-content .woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: none !important;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: var(--transition);
    border: 1px solid #eee;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,63,81,.1); border-color: var(--primary); }
.woocommerce ul.products li.product a img { border-radius: 0; margin: 0; width: 100%; height: 200px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; color: #222; padding: 14px 16px 4px; }
.woocommerce ul.products li.product .price { padding: 0 16px; font-size: 16px; color: var(--primary); font-weight: 700; }
.woocommerce ul.products li.product .button { display: block; margin: 12px 16px 16px; padding: 10px; text-align: center; background: var(--primary); color: var(--white); border-radius: var(--radius); font-size: 13px; font-weight: 600; }
.woocommerce ul.products li.product .button:hover { background: var(--accent); }

/* Badge onsale */
.woocommerce ul.products li.product .onsale { top: 10px; right: 10px; left: auto; background: var(--accent); border-radius: 4px; min-width: auto; min-height: auto; line-height: 1; padding: 6px 12px; font-size: 12px; }

/* Star rating */
.woocommerce ul.products li.product .star-rating { margin: 4px 16px 0; font-size: 12px; }

/* ── Paginación ── */
.shop-pagination { margin-top: 40px; }
.woocommerce nav.woocommerce-pagination { text-align: right; }
.woocommerce nav.woocommerce-pagination ul { border: none; display: flex; justify-content: flex-end; gap: 6px; list-style: none; padding: 0; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: none; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li::before { display: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { display: block; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: 1px solid #ddd; background: var(--white); color: var(--text); min-width: auto; text-decoration: none; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--light-bg); color: var(--navy); border-color: var(--navy); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Sin productos ── */
.shop-no-products { text-align: center; padding: 60px 20px; }
.shop-no-products p { font-size: 18px; color: var(--text-light); margin-bottom: 20px; }

/* ── Product Card Custom ── */
.product-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.product-card-thumb { position: relative; height: 200px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; }
.product-card-thumb img { max-width: 80% !important; max-height: 80% !important; width: auto !important; height: auto !important; object-fit: contain; transition: transform .4s; margin: 0 !important; }
.woocommerce ul.products li.product:hover .product-card-thumb img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; z-index: 2; color: var(--white); }
.product-badge.sale { background: var(--accent); }
.product-badge.featured { background: var(--primary); }
.product-card-info { padding: 16px 16px 8px; flex: 1; }
.product-card-cat { font-size: 11px; color: var(--accent); text-transform: uppercase; font-weight: 600; letter-spacing: .5px; }
.product-card-title { font-size: 15px; font-weight: 600; color: #222; margin: 6px 0 8px; line-height: 1.3; }
.product-card-price { font-size: 16px; color: var(--primary); font-weight: 700; }
.product-card-price .price-consult { font-size: 14px; font-weight: 500; color: var(--text-light); }
.product-card-price del { color: #bbb; font-size: 13px; }
.product-card-price ins { text-decoration: none; }
.product-card-action { padding: 0 16px 16px; }
.product-card-btn { display: block; padding: 10px; text-align: center; background: var(--navy); color: var(--white); border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: var(--transition); }
.woocommerce ul.products li.product:hover .product-card-btn { background: #4DD4E6; color: var(--navy); }

/* Hide default WC elements in our custom card */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price:not(.product-card-price .price),
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .onsale { display: none; }

/* ── Shop Responsive ── */
@media (max-width: 1024px) {
    .shop-content .woocommerce ul.products,
    .woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px 40px; }
    .shop-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; padding-top: 24px; }
    .sidebar-block { margin-bottom: 0; }
    .sidebar-cta { grid-column: 1 / -1; }
    .page-banner { padding: 28px 16px 24px; }
    .page-banner h1 { font-size: 22px; }
    .shop-banner { padding: 32px 16px; }
    .shop-banner h1 { font-size: 24px; }
    .shop-content .woocommerce ul.products,
    .woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .woocommerce ul.products li.product a img { height: 160px; }
    .shop-subcats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .shop-sidebar { grid-template-columns: 1fr; }
    .shop-content .woocommerce ul.products,
    .woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, 1fr) !important; }
    .shop-subcats { grid-template-columns: 1fr; }
    .shop-toolbar { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   SINGLE PRODUCT
   ══════════════════════════════════════════ */

/* ── Breadcrumb ── */
.sp-breadcrumb { padding: 16px var(--gutter); font-size: 13px; color: #999; background: var(--white); border-bottom: 1px solid #eee; }
.sp-breadcrumb a { color: var(--primary); }
.sp-breadcrumb a:hover { text-decoration: underline; }

/* ── Layout 2 columnas ── */
.sp-product { max-width: var(--max-width); margin: 40px auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* ── Galería ── */
.sp-gallery { position: sticky; top: 100px; }
.sp-main-img { width: 100%; height: 450px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 16px; border: 1px solid #eee; }
.sp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumbs { display: flex; gap: 12px; }
.sp-thumb { width: 90px; height: 90px; background: var(--white); border-radius: 8px; overflow: hidden; border: 2px solid #eee; cursor: pointer; transition: .2s; }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb.active, .sp-thumb:hover { border-color: var(--accent); }

/* ── Info ── */
.sp-title { font-size: 32px; color: var(--navy); margin-bottom: 8px; }
.sp-sku { font-size: 13px; color: #999; margin-bottom: 20px; }
.sp-sku a { color: var(--primary); }
.sp-price-box { background: var(--light-bg); border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.sp-price { font-size: 28px; font-weight: 800; color: var(--navy); }
.sp-price .woocommerce-Price-amount { font-size: inherit; }
.sp-price-note { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.sp-desc { font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 28px; }

/* ── Actions ── */
.sp-actions { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.sp-actions form.cart { display: flex; gap: 14px; flex: 1; margin: 0; padding: 0; }
.sp-actions form.cart .quantity { width: 80px; }
.sp-actions form.cart .quantity input { width: 100%; padding: 14px 8px; border: 1px solid #ddd; border-radius: var(--radius); text-align: center; font-size: 16px; font-family: var(--font); }
.sp-actions form.cart button.single_add_to_cart_button { flex: 1; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); padding: 14px 24px; font-family: var(--font); }
.sp-actions form.cart button.single_add_to_cart_button:hover { background: var(--primary-dark); }
.sp-btn-quote { background: var(--white); color: var(--primary); border: 2px solid var(--primary); padding: 14px 24px; border-radius: var(--radius); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sp-btn-quote:hover { background: var(--light-bg); }

/* ── Garantías ── */
.sp-guarantees { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid #eee; flex-wrap: wrap; }
.sp-guarantee { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-light); }
.sp-guarantee-icon { width: 36px; height: 36px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ── Tabs ── */
.sp-tabs-section { max-width: var(--max-width); margin: 0 auto 60px; padding: 0 var(--gutter); }
.sp-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 30px; }
.sp-tab { padding: 14px 28px; font-size: 15px; font-weight: 600; color: #999; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.sp-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.sp-tab:hover { color: var(--primary); }
.sp-tab-content { display: none; background: var(--white); border-radius: 12px; padding: 36px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.sp-tab-content.active { display: block; }
.sp-tab-content p { line-height: 1.7; margin-bottom: 12px; }

/* ── Specs table ── */
.sp-specs-table { width: 100%; border-collapse: collapse; }
.sp-specs-table tr:nth-child(even) { background: var(--light-bg); }
.sp-specs-table td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.sp-specs-table td:first-child { font-weight: 600; color: #555; width: 40%; }

/* ── Relacionados ── */
.sp-related { max-width: var(--max-width); margin: 0 auto 80px; padding: 0 var(--gutter); }
.sp-related h2 { font-size: 26px; color: var(--navy); margin-bottom: 28px; }
.sp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sp-rel-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: var(--transition); text-decoration: none; color: inherit; border: 1px solid #eee; }
.sp-rel-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,63,81,.1); border-color: var(--primary); }
.sp-rel-img { height: 160px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14px; }
.sp-rel-img img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.sp-rel-body { padding: 16px; }
.sp-rel-body h4 { font-size: 15px; color: #222; margin-bottom: 4px; }
.sp-rel-cat { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ── Hide default WC single product elements we replaced ── */
.woocommerce div.product .product_meta,
.woocommerce div.product .woocommerce-tabs { display: none; }

/* ── Formulario consulta producto ── */
.sp-inquiry { max-width: var(--max-width); margin: 0 auto 60px; padding: 0 var(--gutter); }
.sp-inquiry-inner { background: var(--light-bg); border-radius: 12px; padding: 40px; }
.sp-inquiry-inner h2 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.sp-inquiry-inner > p { color: var(--text-light); font-size: 15px; margin-bottom: 24px; }
.sp-inquiry-form input,
.sp-inquiry-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: var(--radius); font-family: var(--font); font-size: 14px; transition: .2s; background: var(--white); }
.sp-inquiry-form input:focus,
.sp-inquiry-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(77,212,230,.15); }
.sp-inquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sp-inquiry-form textarea { margin-bottom: 18px; }
.sp-inquiry-form .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; cursor: pointer; }
.sp-inquiry-success { text-align: center; padding: 30px; }
.sp-inquiry-success h3 { color: var(--navy); font-size: 22px; margin-bottom: 6px; }
.sp-inquiry-success p { color: var(--text-light); }

/* ── Single Product Responsive ── */
@media (max-width: 768px) {
    .sp-product { grid-template-columns: 1fr; gap: 24px; margin: 24px auto; padding: 0 16px; }
    .sp-gallery { position: static; }
    .sp-main-img { height: 280px; }
    .sp-thumbs { flex-wrap: wrap; }
    .sp-thumb { width: 70px; height: 70px; }
    .sp-title { font-size: 24px; }
    .sp-price { font-size: 22px; }
    .sp-actions { flex-direction: column; }
    .sp-actions form.cart { flex-direction: row; }
    .sp-tabs-section { padding: 0 16px; }
    .sp-tabs { overflow-x: auto; }
    .sp-tab { padding: 12px 18px; white-space: nowrap; font-size: 14px; }
    .sp-tab-content { padding: 24px 16px; }
    .sp-inquiry { padding: 0 16px; }
    .sp-inquiry-inner { padding: 24px 16px; }
    .sp-inquiry-row { grid-template-columns: 1fr; }
    .sp-related { padding: 0 16px; margin-bottom: 40px; }
    .sp-related h2 { font-size: 22px; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sp-related-grid { grid-template-columns: 1fr; }
    .sp-guarantees { flex-direction: column; gap: 12px; }
}
