/* ============================================================
   SONEC LANDING PAGE — CSS
   Prefijo: snc- para evitar conflictos con Astra
   ============================================================ */

:root {
  --snc-green:       #2d8a4e;
  --snc-green-dark:  #1f6b3a;
  --snc-green-light: #e8f5ee;
  --snc-yellow:      #f5a623;
  --snc-dark:        #0f1923;
  --snc-dark2:       #1a2a1e;
  --snc-gray:        #6b7280;
  --snc-light:       #f9fafb;
  --snc-white:       #ffffff;
  --snc-radius:      14px;
  --snc-shadow:      0 6px 28px rgba(0,0,0,.09);
}

/* Reset del wrapper del tema para el landing */
#snc-landing { width: 100%; overflow-x: hidden; }
#snc-landing * { box-sizing: border-box; }
.site-content,
.entry-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.ast-container { max-width: none !important; padding: 0 !important; }

/* ── TOPBAR ──────────────────────────────────────────────── */
.snc-topbar {
  background: var(--snc-green);
  text-align: center;
  padding: 10px 20px;
}
.snc-topbar-cta {
  color: var(--snc-white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
}
.snc-topbar-cta:hover { text-decoration: underline; }

/* ── GLOBALS ─────────────────────────────────────────────── */
.snc-section { padding: 80px 0; }
.snc-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.snc-center { text-align: center; }
.snc-center p { margin: 0 auto; }

.snc-section-head { margin-bottom: 52px; }
.snc-section-head h2 { font-size: clamp(28px,3.5vw,42px); font-weight: 800; line-height: 1.2; margin: 12px 0; }
.snc-section-head p { font-size: 17px; color: var(--snc-gray); line-height: 1.7; max-width: 580px; }

.snc-tag {
  display: inline-block;
  background: var(--snc-green-light); color: var(--snc-green);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
}
.snc-tag-light {
  background: rgba(45,138,78,.2); color: #6ee89a;
}

/* ── BOTONES ─────────────────────────────────────────────── */
.snc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: all .2s; cursor: pointer;
}
.snc-btn-primary {
  background: var(--snc-green); color: var(--snc-white);
}
.snc-btn-primary:hover {
  background: var(--snc-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,138,78,.35);
  color: var(--snc-white);
}
.snc-btn-ghost {
  background: rgba(255,255,255,.1); color: var(--snc-white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.snc-btn-ghost:hover { background: rgba(255,255,255,.2); color: var(--snc-white); }
.snc-btn-white {
  background: var(--snc-white); color: var(--snc-green);
  font-size: 16px; padding: 16px 36px;
}
.snc-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  color: var(--snc-green-dark);
}

/* ── HERO ────────────────────────────────────────────────── */
.snc-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--snc-dark) 0%, var(--snc-dark2) 55%, #0d2b18 100%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.snc-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 72% 50%, rgba(45,138,78,.22) 0%, transparent 70%);
}
.snc-hero-inner {
  flex: 1;
  display: flex; align-items: center;
  max-width: 1140px; margin: 0 auto; padding: 100px 24px 60px;
  width: 100%; position: relative; z-index: 1; gap: 48px;
}
.snc-hero-content { flex: 1; max-width: 560px; }

.snc-badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,138,78,.18); border: 1px solid rgba(45,138,78,.4);
  color: #6ee89a; padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.snc-badge-dot {
  width: 8px; height: 8px; background: #4ade80;
  border-radius: 50%; animation: snc-pulse 2s infinite;
}
@keyframes snc-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.snc-hero-content h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900; line-height: 1.08;
  color: var(--snc-white); margin-bottom: 20px; letter-spacing: -1px;
}
.snc-hero-content h1 em {
  color: var(--snc-yellow); font-style: normal;
}
.snc-hero-content p {
  font-size: 17px; color: rgba(255,255,255,.7);
  line-height: 1.7; margin-bottom: 36px;
}
.snc-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.snc-hero-visual {
  flex: 0 0 420px; display: flex; align-items: center; justify-content: center;
}
.snc-hero-visual img {
  width: 100%; max-width: 400px;
  filter: drop-shadow(0 20px 60px rgba(45,138,78,.28));
  animation: snc-float 5s ease-in-out infinite;
}
@keyframes snc-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.snc-hero-placeholder {
  font-size: 120px; opacity: .3;
}

