/*
Theme Name: NEW Agri Sciences (staging)
Theme URI: https://new.fisaro.cl
Description: Version de prueba con modulos nuevos (Lineas de producto + backup/restore). Carpeta separada de "Divi Child - Agri Sciences" para no arriesgar el tema en produccion mientras se prueba.
Author: Agri Sciences
Author URI: https://new.fisaro.cl
Template: Divi
Version: 3.4.0
License: GNU General Public License v2 or later
Text Domain: new-agri
*/

/* =====================================================================
   1. DESIGN TOKENS — v2.0 paleta bio-tech hex
   ===================================================================== */
:root {
  /* Greens — base brand */
  --as-dark: #0E2A1E;
  --as-primary: #1A3D2F;
  --as-primary-mid: #2D5F45;
  --as-primary-soft: #3F7A5C;
  --as-leaf: #7BC742;
  --as-leaf-soft: #A8D870;

  /* Accents */
  --as-magenta: #C7378F;
  --as-magenta-soft: #E067AE;
  --as-magenta-hover: #A52B75;
  --as-teal: #5BB7A8;
  --as-teal-soft: #8FCFC3;

  /* Neutrals */
  --as-bg: #ffffff;
  --as-bg-soft: #F4F7F2;
  --as-bg-tint: #E8EFE9;
  --as-text: #0E2A1E;
  --as-text-muted: #5C7666;
  --as-text-on-dark: #ffffff;
  --as-text-on-dark-muted: #A8C4B6;
  --as-border: #D6E2D8;
  --as-border-dark: #1F4A38;

  /* Type */
  --as-font-heading: 'Exo', Helvetica, Arial, sans-serif;
  --as-font-body: 'Lato', Helvetica, Arial, sans-serif;

  /* Spacing */
  --as-space-xs: 4px;
  --as-space-sm: 8px;
  --as-space-md: 16px;
  --as-space-lg: 24px;
  --as-space-xl: 32px;
  --as-space-2xl: 48px;
  --as-space-3xl: 64px;
  --as-space-4xl: 96px;
  --as-space-5xl: 128px;

  /* Radius */
  --as-radius-sm: 4px;
  --as-radius-md: 12px;
  --as-radius-lg: 24px;
  --as-radius-full: 999px;

  /* Shadow — verde tintado */
  --as-shadow-sm: 0 1px 3px rgba(14, 42, 30, .08);
  --as-shadow-md: 0 8px 24px rgba(14, 42, 30, .12);
  --as-shadow-lg: 0 20px 50px rgba(14, 42, 30, .18);
  --as-shadow-magenta: 0 12px 32px rgba(199, 55, 143, .28);

  /* Motion */
  --as-transition: all .35s cubic-bezier(.4, 0, .2, 1);
  --as-transition-slow: all .6s cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --as-container: 1440px;
  --as-container-narrow: 1100px;

  /* Hex sizes (clip-path) */
  --as-hex: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --as-hex-h: polygon(0% 50%, 25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%);
}

/* =====================================================================
   2. RESET + GLOBALS
   ===================================================================== */
body,
body .et_pb_text_inner p,
body .et_pb_text_inner,
body .et_pb_post_content {
  font-family: var(--as-font-body);
  color: var(--as-text);
  line-height: 1.7;
  font-weight: 400;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .et_pb_module h1, body .et_pb_module h2, body .et_pb_module h3,
body .et_pb_module h4, body .et_pb_module h5, body .et_pb_module h6 {
  font-family: var(--as-font-heading);
  color: var(--as-primary);
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-weight: 800;
}

body h1 { font-size: 34px; }
body h2 { font-size: 28px; font-weight: 800; }
body h3 { font-size: 22px; font-weight: 700; }
body h4 { font-size: 18px; font-weight: 700; }
body h5 { font-size: 16px; font-weight: 600; }

@media (min-width: 768px) {
  body h1 { font-size: 58px; line-height: 1.05; }
  body h2 { font-size: 40px; line-height: 1.1; }
  body h3 { font-size: 27px; }
  body h4 { font-size: 20px; }
}

@media (min-width: 1200px) {
  body h1 { font-size: 68px; }
  body h2 { font-size: 46px; }
}

.as-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--as-text-muted);
  font-weight: 400;
}
@media (min-width: 768px) {
  .as-lead { font-size: 20px; }
}

a {
  color: var(--as-primary);
  transition: var(--as-transition);
}
a:hover { color: var(--as-magenta); }

/* Highlight word — magenta inline */
.as-hl {
  color: var(--as-magenta);
  font-weight: 800;
  position: relative;
}
.as-hl-leaf { color: var(--as-leaf); font-weight: 800; }
.as-hl-teal { color: var(--as-teal); font-weight: 800; }

/* =====================================================================
   3. BACKGROUND PATTERNS — leaves SVG inline (encoded)
   ===================================================================== */
.as-bg-leaves {
  position: relative;
}
.as-bg-leaves::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237BC742' stroke-width='1.2' opacity='0.18'%3E%3Cpath d='M20 95 Q35 50 60 50 Q60 75 45 90 Q35 100 20 95 Z' /%3E%3Cpath d='M60 50 Q60 75 45 90' /%3E%3Cpath d='M75 30 Q90 5 110 12 Q108 30 95 38 Q85 42 75 30 Z' /%3E%3Cpath d='M110 12 Q108 30 95 38' /%3E%3Cpath d='M90 95 Q100 70 115 70 Q117 88 108 100 Q98 105 90 95 Z' /%3E%3Cpath d='M115 70 Q117 88 108 100' /%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}
.as-bg-leaves > * { position: relative; z-index: 1; }

/* =====================================================================
   4. SECTIONS — dark / soft / accent
   ===================================================================== */
.as-section {
  padding: var(--as-space-3xl) var(--as-space-md);
  background: var(--as-bg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .as-section { padding: var(--as-space-4xl) var(--as-space-xl); }
}
.as-section--soft { background: var(--as-bg-soft); }
.as-section--tint { background: var(--as-bg-tint); }
.as-section--dark {
  background: linear-gradient(135deg, var(--as-dark) 0%, var(--as-primary) 60%, var(--as-primary-mid) 100%);
  color: var(--as-text-on-dark);
}
.as-section--dark h1,
.as-section--dark h2,
.as-section--dark h3,
.as-section--dark h4 {
  color: var(--as-text-on-dark);
}
.as-section--dark p,
.as-section--dark .as-lead {
  color: var(--as-text-on-dark-muted);
}

.as-container {
  max-width: var(--as-container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* =====================================================================
   5. BULLETS DECORATION (5 dots)
   ===================================================================== */
.as-bullets {
  display: inline-flex;
  gap: 10px;
  margin-bottom: var(--as-space-md);
}
.as-bullets span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--as-leaf);
  display: block;
}
.as-bullets--magenta span { background: var(--as-magenta); }
.as-bullets--teal span { background: var(--as-teal); }
.as-bullets--mixed span:nth-child(1) { background: var(--as-leaf); }
.as-bullets--mixed span:nth-child(2) { background: var(--as-teal); }
.as-bullets--mixed span:nth-child(3) { background: var(--as-magenta); }
.as-bullets--mixed span:nth-child(4) { background: var(--as-leaf-soft); }
.as-bullets--mixed span:nth-child(5) { background: var(--as-teal-soft); }

/* Floating animation */
@keyframes as-float-bullets {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.as-bullets.is-animated span {
  animation: as-float-bullets 3s ease-in-out infinite;
}
.as-bullets.is-animated span:nth-child(2) { animation-delay: .15s; }
.as-bullets.is-animated span:nth-child(3) { animation-delay: .3s; }
.as-bullets.is-animated span:nth-child(4) { animation-delay: .45s; }
.as-bullets.is-animated span:nth-child(5) { animation-delay: .6s; }

/* =====================================================================
   6. HEXAGON — clip-path photo container
   ===================================================================== */
.as-hex {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* hex regular — 6 lados iguales con clip-path 50%/93.3% */
  clip-path: var(--as-hex);
  -webkit-clip-path: var(--as-hex);
  background: linear-gradient(135deg, var(--as-primary) 0%, var(--as-primary-mid) 100%);
  overflow: hidden;
  display: block;
}
.as-hex img,
.as-hex .as-hex__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.as-hex:hover img,
.as-hex:hover .as-hex__img {
  transform: scale(1.08);
}
.as-hex--h {
  aspect-ratio: 1 / 1; /* hex horizontal regular */
  clip-path: var(--as-hex-h);
  -webkit-clip-path: var(--as-hex-h);
}

/* Hex with gradient overlay */
.as-hex--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,30,0) 0%, rgba(14,42,30,.55) 80%, rgba(14,42,30,.85) 100%);
  pointer-events: none;
}

/* Hex small icon (logo/sticker style) */
.as-hex-icon {
  width: 80px;
  height: 80px;
  clip-path: var(--as-hex);
  -webkit-clip-path: var(--as-hex);
  background: var(--as-leaf);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--as-primary);
  font-size: 32px;
}

