@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Varela+Round&display=swap');

:root {
  --font-heading: 'Varela Round', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Colores Oficiales Extraídos de los Flyers */
  --color-bg: #FDFBF7;
  --color-bg-warm: #F8F3E9;
  --color-bg-card: #FFFFFF;
  --color-bg-green-soft: #EBF5E8;
  --color-bg-orange-soft: #FDF2E8;

  --color-primary: #2E5E20;
  --color-primary-light: #4E8741;
  --color-primary-dark: #1F3F16;

  --color-accent: #D97724;
  --color-accent-hover: #C06316;
  --color-accent-gold: #F2A93B;

  --color-text-main: #2D3728;
  --color-text-muted: #5F6D59;
  --color-text-earth: #6E5339;

  --color-border-card: #EADBCE;
  --color-border-green: #C9E2C2;
  --color-border-dashed: #8BA87E;

  --color-pink-paw: #F8C8D4;
  --color-pink-paw-dark: #E29CAE;

  --shadow-soft: 0 10px 30px -6px rgba(46, 94, 32, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -8px rgba(46, 94, 32, 0.16), 0 8px 16px -4px rgba(217, 119, 36, 0.12);
  --shadow-clay: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 8px 20px rgba(46, 94, 32, 0.08);
  --shadow-promo: 0 15px 40px -5px rgba(217, 119, 36, 0.25), 0 0 0 3px #F4E2CD;
}

/* Base */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(235, 245, 232, 0.6) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(253, 242, 232, 0.6) 0%, transparent 25%),
    radial-gradient(rgba(46, 94, 32, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Tarjetas estilo flyer: bordes orgánicos, fondos cálidos y doble sombra */
.eco-card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border-card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border-green);
}

.eco-card-dashed {
  background: #FEFCF9;
  border: 2px dashed var(--color-border-dashed);
  border-radius: 1.5rem;
}

.eco-card-promo {
  background: linear-gradient(135deg, #FFF9F3 0%, #FFF3E6 100%);
  border: 3px solid #E68A2E;
  border-radius: 2rem;
  box-shadow: var(--shadow-promo);
  position: relative;
}

/* Botones y badges estilo gomita/clay */
.btn-clay-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 9999px;
  font-family: var(--font-heading);
  box-shadow: 0 4px 0 var(--color-primary-dark), 0 8px 16px rgba(46, 94, 32, 0.25);
  transition: all 0.15s ease-out;
}

.btn-clay-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-primary-dark), 0 12px 20px rgba(46, 94, 32, 0.3);
}

.btn-clay-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-primary-dark), 0 4px 8px rgba(46, 94, 32, 0.2);
}

.btn-clay-accent {
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 9999px;
  font-family: var(--font-heading);
  box-shadow: 0 4px 0 #9E4E10, 0 8px 20px rgba(217, 119, 36, 0.3);
  transition: all 0.15s ease-out;
}

.btn-clay-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #9E4E10, 0 12px 24px rgba(217, 119, 36, 0.35);
}

.btn-clay-accent:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #9E4E10, 0 4px 8px rgba(217, 119, 36, 0.2);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1.5px solid transparent;
}

.badge-green {
  background-color: var(--color-bg-green-soft);
  color: var(--color-primary);
  border-color: var(--color-border-green);
}

.badge-orange {
  background-color: var(--color-bg-orange-soft);
  color: var(--color-accent);
  border-color: #F8D8B8;
}

/* Animaciones de flotación y micro-interacciones */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1.5deg);
  }
}

