/*
Theme Name: CleanFlux
Theme URI: https://limpiezacleanflux.com
Author: Clean Flux Tenerife
Description: Tema personalizado para Clean Flux - Tienda de productos de limpieza concentrados. Envíos a toda Canarias.
Version: 1.0.0
License: GNU General Public License v2 or later
Tags: woocommerce, ecommerce, custom
*/

/* =========================================
   GOOGLE FONTS + RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g1: #0A3D2E;
  --g2: #1B7A56;
  --g3: #25C47E;
  --g4: #E8F7F0;
  --gold: #F4B942;
  --gold2: #E8A020;
  --dark: #0D1F16;
  --txt: #1A2E23;
  --muted: #5A7A68;
  --white: #ffffff;
  --light: #F5FAF7;
  --border: #D0E8DC;
  --r: 14px;
  --rs: 8px;
  --sh: 0 4px 24px rgba(10,61,46,.10);
  --shh: 0 8px 32px rgba(10,61,46,.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  background: var(--g1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.site-logo span { color: var(--g3); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.nav-cart {
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--rs);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-cart:hover { background: var(--gold2); }
.nav-cart .badge {
  background: var(--g3);
  color: var(--dark);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
  background: var(--g3);
  padding: 11px 5vw;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trust-bar span {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--g1) 55%, var(--g2) 100%);
  padding: 80px 5vw 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 2px solid rgba(37,196,126,.12);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37,196,126,.15);
  border: 1px solid rgba(37,196,126,.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--g3);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--g3); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--rs);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--rs);
  padding: 13px 24px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-stats { display: flex; gap: 32px; }
.hero-stats .stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat span {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-visual { display: flex; justify-content: center; }
.hero-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  padding: 32px 40px;
  text-align: center;
}
.hero-emoji { font-size: 80px; display: block; margin-bottom: 8px; }
.hero-1L {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.hero-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.hero-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pill {
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}
.pill-g { background: rgba(37,196,126,.18); color: var(--g3); }
.pill-y { background: rgba(244,185,66,.18); color: var(--gold); }
.pill-w { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }

/* =========================================
   WRAPPER / MAX WIDTH
   ========================================= */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* =========================================
   SECCIÓN HEADER
   ========================================= */