/* =====================================================================
   7. HERO — agritech bio style
   ===================================================================== */
.as-hero {
  position: relative;
  background: linear-gradient(135deg, var(--as-dark) 0%, var(--as-primary) 55%, var(--as-primary-mid) 100%);
  color: var(--as-text-on-dark);
  padding: var(--as-space-4xl) var(--as-space-md);
  overflow: hidden;
}
@media (min-width: 768px) {
  .as-hero { padding: var(--as-space-5xl) var(--as-space-xl); }
}

.as-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237BC742' stroke-width='1.2' opacity='0.4'%3E%3Cpath d='M20 95 Q35 50 60 50 Q60 75 45 90 Q35 100 20 95 Z' /%3E%3Cpath d='M75 30 Q90 5 110 12 Q108 30 95 38 Q85 42 75 30 Z' /%3E%3Cpath d='M90 95 Q100 70 115 70 Q117 88 108 100 Q98 105 90 95 Z' /%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.as-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--as-space-2xl);
  align-items: center;
  max-width: var(--as-container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .as-hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--as-space-4xl); }
}

.as-hero__content h1 {
  color: var(--as-text-on-dark);
  margin: var(--as-space-md) 0 var(--as-space-lg);
}
.as-hero__content .as-lead {
  color: var(--as-text-on-dark-muted);
  max-width: 560px;
  margin-bottom: var(--as-space-xl);
}

.as-hero__cta {
  display: flex;
  gap: var(--as-space-md);
  flex-wrap: wrap;
}

/* Hero hex visual side */
.as-hero__visual {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.as-hero__visual .as-hex {
  box-shadow: var(--as-shadow-lg);
}
.as-hero__visual .as-bullets {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 3;
}
.as-hero__visual .as-bullets--magenta {
  top: auto;
  bottom: 50px;
  left: auto;
  right: -10px;
}

/* =====================================================================
   8. CARDS — bio-tech style with hex header
   ===================================================================== */
.as-card {
  background: var(--as-bg);
  border-radius: var(--as-radius-md);
  box-shadow: var(--as-shadow-sm);
  overflow: hidden;
  transition: var(--as-transition);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--as-leaf);
  position: relative;
}
.as-card:hover {
  box-shadow: var(--as-shadow-md);
  transform: translateY(-6px);
  border-top-color: var(--as-magenta);
}
.as-card--magenta { border-top-color: var(--as-magenta); }
.as-card--magenta:hover { border-top-color: var(--as-leaf); }
.as-card--teal { border-top-color: var(--as-teal); }

.as-card__body {
  padding: var(--as-space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--as-space-sm);
  flex: 1;
}
.as-card__hex {
  width: 64px;
  height: 64px; /* hex regular — w=h con clip-path 50%/93.3% */
  clip-path: var(--as-hex);
  -webkit-clip-path: var(--as-hex);
  background: var(--as-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: var(--as-space-md);
  transition: var(--as-transition);
}
.as-card:hover .as-card__hex {
  background: var(--as-magenta);
  transform: rotate(15deg);
}
.as-card__title {
  margin: 0;
  font-size: 24px;
  color: var(--as-primary);
  font-family: var(--as-font-heading);
  font-weight: 800;
}
.as-card__excerpt {
  color: var(--as-text-muted);
  margin: 0;
  flex: 1;
  line-height: 1.6;
}
.as-card__link {
  color: var(--as-magenta);
  font-weight: 700;
  margin-top: var(--as-space-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--as-transition);
}
.as-card__link::after {
  content: "→";
  transition: var(--as-transition);
}
.as-card:hover .as-card__link::after {
  transform: translateX(6px);
}

/* =====================================================================
   9. BUTTONS — biotech bold
   ===================================================================== */
body .as-btn,
body a.as-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--as-space-sm);
  padding: 16px 32px;
  font-family: var(--as-font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--as-radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--as-transition);
  text-decoration: none;
  white-space: nowrap;
}

body .as-btn--primary,
body a.as-btn--primary {
  background: var(--as-magenta);
  color: #fff !important;
  border-color: var(--as-magenta);
  box-shadow: var(--as-shadow-magenta);
}
body .as-btn--primary:hover,
body a.as-btn--primary:hover {
  background: var(--as-magenta-hover);
  border-color: var(--as-magenta-hover);
  color: #fff !important;
  transform: translateY(-2px);
}

body .as-btn--leaf,
body a.as-btn--leaf {
  background: var(--as-leaf);
  color: var(--as-primary) !important;
  border-color: var(--as-leaf);
}
body .as-btn--leaf:hover,
body a.as-btn--leaf:hover {
  background: var(--as-leaf-soft);
  border-color: var(--as-leaf-soft);
  transform: translateY(-2px);
}

body .as-btn--outline,
body a.as-btn--outline {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
body .as-btn--outline:hover,
body a.as-btn--outline:hover {
  background: #fff;
  color: var(--as-primary) !important;
  transform: translateY(-2px);
}

body .as-btn--outline-dark,
body a.as-btn--outline-dark {
  background: transparent;
  color: var(--as-primary) !important;
  border-color: var(--as-primary);
}
body .as-btn--outline-dark:hover,
body a.as-btn--outline-dark:hover {
  background: var(--as-primary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Divi default button → mismo estilo */
body .et_pb_button {
  font-family: var(--as-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--as-radius-full) !important;
  padding: 16px 32px !important;
  transition: var(--as-transition);
}
body .et_pb_button::after { display: none !important; }

/* =====================================================================
   10. GRID layouts
   ===================================================================== */
.as-grid {
  display: grid;
  gap: var(--as-space-lg);
  grid-template-columns: 1fr;
}
/* wpautop inserta <br> y <p> vacíos entre siblings — fuera del grid */
.as-grid > br,
.as-grid > p:empty {
  display: none;
}
@media (min-width: 480px) {
  .as-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .as-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--as-space-xl);
  }
}
@media (min-width: 1024px) {
  .as-grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--as-space-xl); }
}

/* Hex grid — alternating offset */
.as-hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--as-space-md);
  align-items: start;
}
@media (min-width: 900px) {
  .as-hex-grid > *:nth-child(even) {
    transform: translateY(40px);
  }
}

/* =====================================================================
   11. PRODUCT-LINE PAGE template
   ===================================================================== */
.as-product-hero {
  padding: var(--as-space-4xl) var(--as-space-md);
  background: linear-gradient(135deg, var(--as-dark) 0%, var(--as-primary) 100%);
  color: var(--as-text-on-dark);
  position: relative;
  overflow: hidden;
}
.as-product-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px; /* hex regular */
  background: var(--as-leaf);
  clip-path: var(--as-hex);
  opacity: .12;
}
.as-product-hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px; /* hex regular */
  background: var(--as-magenta);
  clip-path: var(--as-hex);
  opacity: .08;
}
.as-product-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--as-container);
  margin: 0 auto;
}
.as-product-hero h1 { color: #fff; margin: var(--as-space-md) 0; }
.as-product-hero .as-lead { color: var(--as-text-on-dark-muted); max-width: 720px; }

.as-product-features {
  padding: var(--as-space-3xl) var(--as-space-md);
  background: var(--as-bg-soft);
}

/* =====================================================================
   12. FORMS
   ===================================================================== */
.as-form input[type="text"],
.as-form input[type="email"],
.as-form input[type="tel"],
.as-form input[type="url"],
.as-form select,
.as-form textarea,
body .et_pb_contact_form_container input[type="text"],
body .et_pb_contact_form_container input[type="email"],
body .et_pb_contact_form_container textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--as-border) !important;
  border-radius: var(--as-radius-md) !important;
  font-family: var(--as-font-body);
  font-size: 16px;
  color: var(--as-text);
  background: var(--as-bg);
  transition: var(--as-transition);
}
.as-form input:focus,
.as-form textarea:focus,
body .et_pb_contact_form_container input:focus,
body .et_pb_contact_form_container textarea:focus {
  border-color: var(--as-magenta) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(199, 55, 143, .12);
}

/* =====================================================================
   13. HEADER + NAV
   ===================================================================== */
body #main-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--as-shadow-sm);
  border-bottom: 1px solid var(--as-border);
  transition: var(--as-transition);
}
body #main-header.et-fixed-header {
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--as-shadow-md);
}
body #top-menu li a {
  font-family: var(--as-font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--as-primary) !important;
}
body #top-menu li a:hover,
body #top-menu li.current-menu-item > a,
body #top-menu li.current_page_item > a {
  color: var(--as-magenta) !important;
}
body #top-menu .sub-menu {
  border-top: 3px solid var(--as-magenta);
  border-radius: 0 0 var(--as-radius-md) var(--as-radius-md);
  box-shadow: var(--as-shadow-lg);
  background: var(--as-bg);
  padding: var(--as-space-sm) 0;
}
body #top-menu .sub-menu li a {
  font-size: 13px;
  padding: 10px 24px !important;
}

