/* =========================================================
   CLOUDNEX-iA — ESTILOS COMUNES DE TODAS LAS PAGINAS IA
   ========================================================= */

.ai-layout{
  display:grid !important;
  grid-template-columns:235px minmax(0,1fr);
  min-height:calc(100vh - 76px);
  background:#06111f;
}

.ai-sidebar-title{
  color:#fff;
  font-size:18px;
  font-weight:800;
  margin:0 8px 20px;
  letter-spacing:.5px;
}

.ai-sidebar-link{
  display:flex !important;
  align-items:center;
  gap:11px;
  width:100%;
  box-sizing:border-box;
  padding:12px 13px;
  margin:4px 0;
  border-radius:12px;
  color:#9db5c9 !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:600;
  transition:
    background .2s,
    color .2s,
    transform .2s,
    box-shadow .2s;
}

.ai-sidebar-link:hover{
  color:#fff !important;
  background:rgba(56,189,248,.08) !important;
  transform:translateX(2px);
}

.ai-sidebar-link.active{
  color:#fff !important;
  background:
    linear-gradient(
      90deg,
      rgba(56,189,248,.17),
      rgba(124,58,237,.13)
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(56,189,248,.20),
    0 8px 22px rgba(0,0,0,.14);
}

.ai-sidebar-icon{
  width:28px;
  min-width:28px;
  text-align:center;
  font-size:18px;
  line-height:1;
}

.ai-sidebar-bottom{
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid rgba(104,180,255,.10);
}

/* ---------- CONTENIDO ---------- */

.ai-content{
  min-width:0;
  width:100%;
  box-sizing:border-box;
}

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



@media(max-width:950px){






  .ai-layout{
    grid-template-columns:1fr !important;
    min-height:calc(100vh - 70px);
  }

  .ai-sidebar{
    position:relative !important;
    top:0;
    height:auto;
    max-height:none;
    border-right:0 !important;
    border-bottom:1px solid rgba(56,189,248,.16) !important;
    padding:12px;
  }

  .ai-sidebar-link{
    display:inline-flex !important;
    width:auto;
    margin:3px;
  }

  .ai-sidebar-title{
    margin-bottom:10px;
  }
}

@media(max-width:600px){



  .ai-sidebar-link{
    font-size:13px;
    padding:10px 11px;
  }
}

/* =========================================================
   CABECERA GLOBAL IA - WHATSAPP SOLO ICONO
   Aplicado a todas las páginas internas de IA
   ========================================================= */








/* =========================================================
   WHATSAPP SOPORTE - CABECERA IA
   ========================================================= */














/* =========================================================
   FIX DEFINITIVO WHATSAPP IA
   ========================================================= */









/* Evita que la cabecera IA crezca por el botón */


/* Móvil */
@media (max-width: 900px) {


    .site-header .whatsapp-support .whatsapp-support-icon,

}

@media(max-width:900px){


  .site-header .whatsapp-support-icon,

}

/* Acercar WhatsApp al último elemento del menú */



/* =========================================================
   CABECERA IA - DISTRIBUCIÓN COMO CABECERA PRINCIPAL
   ========================================================= */


/* El menú ocupa el espacio central */

/* WhatsApp inmediatamente después de Contacto */

/* Separación entre WhatsApp y presupuesto */

/* Mantener el botón azul con su tamaño normal */

/* =========================================================
   RESPONSIVE
   ========================================================= */




/* Contacto y WhatsApp prácticamente juntos */

/* Sin margen adicional entre Contacto y WhatsApp */


/* =========================================================
   WHATSAPP CENTRADO ENTRE CONTACTO Y PRESUPUESTO
   ========================================================= */

/* Separación Contacto -> WhatsApp */

/* Mantener una separación pequeña entre WhatsApp y presupuesto */



/* ==========================================================
   CLOUDNEX-iA — TITULOS PRINCIPALES UNIFICADOS
   ========================================================== */

/* Ajustes IA */
.settings-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Asistentes */
.cnx-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Automatizaciones */
.automation-hero h1,
.cnx-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Generación de código */
.code-hero h1,
.cnx-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Base de conocimiento */
.knowledge-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Generación de imágenes */
.image-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Integraciones */
.integrations-hero h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}

