/* ============================================================
   JARDÍN PLUS 4 EN 1 — PROFEROC
   Design System: Botanical Maximalism
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:wght@300;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* --- CSS Custom Properties --- */
:root {
  --primary: #f89a1c;
  --primary-dark: #d4800d;
  --primary-glow: rgba(248, 154, 28, 0.4);
  --secondary: #095e2b;
  --secondary-dark: #064e24;
  --secondary-light: #10803c;
  --lime: #70BE44;
  --lime-glow: rgba(112, 190, 68, 0.35);
  --bg-light: #f0fdf4;
  --bg-dark: #064e3b;
  --text-main: #0f391b;
  --text-muted: #666666;
  --text-white: #ecfdf5;
  --white: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.10);
  --card-border: rgba(255, 255, 255, 0.20);
  --shadow-orange: 0 12px 32px rgba(248, 154, 28, 0.35);
  --shadow-green: 0 12px 32px rgba(9, 94, 43, 0.25);
  --shadow-lime: 0 8px 24px rgba(112, 190, 68, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 1.05rem;
  --radius-xl: 1.4rem;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Typography Utilities --- */
.font-display {
  font-family: var(--font-display);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-white {
  color: var(--white);
}

.text-shadow {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7);
}

/* --- Section Base --- */
section {
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 400;
}

/* Accent word highlight inside any h2 */
.section-header h2 .accent,
.uso-content h2 .accent {
  color: var(--primary);
  font-style: italic;
}

.section-header.light h2 {
  color: var(--white);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header.light p {
  color: rgba(255, 255, 255, 0.75);
}

.section-divider {
  width: 5rem;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--lime));
  border-radius: 99px;
  margin: 1rem auto 50px;
  /* 50px de espacio abajo para separar textos */
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: var(--shadow-orange);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(248, 154, 28, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background: white;
  color: var(--secondary);
  box-shadow: var(--shadow-green);
}

.btn-secondary:hover {
  background: var(--bg-light);
  transform: translateY(-3px);
}

/* ==============================================================
   NAVIGATION
   ============================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

#navbar.scrolled {
  background: linear-gradient(to right, #095E2B, #70BE44);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo .logo-badge {
  background: white;
  border-radius: 50%;
  padding: 0.4rem 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-logo .logo-badge span.brand-name {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.4rem;
  letter-spacing: -1px;
}

.nav-logo .logo-badge span.brand-plus {
  color: var(--primary);
  font-size: 1rem;
  vertical-align: super;
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem !important;
  padding: 0.6rem 1.5rem !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
  outline: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* When navbar is NOT scrolled (transparent), keep bars white with a subtle shadow for visibility */
#navbar:not(.scrolled) .nav-hamburger span {
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* When navbar is scrolled (dark bg), plain white is fine */
#navbar.scrolled .nav-hamburger span {
  background: white;
  box-shadow: none;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom,
      rgba(6, 78, 59, 0.82) 0%,
      rgba(9, 94, 43, 0.65) 40%,
      rgba(112, 190, 68, 0.75) 100%),
    url('../assets/images/menu.webp') center center / cover no-repeat;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  overflow-y: auto;
  padding: 5rem 2rem 2.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: white;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
  position: relative;
}

/* Button inside mobile menu — override the large link style */
.nav-mobile .btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.75rem;
  margin-top: 0.5rem;
}

.nav-mobile a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: width var(--transition);
}

/* Don't show underline on the button */
.nav-mobile .btn::after {
  display: none;
}

.nav-mobile a:hover::after {
  width: 60%;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* ==============================================================
   HERO CAROUSEL
   ============================================================== */
.hero-carousel-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Track — same size as section */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
}

/* Individual slides */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background image layer */
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
}

/* Content */
.hero-slide .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ── Arrow buttons ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.25rem;
  line-height: 1;
}

.carousel-arrow:hover {
  color: white;
  transform: translateY(-50%) scale(1.2);
}

.carousel-arrow .material-icons {
  font-size: 3.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}


/* ── Dot indicators ── */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  width: 2rem;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(248, 154, 28, 0.6);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
}

/* ── Progress bar at bottom edge of section ── */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 21;
  transition: width 0.1s linear;
}

/* Existing hero styles still used inside each slide */


.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      transparent 40%,
      rgba(6, 78, 59, 0.92) 100%);
}

/* Leaf texture overlay */
.hero-leaf-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.4rem 1.25rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  transform: rotate(-2deg);
  box-shadow: 0 6px 20px rgba(248, 154, 28, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: white;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-weight: 400;
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-h1 .hero-sub-h1 {
  display: block;
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: normal;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.hero-4en1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14.4vw, 9.6rem);
  color: var(--primary);
  -webkit-text-stroke: 1.5px white;
  text-shadow: 2px 2px 0 white, 0 0 18px rgba(248, 154, 28, 0.2);
  line-height: 1;
  margin: 0.5rem 0;
  display: block;
  white-space: nowrap;
  /* PC: 1 renglón por defecto */
}

.hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating decorative elements */
.hero-float {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.hero-float-1 {
  top: 25%;
  left: 4%;
  width: 4rem;
  height: 4rem;
  animation: floatBounce 3s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 30%;
  right: 5%;
  width: 5.5rem;
  height: 5.5rem;
  animation: floatPulse 4s ease-in-out infinite;
}

@keyframes floatBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes floatPulse {

  0%,
  100% {
    transform: scale(1) rotate(45deg);
  }

  50% {
    transform: scale(1.15) rotate(45deg);
  }
}

/* ==============================================================
   BENEFICIOS 4 EN 1
   ============================================================== */
#beneficios {
  background: var(--secondary);
  padding: 5rem 0;
  overflow: hidden;
}