/* Responsive header logo split (preserved) */
@media (max-width: 740px) {
  #headerLogo { width: 40% !important; }
  #headerMenu { width: 60% !important; }
}
@media (min-width: 741px) {
  #headerLogo { width: 20%; }
  #headerMenu { width: 80%; }
}

.et_mobile_menu {
  background: var(--as-primary) !important;
  border-top: 3px solid var(--as-magenta) !important;
  margin-left: -30px;
  padding: 5%;
  width: calc(100% + 60px);
}
.et_mobile_menu li a {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,.1) !important;
}
.et_mobile_menu li a:hover {
  color: var(--as-leaf) !important;
  background: rgba(123, 199, 66, .08) !important;
}

/* =====================================================================
   14. FOOTER — full dark with leaves pattern
   ===================================================================== */
body #main-footer {
  background: linear-gradient(135deg, var(--as-dark) 0%, var(--as-primary) 100%);
  color: var(--as-text-on-dark);
  position: relative;
  overflow: hidden;
}
body #main-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237BC742' stroke-width='1.2'%3E%3Cpath d='M20 95 Q35 50 60 50 Q60 75 45 90 Q35 100 20 95 Z' /%3E%3Cpath d='M75 30 Q90 5 110 12 Q108 30 95 38 Q85 42 75 30 Z' /%3E%3Cpath d='M90 95 Q100 70 115 70 Q117 88 108 100 Q98 105 90 95 Z' /%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
body #main-footer > .container { position: relative; z-index: 2; }
body #footer-bottom {
  background: var(--as-dark);
  color: var(--as-text-on-dark-muted);
}
body #main-footer a,
body #footer-bottom a {
  color: var(--as-text-on-dark);
  transition: var(--as-transition);
}
body #main-footer a:hover {
  color: var(--as-leaf);
}
body #main-footer h1,
body #main-footer h2,
body #main-footer h3,
body #main-footer h4,
body #main-footer .widget-title,
body #main-footer .et_pb_widget_title {
  color: var(--as-leaf) !important;
}

/* =====================================================================
   15. UTILITIES + ANIMATIONS
   ===================================================================== */
.as-text-center { text-align: center; }
.as-mt-0 { margin-top: 0 !important; }
.as-mb-0 { margin-bottom: 0 !important; }
.as-mb-sm { margin-bottom: var(--as-space-sm); }
.as-mb-md { margin-bottom: var(--as-space-md); }
.as-mb-lg { margin-bottom: var(--as-space-lg); }
.as-mb-xl { margin-bottom: var(--as-space-xl); }
.as-mb-2xl { margin-bottom: var(--as-space-2xl); }
.as-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Fade-up reveal */
@keyframes as-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.as-reveal { animation: as-fade-up .8s cubic-bezier(.4,0,.2,1) both; }
.as-reveal-d1 { animation-delay: .1s; }
.as-reveal-d2 { animation-delay: .2s; }
.as-reveal-d3 { animation-delay: .3s; }
.as-reveal-d4 { animation-delay: .4s; }

/* Pulse for hex visual */
@keyframes as-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.as-pulse { animation: as-pulse 4s ease-in-out infinite; }

/* =====================================================================
   16. CTA bar — big call-to-action with magenta hex bg
   ===================================================================== */
.as-cta-bar {
  padding: var(--as-space-4xl) var(--as-space-md);
  background: var(--as-primary);
  color: var(--as-text-on-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.as-cta-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -200px;
  width: 500px;
  height: 500px; /* hex regular */
  background: var(--as-magenta);
  clip-path: var(--as-hex);
  opacity: .25;
  transform: translateY(-50%);
}
.as-cta-bar::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px; /* hex regular */
  background: var(--as-leaf);
  clip-path: var(--as-hex);
  opacity: .18;
}
.as-cta-bar h2 {
  color: #fff;
  max-width: 800px;
  margin: 0 auto var(--as-space-lg);
  position: relative;
  z-index: 2;
}
.as-cta-bar p {
  color: var(--as-text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto var(--as-space-xl);
  position: relative;
  z-index: 2;
}
.as-cta-bar .as-btn { position: relative; z-index: 2; }

/* =====================================================================
   17. LEGACY compat — minimal mobile slider fix
   ===================================================================== */
@media (max-width: 740px) {
  .et_pb_slider .et_pb_slide {
    background-position: center !important;
  }
}
@media only screen and (max-width: 767px) {
  .et_pb_fullwidth_slider_0,
  .et_pb_fullwidth_slider_0 .et_pb_slide {
    min-height: 240px;
  }
}

/* =====================================================================
   18. WIDESCREEN + ZERO-PAD GLOBAL OVERRIDES (v2.1)
   Anula los wrappers Divi para que .as-section controle 100% del spacing
   y el contenido aproveche pantallas grandes.
   ===================================================================== */

/* Divi section/row/column → zero padding, full width */
body .et_pb_section {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
body .et_pb_row,
body .et_pb_row_inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
body .et_pb_column {
  padding: 0 !important;
  margin-bottom: 0 !important;
}
body .et_pb_section.et_pb_fullwidth_section,
body .et_pb_section.et_section_regular {
  width: 100% !important;
  max-width: 100% !important;
}

/* Page container — usar todo el ancho */
body #page-container,
body #et-main-area,
body #main-content,
body #main-content .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* .as-section ahora con clamp() para spacing horizontal escalable */
.as-section {
  padding: var(--as-space-3xl) clamp(16px, 4vw, 64px);
}
@media (min-width: 768px) {
  .as-section { padding: var(--as-space-4xl) clamp(24px, 4vw, 80px); }
}

.as-container {
  max-width: var(--as-container);
  margin: 0 auto;
  padding: 0 clamp(0px, 2vw, 24px);
  position: relative;
  z-index: 2;
}
.as-container--narrow {
  max-width: var(--as-container-narrow);
}

/* Hero/CTA paddings horizontales con clamp */
.as-hero {
  padding: var(--as-space-4xl) clamp(16px, 4vw, 64px);
}
@media (min-width: 768px) {
  .as-hero { padding: var(--as-space-5xl) clamp(24px, 5vw, 96px); }
}
.as-product-hero {
  padding: var(--as-space-4xl) clamp(16px, 4vw, 64px);
}
.as-cta-bar {
  padding: var(--as-space-4xl) clamp(16px, 4vw, 64px);
}

/* Hero grid: container interno también centrado y max-width */
.as-hero__grid {
  max-width: var(--as-container);
}

/* =====================================================================
   19. SITE HEADER v2.5 — fondo blanco + table layout responsive
   ===================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Header responsive — search cell solo contiene el trigger lupa (44x44).
   Nav padding ajustado para dejar espacio al trigger. */
@media (max-width: 1199px) {
  .as-site-header__cell-nav { padding: 0 !important; }
  .as-site-nav { display: none !important; }
  .as-site-header__cell-logo { width: auto !important; }
}
@media (max-width: 640px) {
  .as-site-header__wrap { padding: 14px 16px !important; }
  .as-site-header__cell-logo img { height: 40px !important; }
}
@media (max-width: 1199px) {
  .as-site-header__cell-nav { padding: 0 !important; }
  .as-site-nav { display: none !important; }
  .as-site-header__cell-logo { width: auto !important; }
}
@media (max-width: 640px) {
  .as-site-header__wrap { padding: 14px 16px !important; }
  .as-site-header__cell-logo img { height: 40px !important; }
}
.as-site-header {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--as-border);
  box-shadow: 0 1px 3px rgba(14, 42, 30, .04);
  z-index: 100;
}
.as-site-header__bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237BC742' stroke-width='1.2'%3E%3Cpath d='M20 95 Q35 50 60 50 Q60 75 45 90 Q35 100 20 95 Z' /%3E%3Cpath d='M75 30 Q90 5 110 12 Q108 30 95 38 Q85 42 75 30 Z' /%3E%3Cpath d='M90 95 Q100 70 115 70 Q117 88 108 100 Q98 105 90 95 Z' /%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.as-site-header__inner {
  position: relative;
  z-index: 2;
  max-width: var(--as-container);
  margin: 0 auto;
  padding: 14px clamp(12px, 3vw, 40px);
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  box-sizing: border-box;
}
.as-site-header__inner > .as-site-logo {
  grid-column: 1 / 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}
.as-site-header__inner > .as-site-nav {
  grid-column: 2 / 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}
.as-site-header__inner > .as-site-header__search {
  grid-column: 3 / 4 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}
.as-site-header__inner > .as-burger-input,
.as-site-header__inner > .as-burger {
  grid-row: 1 !important;
}
.as-site-header__inner > .as-burger-input,
.as-site-header__inner > .as-burger { grid-row: 1; }

