* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef5ff;
  color: #1f2937;
}

.page {
  width: min(1000px, 94%);
  margin: 0 auto;
  padding: 30px 0;
}

.hero {
  background: linear-gradient(135deg, #004aad, #00a6ff);
  color: white;
  border-radius: 22px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.25);
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: bold;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(42px, 8vw, 76px);
  margin: 6px 0;
  letter-spacing: -1px;
}

.hero h2 {
  font-size: clamp(22px, 4vw, 34px);
  margin: 5px 0 12px;
}

.intro {
  font-size: 20px;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}

.chat-card,
.popular,
.links {
   background: white;
  margin-top: 10px;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.chat-box {
    min-height: 120px;
  max-height: 45vh;
  overflow-y: auto;
  border: 2px solid #dbeafe;
  border-radius: 16px;
  padding: 12px;
  background: #f8fbff;
}

.msg {
  max-width: 86%;
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 15px;
  line-height: 1.6;
  white-space: normal;
  clear: both;
}

.msg.bot {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

.msg.user {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  margin-left: auto;
}

.chat-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

textarea {
  min-height: 90px;
  resize: vertical;
  padding: 14px;
  font-size: 18px;
  border: 2px solid #bfdbfe;
  border-radius: 14px;
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: #0057d9;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 18px;
  border-radius: 14px;
}

button:hover {
  background: #003f9e;
}

.notice {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips button {
  background: #eff6ff;
  color: #0f4c81;
  border: 1px solid #bfdbfe;
  font-size: 16px;
}

.links ul {
  columns: 2;
  line-height: 2;
}

.links a {
  color: #0057d9;
  font-weight: bold;
}

/* Título azul clicable recomendado */

.titulo-recomendado {
  color: #0057d9 !important;
  font-weight: bold;
  font-size: 18px;
  text-decoration: underline !important;
}

.titulo-recomendado:hover {
  color: #003f9e !important;
}

/* Botón SEO/AdSense para llevar tráfico al artículo */

.boton-enlace {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  background: #0057d9;
  color: #ffffff !important;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none !important;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 87, 217, 0.25);
  transition: all 0.2s ease;
}

.boton-enlace:hover {
  background: #003f9e;
  transform: translateY(-1px);
  color: white !important;
}

.boton-enlace:visited {
  color: white !important;
}

.boton-enlace:active {
  transform: translateY(1px);
}

/* Imagen pequeña SOLO en aparatos concretos.
   No hay imagen por defecto. */

.imagen-recomendada-mini {
  display: block;
 width: 420px;
    max-width: 45%;
    height: auto;
    margin-top: 12px;
    border-radius: 10px;

}

.miniatura-link {
  display: inline-block;
}

@media (max-width: 700px) {

  .imagen-recomendada-mini {
        width: 180px;
        max-width: 75%;
  }

  .chat-box {
    height: 380px;
  }

  .msg {
    max-width: 100%;
  }

  .boton-enlace {
    width: 100%;
    text-align: center;
  }

  .imagen-recomendada-mini {
    width: 82px;
    max-width: 42%;
  }
}
/* Recursos principales de AreaTecnologÃ­a */

.links-intro {
  margin-top: 0;
  color: #475569;
  font-size: 16px;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.recursos-grid a {
  display: block;
  padding: 11px 13px;
  background: #eff6ff;
  color: #0057d9;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease;
}

.recursos-grid a:hover {
  background: #dbeafe;
  color: #003f9e;
  transform: translateY(-1px);
}