.beneficios-leaf {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
  pointer-events: none;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.benefit-card {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--lime);
}

.benefit-icon-ring {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition);
}

.benefit-icon-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit-card:hover .benefit-icon-ring {
  transform: scale(1.1);
}

.benefit-icon-ring .material-icons {
  font-size: 2.5rem;
}

.icon-green {
  color: var(--secondary);
}

.icon-red {
  color: #dc2626;
}

.icon-orange {
  color: var(--primary);
}

.benefit-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.7;
}

.benefit-card p strong {
  color: white;
  font-weight: 700;
}

.benefit-number {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  padding: 0.2rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==============================================================
   WHITE BENEFIT CARDS (benefit-card-white)
   ============================================================== */

.benefit-card-white {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(9, 94, 43, 0.06);
  border-bottom: 4px solid transparent;
  border-bottom-width: 4px;
  /* overflow visible para que el badge sobresalga */
  overflow: visible;
}

.benefit-card-white:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.14);
}

/* ── Badge circular naranja con número (encimado en esquina superior derecha) ── */
.bcw-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ── Icon — no container, standalone with shadow ── */
.bcw-icon {
  width: 6rem;
  height: 6rem;
  margin: 1.5rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  background: none;
  border-radius: 0;
}

.bcw-icon img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.benefit-card-white:hover .bcw-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* ── Typography ── */
.bcw-pretitle {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}

.bcw-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 0.85rem;
  line-height: 1.1;
}

.bcw-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.bcw-desc strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ── GREEN modifier (cards 1 & 2 — ayudan) ── */
.bcw-green {
  border-bottom: 4px solid var(--lime);
}

.bcw-green .bcw-num {
  background: var(--lime);
}

.bcw-green .bcw-icon {
  background: none;
}

.bcw-green .bcw-pretitle {
  color: var(--primary);
}

.bcw-green:hover {
  box-shadow: 0 20px 52px rgba(112, 190, 68, 0.2);
}

/* ── RED modifier (cards 3 & 4 — previenen) ── */
.bcw-red {
  border-bottom: 4px solid #dc3545;
}

.bcw-red .bcw-num {
  background: #dc3545;
}

.bcw-red .bcw-icon {
  background: none;
}

.bcw-red .bcw-pretitle {
  color: var(--primary);
}

.bcw-red:hover {
  box-shadow: 0 20px 52px rgba(220, 53, 69, 0.18);
}

/* ── Dark mode ── */
[data-theme="dark"] .benefit-card-white {
  background: #152518;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .benefit-card-white:hover {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .bcw-title {
  color: #6fd47a;
}

[data-theme="dark"] .bcw-desc {
  color: var(--text-muted);
}

[data-theme="dark"] .bcw-desc strong {
  color: var(--text-main);
}

[data-theme="dark"] .bcw-green .bcw-icon {
  background: transparent;
}

[data-theme="dark"] .bcw-red .bcw-icon {
  background: transparent;
}

[data-theme="dark"] .bcw-red .bcw-pretitle {
  color: #f87171;
}


/* ==============================================================
   MODO DE USO (How To Use)
   ============================================================== */
#uso {
  background: var(--bg-light);
  padding: 5rem 0;
}

.uso-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.uso-image-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.uso-image-wrap .img-border {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 8px solid white;
  box-shadow: var(--shadow-green);
}

.uso-image-wrap img {
  width: 100%;
  transition: transform 0.7s ease;
}

.uso-image-wrap:hover img {
  transform: scale(1.04);
}

.uso-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: 0.525rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.uso-badge p {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.25rem;
  line-height: 1;
}

.uso-content {
  flex: 1;
  min-width: 280px;
}

.uso-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.uso-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.uso-content p strong {
  color: var(--secondary);
}

.uso-steps {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uso-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.uso-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(248, 154, 28, 0.4);
}

.uso-step:nth-child(even) .uso-step-num {
  background: var(--lime);
  box-shadow: var(--shadow-lime);
}

.uso-step-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.uso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.uso-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1.5px solid rgba(9, 94, 43, 0.15);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.uso-tag .material-icons {
  font-size: 1rem;
  color: var(--lime);
}

/* ==============================================================
   CATÁLOGO DE PRODUCTOS
   ============================================================== */
#productos {
  background: white;
  padding: 5rem 0;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(9, 94, 43, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  background: white;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(112, 190, 68, 0.2);
  border-color: var(--lime);
}

