/* =============================================
   Andes AI – Custom Styles
   Complement to TailwindCSS CDN
   ============================================= */

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Animated blobs (Hero background) ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatBlob 8s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #fdba74, #fef3c7);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fb923c, #fde68a);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}
.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #fbbf24, #fed7aa);
  top: 40%;
  left: 30%;
  animation-delay: 5s;
}
@keyframes floatBlob {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ---- Navbar scrolled shadow ---- */
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Hero chat card ---- */
.hero-card {
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.chat-bubble-bot {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #1a1a1a;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 90%;
}
.chat-bubble-user {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: white;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 90%;
  margin-left: auto;
}

/* ---- Section badge ---- */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  color: #ea580c;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid #fed7aa;
}

/* ---- About cards ---- */
.about-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 28px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
}
.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---- Mission/Vision cards ---- */
.mv-card {
  border: 1.5px solid;
  border-radius: 24px;
  padding: 36px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.12);
}

/* ---- Service cards ---- */
.service-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  padding: 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.03),
    rgba(245, 158, 11, 0.03)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.14);
  border-color: #fed7aa;
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}
.service-tag {
  display: inline-block;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 14px;
  border: 1px solid #fed7aa;
}

/* ---- Benefit cards ---- */
.benefit-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.1);
}
.benefit-metric {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

/* ---- Use case cards ---- */
.usecase-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
.usecase-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* ---- Step cards ---- */
.step-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
  border-color: #fdba74;
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.step-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

/* ---- Blog cards ---- */
.blog-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
  border-color: #fdba74;
}
.blog-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid #fed7aa;
}

/* ---- Contact form ---- */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: #1f2937;
  background: white;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  font-family: "Inter", sans-serif;
}
.form-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.form-input::placeholder {
  color: #9ca3af;
}

/* ---- Trust badges ---- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 50px;
}
.trust-badge span {
  color: #16a34a;
  font-weight: 700;
}

/* ---- Mobile hamburger active state ---- */
.hamburger-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- AOS override for mobile ---- */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================
   MODALES BLOG
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.modal-open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.modal-open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 32px 36px 28px;
  position: relative;
  flex-shrink: 0;
}
.modal-category-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal-title {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  padding-right: 36px;
}
.modal-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin: 0;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}
.modal-body {
  padding: 28px 36px 36px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.75;
  font-size: 0.95rem;
  color: #374151;
}
.modal-body p { margin-bottom: 16px; }
.modal-body strong { color: #1f2937; }
.modal-lead {
  font-size: 1.05rem;
  color: #1f2937;
  font-weight: 500;
  border-left: 4px solid #f97316;
  padding-left: 16px;
  margin-bottom: 28px !important;
}
.modal-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section-title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 3px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  border-radius: 2px;
  flex-shrink: 0;
}
.modal-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.modal-stat {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.modal-stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.modal-stat p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 !important;
  font-weight: 500;
}
.modal-trend {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 18px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  transition: border-color 0.2s ease;
}
.modal-trend:hover { border-color: #fdba74; }
.modal-trend-num {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  width: 38px;
  padding-top: 2px;
}
.modal-trend h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
}
.modal-trend p {
  font-size: 0.87rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 !important;
}
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.modal-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  color: #374151;
}
.modal-list li:last-child { border-bottom: none; }
.modal-quote {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-left: 4px solid #f97316;
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  font-style: italic;
  color: #4b5563;
  font-size: 0.92rem;
  margin: 24px 0;
  line-height: 1.65;
}
.modal-cta-box {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  margin-top: 28px;
}
.modal-cta-box p {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 14px !important;
  font-size: 1rem;
}
.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.45);
}

/* Sources footer */
.modal-sources {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}
.modal-sources-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px !important;
}
.modal-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modal-sources li {
  font-size: 0.75rem;
  color: #9ca3af;
  padding: 4px 0;
  border: none !important;
}
.modal-sources li em {
  color: #6b7280;
  font-style: normal;
}

@media (max-width: 640px) {
  .modal-header { padding: 24px 20px 20px; }
  .modal-body { padding: 20px 20px 28px; }
  .modal-title { font-size: 1.1rem; }
  .modal-trend { flex-direction: column; gap: 8px; }
}
