/* ========================================
   grupot - Inteligencia Artificial
   product-ia.css
   Agregar en BS Studio: Design > CSS > Add CSS File
   ======================================== */

/* ---- HERO ---- */

.ia-hero {
  padding: 9rem 0 5rem;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.ia-hero::before {
  content: '';
  position: absolute;
  width: 32rem;
  height: 32rem;
  background: #FBBF24;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.07;
  top: -8rem;
  right: -4rem;
  animation: ia-float 10s ease-in-out infinite;
}

.ia-hero::after {
  content: '';
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: #3B82F6;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  bottom: -4rem;
  left: -4rem;
  animation: ia-float 12s ease-in-out infinite reverse;
}

@keyframes ia-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.ia-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.ia-hero-title .ia-highlight {
  color: #FBBF24;
}

.ia-hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ---- CHAT DEMO ---- */

.ia-chat-demo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  max-width: 480px;
}

.ia-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ia-chat-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.ia-chat-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.ia-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  max-width: 90%;
}

.ia-bubble.user {
  background: rgba(251, 191, 36, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-left: auto;
  border-radius: 1rem 1rem 0.25rem 1rem;
}

.ia-bubble.bot {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem 1rem 1rem 0.25rem;
}

.ia-bubble-caption {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.25rem;
}

.ia-result-table {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.ia-result-table th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ia-result-table td {
  padding: 0.35rem 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.ia-result-table tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.03);
}

/* ---- PRODUCTOS IA ---- */

.ia-products-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.ia-product-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.ia-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

.ia-product-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.ia-product-header.erp {
  background: linear-gradient(135deg, #FFF1F0 0%, #FFF8F8 100%);
}

.ia-product-header.frm {
  background: linear-gradient(135deg, #F0FFF8 0%, #F8FFFC 100%);
}

.ia-product-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ia-product-label.erp {
  color: #DC2626;
}

.ia-product-label.frm {
  color: #059669;
}

.ia-product-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ia-product-name .erp-color {
  color: #DC2626;
}

.ia-product-name .frm-color {
  color: #059669;
}

.ia-product-desc {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.ia-product-body {
  padding: 1.75rem 2rem 2rem;
}

.ia-pill-tag {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.ia-pill-tag.frm {
  background: rgba(5, 150, 105, 0.15);
  color: #059669;
}

.ia-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.ia-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9375rem;
  color: var(--text-medium);
  border-bottom: 1px solid var(--bg-gray);
}

.ia-feature-list li:last-child {
  border-bottom: none;
}

.ia-feature-list li i {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.ia-feature-list li i.erp {
  color: #DC2626;
}

.ia-feature-list li i.frm {
  color: #059669;
}

/* ---- CÓMO FUNCIONA ---- */

.ia-how-section {
  padding: 5rem 0;
  background: white;
}

.ia-step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.ia-step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
  background: #FEF3C7;
  color: #92400E;
}

.ia-step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.ia-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ia-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3rem;
  color: var(--border-color);
  font-size: 1.5rem;
}

.ia-guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}

.ia-guarantee-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #FEF3C7;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ia-guarantee-icon i {
  color: #92400E;
  font-size: 1.1rem;
}

.ia-guarantee-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.ia-guarantee-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- EJEMPLOS ---- */

.ia-examples-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.ia-example-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.ia-example-card:hover {
  border-color: #FBBF24;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.1);
  transform: translateY(-3px);
}

.ia-example-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.ia-example-tag.erp {
  background: #FEE2E2;
  color: #991B1B;
}

.ia-example-tag.frm {
  background: #D1FAE5;
  color: #065F46;
}

.ia-example-question {
  background: var(--bg-gray);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1rem;
  border-left: 3px solid #FBBF24;
}

.ia-example-result {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- CTA FINAL ---- */

.ia-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  text-align: center;
}

.ia-cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.ia-cta-section p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 991px) {
  .ia-hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 991px) {
  .ia-chat-demo {
    max-width: 100%;
    margin-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .ia-hero {
    padding: 7rem 0 4rem;
  }
}

@media (max-width: 767px) {
  .ia-hero-title {
    font-size: 1.9rem;
  }
}

/* ========================================
   Aliases para clases legacy del chat demo
   (BS Studio restaura las clases originales
   al reimportar — estos aliases las cubren)
   ======================================== */

.chat-demo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  max-width: 480px;
}

.chat-demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-demo-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  max-width: 90%;
}

.chat-bubble.user {
  background: rgba(251, 191, 36, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-left: auto;
  border-radius: 1rem 1rem 0.25rem 1rem;
}

.chat-bubble.ia {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem 1rem 1rem 0.25rem;
}

.result-table {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.result-table th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.result-table td {
  padding: 0.35rem 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.result-table tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.03);
}