@media (max-width: 1199px) {
  .as-site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo burger";
  }
  .as-site-header__inner > .as-burger { grid-area: burger; justify-self: end; }
}
.as-site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 40px;
}
.as-site-logo img {
  height: 48px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .as-site-logo img { height: 56px; }
  .as-site-logo { padding-right: 56px; }
}
@media (min-width: 1200px) {
  .as-site-logo img { height: 64px; }
  .as-site-logo { padding-right: 72px; }
}

.as-site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  overflow: visible;
}
.as-site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.as-site-nav > ul > li {
  position: relative;
}
.as-site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  color: var(--as-primary) !important;
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--as-transition);
  border-radius: var(--as-radius-sm);
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .as-site-nav a { padding: 12px 10px; font-size: 12.5px; letter-spacing: 0.04em; }
}
.as-site-nav ul { gap: 0 !important; }
.as-site-nav > ul > li > a:hover,
.as-site-nav > ul > li.current-menu-item > a,
.as-site-nav > ul > li.current-menu-ancestor > a {
  color: var(--as-magenta) !important;
}
.as-site-nav > ul > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 9px;
  opacity: .7;
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
}
/* Sub-menu */
.as-site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-top: 3px solid var(--as-magenta);
  border-radius: 0 0 var(--as-radius-md) var(--as-radius-md);
  box-shadow: var(--as-shadow-lg);
  padding: var(--as-space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--as-transition);
  list-style: none;
}
.as-site-nav > ul > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.as-site-nav .sub-menu li a {
  color: var(--as-primary) !important;
  padding: 10px 20px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  border-radius: 0;
}
.as-site-nav .sub-menu li a:hover {
  background: var(--as-bg-soft);
  color: var(--as-magenta) !important;
}

/* Search bar (desktop inline + mobile inside burger) */
.as-site-header__search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-full);
  background: var(--as-bg-soft);
  transition: var(--as-transition);
  min-width: 0;
}
.as-site-header__search:focus-within {
  border-color: var(--as-magenta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(199, 55, 143, .12);
}
.as-site-header__search input[type="search"] {
  border: 0;
  background: transparent;
  padding: 6px 4px 6px 12px;
  font-family: var(--as-font-body);
  font-size: 12px;
  color: var(--as-text);
  width: 100px;
  min-width: 0;
  outline: none;
}
.as-site-header__search input[type="search"]::placeholder {
  color: var(--as-text-muted);
  opacity: .8;
}
@media (min-width: 1500px) {
  .as-site-header__search input[type="search"] { width: 140px; font-size: 13px; }
}
@media (min-width: 1700px) {
  .as-site-header__search input[type="search"] { width: 180px; }
}
.as-site-header__search button {
  background: transparent;
  border: 0;
  color: var(--as-primary);
  cursor: pointer;
  padding: 8px 14px 8px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--as-transition);
}
.as-site-header__search button:hover {
  color: var(--as-magenta);
}

/* CTA del header */
.as-site-header__cta {
  margin-left: 4px;
  flex-shrink: 0;
}
.as-site-header__cta .as-btn {
  padding: 10px 22px;
  font-size: 12px;
}

/* Mobile burger toggle (CSS only) — 3 líneas animadas */
.as-burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(26, 61, 47, .15);
  padding: 0;
  cursor: pointer;
  color: var(--as-primary);
  line-height: 1;
  border-radius: var(--as-radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.as-burger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--as-primary);
  border-radius: 2px;
  transition: var(--as-transition);
}
.as-burger:hover .as-burger__line,
.as-burger:focus .as-burger__line {
  background: var(--as-magenta);
}
.as-burger-input { display: none; }
.as-burger-input:checked + .as-burger .as-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.as-burger-input:checked + .as-burger .as-burger__line:nth-child(2) {
  opacity: 0;
}
.as-burger-input:checked + .as-burger .as-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .as-site-nav { display: none; }
  .as-site-header__cta { display: none; }
  .as-site-header__search {
    display: none; /* esconde inline search; aparece dentro del mobile menu */
  }
  .as-burger {
    display: inline-flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-color: rgba(26, 61, 47, .15);
    color: var(--as-primary);
  }
  .as-burger:hover,
  .as-burger:focus {
    background: rgba(26, 61, 47, .04);
    border-color: var(--as-magenta);
  }
  .as-burger-input:checked ~ .as-site-nav {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    flex: none !important;
    background: #ffffff !important;
    border-top: 3px solid var(--as-magenta) !important;
    padding: var(--as-space-md) !important;
    box-shadow: var(--as-shadow-lg) !important;
    z-index: 999 !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
  .as-burger-input:checked ~ .as-site-nav .as-site-nav__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .as-burger-input:checked ~ .as-site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .as-burger-input:checked ~ .as-site-nav a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid var(--as-border);
    white-space: normal;
    color: var(--as-primary) !important;
  }
  .as-burger-input:checked ~ .as-site-nav > ul > li.menu-item-has-children > a::after {
    margin-left: auto;
  }
  .as-burger-input:checked ~ .as-site-nav .sub-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: var(--as-space-lg);
  }
  .as-burger-input:checked ~ .as-site-nav .sub-menu a {
    color: var(--as-text-muted) !important;
    font-size: 13px;
    border-bottom-color: rgba(26, 61, 47, .05) !important;
  }
  /* Show search inside mobile menu (after nav) */
  .as-burger-input:checked ~ .as-site-header__search {
    display: flex;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--as-border);
    background: #fff;
    padding: 12px var(--as-space-md);
    z-index: 99;
    /* Ya viene después del nav inline (z-index ordering ok) */
  }
  .as-burger-input:checked ~ .as-site-header__search input[type="search"] {
    width: 100%;
    background: var(--as-bg-soft);
    padding: 12px 16px;
    border-radius: var(--as-radius-full);
  }
  .as-burger-input:checked ~ .as-site-header__search button {
    padding: 8px 16px;
  }
}

/* =====================================================================
   20. SITE FOOTER v2.1 — verde gradient + 4 columnas + leaves bg
   Reemplaza la layout del Theme Builder (post 229597).
   ===================================================================== */
.as-site-footer {
  position: relative;
  background: linear-gradient(135deg, var(--as-dark) 0%, var(--as-primary) 100%);
  color: var(--as-text-on-dark);
  overflow: hidden;
}
.as-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237BC742' stroke-width='1.2'%3E%3Cpath d='M20 95 Q35 50 60 50 Q60 75 45 90 Q35 100 20 95 Z' /%3E%3Cpath d='M75 30 Q90 5 110 12 Q108 30 95 38 Q85 42 75 30 Z' /%3E%3Cpath d='M90 95 Q100 70 115 70 Q117 88 108 100 Q98 105 90 95 Z' /%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.as-site-footer__hex {
  position: absolute;
  width: 600px;
  height: 600px; /* hex regular */
  clip-path: var(--as-hex);
  pointer-events: none;
  z-index: 1;
}
.as-site-footer__hex--magenta {
  background: var(--as-magenta);
  opacity: .08;
  top: -200px;
  right: -200px;
}
.as-site-footer__hex--leaf {
  background: var(--as-leaf);
  opacity: .06;
  bottom: -250px;
  left: -250px;
}

.as-site-footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--as-container);
  margin: 0 auto;
  padding: var(--as-space-4xl) clamp(16px, 4vw, 48px) var(--as-space-2xl);
}

.as-site-footer__grid {
  display: grid;
  gap: var(--as-space-2xl);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .as-site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .as-site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.as-site-footer__brand img {
  height: 64px;
  width: auto;
  margin-bottom: var(--as-space-md);
}
.as-site-footer__brand p {
  color: var(--as-text-on-dark-muted);
  max-width: 360px;
  font-size: 15px;
}
.as-site-footer__col h4 {
  color: var(--as-leaf) !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--as-space-lg);
  font-weight: 700;
}
.as-site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-site-footer__col ul a {
  color: var(--as-text-on-dark-muted) !important;
  text-decoration: none;
  font-size: 14px;
  transition: var(--as-transition);
}
.as-site-footer__col ul a:hover {
  color: var(--as-leaf) !important;
  padding-left: 4px;
}

.as-site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--as-space-md);
  color: var(--as-text-on-dark-muted);
  font-size: 14px;
}
.as-site-footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.as-site-footer__contact-icon {
  width: 32px;
  height: 32px; /* hex regular */
  flex-shrink: 0;
  clip-path: var(--as-hex);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--as-magenta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.as-site-footer__contact a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}
.as-site-footer__contact a:hover {
  color: var(--as-leaf) !important;
}

/* Copyright strip */
.as-site-footer__bottom {
  position: relative;
  z-index: 2;
  background: var(--as-dark);
  padding: var(--as-space-md) clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--as-space-sm);
  border-top: 1px solid rgba(123, 199, 66, .15);
}
.as-site-footer__bottom small,
.as-site-footer__bottom a {
  color: var(--as-text-on-dark-muted);
  font-size: 13px;
}