.snc-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; background: rgba(0,0,0,.3); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px; flex-wrap: wrap; position: relative; z-index: 1;
}
.snc-stat { display: flex; flex-direction: column; align-items: center; padding: 0 32px; }
.snc-stat-val { font-size: 28px; font-weight: 800; color: var(--snc-white); line-height: 1; }
.snc-stat-val small { font-size: 14px; color: var(--snc-yellow); margin-left: 2px; }
.snc-stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.snc-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* ── POR QUÉ SONEC ───────────────────────────────────────── */
.snc-why { background: var(--snc-light); }
.snc-why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.snc-why-card {
  background: var(--snc-white); border-radius: var(--snc-radius);
  padding: 28px; box-shadow: var(--snc-shadow);
  border: 1px solid rgba(45,138,78,.07);
  transition: transform .25s, box-shadow .25s;
}
.snc-why-card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0,0,0,.11); }
.snc-why-icon { font-size: 36px; margin-bottom: 14px; }
.snc-why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.snc-why-card p { font-size: 14px; color: var(--snc-gray); line-height: 1.65; }

/* ── PRODUCTOS ───────────────────────────────────────────── */
.snc-products { background: var(--snc-white); }

.snc-tabs {
  display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap;
}
.snc-tab {
  padding: 10px 24px; border-radius: 8px;
  border: 1.5px solid var(--snc-green);
  background: transparent; color: var(--snc-green);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
}
.snc-tab.active { background: var(--snc-green); color: var(--snc-white); }
.snc-tab:hover:not(.active) { background: var(--snc-green-light); }

.snc-tab-panel { display: none; }
.snc-tab-panel.active { display: block; }

.snc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Tarjeta de producto */
.snc-product-card {
  border: 1.5px solid #e5e7eb; border-radius: var(--snc-radius);
  overflow: hidden; background: var(--snc-white);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.snc-product-card:hover {
  border-color: var(--snc-green);
  box-shadow: 0 12px 40px rgba(45,138,78,.12);
  transform: translateY(-4px);
}
.snc-product-card.out-of-stock { opacity: .7; }

.snc-product-img {
  background: linear-gradient(135deg, #f0f9f4, #e8f5ee);
  height: 240px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.snc-product-img img {
  max-height: 200px; max-width: 85%; object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.10));
  transition: transform .3s;
}
.snc-product-card:hover .snc-product-img img { transform: scale(1.04); }
.snc-product-img-placeholder {
  font-size: 72px; opacity: .35;
}
.snc-product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--snc-green); color: var(--snc-white);
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.snc-badge-gray { background: var(--snc-gray) !important; }

.snc-product-body {
  padding: 22px; display: flex; flex-direction: column; flex: 1;
}
.snc-product-cat {
  font-size: 11px; color: var(--snc-green);
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.snc-product-name {
  font-size: 19px; font-weight: 800; margin-bottom: 6px; line-height: 1.3;
}
.snc-product-short {
  font-size: 13px; color: var(--snc-gray); margin-bottom: 16px; line-height: 1.5;
}

.snc-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}
.snc-spec {
  background: var(--snc-light); border-radius: 8px;
  padding: 9px 12px;
}
.snc-spec-label { font-size: 10px; color: var(--snc-gray); text-transform: uppercase; letter-spacing: .3px; display: block; }
.snc-spec-val   { font-size: 15px; font-weight: 700; color: var(--snc-dark); display: block; margin-top: 2px; }

.snc-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 5px; margin-bottom: 18px;
}
.snc-features li {
  font-size: 13px; color: var(--snc-gray);
  display: flex; align-items: center; gap: 7px;
}
.snc-features li::before {
  content: '✓'; color: var(--snc-green);
  font-weight: 700; flex-shrink: 0;
}

.snc-product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid #f0f0f0; margin-top: auto;
}
.snc-price { font-size: 18px; font-weight: 800; color: var(--snc-green); }
.snc-price .woocommerce-Price-amount { color: var(--snc-green); }
.snc-price-consult { font-size: 14px; color: var(--snc-gray); font-weight: 600; }