@keyframes paw-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15) translateY(-3px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Efectos visuales de productos */
.product-img-clean {
  border-radius: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eco-card:hover .product-img-clean {
  transform: scale(1.04) translateY(-3px);
}

/* Canvas y Video Chromakey */
.chromakey-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.chromakey-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
  filter: drop-shadow(0 15px 25px rgba(46, 94, 32, 0.15));
}

/* Botones de selección de aditivos */
.additive-pill-btn {
  border: 2px solid var(--color-border-card);
  border-radius: 1rem;
  padding: 0.6rem 0.9rem;
  background: #FFFFFF;
  color: var(--color-text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.additive-pill-btn:hover {
  border-color: var(--color-primary-light);
  background: #FAFCF9;
}

.additive-pill-btn.active {
  border-color: var(--color-primary);
  background: var(--color-bg-green-soft);
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(46, 94, 32, 0.12);
}

/* Cinta de oferta destacada */
.ribbon-sale {
  position: absolute;
  top: 18px;
  right: -35px;
  transform: rotate(45deg);
  background: #D97724;
  color: white;
  padding: 6px 40px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Patitas decorativas en bordes */
.paw-decor {
  display: inline-block;
  color: var(--color-pink-paw);
  transition: transform 0.2s ease;
}

.paw-decor:hover {
  transform: scale(1.2) rotate(10deg);
  color: var(--color-pink-paw-dark);
}

/* FAQ Accordion */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
  cursor: pointer;
}

details[open] summary .faq-icon {
  transform: rotate(180deg);
}

/* Modal */
.modal-backdrop {
  background: rgba(31, 63, 22, 0.5);
  backdrop-filter: blur(4px);
}

/* ==================== EL JUEGO DEL GATO (MICHI TAC-TOE) ==================== */
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes cat-wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

@keyframes win-glow {
  0%, 100% {
    background-color: #EBF5E8;
    box-shadow: 0 0 0 3px #4E8741, 0 8px 20px rgba(46, 94, 32, 0.2);
  }
  50% {
    background-color: #DCFCE7;
    box-shadow: 0 0 0 4px #16A34A, 0 12px 28px rgba(22, 163, 74, 0.35);
  }
}

.animate-pop-in {
  animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.michi-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 220px;
  margin: 0 auto;
  padding: 10px;
  background: #F5EFEB;
  border: 2px solid #EADBCE;
  border-radius: 1.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(46, 94, 32, 0.05);
}

.michi-cell {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1.5px solid #EADBCE;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  box-shadow: 0 2px 0 #E2D5C4, 0 3px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease-out;
}

.michi-cell:hover:not(.occupied) {
  background: #FFFDF9;
  border-color: #D97724;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #D97724, 0 4px 10px rgba(217, 119, 36, 0.12);
}

.michi-cell:active:not(.occupied) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #D97724;
}

.michi-cell.occupied {
  cursor: default;
}

.michi-cell.win-cell {
  animation: win-glow 1.5s ease-in-out infinite;
  border-color: #2E5E20 !important;
}

.cat-vector {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.cat-orange:hover, .cat-black:hover {
  animation: cat-wiggle 0.5s ease-in-out;
}

/* ==================== HERO ARC & BRAND ANIMATION ==================== */

@keyframes compostcatGradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes compostcatBounceIn {
  0% {
    opacity: 0;
    transform: translateY(calc(var(--rest-y, 0px) + 32px)) rotate(var(--rest-rot, 0deg)) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(calc(var(--rest-y, 0px) - 6px)) rotate(var(--rest-rot, 0deg)) scale(1.04);
  }
  82% {
    transform: translateY(calc(var(--rest-y, 0px) + 2px)) rotate(var(--rest-rot, 0deg)) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg)) scale(1);
  }
}

.hero-arc-char {
  display: inline-block;
  transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg));
  transform-origin: 50% 100%;
  white-space: pre;
}

@keyframes compostcatLetterWave {
  0% {
    transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg));
  }
  6% {
    transform: translateY(calc(var(--rest-y, 0px) - 9px)) rotate(var(--rest-rot, 0deg));
  }
  11% {
    transform: translateY(calc(var(--rest-y, 0px) + 1.5px)) rotate(var(--rest-rot, 0deg));
  }
  14% {
    transform: translateY(calc(var(--rest-y, 0px) - 0.5px)) rotate(var(--rest-rot, 0deg));
  }
  17% {
    transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg));
  }
  100% {
    transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg));
  }
}

.brand-word {
  display: inline-block;
  white-space: nowrap;
}

.brand-letter {
  display: inline-block;
  background: linear-gradient(90deg, #F5C242 0%, #F97316 50%, #F5C242 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: 
    compostcatBounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    compostcatLetterWave 3s cubic-bezier(0.25, 1, 0.5, 1) infinite,
    compostcatGradientShift 4s linear infinite;
  animation-delay: 
    var(--delay, 0s), 
    calc(1.4s + var(--delay, 0s)), 
    0s;
  transform-origin: 50% 100%;
  transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg));
  white-space: pre;
}

@media (max-width: 640px) {
  .hero-arc-char {
    transform: none !important;
  }
  .brand-letter {
    --rest-y: 0px !important;
    --rest-rot: 0deg !important;
  }
}