.product-card-image {
  height: 280px;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-label-star {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-label-new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  text-transform: uppercase;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.product-card-body .product-subtitle {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.product-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-chip {
  background: var(--bg-light);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid rgba(9, 94, 43, 0.15);
}

.product-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(9, 94, 43, 0.08);
  display: flex;
  gap: 0.75rem;
}

/* Coming soon card */
.product-card.coming-soon {
  opacity: 0.6;
}

.product-card.coming-soon .product-card-image {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.coming-soon-icon {
  font-size: 4rem;
  color: rgba(9, 94, 43, 0.25);
}

/* ==============================================================
   ASISTENTE AGRÓNOMO IA
   ============================================================== */
#asistente {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  padding: 5rem 0;
  overflow: hidden;
}

.asistente-leaf {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
  pointer-events: none;
}

.asistente-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.asistente-info {
  flex: 1;
  min-width: 280px;
}

.asistente-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.asistente-info p {
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.asistente-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.asistente-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
}

.asistente-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.asistente-disclaimer {
  background: rgba(248, 154, 28, 0.15);
  border: 1px solid rgba(248, 154, 28, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Chat UI */
.chat-window {
  flex: 1.1;
  min-width: 300px;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.chat-header {
  background: var(--secondary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-header-info h4 {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-info p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}

.chat-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  display: inline-block;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8faf9;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.chat-bubble.bot {
  background: white;
  color: var(--text-main);
  border: 1px solid rgba(9, 94, 43, 0.12);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-bubble.user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}

.chat-bubble-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem;
  align-self: flex-start;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }

  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid rgba(9, 94, 43, 0.1);
  display: flex;
  gap: 0.5rem;
  background: white;
}

.chat-input {
  flex: 1;
  border: 1.5px solid rgba(9, 94, 43, 0.15);
  border-radius: 99px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  color: var(--text-main);
}

.chat-input:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px var(--lime-glow);
}

.chat-send {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  color: white;
}

.chat-send:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chat-send .material-icons {
  font-size: 1.1rem;
}

/* ==============================================================
   LOCALIZADOR DE TIENDAS
   ============================================================== */
#distribuidores {
  background: #ffffff;
  padding: 5rem 0;
}

.distribuidores-layout {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap-reverse;
  /* List on mobile at bottom if wrapped */
  flex-direction: row-reverse;
  /* List left, map right */
  align-items: stretch;
}

.distribuidores-map {
  flex: 2;
  min-width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-green);
  border: 4px solid white;
  min-height: 480px;
  /* Asegura un buen tamaño */
}

.distribuidores-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.distribuidores-list {
  flex: 1;
  min-width: 240px;
}

.distribuidores-list h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--secondary);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.store-scroll-list {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Scrollbar styling for .store-scroll-list */
.store-scroll-list::-webkit-scrollbar {
  width: 6px;
}

.store-scroll-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.store-scroll-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .store-scroll-list {
    max-height: 280px;
  }
}

.store-item {
  display: flex;
  align-items: center;
  /* keep centered vertically */
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1.5px solid rgba(9, 94, 43, 0.08);
  transition: var(--transition);
  cursor: pointer;
}

.store-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(248, 154, 28, 0.15);
  transform: translateX(4px);
}

.store-item.active {
  border-color: var(--primary);
  background: rgba(248, 154, 28, 0.05);
  /* Ligerísimo tono naranja */
  box-shadow: 0 4px 16px rgba(248, 154, 28, 0.2);
  transform: translateX(4px);
}

.store-item.active h4 {
  color: var(--primary);
}

.store-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  margin-left: auto;
  /* push to the right */
  text-decoration: none;
  transition: var(--transition);
}

.store-contact-btn:hover:not(.disabled) {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(248, 154, 28, 0.4);
}

.store-contact-btn .material-icons {
  font-size: 1.15rem;
}

.store-contact-btn.disabled {
  background-color: var(--border-light);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.5;
}

.store-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-icon .material-icons {
  color: var(--secondary);
  font-size: 1.2rem;
}

.store-info h4 {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.store-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.store-info .store-type {
  display: inline-block;
  background: var(--bg-light);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  margin-top: 0.25rem;
}

/* ==============================================================
   QUIÉNES SOMOS
   ============================================================== */
#nosotros {
  background: var(--secondary);
  padding: 5rem 0;
  overflow: hidden;
}

.nosotros-leaf {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
  pointer-events: none;
}

.nosotros-layout {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.nosotros-content {
  flex: 1;
  min-width: 280px;
}

.nosotros-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.nosotros-content p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.nosotros-content p strong {
  color: var(--primary);
}

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.nosotros-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.nosotros-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.nosotros-stat .stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.nosotros-stat p {
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.3;
}

.nosotros-image-wrap {
  flex: 1;
  min-width: 280px;
}

.nosotros-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nosotros-image-grid .img-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.nosotros-image-grid .img-item:first-child {
  grid-column: span 2;
  height: 220px;
}

.nosotros-image-grid .img-item:not(:first-child) {
  height: 150px;
}

.nosotros-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================================
   CONTACTO
   ============================================================== */
#contacto {
  background: var(--secondary-dark);
  padding: 5rem 0;
  overflow: hidden;
}

.contacto-leaf {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
  pointer-events: none;
}

.contacto-columns {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 850px) {
  .contacto-columns {
    flex-direction: row;
    gap: 1.5rem;
    /* Espaciado ajustado para 3 columnas */
    align-items: center;
  }

  .contacto-image {
    flex: 0 0 calc(50% - 1rem);
  }

  .contacto-channels {
    flex: 0 0 calc(20% - 1rem);
  }
}

.contacto-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto-image img {
  width: 100%;
  max-width: 550px;
  /* Agrandado */
  height: auto;
  opacity: 0.9;
}

.contacto-channels {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0;
}

.contacto-channel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: left;
  color: white;
}

.contacto-channel:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.ch-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: transform var(--transition);
  box-shadow: 0 4px 15px rgba(248, 154, 28, 0.35);
}

