/* Estilo general*/
:root {
  --primary: #4ad2a0;
  --primary-dark: #2fbf94; /* verde menta intenso */
  --accent: #7ac65a;
  --bg-page: #f5f6f8;
  --border-soft: #dfe7e2;
  --text-main: #333333;
  --text-muted: #66737d;
  --header-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

/* Header */

.header {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background-color: #14b8a6;
  color: #ffffff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 40px; /* ajusta a gusto */
  width: auto;
}

.header-title {
  font-weight: 600;
  font-size: 16px;
}

.site-header {
  height: var(--header-height);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
}

.site-logo span {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Hero / cabecera */
.hero {
  background: url("https://dspaceart.example/bg-placeholder.jpg") no-repeat center/cover;
  /* si no hay imagen, dejar un color solido */
  background-color: var(--primary);
  color: white;
  padding: 48px 32px 40px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-title {
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 14px;
  max-width: 700px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Contenedor principal */
main {
  max-width: 1100px;
  margin: -24px auto 30px;
  padding: 0 16px;
}

/* Layout tipo 2 columnas */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 16px;
}

/* Panel izquierdo: info */
.info-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 14px rgba(15, 23, 42, 0.08);
  padding: 16px;
  font-size: 14px;
}

.info-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-main);
}

.info-list li {
  margin-bottom: 6px;
}

/* Panel derecho: chat */
.chat-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 14px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
}

.chat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chat-title {
  font-weight: 600;
  font-size: 15px;
}

.chat-badge {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 99px;
  color: var(--accent);
  background: #e8f8e8;
}

.chat-log {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: white;
  height: 380px;
  overflow: auto;
  padding: 14px;
  margin-bottom: 12px;
}

/* Mensajes */
.msg-row {
  margin: 4px 0;
  display: flex;
}

.msg-row.user {
  justify-content: flex-end;
}

.msg-row.bot {
  justify-content: flex-start;
}

.bubble {
  max-width: 80%;
  padding: 6px 9px;
  border-radius: 14px;
  line-height: 1.3;
}

.bubble.user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  background: white;
  color: var(--text-main);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
}

/* Estado escribiendo */
.typing {
  display: inline-flex;
  gap: 3px;
  padding: 3px 6px;
}

.typing span {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: #9ca3af;
  animation: blink 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Input */
.chat-input-area {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

#question {
  flex: 1;
  padding: 7px 9px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
}

#question:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

button {
  padding: 7px 14px;
  border-radius: 3px;
  border: none;
  font-size: 13px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: background 0.1s ease, transform 0.05s ease;
}

button:hover {
  background: var(--primary-dark);
}

button:active {
  transform: scale(0.98);
}

.chat-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding: 24px 16px 28px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 16px;
  }
  .site-nav {
    display: none;
  }
}


/* ===== Footer ===== */


html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* El main ocupa todo el espacio disponible y empuja el footer hacia abajo */
.main {
  flex: 1;
}


.footer {
  margin-top: 40px;
  background-color: #84cc16; /* verde footer */
  color: #083344;
}

/* Que use todo el ancho, sin max-width */
.footer-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 80px;      /* aumentas o reduces este 80px para más/menos margen lateral */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* separa las columnas a lo ancho */
  gap: 32px;
}

.footer-col {
  flex: 1 1 220px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-col-logo {
  flex: 0 0 auto;
}

.footer-logo {
  max-height: 60px; /* tamaño razonable del logo */
  width: auto;
  display: block;
}

.footer-col p {
  margin: 0 0 6px;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: none;
}

/* Responsive: columnas en vertical en pantallas chicas */
@media (max-width: 768px) {
  .footer-inner {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    max-height: 48px;
  }
}