/* Página principal IA */
.ai-page-title h1{
  font-size:42px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.5px;
}


/* ==========================================================
   SUBTITULOS PRINCIPALES
   ========================================================== */

.settings-hero p,
.cnx-hero p,
.knowledge-hero p,
.image-hero p,
.integrations-hero p,
.ai-page-title p{
  font-size:17px;
  line-height:1.6;
}


/* ==========================================================
   MOVIL
   ========================================================== */

@media (max-width:700px){

  .settings-hero h1,
  .cnx-hero h1,
  .automation-hero h1,
  .code-hero h1,
  .knowledge-hero h1,
  .image-hero h1,
  .integrations-hero h1,
  .ai-page-title h1{
    font-size:32px !important;
    line-height:1.12;
  }

  .settings-hero p,
  .cnx-hero p,
  .knowledge-hero p,
  .image-hero p,
  .integrations-hero p,
  .ai-page-title p{
    font-size:15px;
    line-height:1.5;
  }

}

/* =========================================================
   CLOUDNEX-iA — ESCALA VISUAL UNIFICADA
   ========================================================= */

.ai-layout h1,
.ai-layout .settings-hero h1,
.ai-layout .cnx-hero h1,
.ai-layout .knowledge-hero h1,
.ai-layout .image-hero h1,
.ai-layout .integrations-hero h1,
.ai-layout .ai-page-title h1 {
    font-size: 42px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.ai-layout h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
}

.ai-layout h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
}

.ai-layout h4 {
    font-size: 17px !important;
    line-height: 1.3 !important;
}

.ai-layout p {
    font-size: 16px;
    line-height: 1.6;
}

.ai-layout .hero p,
.ai-layout .settings-hero p,
.ai-layout .cnx-hero p,
.ai-layout .knowledge-hero p,
.ai-layout .image-hero p,
.ai-layout .integrations-hero p {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

.ai-layout .card,
.ai-layout .feature-card,
.ai-layout .tool-card,
.ai-layout .integration-card,
.ai-layout .knowledge-card,
.ai-layout .model-card {
    font-size: 15px;
}

.ai-layout .card h3,
.ai-layout .feature-card h3,
.ai-layout .tool-card h3,
.ai-layout .integration-card h3,
.ai-layout .knowledge-card h3,
.ai-layout .model-card h3 {
    font-size: 20px !important;
}

.ai-layout .card p,
.ai-layout .feature-card p,
.ai-layout .tool-card p,
.ai-layout .integration-card p,
.ai-layout .knowledge-card p,
.ai-layout .model-card p {
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.ai-layout button,
.ai-layout .btn {
    font-size: 14px;
}

.ai-layout input,
.ai-layout textarea,
.ai-layout select {
    font-size: 15px;
}

.ai-layout small,
.ai-layout .small,
.ai-layout .muted,
.ai-layout .secondary {
    font-size: 13px;
}

.ai-layout .badge,
.ai-layout .status,
.ai-layout .pill,
.ai-layout .tag {
    font-size: 12px;
}

.ai-sidebar-link {
    font-size: 14px !important;
}

.ai-sidebar-title {
    font-size: 12px !important;
}

@media (max-width: 700px) {
    .ai-layout h1,
    .ai-layout .settings-hero h1,
    .ai-layout .cnx-hero h1,
    .ai-layout .knowledge-hero h1,
    .ai-layout .image-hero h1,
    .ai-layout .integrations-hero h1,
    .ai-layout .ai-page-title h1 {
        font-size: 32px !important;
    }

    .ai-layout h2 {
        font-size: 24px !important;
    }

    .ai-layout h3 {
        font-size: 18px !important;
    }

    .ai-layout p,
    .ai-layout .card p,
    .ai-layout .feature-card p,
    .ai-layout .tool-card p,
    .ai-layout .integration-card p,
    .ai-layout .knowledge-card p,
    .ai-layout .model-card p {
        font-size: 14px !important;
    }

    .ai-layout .hero p,
    .ai-layout .settings-hero p,
    .ai-layout .cnx-hero p,
    .ai-layout .knowledge-hero p,
    .ai-layout .image-hero p,
    .ai-layout .integrations-hero p {
        font-size: 15px !important;
    }
}