.contacto-channel-text {
  display: flex;
  flex-direction: column;
}

.contacto-channel:hover .ch-icon {
  transform: scale(1.1);
}

.ch-icon .material-icons {
  font-size: 1.25rem;
  color: white;
}

.ch-icon svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.contacto-channel h3 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contacto-channel p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  word-break: break-all;
}

/* Contact Form */
.contacto-form-wrap {
  flex: 0 0 calc(30% - 1rem);
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 0;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: none;
  height: 6rem;
}

.form-group-full {
  margin-bottom: 1.25rem;
}

.form-submit {
  text-align: center;
  margin-top: 1.5rem;
}

.form-success {
  display: none;
  color: #86efac;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* ==============================================================
   FOOTER
   ============================================================== */
footer {
  background: #0a0f0a;
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ==============================================================
   SCROLL REVEAL ANIMATION
   ============================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 768px) {

  /* Fix horizontal scroll */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Carousel arrows — lowered to 25% from bottom on mobile */
  .carousel-arrow {
    top: auto;
    bottom: 25%;
    transform: none;
  }

  .carousel-arrow:hover {
    transform: scale(1.2);
  }

  .carousel-arrow .material-icons {
    font-size: 2.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nosotros-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    display: none;
  }

  .chat-window {
    max-height: 400px;
  }

  /* ── Smaller buttons on mobile ── */
  .btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
  }

  .btn-primary {
    font-size: 0.85rem;
    padding: 0.6rem 1.3rem;
  }

  /* ── Smaller product cards on mobile ── */
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .product-card-image {
    height: 200px;
  }

  /* ── Benefit cards on mobile: compact ── */
  .beneficios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .benefit-card-white {
    padding: 1.5rem 1rem 1.25rem;
  }

  .bcw-icon {
    width: 4rem;
    height: 4rem;
    margin: 0.75rem auto 0.75rem;
  }

  .bcw-icon img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .bcw-title {
    font-size: 1.1rem;
  }

  .bcw-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nosotros-stats {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  /* Texto 4en1 en móviles: 2 renglones + sombras suaves */
  .hero-4en1 {
    white-space: normal !important;
    /* Anti plagas y Nutrición Total en 2 renglones */
    -webkit-text-stroke: 1px white !important;
    text-shadow: 2px 2px 0 white, 0 0 18px rgba(248, 154, 28, 0.2) !important;
    font-size: clamp(3rem, 12vw, 5rem) !important;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5) !important;
  }

  .nosotros-image-grid .img-item:first-child {
    height: 160px;
  }

  .nosotros-image-grid .img-item:not(:first-child) {
    height: 110px;
  }
}

/* ==============================================================
   DARK MODE
   ============================================================== */

/* ── Toggle button ── */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  width: 2rem;
  height: 2rem;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.15);
}

.theme-toggle .material-icons {
  font-size: 1.4rem;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Light mode state: show moon, hide sun */
.theme-icon-dark {
  opacity: 1;
  transform: scale(1);
}

.theme-icon-light {
  opacity: 0;
  transform: scale(0.5);
}

/* Dark mode state: hide moon, show sun */
[data-theme="dark"] .theme-icon-dark {
  opacity: 0;
  transform: scale(0.5);
}

[data-theme="dark"] .theme-icon-light {
  opacity: 1;
  transform: scale(1);
}

/* ── Dark mode palette ── */
[data-theme="dark"] {
  --bg-light: #0b1a0e;
  --bg-dark: #040d06;
  --white: #0f1d11;
  --text-main: #f1f5f9;
  /* Updated from #d4ead7 to a neutral white-gray */
  --text-muted: #f1f5f9;
  /* Updated from #7aab82 to a neutral muted gray */
  --card-glass: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --shadow-green: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-orange: 0 12px 32px rgba(248, 154, 28, 0.25);
}

/* Base text color explicitly forced on buttons to prevent variable overriding issues */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-outline {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-secondary {
  background: #1a2f1d;
  color: #ecfdf5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .btn-secondary:hover {
  background: #244229;
}

/* Global transitions for smooth theme switch */
[data-theme="dark"] body {
  background-color: var(--bg-light);
  color: var(--text-main);
}

/* ── Navigation ── */
[data-theme="dark"] #navbar.scrolled {
  background: linear-gradient(to right, #041a0a, #0e4020);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* ── Sections ── */
[data-theme="dark"] #uso,
[data-theme="dark"] #distribuidores {
  background: #0b1a0e;
}

[data-theme="dark"] #productos {
  background: #0d1f10;
}

[data-theme="dark"] #asistente {
  background: #040d06;
}

[data-theme="dark"] #contacto {
  background: #060f08;
}