/* ==================== ANIMATED CAT PAW TRACKS ==================== */
.cat-paw-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cat-paw-step {
  position: absolute;
  width: 34px;
  height: 38px;
  background-image: url('../assets/cat_paw_single.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  filter: brightness(0.25) sepia(0.5);
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .cat-paw-step {
    width: 25px;
    height: 28px;
  }
}

/* ==================== FONDOS DECORATIVOS MULTICAPA (UI/UX PRO MAX) ==================== */

/* --- 1. Fondo Botánico Decorado (Beneficios) --- */
.bg-section-botanical-rich {
  position: relative;
  background: linear-gradient(165deg, #EEF7EB 0%, #DFEFE0 48%, #EBF6EA 100%);
  overflow: hidden;
}

.bg-section-botanical-rich::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/bgpattern.png');
  background-size: 520px 520px;
  background-repeat: repeat;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

/* Formas Orgánicas / Blobs Difusos */
.organic-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50% 60% 40% 70% / 60% 40% 70% 50%;
  filter: blur(50px);
  will-change: transform;
  z-index: 0;
}

.blob-botanical-1 {
  top: -80px;
  left: -80px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(46, 94, 32, 0.18) 0%, rgba(46, 94, 32, 0) 70%);
}

.blob-botanical-2 {
  bottom: -70px;
  right: -70px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(217, 119, 36, 0.14) 0%, rgba(217, 119, 36, 0) 70%);
}

.blob-botanical-center {
  top: 35%;
  right: 8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(78, 135, 65, 0.10) 0%, rgba(78, 135, 65, 0) 70%);
}

/* --- 2. Fondo Terroso & Taller Decorado (Modo de Uso) --- */
.bg-section-earth-rich {
  position: relative;
  background: linear-gradient(145deg, #F8EFE4 0%, #F3E3D1 45%, #EAF3E7 100%);
  overflow: hidden;
}

.bg-section-earth-rich::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(110, 83, 57, 0.08) 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 15%, rgba(217, 119, 36, 0.08) 0%, transparent 45%);
  background-size: 26px 26px, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.blob-earth-1 {
  top: -60px;
  right: -50px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(217, 119, 36, 0.16) 0%, rgba(217, 119, 36, 0) 70%);
}

.blob-earth-2 {
  bottom: -70px;
  left: -50px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(46, 94, 32, 0.14) 0%, rgba(46, 94, 32, 0) 70%);
}

/* Puddle decorativo orgánico para la ilustración del arenero */
.puddle-backdrop {
  position: absolute;
  inset: -12px;
  border-radius: 2.2rem 2.8rem 2.4rem 3rem / 2.8rem 2.2rem 3rem 2.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 245, 232, 0.92) 100%);
  border: 2px solid #C9E2C2;
  box-shadow: 0 16px 32px -6px rgba(46, 94, 32, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: rotate(-1.5deg);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.guide-wrapper:hover .puddle-backdrop {
  transform: rotate(0.5deg) scale(1.02);
}

/* Badges y stickers claymorphic */
.clay-sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  color: var(--color-primary);
  border: 2px solid #C9E2C2;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(46, 94, 32, 0.1), inset 0 -2px 0 rgba(46, 94, 32, 0.08);
}

.clay-sticker-badge-orange {
  color: var(--color-accent);
  border-color: #F8D8B8;
  box-shadow: 0 4px 14px rgba(217, 119, 36, 0.12), inset 0 -2px 0 rgba(217, 119, 36, 0.1);
}

/* Divisores de onda orgánicos (SVG wave dividers) */
.section-wave-top, .section-wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.section-wave-top {
  top: -1px;
}

.section-wave-bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

.section-wave-top svg, .section-wave-bottom svg {
  display: block;
  width: 100%;
  height: 28px;
}

@media (min-width: 768px) {
  .section-wave-top svg, .section-wave-bottom svg {
    height: 42px;
  }
}

/* Realce visual para tarjetas sobre fondos botánicos y terrosos */
.bg-section-botanical-rich .eco-card,
.bg-section-earth-rich .eco-card {
  box-shadow: 0 12px 28px -4px rgba(46, 94, 32, 0.09), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
}

.bg-section-botanical-rich .eco-card:hover,
.bg-section-earth-rich .eco-card:hover {
  box-shadow: 0 20px 38px -6px rgba(46, 94, 32, 0.16), 0 8px 16px -3px rgba(217, 119, 36, 0.10);
}