/* Esconder header/footer Divi default si por alguna razón se renderizan */
body.theme-builder-active #main-header,
body.theme-builder-active #top-header,
body.theme-builder-active #main-footer,
body.theme-builder-active #footer-bottom {
  display: none !important;
}
/* También por si acaso */
body #main-header,
body #top-header {
  display: none;
}

/* =====================================================================
   21. CONTRAST FIX (v2.1.1) — texto sobre dark contexts
   El selector `body .et_pb_module h1..h6` global tiene specificity (0,1,1,2)
   y forzaba color verde primary sobre headings en hero/cta-bar/dark sections,
   haciéndolos invisibles sobre el bg verde oscuro. Esta sección eleva la
   specificity a (0,2,1,2) para anular ese override en contextos dark.
   ===================================================================== */

body .et_pb_module .as-hero h1,
body .et_pb_module .as-hero h2,
body .et_pb_module .as-hero h3,
body .et_pb_module .as-hero h4,
body .et_pb_module .as-hero h5,
body .et_pb_module .as-hero h6,
body .et_pb_module .as-product-hero h1,
body .et_pb_module .as-product-hero h2,
body .et_pb_module .as-product-hero h3,
body .et_pb_module .as-product-hero h4,
body .et_pb_module .as-product-hero h5,
body .et_pb_module .as-section--dark h1,
body .et_pb_module .as-section--dark h2,
body .et_pb_module .as-section--dark h3,
body .et_pb_module .as-section--dark h4,
body .et_pb_module .as-section--dark h5,
body .et_pb_module .as-cta-bar h1,
body .et_pb_module .as-cta-bar h2,
body .et_pb_module .as-cta-bar h3,
body .et_pb_module .as-site-header h1,
body .et_pb_module .as-site-header h2,
body .et_pb_module .as-site-header h3,
body .et_pb_module .as-site-footer h1,
body .et_pb_module .as-site-footer h2,
body .et_pb_module .as-site-footer h3 {
  color: #ffffff;
}

/* Paragraphs / leads en dark contexts → muted on dark */
body .et_pb_module .as-hero p,
body .et_pb_module .as-hero .as-lead,
body .et_pb_module .as-product-hero p,
body .et_pb_module .as-product-hero .as-lead,
body .et_pb_module .as-section--dark p,
body .et_pb_module .as-section--dark .as-lead,
body .et_pb_module .as-cta-bar p,
body .et_pb_module .as-cta-bar .as-lead {
  color: var(--as-text-on-dark-muted);
}

/* Spans coloreados dentro de headings — refuerzan specificity para que
   .as-hl / .as-hl-leaf / .as-hl-teal SIEMPRE ganen sobre el heading color. */
body .et_pb_module .as-hl,
body .et_pb_module h1 .as-hl,
body .et_pb_module h2 .as-hl,
body .et_pb_module h3 .as-hl { color: var(--as-magenta); }

body .et_pb_module .as-hl-leaf,
body .et_pb_module h1 .as-hl-leaf,
body .et_pb_module h2 .as-hl-leaf,
body .et_pb_module h3 .as-hl-leaf { color: var(--as-leaf); }

body .et_pb_module .as-hl-teal,
body .et_pb_module h1 .as-hl-teal,
body .et_pb_module h2 .as-hl-teal,
body .et_pb_module h3 .as-hl-teal { color: var(--as-teal); }

/* Strong y links dentro de párrafos dark — visibles */
body .et_pb_module .as-hero strong,
body .et_pb_module .as-product-hero strong,
body .et_pb_module .as-section--dark strong,
body .et_pb_module .as-cta-bar strong {
  color: #ffffff;
}
body .et_pb_module .as-hero a:not(.as-btn),
body .et_pb_module .as-product-hero a:not(.as-btn),
body .et_pb_module .as-section--dark a:not(.as-btn),
body .et_pb_module .as-cta-bar a:not(.as-btn) {
  color: var(--as-leaf);
}
body .et_pb_module .as-hero a:not(.as-btn):hover,
body .et_pb_module .as-product-hero a:not(.as-btn):hover,
body .et_pb_module .as-section--dark a:not(.as-btn):hover,
body .et_pb_module .as-cta-bar a:not(.as-btn):hover {
  color: var(--as-magenta);
}

/* Texto subtítulo del producto-hero (segundo párrafo de info) */
body .et_pb_module .as-product-hero p[style*="text-on-dark-muted"] {
  color: var(--as-text-on-dark-muted) !important;
}

/* =====================================================================
   22. BLOG — single post content + blog index cards + pagination (v2.2)
   ===================================================================== */

/* Meta line: categoría · fecha · tiempo lectura */
.as-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-leaf);
  margin-bottom: var(--as-space-md);
}
.as-post-meta a { color: var(--as-leaf); text-decoration: none; }
.as-post-meta a:hover { color: var(--as-magenta); }
.as-post-meta__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--as-magenta);
  display: inline-block;
  opacity: .8;
}

/* Post content — tipografía del cuerpo del artículo */
.as-post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--as-text);
}
.as-post-content > *:first-child { margin-top: 0; }
.as-post-content > *:last-child { margin-bottom: 0; }

.as-post-content h1,
.as-post-content h2,
.as-post-content h3,
.as-post-content h4,
.as-post-content h5,
.as-post-content h6 {
  font-family: var(--as-font-heading);
  color: var(--as-primary);
  margin: 40px 0 16px;
  line-height: 1.2;
}
.as-post-content h2 { font-size: 28px; font-weight: 800; }
.as-post-content h3 { font-size: 22px; font-weight: 700; }
.as-post-content h4 { font-size: 18px; font-weight: 700; }
.as-post-content h5 { font-size: 16px; font-weight: 600; }

.as-post-content p {
  margin: 0 0 20px;
}
.as-post-content a {
  color: var(--as-magenta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.as-post-content a:hover {
  color: var(--as-magenta-hover);
}
.as-post-content strong, .as-post-content b {
  color: var(--as-primary);
  font-weight: 700;
}
.as-post-content em, .as-post-content i { font-style: italic; }

.as-post-content ul,
.as-post-content ol {
  padding-left: 28px;
  margin: 0 0 20px;
}
.as-post-content li {
  margin-bottom: 8px;
}
.as-post-content ul li::marker { color: var(--as-leaf); }

.as-post-content blockquote {
  border-left: 4px solid var(--as-magenta);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
  color: var(--as-text-muted);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
}
.as-post-content blockquote p:last-child { margin-bottom: 0; }

.as-post-content img,
.as-post-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--as-radius-md);
  margin: 24px 0;
  display: block;
}
.as-post-content figure {
  margin: 24px 0;
}
.as-post-content figcaption {
  font-size: 14px;
  color: var(--as-text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.as-post-content code {
  background: var(--as-bg-tint);
  color: var(--as-primary);
  padding: 2px 8px;
  border-radius: var(--as-radius-sm);
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.as-post-content pre {
  background: var(--as-dark);
  color: #fff;
  padding: 20px;
  border-radius: var(--as-radius-md);
  overflow-x: auto;
  margin: 24px 0;
}
.as-post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.as-post-content hr {
  border: 0;
  height: 1px;
  background: var(--as-border);
  margin: 40px 0;
}

.as-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.as-post-content th,
.as-post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--as-border);
  text-align: left;
}
.as-post-content th {
  background: var(--as-bg-soft);
  font-family: var(--as-font-heading);
  font-weight: 700;
  color: var(--as-primary);
}

/* Post card (blog index + archive) — variante con featured image arriba */
.as-post-card {
  background: var(--as-bg);
  border-radius: var(--as-radius-md);
  box-shadow: var(--as-shadow-sm);
  overflow: hidden;
  transition: var(--as-transition);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--as-leaf);
  text-decoration: none;
  color: inherit;
}
.as-post-card:hover {
  box-shadow: var(--as-shadow-md);
  transform: translateY(-6px);
  border-top-color: var(--as-magenta);
}
.as-post-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--as-bg-tint);
}
.as-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.as-post-card:hover .as-post-card__media img {
  transform: scale(1.06);
}
.as-post-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--as-primary), var(--as-primary-mid));
}
.as-post-card__media--placeholder span {
  width: 80px;
  height: 80px; /* hex regular */
  clip-path: var(--as-hex);
  -webkit-clip-path: var(--as-hex);
  background: var(--as-leaf);
  color: var(--as-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 28px;
}
.as-post-card__body {
  padding: var(--as-space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--as-space-sm);
  flex: 1;
}
.as-post-card__title {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: var(--as-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.as-post-card__excerpt {
  color: var(--as-text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.as-post-card__link {
  color: var(--as-magenta);
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--as-space-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.as-post-card__link::after {
  content: "→";
  transition: var(--as-transition);
}
.as-post-card:hover .as-post-card__link::after {
  transform: translateX(6px);
}

/* Pagination */
.as-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--as-space-2xl);
}
.as-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--as-border);
  border-radius: var(--as-radius-sm);
  background: var(--as-bg);
  color: var(--as-primary);
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--as-transition);
}
.as-pagination .page-numbers:hover {
  border-color: var(--as-magenta);
  color: var(--as-magenta);
}
.as-pagination .page-numbers.current {
  background: var(--as-magenta);
  border-color: var(--as-magenta);
  color: #fff;
}
.as-pagination .page-numbers.dots {
  border-color: transparent;
}

/* Single post — variante del product-hero con meta visible */
.as-product-hero--post {
  padding-top: var(--as-space-3xl);
  padding-bottom: var(--as-space-3xl);
}
@media (min-width: 768px) {
  .as-product-hero--post {
    padding-top: var(--as-space-4xl);
    padding-bottom: var(--as-space-4xl);
  }
}

/* Post content container width — lectura cómoda en lugar del 1440 full */
.as-container--reading {
  max-width: 820px;
  margin: 0 auto;
}

/* Empty state for blog index */
.as-blog-empty {
  padding: var(--as-space-3xl) var(--as-space-md);
  text-align: center;
  color: var(--as-text-muted);
}

/* =====================================================================
   23. WIDGET STYLES en footer (v2.3) — para que widgets WP hereden
   los estilos del footer
   ===================================================================== */

/* Wrapper común de widget custom_html dentro del footer */
.as-site-footer__col .as-footer-widget,
.as-site-footer__col .widget {
  margin: 0;
}

/* Custom HTML widget — strip default styling */
.as-site-footer__col .widget_custom_html .textwidget,
.as-site-footer__col .widget_text .textwidget,
.as-site-footer__col .custom-html-widget {
  color: var(--as-text-on-dark-muted);
  font-size: 14px;
}

/* Listas dentro de widgets (custom HTML con <ul> o nav menu) */
.as-site-footer__col .textwidget ul,
.as-site-footer__col .widget_nav_menu ul,
.as-site-footer__col .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-site-footer__col .textwidget ul a,
.as-site-footer__col .widget_nav_menu a,
.as-site-footer__col .menu a {
  color: var(--as-text-on-dark-muted) !important;
  text-decoration: none;
  font-size: 14px;
  transition: var(--as-transition);
  display: inline-block;
}
.as-site-footer__col .textwidget ul a:hover,
.as-site-footer__col .widget_nav_menu a:hover,
.as-site-footer__col .menu a:hover {
  color: var(--as-leaf) !important;
  padding-left: 4px;
}

/* Hide widget title inside footer (we render our own h4) */
.as-site-footer__col .widget-title,
.as-site-footer__col .widgettitle {
  display: none;
}

/* Brand column — widget content (if any) flows above default block */
.as-site-footer__col--brand .widget_custom_html + .as-site-footer__brand,
.as-site-footer__col--brand .widget_text + .as-site-footer__brand {
  margin-top: 0;
}

/* Widget search/recent posts — basic safe styling fallback */
.as-site-footer__col .widget input[type="search"],
.as-site-footer__col .widget input[type="text"] {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--as-radius-sm);
  width: 100%;
}