.snc-btn-buy {
  background: var(--snc-green); color: var(--snc-white) !important;
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: .2s; white-space: nowrap;
}
.snc-btn-buy:hover { background: var(--snc-green-dark); }
.snc-btn-disabled {
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  background: #e5e7eb; color: var(--snc-gray);
}

.snc-no-products {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 10px; padding: 20px 24px; font-size: 14px;
}
.snc-no-products a { color: var(--snc-green); font-weight: 600; }

/* ── CÓMO FUNCIONA ───────────────────────────────────────── */
.snc-how {
  background: linear-gradient(135deg, var(--snc-dark) 0%, var(--snc-dark2) 100%);
}
.snc-steps {
  display: flex; align-items: flex-start;
  gap: 0; margin-top: 52px; flex-wrap: wrap; justify-content: center;
}
.snc-step {
  flex: 1; min-width: 180px; max-width: 240px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 16px;
}
.snc-step-num {
  width: 60px; height: 60px; background: var(--snc-green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--snc-white);
  margin-bottom: 18px;
  box-shadow: 0 0 0 8px rgba(45,138,78,.15);
}
.snc-step h3 { font-size: 16px; font-weight: 700; color: var(--snc-white); margin-bottom: 10px; }
.snc-step p  { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65; }
.snc-step-arrow {
  font-size: 28px; color: rgba(45,138,78,.5);
  align-self: center; padding: 0 8px; margin-bottom: 40px;
}

/* ── CTA CALCULADORA ─────────────────────────────────────── */
.snc-calc-cta {
  background: linear-gradient(135deg, var(--snc-green) 0%, var(--snc-green-dark) 100%);
  color: var(--snc-white);
}
.snc-calc-cta h2 { font-size: clamp(26px,3.5vw,40px); font-weight: 800; color: var(--snc-white); margin: 14px 0; }
.snc-calc-cta p  { font-size: 17px; color: rgba(255,255,255,.85); max-width: 560px; line-height: 1.7; margin-bottom: 36px; }

/* ── GARANTÍAS ───────────────────────────────────────────── */
.snc-guarantee { background: var(--snc-light); }
.snc-guarantee-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.snc-guarantee-item {
  background: var(--snc-white); border-radius: var(--snc-radius);
  padding: 32px 20px; text-align: center;
  box-shadow: var(--snc-shadow);
  border-bottom: 3px solid var(--snc-green);
}
.snc-g-icon  { font-size: 40px; margin-bottom: 12px; }
.snc-g-val   { font-size: 26px; font-weight: 900; color: var(--snc-green); margin-bottom: 8px; }
.snc-g-label { font-size: 13px; color: var(--snc-gray); line-height: 1.5; }

/* ── FOOTER ──────────────────────────────────────────────── */
.snc-footer {
  background: var(--snc-dark);
  color: rgba(255,255,255,.55);
  text-align: center; padding: 40px 24px;
  font-size: 14px; line-height: 1.8;
}
.snc-footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
nav .nav-logo { padding-left: 8px; }
.snc-footer-contact a { color: var(--snc-green); text-decoration: none; }
.snc-footer-contact a:hover { text-decoration: underline; }
.snc-footer-copy { font-size: 12px; margin-top: 12px; color: rgba(255,255,255,.3); }

/* ── Botón ficha técnica ─────────────────────────────────── */
.snc-btn-ficha {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  background: var(--snc-green-light); color: var(--snc-green);
  border: 1.5px solid var(--snc-green);
  transition: .2s;
}
.snc-btn-ficha:hover { background: var(--snc-green); color: var(--snc-white); }
.woocommerce-cart table.shop_table,
.woocommerce-cart .woocommerce { padding-left: 16px; padding-right: 16px; }
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { padding: 12px 16px; }
@media (max-width: 900px) {
  .snc-hero-visual { display: none; }
  .snc-hero-inner  { padding: 90px 24px 40px; }
  .snc-step-arrow  { display: none; }
  .snc-steps       { gap: 32px; }
  .snc-stat        { padding: 0 16px; }
}
@media (max-width: 600px) {
  .snc-section { padding: 56px 0; }
  .snc-hero-stats { gap: 0; }
  .snc-stat-sep { display: none; }
  .snc-products-grid { grid-template-columns: 1fr; }
  .snc-hero-content h1 { font-size: 34px; }
}
