body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
    font-size: 15px;
}

header {
    background: linear-gradient(to bottom, #000000, #3533cd);
    color: white;
    padding: 15px 0;
    text-align: center;
}

.logo {
    width: 120px;
    display: block;
    margin: 0 auto 10px;
}

.barra-busqueda {
    text-align: center;
    margin: 10px 0;
}

.barra-busqueda input {
    padding: 8px;
    width: 60%;
    max-width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.barra-busqueda button {
    padding: 8px 12px;
    background-color: #3533cd;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a.activo {
    text-decoration: underline;
}

main {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.frase-eslogan {
    background-color: #e8eafc;
    color: #3533cd;
    padding: 15px;
    border-left: 5px solid #3533cd;
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.boton-registro {
    text-align: center;
    margin: 20px 0;
}

.boton-registro a {
    background-color: #3533cd;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.boton-registro a:hover {
    background-color: #1d1abf;
}

.tarjeta {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background: linear-gradient(to bottom, #000000, #3533cd);
    color: white;
}
.logo {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 50%; /* Hace que el logo sea redondo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Sombra elegante */
    background-color: #3533cd; /* Se adapta al fondo */
    padding: 10px;
}
.testimonios {
    background-color: #f3f3f3;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px auto;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonios h2 {
    color: #3533cd;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.tarjeta-testimonio {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 10px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tarjeta-testimonio:hover {
    transform: scale(1.03);
}

.tarjeta-testimonio p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
}

.tarjeta-testimonio h4 {
    color: #3533cd;
    font-weight: 600;
}
.banner {
    background: url('banner.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    border-radius: 10px;
    margin: 20px auto;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* oscurece la imagen */
    border-radius: 10px;
}

.banner-contenido {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn-banner {
    background-color: #3533cd;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-banner:hover {
    background-color: #1d1abf;
}
.banner {
    background: url('banner.jpeg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    border-radius: 10px;
    margin: 20px auto;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* oscurece la imagen */
    border-radius: 10px;
}

.banner-contenido {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn-banner {
    background-color: #3533cd;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-banner:hover {
    background-color: #1d1abf;
}
.ventajas {
    padding: 40px 20px;
    background-color: #f3f3f3;
    text-align: center;
    border-radius: 10px;
    margin: 30px auto;
    width: 95%;
    max-width: 1200px;
}

.ventajas h2 {
    color: #3533cd;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.ventajas-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.ventaja {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ventaja:hover {
    transform: scale(1.05);
}

.ventaja i {
    font-size: 2.5em;
    color: #3533cd;
    margin-bottom: 15px;
}

.ventaja h3 {
    color: #3533cd;
    margin-bottom: 10px;
}

.ventaja p {
    color: #555;
}
.formulario-contacto {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.formulario-contacto h2 {
    color: #3533cd;
    margin-bottom: 10px;
}

.formulario-contacto p {
    color: #666666;
    margin-bottom: 20px;
}

.campo-input, .campo-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.boton-enviar {
    background-color: #3533cd;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.boton-enviar:hover {
    background-color: #1d1abf;
}
.formulario-contacto {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-top: 5px solid #3533cd;
}

.formulario-contacto h2 {
    color: #3533cd;
    text-align: center;
    margin-bottom: 10px;
}

.formulario-contacto p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.campo-input, .campo-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

.campo-input:focus, .campo-textarea:focus {
    border-color: #3533cd;
    outline: none;
}

.boton-enviar {
    background-color: #3533cd;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.boton-enviar:hover {
    background-color: #1d1abf;
}
.otros-contactos {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.otros-contactos h2 {
    color: #3533cd;
    margin-bottom: 15px;
    text-align: center;
}

.otros-contactos ul {
    list-style: none;
    padding: 0;
}

.otros-contactos li {
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.otros-contactos i {
    color: #3533cd;
    margin-right: 10px;
    font-size: 18px;
}

.otros-contactos a {
    color: #3533cd;
    text-decoration: none;
}

.otros-contactos a:hover {
    text-decoration: underline;
}
.contacto-intro {
    background-color: #f1f5ff;
    border-left: 5px solid #3533cd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contacto-intro h1 {
    color: #3533cd;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}

.contacto-intro p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
}
.mapa {
    margin: 20px auto;
    padding: 15px;
    background-color: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.mapa h2 {
    color: #3533cd;
    margin-bottom: 10px;
}

.mapa p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1em;
}

.mapa-iframe iframe {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* POLÍTICAS DE PRIVACIDAD */
.politica-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.politica-card h2, .politica-card h3 {
    color: #3533cd;
    margin-bottom: 10px;
}

.politica-card ul {
    list-style: none;
    padding: 0;
}

.politica-card ul li {
    margin-bottom: 10px;
    font-size: 1em;
}

.politica-card ul li i {
    color: #3533cd;
    margin-right: 8px;
}

.banner-texto {
    text-align: center;
    background-color: #e8eafc;
    color: #3533cd;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 8px;
    margin: 10px auto;
    max-width: 600px;
}
/* FAQ SECCIÓN */
.faq-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}

.faq {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq h3 {
    cursor: pointer;
    color: #3533cd;
    margin: 0;
    display: flex;
    align-items: center;
}

.faq h3 i {
    margin-right: 8px;
    transition: transform 0.3s;
}

.faq h3.active i {
    transform: rotate(45deg);
}

.faq p {
    display: none;
    margin-top: 10px;
    color: #333;
}
/* CALIFICACIONES Y OPINIONES */
.resumen-calificaciones {
    text-align: center;
    margin: 20px 0;
}

.resumen-calificaciones h2 {
    color: #3533cd;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.resumen-calificaciones .estrellas {
    font-size: 1.4em;
    color: #ff9800;
}

.opiniones {
    max-width: 800px;
    margin: 0 auto 40px;
}

.opiniones h2 {
    text-align: center;
    color: #3533cd;
    margin-bottom: 20px;
}

.opinion {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.opinion h3 {
    margin: 0 0 5px;
    color: #3533cd;
}

.opinion .estrellas {
    color: #ff9800;
    margin-bottom: 8px;
}

.dejar-opinion {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dejar-opinion h2 {
    color: #3533cd;
    margin-bottom: 15px;
    text-align: center;
}

.dejar-opinion form label {
    display: block;
    margin-top: 10px;
    color: #555;
}

.dejar-opinion form input,
.dejar-opinion form textarea,
.dejar-opinion form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.dejar-opinion form button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background-color: #3533cd;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dejar-opinion form button:hover {
    background-color: #1d1abf;
}
.banner-dinamico {
    background: linear-gradient(to right, #3533cd, #1d1abf);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.banner-dinamico h2 {
    font-size: 1.8em;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
footer {
    background: linear-gradient(to right, #3533cd, #1d1abf);
    color: white;
    text-align: center;
    padding: 15px 0;
    border-top: 3px solid #000000;
}

footer p {
    margin: 5px 0;
    font-size: 1em;
}

.redes-sociales {
    margin-top: 10px;
}

.redes-sociales a {
    color: white;
    margin: 0 10px;
    font-size: 1.3em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.redes-sociales a:hover {
    color: #ffdd00;
}
.faq {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq h2 {
    text-align: center;
    color: #3533cd;
    margin-bottom: 20px;
}

.acordeon .item {
    border-bottom: 1px solid #ddd;
}

.pregunta {
    background: #f5f7ff;
    color: #3533cd;
    width: 100%;
    text-align: left;
    border: none;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.pregunta:hover {
    background: #e2e7ff;
}

.icono {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.pregunta.activa .icono {
    transform: rotate(45deg); /* Cambia + a x */
}

.respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #f0f0f0;
    padding: 0 15px;
    border-left: 3px solid #3533cd;
    border-radius: 0 0 8px 8px;
}

.pregunta.active + .respuesta {
    padding: 10px 15px;
}

.pregunta.activa + .respuesta {
    max-height: 300px;
    padding: 15px 20px;
}
.acordeon .respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.acordeon .pregunta.active + .respuesta {
    max-height: 200px; /* o un valor grande que soporte tu contenido */
}
/* ===== PREGUNTAS FRECUENTES (Acordeón) ===== */
.faq {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
}

.faq h2 {
    text-align: center;
    color: #3533cd;
    margin-bottom: 20px;
}

.acordeon .item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pregunta {
    background-color: #3533cd;
    color: #fff;
    cursor: pointer;
    padding: 15px;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease;
}

.pregunta:hover {
    background-color: #1d1abf;
}

.icono {
    font-weight: bold;
    font-size: 1.2em;
    
}

.respuesta {
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: max-height 0.4s ease;
    padding: 0 15px;
    color: #333;
}

.pregunta.active + .respuesta {
    padding: 15px;
}
/* Fuente general */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f4f6f9;
  color: #333;
}

header {
  background-color: #012e5a;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 5px solid #00bcd4;
}

header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

header p {
  font-weight: 300;
  font-size: 1em;
}

.contenedor-sedes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.tarjeta-sede {
  background-color: #fff;
  border-left: 6px solid #004080;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.3s;
}

.tarjeta-sede:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.tarjeta-sede h2 {
  color: #004080;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.tarjeta-sede p {
  font-size: 0.95em;
  margin: 8px 0;
  color: #333;
}

.tarjeta-sede i {
  margin-right: 8px;
  color: #00bcd4;
}

footer {
  background-color: #012e5a;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

nav ul li:hover > .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  background-color: #003366;
  padding: 10px 0;
  min-width: 200px;
  z-index: 1000;
}

.submenu li a {
  padding: 10px 15px;
  color: white;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #005599;
}
/* Menú centrado y bonito */
nav {
  background: linear-gradient(to right, #003366, #1c2697);
  padding: 10px 0;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}


.menu li {
  margin: 8px 15px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.menu a:hover,
.menu a.activo {
  background-color: #004a99;
}
/* Estilos generales para el nav */
nav {
  background-color: #002147;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

nav ul li a:hover,
nav ul li a.activo {
  background-color: #004080;
}

/* Para pantallas pequeñas */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li a {
    width: 100%;
    text-align: center;
  }
}
.site-header {
  background-color: #E6C71A;   /* amarillo institucional */
  border-top: 6px solid #1B6B2E; /* verde */
  border-bottom: 6px solid #1B6B2E;
  padding: 10px 0;
}



.header-text {
  text-align: center;
}

.header-text h1 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #0B3E22;
}

.header-text p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #07321A;
}

.sede-principal-header .escudo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100px;
}

.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

#user-input {
  padding: 10px;
  border: none;
  border-top: 1px solid #ccc;
  width: calc(100% - 80px);
}

#send-btn {
  width: 70px;
  border: none;
  background-color: #00A859;
  color: white;
  cursor: pointer;
}

/* Botón flotante */
.chatbot-bubble {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: linear-gradient(135deg, #010e57, #2b63fa);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s;
}
.chatbot-bubble:hover {
  transform: scale(1.1);
}

/* Contenedor del chatbot */
.chatbot-container {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 350px;
  max-width: 90%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: fadeIn 0.3s ease;
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, #1f15e4, #007bff);
  color: white;
  padding: 12px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

/* Botón cerrar */
.chatbot-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Cuerpo */
.chatbot-body {
  height: 250px;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #f8f9fa;
}

/* Burbujas de mensajes */
.chatbot-body p.user {
  background-color: #4115e2;
  color: white;
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 20px 20px 0 20px;
  max-width: 80%;
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chatbot-body p.bot {
  background-color: #e4e6eb;
  color: #333;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 20px 20px 20px 0;
  max-width: 80%;
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Footer */
.chatbot-footer {
  display: flex;
  padding: 10px;
  gap: 8px;
  background-color: #f1f3f5;
}

.chatbot-footer input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
}

.chatbot-footer input:focus {
  border-color: #2e4cf5;
  box-shadow: 0 0 5px rgba(38, 86, 243, 0.4);
}

.chatbot-footer button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.2s;
}

.chatbot-footer button:hover {
  background-color: #0056b3;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
img{
    padding: 15px;
    display: inline-block;
    vertical-align: top;
}/* Burbuja flotante */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background: #3533cd;
  color: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Caja del chat */
#chatbot {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

/* Encabezado */
#chat-header {
  background: #2b1fd3;
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
}

/* Cuerpo */
#chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

/* Mensajes */
.message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.user {
  background: #181ce6;
  color: white;
  align-self: flex-end;
}

.bot {
  background: #f1f1f1;
  align-self: flex-start;
}

/* Input */
#chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

#send-btn {
  background: #2023fd;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}