/* =====================================================================
   24. ADMIN — wp-admin Settings → Agri Sciences page (v2.3)
   ===================================================================== */
.wrap .nav-tab-wrapper {
  margin-bottom: 20px;
}
.wrap .form-table th {
  width: 220px;
}
.wrap .form-table .description code {
  background: #f0f0f1;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

/* =====================================================================
   25. SEARCH — Icono lupa en header + modal full-screen (v2.5)
   ===================================================================== */

.as-search-toggle { display: none !important; }

/* ===== Shop CTA + Cart icon (v3.5.1) ===== */
.as-site-shop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--as-magenta);
  color: #fff !important;
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--as-transition);
  flex-shrink: 0;
}
.as-site-shop-cta:hover,
.as-site-shop-cta:focus {
  background: var(--as-primary);
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.as-site-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--as-bg-soft);
  border: 1px solid var(--as-border);
  color: var(--as-primary);
  position: relative;
  transition: var(--as-transition);
  flex-shrink: 0;
  text-decoration: none;
}
.as-site-cart:hover,
.as-site-cart:focus {
  background: var(--as-magenta);
  border-color: var(--as-magenta);
  color: #fff;
  transform: scale(1.05);
  outline: none;
}
.as-site-cart svg { display: block; }
.as-site-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--as-magenta);
  color: #fff;
  font-family: var(--as-font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
  border: 2px solid #fff;
  box-sizing: content-box;
  transition: transform 0.15s ease;
}
.as-site-cart__count[data-count="0"] { display: none; }
.as-site-cart:hover .as-site-cart__count {
  background: var(--as-primary);
}

/* Mobile-only menu items (Tienda + Carrito en el burger menu) — ocultos en desktop */
.as-mobile-only { display: none !important; }

@media (max-width: 1199px) {
  /* En mobile: esconder botón Tienda y carrito del header, mostrarlos en el menú */
  .as-site-shop-cta { display: none !important; }
  .as-site-cart { display: none !important; }

  /* Mostrar items mobile-only dentro del burger menu */
  .as-burger-input:checked ~ .as-site-nav .as-mobile-only {
    display: block !important;
  }
  /* Estilo especial del item "Tienda" para destacar (matchea el botón pill magenta) */
  .as-burger-input:checked ~ .as-site-nav .as-mobile-shop a {
    background: var(--as-magenta) !important;
    color: #fff !important;
    margin-top: 12px;
    border-radius: 999px !important;
    text-align: center !important;
    justify-content: center !important;
    border-bottom: 0 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .as-burger-input:checked ~ .as-site-nav .as-mobile-cart a {
    border-bottom: 0 !important;
    color: var(--as-primary) !important;
    font-weight: 600;
  }
}

.as-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 16px;
  border-radius: 50%;
  background: var(--as-bg-soft);
  border: 1px solid var(--as-border);
  color: var(--as-primary);
  cursor: pointer;
  transition: var(--as-transition);
  vertical-align: middle;
  flex-shrink: 0;
  z-index: 10;
}
.as-search-trigger:hover,
.as-search-trigger:focus {
  background: var(--as-magenta);
  border-color: var(--as-magenta);
  color: #fff;
  outline: none;
  transform: scale(1.05);
}
.as-search-trigger svg {
  display: block;
}

/* Modal full-screen */
.as-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
}
.as-search-toggle:checked ~ .as-search-modal {
  display: block;
  animation: as-search-fade-in .25s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes as-search-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.as-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 30, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: block;
}

.as-search-modal__panel {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--as-radius-lg);
  padding: 40px 32px 28px;
  box-shadow: 0 30px 80px rgba(14, 42, 30, .35);
  animation: as-search-panel-in .35s cubic-bezier(.4, 0, .2, 1);
}
@keyframes as-search-panel-in {
  from { opacity: 0; transform: translate(-50%, -24px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.as-search-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--as-bg-soft);
  color: var(--as-text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: var(--as-transition);
  user-select: none;
}
.as-search-modal__close:hover {
  background: var(--as-magenta);
  color: #fff;
  transform: rotate(90deg);
}

.as-search-modal__form {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--as-border);
  border-radius: var(--as-radius-md);
  padding: 6px 8px 6px 16px;
  background: var(--as-bg);
  transition: var(--as-transition);
  margin-top: 4px;
}
.as-search-modal__form:focus-within {
  border-color: var(--as-magenta);
  box-shadow: 0 0 0 4px rgba(199, 55, 143, .12);
}
.as-search-modal__icon {
  color: var(--as-text-muted);
  flex-shrink: 0;
}
.as-search-modal__form input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--as-font-body);
  font-size: 20px;
  padding: 12px 8px;
  color: var(--as-text);
  min-width: 0;
}
.as-search-modal__form input[type="search"]::placeholder {
  color: var(--as-text-muted);
}
.as-search-modal__submit {
  flex-shrink: 0;
  background: var(--as-magenta);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: var(--as-radius-sm);
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--as-transition);
}
.as-search-modal__submit:hover {
  background: var(--as-magenta-hover);
}

.as-search-modal__hint {
  text-align: center;
  font-size: 13px;
  color: var(--as-text-muted);
  margin: 16px 0 0;
}
.as-search-modal__hint kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--as-bg-soft);
  border: 1px solid var(--as-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--as-primary);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .as-search-modal__panel {
    top: 8%;
    padding: 32px 20px 20px;
  }
  .as-search-modal__form input[type="search"] {
    font-size: 17px;
  }
  .as-search-modal__submit {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* =====================================================================
   WOOCOMMERCE — shop loop + single product (v3.7)
   ===================================================================== */

/* --- Hide Divi sidebar on WC pages + full width container CENTERED --- */
html body.as-wc-page #sidebar,
html body.woocommerce-shop #sidebar,
html body.archive.post-type-archive-product #sidebar,
html body.single-product #sidebar,
html body.woocommerce-page #sidebar {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Container — override Divi's 80%/1080px hard */
html body.as-wc-page #page-container #main-content .container,
html body.woocommerce-page #page-container #main-content .container,
html body.woocommerce #page-container #main-content .container {
  width: 100% !important;
  max-width: 1320px !important;
  padding: 40px 32px 60px !important;
  margin: 0 auto !important;
  display: block !important;
  box-sizing: border-box !important;
}
html body.as-wc-page #main-content #content-area,
html body.woocommerce-page #main-content #content-area,
html body.woocommerce #main-content #content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}
html body.as-wc-page #main-content #left-area,
html body.woocommerce-page #main-content #left-area,
html body.woocommerce #main-content #left-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
html body.as-wc-page .woocommerce {
  width: 100%;
}
/* Override Divi container::before pseudo (vertical line entre left-area y sidebar) */
html body.as-wc-page #main-content .container::before,
html body.woocommerce-page #main-content .container::before,
html body.woocommerce #main-content .container::before {
  display: none !important;
}