/* ── Cards and surfaces ── */
[data-theme="dark"] .product-card {
  background: #152518;
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

[data-theme="dark"] .product-card-body p {
  color: var(--text-muted);
}

[data-theme="dark"] .product-card-body h3 {
  color: #6fd47a;
}

[data-theme="dark"] .product-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* ── Uso section ── */
[data-theme="dark"] .uso-image-wrap .img-border {
  border-color: #1a3020;
}

[data-theme="dark"] .uso-badge {
  background: rgba(15, 29, 17, 0.95);
  color: var(--text-main);
}

[data-theme="dark"] .uso-badge p {
  color: var(--lime);
}

[data-theme="dark"] .uso-badge small {
  color: var(--text-muted);
}

[data-theme="dark"] .uso-tag {
  background: #152518;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

[data-theme="dark"] .uso-step-text {
  color: var(--text-main);
}

/* ── Store locator ── */
[data-theme="dark"] .store-item {
  background: #0f1d11;
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .store-icon {
  background: rgba(248, 154, 28, 0.12);
}

[data-theme="dark"] .store-icon .material-icons {
  color: var(--primary);
}

[data-theme="dark"] .store-info h4 {
  color: #d4ead7;
  font-size: 1rem;
}

[data-theme="dark"] .store-info p {
  color: var(--text-muted);
}

[data-theme="dark"] .store-info .store-type {
  background: rgba(248, 154, 28, 0.15);
  color: var(--primary);
  border: 1px solid rgba(248, 154, 28, 0.3);
}

/* ── Chat V3 Dark Mode Overrides ── */
[data-theme="dark"] .chat-v3 {
  background: #0b1a0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .chat-v3-messages {
  background: #0d1f10;
}

[data-theme="dark"] .chat-v3-bubble.bot {
  background: #152518;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-v3-footer {
  background: #0b1a0e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-v3-inputbox {
  background: #112014;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .chat-v3-inputbox:focus-within {
  background: #152518;
}

/* ── Chat UI ── */
[data-theme="dark"] .chat-widget {
  background: #0f1d11;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-header {
  background: linear-gradient(to right, #095e2b, #1a4a25);
}

[data-theme="dark"] .chat-window {
  background: #0b1a0e;
}

[data-theme="dark"] .chat-bubble.bot {
  background: #1a2e1a;
  color: var(--text-main);
}

[data-theme="dark"] .chat-bubble.user {
  background: var(--secondary);
}

[data-theme="dark"] .chat-input-area {
  background: #0f1d11;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-input {
  background: #152518;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

[data-theme="dark"] .chat-input::placeholder {
  color: var(--text-muted);
}

/* ── Nosotros ── */
[data-theme="dark"] #nosotros {
  background: #0b1a0e;
}

[data-theme="dark"] .nosotros-text p {
  color: var(--text-muted);
}

[data-theme="dark"] .nosotros-text h3 {
  color: #6fd47a;
}

[data-theme="dark"] .nosotros-stat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nosotros-stat-label {
  color: var(--text-muted);
}

/* ── Contact form ── */
[data-theme="dark"] .contacto-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .form-group label {
  color: var(--text-main);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  color: var(--text-main);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ── Footer ── */
[data-theme="dark"] footer {
  background: #020804;
}

/* ── Section headers ── */
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header.light h2 {
  color: #6fd47a;
}

[data-theme="dark"] .section-header p,
[data-theme="dark"] .section-header.light p {
  color: var(--text-muted);
}

/* ── Contact form — dark mode ── */
[data-theme="dark"] .contacto-channel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .contacto-channel:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #contacto .btn-primary {
  background: var(--primary);
  color: white;
  border: none;
}

/* smooth transition on all elements */
*,
*::before,
*::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ==============================================================
   FLOATING THEME TOGGLE
   ============================================================== */
.theme-toggle {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.6rem 0.85rem;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  background: var(--secondary);
  color: white;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  -webkit-user-select: none;
  user-select: none;
}

.theme-toggle:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.theme-toggle:active {
  transform: scale(0.97);
}

/* Icon inside the pill */
.theme-toggle-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Light mode (default): show dark_mode icon ── */
.theme-icon-light {
  display: none;
}

.theme-icon-dark {
  display: inline;
}

/* ── Dark mode active: show light_mode icon ── */
[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: white;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: inline;
}

/* ==============================================================
   NOSOTROS IMAGE GRID (Detras de cada planta)
   ============================================================== */
.nosotros-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.nosotros-image-grid .img-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  line-height: 0;
}

.nosotros-image-grid .img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nosotros-image-grid .img-item:hover img {
  transform: scale(1.04);
}

/* jp-01: large image — full width on top row */
.nosotros-image-grid .img-large {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 260px;
}

/* jp-05 and jp-03: half width each on bottom row */
.nosotros-image-grid .img-small {
  min-height: 180px;
}

.nosotros-image-grid .img-small:first-of-type {
  grid-column: 1;
  grid-row: 2;
}

.nosotros-image-grid .img-small:last-of-type {
  grid-column: 2;
  grid-row: 2;
}

/* ==============================================================
   INSTRUCCIONES DE USO (NUEVA)
   ============================================================== */
.instrucciones-section {
  background: var(--bg-light);
  padding: 6rem 0;
}

.instrucciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.instruccion-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(9, 94, 43, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.instruccion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

/* Imagen con overlay y badge */
.instruccion-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  /* Esquinas superiores redondeadas */
}

.instruccion-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.instruccion-card:hover .instruccion-img-wrap img {
  transform: scale(1.06);
}

/* Número circular en esquina superior izquierda (encimado sobre la ficha) */
.instruccion-num {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(248, 154, 28, 0.55);
  z-index: 10;
  -webkit-text-stroke: 0;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

/* Texto */
.instruccion-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}

.instruccion-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

/* Descripción oculta — se muestra en el popup */
.instruccion-desc {
  display: none;
}

/* Hint de clic */
.instruccion-hint {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}



/* ── Advertencia de seguridad (Acordeón) ── */
.instrucciones-warning {
  margin-top: 2rem;
  background: #1274CC;
  border-radius: var(--radius-xl);
  color: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.iw-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  cursor: pointer;
  list-style: none;
}

.iw-summary::-webkit-details-marker {
  display: none;
}

.iw-summary:focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
}

.iw-icon {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iw-icon .material-icons {
  font-size: 1.5rem;
  color: white;
}

.iw-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
  flex-grow: 1;
  opacity: 0.95;
}

.iw-chevron {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.instrucciones-warning[open] .iw-chevron {
  transform: rotate(180deg);
}

.iw-content {
  padding: 0 2.5rem 2rem 6.8rem;
  /* Alineado debajo del texto (padding + width-icono + gap) */
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .iw-summary {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .iw-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    /* En celular es mejor alinear a la izquierda */
  }
}

.iw-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.iw-list li {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.92;
  padding-left: 1.2rem;
  position: relative;
}

.iw-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  opacity: 0.7;
}

/* Dark mode */
[data-theme="dark"] .instruccion-card {
  background: #152518;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .instruccion-title {
  color: #6fd47a;
}

[data-theme="dark"] .instruccion-desc {
  color: var(--text-muted);
}


/* Responsive */
@media (max-width: 900px) {
  .instrucciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .instrucciones-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columnas en móvil */
    gap: 1.5rem;
  }
}

/* ==============================================================
   FORMULA SECTION (NUEVA)
   ============================================================== */
.formula-section {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.formula-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.formula-info {
  flex: 1;
  min-width: 320px;
}

.formula-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.formula-info h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.formula-table-wrap {
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.formula-table {
  width: 100%;
  border-collapse: collapse;
}

.formula-table th,
.formula-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.formula-table th {
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.formula-table td:last-child {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.formula-footer-note {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

.formula-image {
  flex: 1;
  min-width: 320px;
  position: relative;
  display: flex;
  justify-content: center;
}

.formula-image img {
  width: 420px;
  height: 560px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.formula-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.formula-floating-card {
  position: absolute;
  bottom: 2rem;
  right: 0;
  background: white;
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 250px;
}

.formula-floating-card .material-icons {
  color: var(--primary);
  font-size: 2.5rem;
}

.formula-floating-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.formula-floating-card p {
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .formula-flex {
    gap: 2rem;
  }

  .formula-info h2 {
    font-size: 2.2rem;
  }

  .formula-image img {
    width: 100%;
    height: 450px;
    max-width: 350px;
  }
}

/* ==============================================================
   POPUP INSTRUCCIÓN DE USO
   ============================================================== */
.instruccion-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.instruccion-modal.active {
  display: flex;
}

.instruccion-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.instruccion-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  overflow-y: auto;
  overflow-x: hidden;
  width: min(640px, 94vw);
  max-height: 90vh;
  /* Changed from 90dvh for better compatibility */
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.instruccion-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.instruccion-modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.instruccion-modal-close .material-icons {
  color: white;
  font-size: 1.2rem;
}

.instruccion-modal-img-wrap {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #f4f6f4;
  /* Fondo neutro para imagen con contain */
}

@media (max-width: 768px) {
  .instruccion-modal-img-wrap {
    height: 50vh;
  }
}

.instruccion-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cubre todo el espacio manteniendo proporción */
  object-position: center;
}

/* Badge del popup — mismo estilo que el de la ficha, arriba-izquierda */
.instruccion-modal-num {
  position: absolute;
  top: 1rem;
  /* Siempre dentro de la imagen */
  left: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-text-stroke: 0;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 6px 18px rgba(248, 154, 28, 0.55);
  z-index: 5;
}

.instruccion-modal-body {
  padding: 2.5rem 2rem 2rem;
}

.instruccion-modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.instruccion-modal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

[data-theme="dark"] .instruccion-modal-content {
  background: #1a2f1d;
}

[data-theme="dark"] .instruccion-modal-body h3 {
  color: #6fd47a;
}

[data-theme="dark"] .instruccion-modal-body p {
  color: var(--text-muted);
}

/* ==============================================================
   PRODUCT CARDS — Sistema Unificado
   ============================================================== */

#productos {
  padding: 5rem 0;
  background: var(--bg-light);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Base card ── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(9, 94, 43, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(9, 94, 43, 0.14);
}

/* ── Image area ── */
.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

/* ── Coming soon image placeholder ── */
.product-card-image--soon {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-icon {
  font-size: 5rem;
  color: rgba(9, 94, 43, 0.15);
}

/* ── Floating badges ── */
.product-badge {
  position: absolute;
  top: 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-star {
  left: 0.9rem;
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(248, 154, 28, 0.4);
}

.badge-new {
  right: 0.9rem;
  background: var(--secondary);
  color: white;
}

.badge-soon {
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  top: auto;
  background: rgba(9, 94, 43, 0.85);
  color: white;
  backdrop-filter: blur(4px);
}

/* ── Card body ── */
.product-card-body {
  padding: 1.5rem 1.5rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-pretitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--secondary);
  margin: 0;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.15;
}

.product-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Chips row ── */
.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.product-chip {
  display: inline-block;
  background: #ecfdf5;
  border: 1px solid rgba(9, 94, 43, 0.2);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

/* ── Footer buttons ── */
.product-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.product-btn {
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 0.65rem;
}

.product-btn--outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 0.65rem;
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.product-btn--outline:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

/* ── coming-soon card variant ── */
.product-card.coming-soon {
  opacity: 0.85;
  border-style: dashed;
  border-color: rgba(9, 94, 43, 0.18);
}

.product-card.coming-soon:hover {
  opacity: 1;
}

/* ── Dark mode ── */
[data-theme="dark"] .product-card {
  background: #1a2f1d;
  border-color: rgba(112, 190, 68, 0.15);
}

[data-theme="dark"] .product-card-body h3 {
  color: #ecfdf5;
}

[data-theme="dark"] .product-chip {
  background: rgba(112, 190, 68, 0.1);
  border-color: rgba(112, 190, 68, 0.25);
  color: var(--lime);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   CHAT — Modernización: Avatar Robot & Estado Animado
   ============================================================== */

/* ── Avatar robot ── */
.chat-avatar--robot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #095e2b 0%, #1a7a44 50%, #70BE44 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(9, 94, 43, 0.45), 0 0 0 3px rgba(112, 190, 68, 0.3);
  animation: robot-glow 3s ease-in-out infinite;
}

.chat-avatar--robot .material-icons {
  font-size: 1.5rem;
  color: #ffffff;
}

@keyframes robot-glow {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(9, 94, 43, 0.45), 0 0 0 3px rgba(112, 190, 68, 0.3);
  }

  50% {
    box-shadow: 0 4px 24px rgba(9, 94, 43, 0.6), 0 0 0 5px rgba(112, 190, 68, 0.5);
  }
}

/* ── Punto de estado pulsante ── */
.chat-status--pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: status-pulse 1.8s ease-in-out infinite;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ── Badge "IA" en esquina del header ── */
.chat-header-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #70BE44, #095e2b);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(9, 94, 43, 0.4);
}

/* ── Chat header modernizado ── */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #064e3b 0%, #095e2b 60%, #10803c 100%);
  border-radius: 1.1rem 1.1rem 0 0;
  position: relative;
  overflow: hidden;
}

/* Sutil brillo top-left en el header */
.chat-header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(112, 190, 68, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.chat-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ecfdf5;
  margin-bottom: 2px;
}

.chat-header p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==============================================================
   ASISTENTE FULLSCREEN — Diseño v2
   ============================================================== */

/* ── Sección principal: 100vh ── */
.asistente-fullscreen {
  min-height: 100vh;
  background: linear-gradient(135deg, #064e3b 0%, #095e2b 50%, #0a4422 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ── Orbs decorativos de fondo ── */
.asistente-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(112, 190, 68, 0.18) 0%, transparent 70%);
  top: -100px;
  left: -150px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(248, 154, 28, 0.12) 0%, transparent 70%);
  bottom: -80px;
  right: 0;
}

/* ── Layout de 2 columnas ── */
.asistente-fs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ══ COLUMNA IZQUIERDA ══ */

.asistente-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(112, 190, 68, 0.18);
  border: 1px solid rgba(112, 190, 68, 0.35);
  color: #a8e063;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.asistente-eyebrow .material-icons {
  font-size: 1rem;
}

.asistente-fs-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: #ecfdf5;
  margin-bottom: 1.25rem;
}

.asistente-title-accent {
  background: linear-gradient(90deg, #70BE44, #f89a1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.asistente-fs-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 440px;
}

/* Stats row */
.asistente-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.asistente-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.asistente-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #70BE44;
  line-height: 1;
}

.asistente-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.asistente-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

.asistente-qs-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

/* Chips fullscreen */
.asistente-chips--fs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.asistente-chips--fs .asistente-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
}

.asistente-chips--fs .asistente-chip:hover {
  background: rgba(112, 190, 68, 0.2);
  border-color: rgba(112, 190, 68, 0.5);
  color: #fff;
}

.asistente-disclaimer-fs {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.asistente-disclaimer-fs strong {
  color: rgba(255, 255, 255, 0.65);
}

/* ══ COLUMNA DERECHA: Chat Window v2 ══ */
.asistente-fs-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window-v2 {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(112, 190, 68, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
  max-height: 72vh;
}

/* Chat v2 Header */
.chat-v2-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chat-v2-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #095e2b, #70BE44);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 3px rgba(112, 190, 68, 0.25);
  animation: robot-glow 3s ease-in-out infinite;
}

.chat-v2-avatar .material-icons {
  font-size: 1.3rem;
  color: #fff;
}

.chat-v2-avatar-pulse {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #064e3b;
  animation: status-pulse 1.8s ease-in-out infinite;
}

.chat-v2-header-info {
  flex: 1;
}

.chat-v2-header-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ecfdf5;
  margin-bottom: 2px;
}

.chat-v2-header-info p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, rgba(112, 190, 68, 0.25), rgba(248, 154, 28, 0.2));
  border: 1px solid rgba(112, 190, 68, 0.35);
  color: #a8e063;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  flex-shrink: 0;
}

