/*
Theme Name: CENAMEX Premium Woo
Theme URI: https://cenamex.com/
Author: CENAMEX / Codex
Description: Tema premium para Centro Naturista Mexicano, compatible con WooCommerce y orientado a conversión, SEO y catálogo existente.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cenamex-premium
*/

:root {
  --cx-green: #0b3a2c;
  --cx-green-2: #14533f;
  --cx-gold: #c9a44d;
  --cx-gold-2: #e2c878;
  --cx-ink: #16231d;
  --cx-muted: #65746d;
  --cx-soft: #f7f5ee;
  --cx-white: #ffffff;
  --cx-line: rgba(22, 35, 29, .12);
  --cx-shadow: 0 18px 45px rgba(11, 58, 44, .13);
  --cx-radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--cx-ink);
  background: var(--cx-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position:absolute; left:-10000px; }

.cx-topbar {
  background: var(--cx-green);
  color: var(--cx-white);
  font-size: 13px;
}
.cx-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.cx-topbar .cx-wrap,
.cx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cx-topbar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 8px 0;
}
.cx-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--cx-line);
  backdrop-filter: blur(12px);
}
.cx-header-inner { min-height: 78px; }
.cx-logo img { width: 174px; display: block; }
.cx-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.cx-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cx-cart {
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
}
.cx-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cx-white);
}
.cx-search-form input {
  width: 180px;
  min-height: 38px;
  border: 0;
  padding: 0 12px;
  outline: 0;
}
.cx-search-form button {
  min-height: 38px;
  border: 0;
  padding: 0 13px;
  background: var(--cx-gold);
  color: var(--cx-green);
  font-weight: 900;
  cursor: pointer;
}
.cx-menu-toggle { display: none; }

.cx-hero {
  color: var(--cx-white);
  background:
    linear-gradient(115deg, rgba(11,58,44,.96), rgba(11,58,44,.84) 55%, rgba(20,83,63,.78)),
    radial-gradient(circle at 78% 28%, rgba(226,200,120,.32), transparent 28%);
}
.cx-hero-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, .72fr);
  align-items: center;
  gap: 52px;
  padding: 62px 0;
}
.cx-kicker {
  color: var(--cx-gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cx-hero h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .98;
  letter-spacing: 0;
}
.cx-lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.88);
  font-size: 19px;
}
.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cx-btn, .button, button.single_add_to_cart_button, .woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 20px;
  background: var(--cx-gold);
  color: var(--cx-green);
  font-weight: 900;
  cursor: pointer;
}
.cx-btn.secondary {
  color: var(--cx-white);
  border-color: rgba(255,255,255,.35);
  background: transparent;
}
.cx-hero-panel {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--cx-radius);
  padding: 26px;
  box-shadow: var(--cx-shadow);
}
.cx-hero-panel img {
  width: 230px;
  display: block;
  margin: 0 auto 24px;
  filter: drop-shadow(0 15px 28px rgba(0,0,0,.18));
}
.cx-mini-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cx-mini-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,.9);
}
.cx-dot {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--cx-gold);
  flex: 0 0 auto;
}

.cx-section { padding: 74px 0; }
.cx-section.alt { background: var(--cx-soft); }
.cx-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.cx-section h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}
.cx-section p { color: var(--cx-muted); }

.cx-category-grid,
.cx-benefit-grid,
.cx-editorial-grid,
.cx-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cx-card {
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: var(--cx-white);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(22,35,29,.05);
}
.cx-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cx-green);
  font-size: 18px;
}
.cx-card .cx-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--cx-green);
  font-weight: 900;
}

.cx-products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product,
.cx-products ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  list-style: none;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: var(--cx-white);
  padding: 16px !important;
  box-shadow: 0 12px 28px rgba(22,35,29,.07);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--cx-green);
  font-size: 17px;
  min-height: 48px;
}
.woocommerce span.onsale {
  background: var(--cx-gold);
  color: var(--cx-green);
  font-weight: 900;
}
.woocommerce .price { color: var(--cx-green) !important; font-weight: 900; }

.cx-search-band {
  background: var(--cx-green);
  color: var(--cx-white);
  padding: 42px 0;
}
.cx-search-band .cx-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 26px;
  align-items: center;
}
.cx-search-band p { color: rgba(255,255,255,.8); }
.cx-search-band .cx-search-form input { width: 100%; }

.cx-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  box-shadow: var(--cx-shadow);
}
.cx-footer {
  background: #071f18;
  color: rgba(255,255,255,.82);
  padding: 54px 0 28px;
}
.cx-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}
.cx-footer img { width: 160px; margin-bottom: 16px; }
.cx-footer a { display: block; margin: 7px 0; }
.cx-legal {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

.woocommerce div.product {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto;
}
.woocommerce div.product .product_title {
  color: var(--cx-green);
  font-size: clamp(32px, 4vw, 52px);
}
.woocommerce div.product form.cart .button { background: var(--cx-gold); color: var(--cx-green); }

@media (max-width: 920px) {
  .cx-menu-toggle {
    display: inline-flex;
    border: 1px solid var(--cx-line);
    background: var(--cx-white);
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 900;
  }
  .cx-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    padding: 18px;
    background: var(--cx-white);
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    box-shadow: var(--cx-shadow);
  }
  .cx-nav.is-open { display: grid; }
  .cx-header-actions .cx-search-form { display: none; }
  .cx-hero-grid,
  .cx-search-band .cx-wrap,
  .cx-footer-grid {
    grid-template-columns: 1fr;
  }
  .cx-hero-grid { min-height: auto; padding: 48px 0; }
  .cx-category-grid,
  .cx-benefit-grid,
  .cx-editorial-grid,
  .cx-faq-grid,
  .cx-products ul.products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .cx-wrap { width: min(100% - 24px, 1180px); }
  .cx-topbar .cx-wrap,
  .cx-header-inner,
  .cx-section-head {
    align-items: flex-start;
  }
  .cx-header-inner { min-height: 70px; }
  .cx-logo img { width: 138px; }
  .cx-hero h1 { font-size: 40px; }
  .cx-lead { font-size: 17px; }
  .cx-category-grid,
  .cx-benefit-grid,
  .cx-editorial-grid,
  .cx-faq-grid,
  .cx-products ul.products {
    grid-template-columns: 1fr;
  }
  .cx-section { padding: 52px 0; }
}