/* --- Shop archive hero --- */
body.as-wc-page .woocommerce-products-header {
  text-align: center;
  margin: 0 0 56px;
  padding: 48px 24px 56px;
  background: linear-gradient(135deg, var(--as-bg-soft) 0%, #e9f4f0 100%);
  border-radius: var(--as-radius-md);
  position: relative;
  overflow: hidden;
}
body.as-wc-page .woocommerce-products-header::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--as-leaf);
  opacity: 0.08;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  top: -40px;
  right: -40px;
}
body.as-wc-page .woocommerce-products-header::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: var(--as-magenta);
  opacity: 0.06;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  bottom: -30px;
  left: -30px;
}
body.as-wc-page .woocommerce-products-header__title {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 50px); /* -10% */
  color: var(--as-primary);
  margin: 0 0 16px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}
body.as-wc-page .term-description {
  color: var(--as-text-muted);
  font-size: 16px;
  line-height: 1.6;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Toolbar: results count + ordering */
body.as-wc-page .woocommerce-result-count {
  color: var(--as-text-muted);
  font-size: 14px;
  margin: 0 0 24px;
  padding: 0;
}
body.as-wc-page .woocommerce-ordering {
  margin: 0 0 32px;
  float: right;
}
body.as-wc-page .woocommerce-ordering select {
  padding: 8px 16px;
  border: 1px solid var(--as-border);
  border-radius: 999px;
  background: #fff;
  font-family: var(--as-font-body);
  font-size: 14px;
  color: var(--as-primary);
}

/* --- Shop grid (override Divi's li.product width 33.333%) --- */
body.as-wc-page ul.products.as-shop-grid {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 56px !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 28px !important;
}
@media (min-width: 640px) {
  body.as-wc-page ul.products.as-shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (min-width: 1024px) {
  body.as-wc-page ul.products.as-shop-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
  }
}
.as-shop-grid::before,
.as-shop-grid::after { content: none !important; display: none !important; }

body.as-wc-page ul.products.as-shop-grid li.as-shop-card {
  list-style: none !important;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(14, 42, 30, 0.06);
  border-top: 4px solid var(--as-leaf);
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: flex;
  flex-direction: column;
}
.as-shop-card::before { content: none !important; }
.as-shop-card:hover {
  box-shadow: var(--as-shadow-md);
  transform: translateY(-6px);
  border-top-color: var(--as-magenta);
}
.as-shop-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}
.as-shop-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--as-border);
}
.as-shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 24px;
  box-sizing: border-box;
  display: block;
  transition: transform 0.4s ease;
}
.as-shop-card:hover .as-shop-card__media img { transform: scale(1.05); }
.as-shop-card__body {
  padding: 24px !important;
  gap: 10px !important;
}
.as-shop-card__title {
  font-size: 22px !important;
  letter-spacing: -0.01em;
}
.as-shop-card__price { font-size: 20px !important; }
.as-shop-card__footer { padding-top: 16px !important; }
.as-shop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--as-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.as-shop-card__badge--sale { background: var(--as-magenta); }

.as-shop-card__body {
  padding: var(--as-space-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.as-shop-card__cat {
  font-family: var(--as-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-teal);
}
.as-shop-card__title {
  margin: 0;
  font-family: var(--as-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--as-primary);
  line-height: 1.25;
  padding-bottom: 0;
}
.as-shop-card__excerpt {
  margin: 0;
  color: var(--as-text-muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.as-shop-card__footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--as-border);
}
.as-shop-card__price {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--as-magenta);
}
.as-shop-card__price del { opacity: 0.5; font-weight: 500; margin-right: 6px; }
.as-shop-card__price ins { text-decoration: none; }
.as-shop-card__cta {
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--as-primary);
  transition: var(--as-transition);
  white-space: nowrap;
}
.as-shop-card:hover .as-shop-card__cta { color: var(--as-magenta); }

/* --- Pagination --- */
body.as-wc-page .woocommerce-pagination {
  text-align: center;
  margin: 32px 0;
}
body.as-wc-page .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  border: 0;
}
body.as-wc-page .woocommerce-pagination ul.page-numbers li {
  list-style: none;
  border: 0;
  margin: 0;
}
body.as-wc-page .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--as-border);
  color: var(--as-primary);
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--as-transition);
}
body.as-wc-page .woocommerce-pagination .page-numbers:hover,
body.as-wc-page .woocommerce-pagination .page-numbers.current {
  background: var(--as-magenta);
  border-color: var(--as-magenta);
  color: #fff;
}

/* --- Single product page --- */
body.single-product .woocommerce-notices-wrapper { margin-bottom: 16px; }

/* Divi mete un <div class="clearfix"> entre .product y sus hijos.
   Aplicamos el grid layout ahí. */
body.single-product div.product {
  display: block;
}
body.single-product div.product > .clearfix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
  align-items: start;
}
@media (min-width: 900px) {
  body.single-product div.product > .clearfix {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
/* Tabs (Description/Reviews) span both columns, debajo de gallery+summary */
body.single-product div.product > .clearfix > .woocommerce-tabs {
  grid-column: 1 / -1;
}

/* Gallery — force visible even if JS slider doesn't init */
body.single-product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  display: block !important;
  position: relative;
}
body.single-product .woocommerce-product-gallery__wrapper {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  border: 1px solid var(--as-border);
  border-radius: 14px;
  overflow: hidden;
  padding: 32px;
  box-sizing: border-box;
}
/* Solo se muestra la primera imagen como main; el resto se vuelve thumbnails abajo */
body.single-product .woocommerce-product-gallery__image {
  display: none;
  width: 100%;
  margin: 0;
}
body.single-product .woocommerce-product-gallery__image:first-child {
  display: block;
}
body.single-product .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
}
body.single-product .woocommerce-product-gallery img,
body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

/* Thumbnails — si hay más de 1 imagen, mostrar abajo del main como botones chicos */
body.single-product .woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-4 .woocommerce-product-gallery__wrapper {
  padding-bottom: 16px;
}
body.single-product .flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}
body.single-product .flex-control-thumbs li {
  width: 64px !important;
  list-style: none;
}
body.single-product .flex-control-thumbs li img {
  width: 100% !important;
  height: 64px !important;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--as-border);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--as-transition);
}
body.single-product .flex-control-thumbs li img:hover,
body.single-product .flex-control-thumbs li img.flex-active {
  opacity: 1;
  border-color: var(--as-magenta);
}
body.single-product .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 99;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--as-magenta);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
}
body.single-product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.single-product .product_title {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px); /* -10% */
  color: var(--as-primary);
  margin: 0 0 16px;
  padding-bottom: 0;
}
body.single-product .price {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--as-magenta);
  margin: 0 0 24px;
}
body.single-product .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--as-text);
  margin-bottom: 24px;
}
body.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--as-border);
  border-bottom: 1px solid var(--as-border);
}
body.single-product form.cart .quantity input {
  width: 64px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--as-border);
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}
body.single-product .single_add_to_cart_button,
body.as-wc-page .button,
body.as-wc-page .wc-block-components-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 32px !important;
  background: var(--as-magenta) !important;
  color: #fff !important;
  font-family: var(--as-font-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--as-transition) !important;
  line-height: 1 !important;
}
body.single-product .single_add_to_cart_button:hover,
body.as-wc-page .button:hover {
  background: var(--as-primary) !important;
  transform: translateY(-1px);
}
body.single-product .product_meta {
  font-size: 13px;
  color: var(--as-text-muted);
  padding-top: 16px;
}
body.single-product .product_meta span { display: block; margin-bottom: 4px; }

body.single-product .woocommerce-tabs {
  margin-top: 64px;
}
body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  padding: 0;
  border-bottom: 2px solid var(--as-border);
  list-style: none;
}
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after { content: none !important; }
body.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 16px 24px;
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--as-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: var(--as-transition);
}
body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--as-primary);
  border-bottom-color: var(--as-magenta);
}
body.single-product .woocommerce-tabs .panel {
  padding: 32px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--as-text);
}
body.single-product .related.products,
body.single-product .upsells.products {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--as-border);
}
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 28px;
  color: var(--as-primary);
  margin-bottom: 24px;
}