.sec { padding: 70px 5vw; }
.sec-white { background: var(--white); }
.sec-light { background: var(--light); }
.sec-pale  { background: var(--g4); }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-tag {
  display: inline-block;
  background: var(--g4);
  color: var(--g2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 12px;
}
.sec-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 800;
  color: var(--g1);
  margin-bottom: 10px;
}
.sec-head p { color: var(--muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* =========================================
   CATEGORÍAS
   ========================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--g2);
  transform: scaleX(0);
  transition: transform .2s;
}
.cat-card:hover { border-color: var(--g2); transform: translateY(-3px); box-shadow: var(--sh); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.cat-name { font-size: 14px; font-weight: 700; color: var(--g1); }
.cat-count { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* =========================================
   PRODUCTOS
   ========================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.product-card:hover { box-shadow: var(--shh); transform: translateY(-4px); }
.product-img {
  background: var(--g4);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.prod-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}
.prod-badge.new-badge { background: var(--g3); }
.product-body { padding: 16px; }
.prod-stars { color: var(--gold); font-size: 12px; margin-bottom: 6px; }
.prod-stars span { color: var(--muted); font-size: 11px; }
.prod-name { font-size: 15px; font-weight: 700; color: var(--g1); margin-bottom: 5px; line-height: 1.3; font-family: 'Playfair Display', serif; }
.prod-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.prod-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-price { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--g1); }
.prod-price s { font-size: 13px; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 400; margin-right: 3px; }
.add-btn {
  background: var(--g1);
  color: #fff;
  border: none;
  border-radius: var(--rs);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.add-btn:hover { background: var(--g2); }
.sec-cta { text-align: center; margin-top: 40px; }
.btn-dark {
  background: var(--g1);
  color: #fff;
  border: none;
  border-radius: var(--rs);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-dark:hover { background: var(--g2); }

/* =========================================
   OFERTA FLASH
   ========================================= */
.offer-wrap { padding: 0 5vw 70px; }
.offer-banner {
  background: var(--g1);
  border-radius: 20px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.offer-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.offer-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.offer-desc { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 20px; }
.countdown { display: flex; gap: 10px; margin-bottom: 22px; }
.cd {
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
}
.cd-n {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: block;
}
.cd-l { font-size: 10px; color: rgba(255,255,255,.5); }
.offer-pct {
  font-family: 'Syne', sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: var(--g3);
  line-height: 1;
  text-align: center;
}
.offer-old { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: line-through; text-align: center; margin-top: 6px; }

/* =========================================
   POR QUÉ CLEANFLUX
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow .2s;
}
.why-card:hover { box-shadow: var(--sh); }
.why-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--g4);
  position: absolute;
  top: 14px; right: 18px;
  line-height: 1;
}
.why-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.why-title { font-size: 16px; font-weight: 700; color: var(--g1); margin-bottom: 8px; }
.why-text { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* =========================================
   TESTIMONIOS
   ========================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 10px; }
.testi-text { font-size: 14px; color: var(--txt); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--g4);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--g2);
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--g1); }
.testi-role { font-size: 12px; color: var(--muted); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--dark);
  padding: 60px 5vw 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { display: block; margin-bottom: 14px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 18px; }
.footer-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pay-tag {
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; color: rgba(255,255,255,.55); cursor: pointer; transition: color .2s; }
.footer-col li:hover { color: var(--g3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }

/* =========================================
   NOTIFICACIÓN CARRITO
   ========================================= */
.cf-notif {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--g1);
  color: #fff;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transition: transform .3s;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  white-space: nowrap;
}
.cf-notif.show { transform: translateX(-50%) translateY(0); }

/* =========================================
   MOBILE NAV
   ========================================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--g1);
  padding: 16px 5vw 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero { padding: 50px 5vw 60px; }

  .offer-banner { grid-template-columns: 1fr; padding: 32px 24px; }
  .offer-pct { font-size: 56px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
}

/* =========================================
   BANNER CATEGORÍA AUTOMÓVIL
   ========================================= */
.tax-product_cat .woocommerce-products-header,
.term-automovil .woocommerce-products-header,
.term-automvil .woocommerce-products-header {
  background-image: url('automovil-banner.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  min-height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.tax-product_cat .woocommerce-products-header::before,
.term-automovil .woocommerce-products-header::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.45) !important;
}

.tax-product_cat .woocommerce-products-header .woocommerce-products-header__title,
.term-automovil .woocommerce-products-header .woocommerce-products-header__title {
  font-family: 'Playfair Display', serif !important;
  color: #fff !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  position: relative !important;
  z-index: 1 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
}

/* =========================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.cf-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 9999;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.cf-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.cf-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.cf-whatsapp-tooltip {
  position: fixed;
  bottom: 38px;
  right: 96px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 9998;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.cf-whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}
.cf-whatsapp:hover + .cf-whatsapp-tooltip,
.cf-whatsapp-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   PÁGINA DE CONTACTO MEJORADA
   ========================================= */
.cf-contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cf-contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g1);
  margin-bottom: 16px;
}
.cf-contact-info p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.cf-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.cf-contact-icon {
  width: 48px;
  height: 48px;
  background: var(--g4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cf-contact-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
}
.cf-contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--g1);
}
.cf-contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
}
.cf-contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g1);
  margin-bottom: 24px;
}
.cf-form-group {
  margin-bottom: 18px;
}
.cf-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--g1);
  margin-bottom: 6px;
}
.cf-form-group input,
.cf-form-group textarea,
.cf-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--rs);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--txt);
  background: var(--light);
  transition: border-color .2s;
  outline: none;
}
.cf-form-group input:focus,
.cf-form-group textarea:focus {
  border-color: var(--g2);
  background: var(--white);
}
.cf-form-group textarea {
  height: 120px;
  resize: vertical;
}
@media (max-width: 768px) {
  .cf-contact-wrap { grid-template-columns: 1fr; gap: 32px; }
}