/* Chat v2 Messages */
.chat-v2-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 190, 68, 0.3) transparent;
}

.chat-v2-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-v2-messages::-webkit-scrollbar-thumb {
  background: rgba(112, 190, 68, 0.3);
  border-radius: 4px;
}

.chat-v2-msg-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.chat-v2-msg-row.user {
  flex-direction: row-reverse;
}

.chat-v2-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #095e2b, #70BE44);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-v2-msg-avatar .material-icons {
  font-size: 1rem;
  color: #fff;
}

.chat-v2-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.3rem;
  padding-left: 0.15rem;
}

.chat-v2-msg-row.user .chat-v2-meta {
  text-align: right;
  padding-right: 0.15rem;
}

.chat-v2-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
}

.chat-v2-bubble.bot {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-top-left-radius: 0.2rem;
}

.chat-v2-bubble.user {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-top-right-radius: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Chat v2 Input area */
.chat-v2-input-area {
  padding: 1rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.chat-v2-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.9rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: border-color 0.2s;
}

.chat-v2-input-wrap:focus-within {
  border-color: rgba(112, 190, 68, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

/* Reusar la clase .chat-input pero en contexto v2 */
.chat-window-v2 .chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
}

.chat-window-v2 .chat-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.chat-v2-send {
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  background: var(--lime);
  color: #064e3b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.chat-v2-send:hover {
  background: #85d455;
  transform: scale(1.05);
}

.chat-v2-send .material-icons {
  font-size: 1.1rem;
}

.chat-v2-footer-note {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  margin-top: 0.6rem;
}

/* Typing en v2 */
.chat-v2-messages .chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  width: fit-content;
}

.chat-v2-messages .chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(112, 190, 68, 0.7);
  animation: typing-bounce 1.2s infinite;
}

