/* Variables de color institucionales */
:root {
    --verde-sep: #13322B;
    --dorado-sep: #5c2126;
    --gris-claro: #fafbfd;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--gris-claro);
}

/* Header */
header {
    background-color: var(--blanco);
    padding: 20px;
    border-bottom: 5px solid var(--verde-sep);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.logo {
    height: 80px;
    margin-right: 20px;
}

.title-box h1 {
    color: var(--verde-sep);
}

/* Navegación */
nav {
    background: var(--verde-sep);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li a {
    color: white;
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    background: var(--dorado-sep);
}

/* Banner Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('oo.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Grid de Noticias */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--dorado-sep);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 15px;
}

footer {
    text-align: center;
    padding: 30px;
    background: #265d22;
    color: white;
    margin-top: 50px;
}




/* BOTÓN */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: pulse 2s infinite;
}

#chat-toggle img {
  width: 100%;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* CHAT */
#chat-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#chat-header {
  background: #2e7d32;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
}

.avatar {
  width: 35px;
  margin-right: 10px;
}

/* MENSAJES */
#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.message {
  margin: 5px 0;
  padding: 8px;
  border-radius: 10px;
}

.user {
  background: #c8e6c9;
  text-align: right;
}

.bot {
  background: #eeeeee;
}

/* INPUT */
#chat-input {
  display: flex;
}

#chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
}

#chat-input button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 10px;
}