/* --- Botón "Solicitar cotización" (Quotes for WooCommerce v2.12) --- */
body.single-product .single_add_to_cart_button.quote-button,
body.woocommerce a.button.quote-button,
body.woocommerce button.quote-button,
body.woocommerce-page .qwc-quote-btn,
body.woocommerce .single_add_to_cart_button {
  background: var(--as-magenta) !important;
  color: #fff !important;
  font-family: var(--as-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 14px 32px !important;
  border-radius: 999px !important;
  border: 0 !important;
}
body.woocommerce .single_add_to_cart_button:hover,
body.woocommerce a.button.quote-button:hover { background: var(--as-primary) !important; }

/* --- Checkout / Cotización form polish --- */
body.woocommerce-checkout .woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  body.woocommerce-checkout .woocommerce-checkout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "customer review-heading"
      "customer review";
    align-items: start;
  }
  body.woocommerce-checkout #customer_details   { grid-area: customer; }
  body.woocommerce-checkout #order_review_heading { grid-area: review-heading; }
  body.woocommerce-checkout #order_review       { grid-area: review; }
}
body.woocommerce-checkout #customer_details {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--as-border);
  box-shadow: 0 4px 16px rgba(14,42,30,0.04);
}
body.woocommerce-checkout #customer_details h3 {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--as-primary);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--as-magenta);
  display: inline-block;
}
body.woocommerce-checkout #customer_details .form-row label {
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--as-primary);
  margin-bottom: 6px;
  display: block;
}
body.woocommerce-checkout #customer_details .form-row .required {
  color: var(--as-magenta);
}
body.woocommerce-checkout #customer_details input[type=text],
body.woocommerce-checkout #customer_details input[type=email],
body.woocommerce-checkout #customer_details input[type=tel],
body.woocommerce-checkout #customer_details select,
body.woocommerce-checkout #customer_details textarea,
body.woocommerce-checkout .select2-selection {
  width: 100%;
  padding: 12px 14px !important;
  border: 1px solid var(--as-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--as-text) !important;
  font-size: 15px;
  font-family: var(--as-font-body);
  transition: var(--as-transition);
  box-sizing: border-box;
}
body.woocommerce-checkout #customer_details textarea {
  min-height: 100px;
  resize: vertical;
}
body.woocommerce-checkout #customer_details input:focus,
body.woocommerce-checkout #customer_details select:focus,
body.woocommerce-checkout #customer_details textarea:focus {
  border-color: var(--as-magenta) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(199,55,143,0.15);
}
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 48px !important;
  display: flex !important;
  align-items: center;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

/* Order review sidebar */
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--as-border);
}
body.woocommerce-checkout #order_review_heading {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--as-primary);
  margin: 0 0 -1px;
  padding: 32px 32px 0;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}
body.woocommerce-checkout #order_review {
  padding-top: 16px;
  border-radius: 0 0 14px 14px;
  margin-top: 0;
  border-top: 0;
}
body.woocommerce-checkout #order_review table.shop_table {
  border: 0;
  background: transparent;
}
body.woocommerce-checkout #place_order {
  width: 100%;
  margin-top: 16px;
}

/* Cart page (cotización en curso) */
body.woocommerce-cart .woocommerce {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}
body.woocommerce-cart .cart_totals h2 {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--as-primary);
  margin: 0 0 20px;
}

/* --- Cart page layout — 2-col grid (items left, totals right) v3.9.x --- */
body.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  width: 100% !important;
  float: none !important;
}
@media (min-width: 900px) {
  body.woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important;
    align-items: start !important;
  }
}
body.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}
body.woocommerce-cart form.woocommerce-cart-form {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Cart items table */
body.woocommerce-cart table.shop_table.cart {
  width: 100% !important;
  margin: 0 0 24px !important;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid var(--as-border);
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}
body.woocommerce-cart table.shop_table.cart thead th {
  background: var(--as-bg-soft);
  font-family: var(--as-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--as-primary);
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--as-border);
  text-align: left;
}
body.woocommerce-cart table.shop_table.cart tbody td {
  padding: 16px !important;
  vertical-align: middle;
  border-top: 1px solid var(--as-border);
  background: #fff;
}
body.woocommerce-cart table.shop_table.cart tbody tr:first-child td {
  border-top: 0;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
  width: 80px;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  background: var(--as-bg-soft);
  border-radius: 8px;
  padding: 4px;
}
body.woocommerce-cart table.shop_table.cart td.product-name a {
  color: var(--as-primary);
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
  font-weight: 600;
  color: var(--as-primary);
}
body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty {
  width: 64px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--as-border);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-family: var(--as-font-body);
}
body.woocommerce-cart table.shop_table.cart td.product-remove {
  width: 32px;
  text-align: center;
}
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
  color: var(--as-text-muted) !important;
  font-size: 18px;
  font-weight: 400;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
}
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
  color: var(--as-magenta) !important;
  background: rgba(199, 55, 143, 0.08);
}

/* Coupon + update cart row */
body.woocommerce-cart table.shop_table.cart td.actions {
  background: var(--as-bg-soft);
  padding: 16px !important;
  border-top: 1px solid var(--as-border);
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
body.woocommerce-cart table.shop_table.cart td.actions input[name="coupon_code"] {
  width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--as-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}
body.woocommerce-cart table.shop_table.cart td.actions .button {
  padding: 10px 18px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-weight: 700 !important;
  font-family: var(--as-font-heading) !important;
}
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
  background: transparent !important;
  color: var(--as-magenta) !important;
  border: 2px solid var(--as-magenta) !important;
}
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"]:hover {
  background: var(--as-magenta) !important;
  color: #fff !important;
}

/* Cart totals box (right col) */
body.woocommerce-cart .cart_totals {
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  border: 1px solid var(--as-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(14, 42, 30, 0.04);
}
body.woocommerce-cart .cart_totals h2 {
  font-family: var(--as-font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--as-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--as-magenta);
  display: inline-block;
}
body.woocommerce-cart .cart_totals table {
  width: 100% !important;
  margin: 0 0 16px !important;
  border: 0 !important;
}
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: 12px 4px !important;
  border-bottom: 1px solid var(--as-border) !important;
  border-top: 0 !important;
  background: transparent !important;
}
body.woocommerce-cart .cart_totals table tr:last-child th,
body.woocommerce-cart .cart_totals table tr:last-child td {
  border-bottom: 0 !important;
  padding-top: 16px !important;
}
body.woocommerce-cart .cart_totals table th {
  font-family: var(--as-font-heading);
  font-weight: 700;
  color: var(--as-primary);
  text-align: left;
}
body.woocommerce-cart .cart_totals table td {
  text-align: right;
  font-weight: 600;
  color: var(--as-primary);
}
body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .order-total th {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--as-magenta) !important;
}

/* --- Dual flow: botón "Solicitar cotización" en el carrito (v3.9) --- */
body.woocommerce-cart .wc-proceed-to-checkout {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  padding: 14px 24px !important;
  font-family: var(--as-font-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  transition: var(--as-transition) !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border: 2px solid var(--as-magenta) !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:not(.as-quote-btn) {
  background: var(--as-magenta) !important;
  color: #fff !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:not(.as-quote-btn):hover {
  background: var(--as-primary) !important;
  border-color: var(--as-primary) !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .as-quote-btn {
  background: transparent !important;
  color: var(--as-magenta) !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .as-quote-btn:hover {
  background: var(--as-magenta) !important;
  color: #fff !important;
}

/* --- Banner modo cotización en checkout --- */
.as-quote-mode-banner {
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 100%);
  border-left: 4px solid #2271b1;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 32px;
  font-family: var(--as-font-body);
}
.as-quote-mode-banner__logo {
  display: block;
  max-height: 40px;
  width: auto;
  margin-bottom: 12px;
}
.as-quote-mode-banner strong {
  display: block;
  font-family: var(--as-font-heading);
  font-size: 18px;
  color: var(--as-primary);
  margin-bottom: 8px;
}
.as-quote-mode-banner p {
  margin: 0 0 8px;
  color: var(--as-text);
  font-size: 14px;
  line-height: 1.6;
}
.as-quote-mode-banner .as-switch-mode {
  color: var(--as-magenta);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.as-quote-mode-banner .as-switch-mode:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }
}

/* --- Cart + checkout page polish --- */
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-checkout .woocommerce table.shop_table {
  border-radius: var(--as-radius-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--as-border);
}
body.woocommerce-cart .woocommerce table.shop_table th {
  background: var(--as-bg-soft);
  font-family: var(--as-font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--as-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px;
}
body.woocommerce-cart .woocommerce table.shop_table td {
  padding: 16px;
}

/* --- Responsive mobile --- */
@media (max-width: 760px) {
  body.as-wc-page #main-content > .container {
    padding: 0 16px !important;
  }
  .as-shop-card__title { font-size: 18px; }
  .as-shop-card__price { font-size: 16px; }
  body.single-product div.product { gap: 32px; }
}