.chat-v2-messages .chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-v2-messages .chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .asistente-fs-layout {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .asistente-fs-title {
    font-size: 2.2rem;
  }

  .chat-window-v2 {
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .asistente-fullscreen {
    min-height: 100svh;
  }

  .asistente-fs-title {
    font-size: 1.9rem;
  }
}

/* ==============================================================
   CHAT V3 — Variante: Card Sólida Premium
   ============================================================== */

.chat-v3 {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 1.75rem;
  box-shadow:
    0 0 0 1px rgba(9, 94, 43, 0.08),
    0 8px 32px rgba(9, 94, 43, 0.18),
    0 40px 80px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
  max-height: 72vh;
}

/* Header con degradado igual al menú (scrolled) */
.chat-v3-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(to right, #095E2B, #70BE44);
  flex-shrink: 0;
}

.chat-v3-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.chat-v3-avatar .material-icons {
  font-size: 1.3rem;
  color: #fff;
}

.chat-v3-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--secondary);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.chat-v3-hinfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-v3-hinfo h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.chat-v3-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.65);
}

.chat-v3-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

/* Messages area */
.chat-v3-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fdf9;
  scrollbar-width: thin;
  scrollbar-color: rgba(9, 94, 43, 0.2) transparent;
}

.chat-v3-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-v3-messages::-webkit-scrollbar-thumb {
  background: rgba(9, 94, 43, 0.2);
  border-radius: 4px;
}

