/* ===============================
   SECCIÓN HERO NUEVA (SUBPÁGINA)
   =============================== */
.hero-text {
  color: var(--color-gray);
  max-width: 640px;
}


/* ===============================
   SECCIÓN: CANALES / APIs
   =============================== */

.apis-canales {
  background: #fff;
}


/* Grid tipo imagen: 3 arriba, 2 abajo centradas */
.apis-canales-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 10px;
}

.apis-canal-card {
  width: 360px;
  max-width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.apis-canal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #f6f7f9;
}

.apis-canal-icon i {
  font-size: 22px;
  line-height: 1;
}

/* Títulos y texto */
.apis-canal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
}

.apis-canal-text {
  font-size: 15px;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.6;
}

/* ===============================
   ICONOS – FONDOS RADIALES
   =============================== */

/* WhatsApp – Verde */
.apis-canal-icon.is-wa {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(16, 183, 89, 0.25), transparent 55%);
  color: #19a54a;
}

/* SMS – Morado */
.apis-canal-icon.is-sms {
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 0, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(90, 0, 200, 0.25), transparent 55%);
  color: #7d00ff;
}

/* RCS – Azul */
.apis-canal-icon.is-rcs {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 163, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0, 120, 215, 0.25), transparent 55%);
  color: #007ad6;
}

/* Email – Verde claro */
.apis-canal-icon.is-email {
  background:
    radial-gradient(circle at 20% 20%, rgba(229, 0, 95, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(190, 0, 0, 0.25), transparent 55%);
  color: #b8003d;
}

/* Voz – Naranja */
.apis-canal-icon.is-voz {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 153, 0, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(230, 120, 0, 0.25), transparent 55%);
  color: #ff9900;
}


/* Responsive */
@media (max-width: 992px) {
  .apis-canal-card { width: 420px; }
}

@media (max-width: 576px) {
  .apis-canal-card { width: 100%; }
}

/* ===============================
   SECCIÓN: CASOS DE USO
   =============================== */

.apis-casos {
  background: #fff;
}

/* Grid 4 columnas como en la imagen */
.apis-casos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Card */
.apis-caso-card {
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  text-align: center;
}

/* Imagen superior */
.apis-caso-img {
  height: 240px; /* altura visual como el mockup */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.apis-caso-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* respeta tu mockup */
  display: block;
}

/* Divisor */
.apis-caso-divider {
  height: 1px;
  background: #eef1f4;
  width: 100%;
}

/* Tipografías internas: mantenemos consistencia sin inventar utilidades */
.apis-caso-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin: 18px 18px 10px;
}

.apis-caso-text {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0 18px 22px;
}

/* Responsive */
@media (max-width: 1200px) {
  .apis-casos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .apis-casos-grid {
    grid-template-columns: 1fr;
  }
  .apis-caso-img {
    height: 220px;
  }
}


/* ===============================
   SECCIÓN: INSIGHTS Y MÉTRICAS
   =============================== */

.apis-insights {
  background: #fff;
}

.apis-insights-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* derecha más ancha como en la imagen */
  gap: 28px;
  align-items: stretch;
}

/* Izquierda: grid 2x2 */
.apis-insights-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* Card pequeña */
.apis-insight-card {
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.apis-insight-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0062ff, #00a3ff);
  color: #fff;
}

.apis-insight-icon i {
  font-size: 22px;
  line-height: 1;
}

.apis-insight-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 8px;
}

.apis-insight-text {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0;
}

/* Derecha: card grande con imagen */
.apis-insights-chart-card {
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apis-insights-chart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 1200px) {
  .apis-insights-layout {
    grid-template-columns: 1fr;
  }
  .apis-insights-chart-img {
    max-height: 420px;
  }
}

@media (max-width: 576px) {
  .apis-insights-cards {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   SECCIÓN: PARTNERS
   =============================== */

.apis-partners {
  background: #fff;
}

.apis-partners-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray);
  margin: 8px 0 28px;
}

/* Logos */
.apis-partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.apis-partner-logo {
  width: 150px;         /* tamaño similar a la imagen */
  height: 70px;
  background: #fff;
  border-radius: 6px;   /* caja más “cuadrada” como la captura */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.apis-partner-logo img {
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 576px) {
  .apis-partner-logo {
    width: 140px;
    height: 66px;
   
  }
  .apis-partners-logos {
     gap: 15px !important;
  }
  

}

/* ===============================
   SECCIÓN: WHY + CODE TABS
   =============================== */
.apis-why{
  background-color: #fff;
}
.apis-why-layout{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items:center;
  
}

.apis-why-left{ max-width: 560px; }

.apis-why-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.apis-why-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  color: var(--color-black);
  font-size: 15px;
}

.apis-why-check{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--color-blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 22px;
  margin-top: 2px;
  color: var(--color-blue);
}

.apis-why-check i{ font-size: 14px; line-height: 1; }

/* Window */
.apis-code-window{
  background: linear-gradient(180deg, #0B1630 0%, #091226 100%);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.16);
  overflow:hidden;
}

.apis-code-top{
  height: 44px;
  display:flex;
  align-items:center;
  gap:8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.apis-code-top .dot{
  width: 10px; height: 10px; border-radius: 999px;
  display:inline-block;
}
.apis-code-top .dot.red{ background:#FF5F57; }
.apis-code-top .dot.yellow{ background:#FEBC2E; }
.apis-code-top .dot.green{ background:#28C840; }

/* Tabs */
.apis-code-tabs{
  display:flex;
  gap: 10px;
  padding: 12px 14px 6px;
  overflow:auto;
}

.apis-code-tab{
  appearance:none;
  border:0;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.78);
  border-radius: 10px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

.apis-code-tab:hover{
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.apis-code-tab.is-active{
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.tab-ico{
  width: 22px; height: 22px;
  border-radius: 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.06);
  color:#fff;
  font-size: 12px;
  font-weight: 700;
}

.tab-js{
  background: rgba(255, 204, 0, 0.14);
  color: #FFCC00;
}

.tab-x{
  margin-left: 2px;
  opacity: .55;
}

/* Code body */
.apis-code-body{
  padding: 14px 16px 18px;
  overflow-x: auto;
}


.apis-code-panel{
  display:none;
  transform: translateY(6px);
  opacity: 0;
}

.apis-code-panel.is-active{
  display:block;
  animation: apisCodeIn .25s ease forwards;
}

@keyframes apisCodeIn{
  to { transform: translateY(0); opacity:1; }
}

/* Lines */
.code-line{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.90);

  /* ✅ default: se ve como editor */
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}


.code-line.blank{ height: 10px; }
.indent-1{ padding-left: 16px; }
.indent-2{ padding-left: 32px; }
.indent-3{ padding-left: 48px; }

/* ===============================
   COLORES PARA SPANS (tokens)
   =============================== */
.color-azul{ color:#6BB8FF; }
.color-verde{ color:#9AF3A2; }
.color-morado{ color:#B98CFF; }
.color-amarillo{ color:#FFD166; }
.color-naranja{ color:#FFB86B; }
.color-rojo{ color:#FF6B6B; }
.color-gris{ color: rgba(255,255,255,0.70); }

/* Responsive */
@media (max-width: 1200px){
  .apis-why-layout{ grid-template-columns: 1fr; }
  .apis-why-left{ max-width: none; }
}

@media (max-width: 768px){
  .code-line{
    /* ✅ en móvil: se ajusta al ancho */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
