/* ============================================
   Aguaribai IA — estilos adicionales (enfoque consultoría)
   Se carga DESPUÉS de styles.css y reutiliza sus variables.
   ============================================ */

/* ---------- Árbol de Automatización (hero) ---------- */
.tree-card {
  background:
    radial-gradient(ellipse 70% 40% at 50% 24%, rgba(113, 200, 55, 0.14), transparent 70%),
    var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-glow);
}
.tree-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tree-svg text { font-family: var(--font-sans); }

.tree-svg .t-canopy ellipse, .tree-svg .t-canopy circle { fill: rgba(113, 200, 55, 0.22); }
.tree-svg .t-leaves { animation: fadein 1.6s ease-out 0.6s both; }
.tree-svg .t-canopy-sway { transform-origin: 280px 440px; animation: canopy 4.5s ease-in-out infinite alternate; }
.tree-svg .t-leaf.l1 { fill: #8fe356; opacity: 0.5; }
.tree-svg .t-leaf.l2 { fill: #4f9426; opacity: 0.75; }
.tree-svg .t-leaf { transform-box: fill-box; transform-origin: 0% 50%;
  animation: sway var(--d, 4s) ease-in-out var(--dl, 0s) infinite alternate; }
.tree-svg .t-leaf.t-fall { opacity: 0; transform-origin: 50% 50%;
  animation: leaf-fall var(--fd, 12s) ease-in-out var(--fdl, 0s) infinite; }
.tree-svg .t-spark { fill: var(--green-light); opacity: 0.7; animation: twinkle 3.4s ease-in-out infinite; }

.tree-svg .t-branch-back, .tree-svg .t-branch { fill: none; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.5s ease-out 0.4s forwards; }
.tree-svg .t-branch-back { stroke: #3a7320; stroke-width: 13; }
.tree-svg .t-branch { stroke: #7fd146; stroke-width: 5; opacity: 0.9; }

.tree-svg .t-fruit { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pop 0.7s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.tree-svg .t-fruit-glow { fill: var(--green); opacity: 0.45; filter: url(#blurMid); animation: pulse 3.6s ease-in-out infinite; }
.tree-svg .t-fruit-box { fill: url(#pillG); stroke: var(--green-light); stroke-width: 1.8; }
.tree-svg .t-fruit-area { font-size: 15px; font-weight: 500; fill: var(--text-secondary); }
.tree-svg .t-fruit-name { font-size: 18.5px; font-weight: 700; fill: var(--green-light); }

.tree-svg .t-shadow { fill: rgba(113, 200, 55, 0.4); }
.tree-svg .t-root-line { fill: none; stroke: #4f9426; stroke-width: 6; stroke-linecap: round; opacity: 0.95;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s ease-out 0.1s forwards; }
.tree-svg .t-trunk { filter: drop-shadow(0 0 10px rgba(113, 200, 55, 0.3)); }
.tree-svg .t-bark { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 3; stroke-linecap: round; }
.tree-svg .t-line { fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; }
.tree-svg .t-side-cap { font-size: 15px; font-weight: 500; fill: var(--text-muted); }
.tree-svg .t-side-text { font-size: 18.5px; font-weight: 600; fill: var(--text-primary); }
.tree-svg .t-root rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(170, 179, 197, 0.55); stroke-width: 1.5; stroke-dasharray: 6 5; }
.tree-svg .t-root text { font-size: 17px; font-weight: 500; fill: var(--text-primary); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes canopy { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
@keyframes sway { from { transform: rotate(calc(var(--amp, 10deg) * -1)); } to { transform: rotate(var(--amp, 10deg)); } }
@keyframes leaf-fall {
  0%   { opacity: 0;   transform: translate(0, 0) rotate(0deg); }
  6%   { opacity: 1; }
  30%  { transform: translate(calc(var(--dx) * 0.9), 90px) rotate(120deg); }
  55%  { transform: translate(calc(var(--dx) * -0.2), 190px) rotate(250deg); }
  85%  { opacity: 1; transform: translate(calc(var(--dx) * 0.7), 290px) rotate(380deg); }
  100% { opacity: 0;   transform: translate(calc(var(--dx) * 0.3), 335px) rotate(470deg); }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.55; } }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.85; } }

@media (prefers-reduced-motion: reduce) {
  .tree-svg .t-branch, .tree-svg .t-branch-back, .tree-svg .t-root-line { animation: none; stroke-dashoffset: 0; }
  .tree-svg .t-fruit { animation: none; opacity: 1; transform: none; }
  .tree-svg .t-fruit-glow, .tree-svg .t-spark, .tree-svg .t-leaves, .tree-svg .t-leaf, .tree-svg .t-canopy-sway { animation: none; }
  .tree-svg .t-falling { display: none; }
}

.tree-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
  font-size: 14.5px;
  color: var(--text-secondary);
}
.tree-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 9px;
  background: var(--green);
}
.tree-legend .lg-fruit::before { background: var(--green-light); box-shadow: 0 0 8px var(--green-light); }
.tree-legend .lg-branch::before { background: var(--green); }
.tree-legend .lg-trunk::before { background: var(--green-dark); }
.tree-legend .lg-root::before { background: transparent; border: 1.5px dashed var(--text-muted); }
@media (max-width: 520px) { .tree-legend { grid-template-columns: 1fr; } }
.tree-note { margin-top: 10px; font-size: 13px; color: var(--text-muted); font-style: italic; }

/* ---------- Costo de cada problema (sección "No necesitás una IA") ---------- */
.pain-cost {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.pain-cost strong { color: var(--green-light); font-weight: 600; }

/* ---------- Grilla de 3 columnas para las áreas ---------- */
.pain-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .pain-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Precios ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 780px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: rgba(113, 200, 55, 0.45);
  box-shadow: var(--shadow-glow);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--green);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.price-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.price-for { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; min-height: 42px; }
.price-amount { font-size: 42px; font-weight: 700; line-height: 1.1; }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.price-meta { font-size: 13px; color: var(--text-muted); margin: 6px 0 24px; }
.price-card .service-feats { margin-bottom: 28px; flex: 1; }

.price-foot {
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.price-foot strong { color: var(--text-primary); }
.price-foot + .price-foot { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* La caja destacada reutilizada en la sección de método */
.guarantee-box.honest { margin-top: 48px; }

/* ---------- Texto auxiliar del hero ---------- */
.hero-stats { gap: 20px 32px; }
.hero-stat .num span.txt { font-size: 22px; }