.chat-v3-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.chat-v3-row.user {
  flex-direction: row-reverse;
}

.chat-v3-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--lime));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(9, 94, 43, 0.3);
}

.chat-v3-icon .material-icons {
  font-size: 1rem;
  color: #fff;
}

.chat-v3-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 80%;
}

.chat-v3-row.user .chat-v3-content {
  align-items: flex-end;
}

.chat-v3-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.2rem;
}

.chat-v3-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.65;
}

.chat-v3-bubble.bot {
  background: #fff;
  color: var(--text-main);
  border: 1px solid rgba(9, 94, 43, 0.1);
  border-top-left-radius: 0.25rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.chat-v3-bubble.user {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  border-top-right-radius: 0.25rem;
  box-shadow: 0 2px 10px rgba(9, 94, 43, 0.3);
}

/* Footer input */
.chat-v3-footer {
  padding: 0.85rem 1rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(9, 94, 43, 0.07);
  flex-shrink: 0;
}

.chat-v3-inputbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(9, 94, 43, 0.15);
  border-radius: 99px;
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  background: #f8fdf9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-v3-inputbox:focus-within {
  border-color: var(--primary);
  /* Cambiado a naranja/primario para que resalte el 'externo' */
  box-shadow: 0 0 0 4px rgba(248, 154, 28, 0.15);
  background: #fff;
}

.chat-v3 .chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  /* Elimina cualquier sombra verde residual en el input */
  -webkit-appearance: none;
  appearance: none;
  font-size: 0.875rem;
  color: var(--text-main);
  font-family: var(--font-body);
}

.chat-v3 .chat-input::placeholder {
  color: rgba(15, 57, 27, 0.38);
}

.chat-v3-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(9, 94, 43, 0.4);
}

.chat-v3-send:hover {
  background: var(--secondary-light);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(9, 94, 43, 0.5);
}

.chat-v3-send .material-icons {
  font-size: 1.1rem;
  margin-left: 2px;
  /* óptico send icon */
}

.chat-v3-note {
  font-size: 0.67rem;
  color: #4285F4;
  /* Azul Gemini/Google */
  font-weight: 600;
  text-align: center;
  margin-top: 0.55rem;
  opacity: 0.8;
}

/* Typing en v3 */
.chat-v3-messages .chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(9, 94, 43, 0.1);
  border-radius: 1.1rem;
  border-top-left-radius: 0.25rem;
  width: fit-content;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.chat-v3-messages .chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.6;
  animation: typing-bounce 1.2s infinite;
}

.chat-v3-messages .chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-v3-messages .chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@media (max-width: 900px) {
  .chat-v3 {
    max-width: 100%;
    max-height: 60vh;
  }
}