/* ============================================================
   BI Solutions — Páginas de producto
   Compartido por: ganaderia, agropecuaria, crm, prestamos,
   restaurantes, deudas, finanzas-personales, gestion-empresarial
   y comercializadora-oro. Requiere base.css.
   El color de acento se controla con los tokens --green* de
   base.css (deudas.css los sobrescribe con el tema rojo).
   ============================================================ */

/* HERO */
.hero { position: relative; z-index: 1; padding: 106px 5% 70px; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; background: var(--green-lt); border: 1px solid rgba(var(--green-rgb),0.28); border-radius: 50px; padding: 5px 14px; font-size: 0.73rem; color: var(--green-dk); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-family: 'Lora', serif; font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p { color: var(--muted); font-size: 1rem; line-height: 1.78; margin-bottom: 32px; }
.price-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; position: relative; overflow: hidden; }
.price-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.price-amount { font-family: 'Lora', serif; font-weight: 700; font-size: 2rem; color: var(--green); line-height: 1; }
.price-detail { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
.price-detail span { color: var(--green-dk); font-weight: 600; }
.btn-wa { display: inline-flex; align-items: center; gap: 9px; background: var(--wa); color: #fff; text-decoration: none; padding: 13px 26px; border-radius: 50px; font-weight: 700; font-size: 0.92rem; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(var(--wa-rgb),0.3); }
.btn-wa:hover { background: var(--wa-dk); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(var(--wa-rgb),0.45); }
.btn-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 0.87rem; margin-left: 14px; transition: color 0.2s; font-weight: 500; }
.btn-back-link:hover { color: var(--green); }
.hero-img { border-radius: 20px; overflow: hidden; border: 1.5px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.hero-img img { width: 100%; display: block; }

/* FEATURES */
.features-strip { position: relative; z-index: 1; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 42px 5%; }
.features-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; }
.feat { display: flex; gap: 13px; align-items: flex-start; }
.feat-icon { width: 42px; height: 42px; flex-shrink: 0; background: var(--green-lt); border: 1.5px solid rgba(var(--green-rgb),0.2); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.feat h4 { font-family: 'Lora', serif; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.feat p { color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

/* CAROUSEL */
.carousel-section { position: relative; z-index: 1; padding: 76px 5%; max-width: 1080px; margin: 0 auto; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dk); margin-bottom: 10px; }
.section-eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--green); border-radius: 2px; }
.section-title { font-family: 'Lora', serif; font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 32px; }
.section-title em { font-style: italic; color: var(--green); }
.carousel-wrap { position: relative; }
.carousel-track-outer { overflow: hidden; border-radius: 16px; border: 1.5px solid var(--border); background: var(--cream2); box-shadow: 0 10px 40px rgba(0,0,0,0.07); }
.carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; display: block; max-height: 520px; object-fit: contain; background: var(--cream2); }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,26,24,0.75)); padding: 32px 22px 18px; font-size: 0.87rem; color: rgba(255,255,255,0.75); }
.slide-caption strong { color: #fff; display: block; margin-bottom: 2px; font-family: 'Lora', serif; font-size: 0.97rem; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--border); color: var(--ink); font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, color 0.2s; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.carousel-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.carousel-btn.prev { left: -21px; }
.carousel-btn.next { right: -21px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background 0.2s, transform 0.2s, width 0.2s; }
.dot.active { background: var(--green); width: 22px; border-radius: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 7px; margin-top: 14px; }
.thumb { border-radius: 9px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s, opacity 0.2s; aspect-ratio: 16/10; opacity: 0.5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--green); opacity: 1; }
.thumb:hover { opacity: 0.85; }

/* MODULES */
.modules-section { position: relative; z-index: 1; padding: 0 5% 76px; }
.modules-inner { max-width: 1080px; margin: 0 auto; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; }
.module-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 13px; padding: 20px 18px; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.module-card:hover { border-color: rgba(var(--green-rgb),0.4); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(var(--green-rgb),0.08); }
.module-num { font-size: 0.62rem; color: var(--green); font-weight: 800; letter-spacing: 0.1em; margin-bottom: 7px; }
.module-card h4 { font-family: 'Lora', serif; font-weight: 600; font-size: 0.93rem; color: var(--ink); margin-bottom: 5px; }
.module-card p { color: var(--muted); font-size: 0.79rem; line-height: 1.55; }

/* CTA */
.cta-section { position: relative; z-index: 1; padding: 0 5% 76px; }
.cta-box { max-width: 1080px; margin: 0 auto; background: var(--white); border: 1.5px solid var(--border); border-radius: 22px; padding: 56px 44px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.cta-box h2 { font-family: 'Lora', serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.cta-box h2 em { font-style: italic; color: var(--green); }
.cta-box p { color: var(--muted); font-size: 1rem; max-width: 460px; margin: 0 auto 32px; line-height: 1.75; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--border); color: var(--ink); text-decoration: none; padding: 12px 22px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; transition: border-color 0.2s, box-shadow 0.2s; }
.btn-outline:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(var(--green-rgb),0.1); }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 88px; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
  .cta-box { padding: 36px 22px; }
}
