/* Paleta inspirada en el logo:
   Verde azulado: #009688
   Naranja: #E65100
   Beige claro: #F5E9D7
   Negro profundo: #222222
   Dorado claro: #FFD180
   Gris oscuro: #444444
*/

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #F5E9D7;
  color: #222222;
}

header {
  background: rgba(34, 34, 34, 0.92);
  color: #F5E9D7;
  box-shadow: 0 2px 12px rgba(34,34,34,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.banner-radio {
  background: linear-gradient(90deg, #009688 0%, #009688 50%, #E65100 100%);
  color: #F5E9D7;
  padding: 32px 0;
  text-align: center;
  box-shadow: 0 4px 24px rgba(34,34,34,0.15);
  margin-bottom: 24px;
}

.banner-content h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #E65100;
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 1.2em;
  margin-bottom: 18px;
}

.banner-btn {
  display: inline-block;
  background: #009688;
  color: #F5E9D7;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  box-shadow: 0 2px 12px #E65100;
  transition: background 0.3s, transform 0.3s;
}

.banner-btn:hover {
  background: #E65100;
  transform: scale(1.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px; /* para que no se junten */
  padding: 10px 30px;
}


.nav-btn {
  background: linear-gradient(90deg, #009688 0%, #E65100 100%);
  color: #F5E9D7 !important;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  margin: 0 5px;
  font-weight: bold;
  font-size: 1em;
  box-shadow: 0 2px 8px #E6510033;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.nav-btn:hover, .nav-btn:focus {
  background: linear-gradient(90deg, #E65100 0%, #009688 100%);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 16px #FFD18055;
  color: #FFD180 !important;
}

.search-btn {
  background: linear-gradient(90deg, #222222 0%, #009688 100%);
  color: #F5E9D7 !important;
  border-radius: 20px;
  margin-left: 10px;
}

.cuadros-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0 20px 0;
  flex-wrap: wrap;
}

.cuadro {
  background: #009688;
  color: #F5E9D7;
  border-radius: 18px;
  box-shadow: 0 4px 24px #E6510033;
  padding: 28px 24px;
  min-width: 220px;
  max-width: 320px;
  flex: 1;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid #E65100;
}

.cuadro h3 {
  color: #FFD180;
  margin-bottom: 12px;
  font-size: 1.2em;
  letter-spacing: 1px;
}

.cuadro p {
  font-size: 1em;
}

.cuadro:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 32px #E6510077;
  border-color: #FFD180;
}

.logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px #009688;
  border: 4px solid #F5E9D7;
  background: #F5E9D7;
  animation: pulseLogo 2s infinite;
}

.top-nav a {
  margin: 0 10px;
  color: #F5E9D7;
  font-weight: bold;
  text-decoration: none;
}

.contact-bar {
  background: #FFD180;
  color: #E65100;
  text-align: right;
  padding: 10px 30px;
  font-weight: bold;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 30px;
  background: #F5E9D7;
  color: #222222;
}

.main-nav a {
  text-decoration: none;
  color: #009688;
  font-weight: bold;
}

.main-nav input {
  padding: 5px;
  border-radius: 20px;
  border: 1px solid #009688;
}

.main-nav button {
  background-color: #E65100;
  color: #F5E9D7;
  border: none;
  padding: 5px 10px;
  border-radius: 20px;
}

.content {
  display: flex;
  padding: 30px;
}

.post {
  flex: 3;
  background: #F5E9D7;
  padding: 20px;
  margin-right: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #FFD18055;
}

.post-meta {
  font-size: 0.9em;
  color: #E65100;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: #009688;
  color: #F5E9D7;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 12px #E6510033;
  margin-bottom: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.widget h3 {
  color: #FFD180;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1em;
  letter-spacing: 1px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: slideUp 0.8s;
}

.widget li {
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #FFD18033;
  transition: background 0.2s;
  cursor: pointer;
}

.widget li:last-child {
  border-bottom: none;
}

.widget li:hover {
  background: #FFD18022;
  color: #FFD180;
  transform: scale(1.03);
}

.widget a {
  color: #F5E9D7;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  display: block;
}

.widget a:hover {
  color: #FFD180;
  text-decoration: underline;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

@media (max-width: 700px) {
  .sidebar {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }
  .widget {
    min-width: 180px;
    max-width: 90vw;
    margin: 0 auto 18px auto;
    font-size: 0.98em;
  }
}

footer {
  background: linear-gradient(120deg, #222222 70%, #009688 100%);
  color: #F5E9D7;
  padding: 40px 0 10px 0;
  margin-top: 40px;
  border-top: 4px solid #E65100;
}

.footer-cols {
  display: flex;
  justify-content: space-around;
  padding-bottom: 40px;
  gap: 40px;
  align-items: flex-start;
}

.footer-cols div {
  flex: 1;
  margin: 0 40px;
}

.footer-cols .reseña {
  margin-top: 15px;
  font-style: italic;
  color: #FFD180;
}

.redes-sociales {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.redes-sociales h4 {
  margin-bottom: 8px;
  color: #FFD180;
}

.social-icon {
  display: inline-block;
  margin-right: 12px;
  transition: transform 0.3s;
}

.social-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 8px #009688;
  background: #fff;
}

.social-icon:hover {
  transform: scale(1.15) rotate(-8deg);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444444;
  padding-top: 10px;
  font-size: 0.9em;
}

/* Círculo personalizado */
.custom-cursor {
  width: 20px;
  height: 20px;
  background-color: rgba(0, 150, 136, 0.8);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.imagen-noticia {
    width: 100%;
    max-width: 800px;  /* mantiene el límite en pantallas grandes */
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    display: block;
}


.contact-bar {
    background-color: #fcd38a;
    padding: 5px 20px;
}

.noticias-banner {
    background-color: #111;
    color: white;
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.noticia-item span {
    display: inline-block;
    min-width: 100%;
    animation: deslizar 15s linear infinite;
}
@keyframes deslizar {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}
/* --- Responsive móvil --- */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column; /* logo arriba, imagen abajo */
    align-items: center;
    text-align: center;
  }

  .logo {
    max-width: 150px;
    margin-bottom: 8px;
  }

  .imagen-noticia {
    width: 100%;
    max-height: 200px;
    margin-left: 0;
  }
}



/* ================= FORMULARIO NOTICIAS (SOLO ADMIN) ================= */

/* Animación para entrada suave desde arriba */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formulario-noticias {
  background: #fff;
  padding: 20px;
  margin: 30px auto;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideDown 0.8s ease forwards;
}

.formulario-noticias h3 {
  color: #E65100;
  margin-bottom: 15px;
  text-align: center;
}

.formulario-noticias form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formulario-noticias input[type="text"],
.formulario-noticias textarea,
.formulario-noticias input[type="file"],
.formulario-noticias input[type="date"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: border 0.3s;
}

.formulario-noticias input[type="text"]:focus,
.formulario-noticias textarea:focus,
.formulario-noticias input[type="date"]:focus {
  border: 1px solid #009688;
}

.formulario-noticias input[type="submit"] {
  background: linear-gradient(90deg, #009688, #E65100);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.formulario-noticias input[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ================= HISTORIAL DE NOTICIAS ================= */
.historial-noticias {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.historial-noticias h3 {
  text-align: center;
  color: #E65100;
  margin-bottom: 25px;
}

.noticia-historial {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: transform 0.2s;
}

.noticia-historial:hover {
  transform: scale(1.01);
}

.noticia-historial img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.noticia-info {
  flex: 1;
}

.noticia-info h4 {
  margin: 0 0 8px;
  color: #009688;
}

.noticia-info p {
  margin: 0 0 10px;
  color: #444;
}

.noticia-info small {
  display: block;
  margin-bottom: 10px;
  color: #999;
}

.acciones {
  display: flex;
  gap: 10px;
}

.btn-editar, .btn-eliminar {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-editar {
  background: #009688;
  color: #fff;
}

.btn-eliminar {
  background: #E65100;
  color: #fff;
}

.btn-editar:hover {
  background: #00796B;
  transform: scale(1.05);
}

.btn-eliminar:hover {
  background: #c63f00;
  transform: scale(1.05);
}

/* ==== CHAT BOT ==== */

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0078ff;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
}

.bot-options {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.bot-options button {
    background: #0078ff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}
.bot-options button:hover {
    background: #005ecc;
}

.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #ddd;
}

#chatInput {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

#sendBtn {
    border: none;
    background: #007bff;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#sendBtn:hover {
    background: #0056b3;
}

/* ==== RESALTAR ELEMENTOS DEL TOUR ==== */
.highlight {
    background: yellow;
    border-radius: 5px;
    padding: 2px 4px;
}

/* ==== BOTONES DE TOUR (SIGUIENTE / OPCIONES FINALES) ==== */
.tour-btn {
    background: linear-gradient(90deg, #009688, #E65100);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulseBtn 2s infinite;
    margin: 6px 4px; /* <-- separa botones múltiples */
}

/* Pulso suave */
@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(0,150,136,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(230,81,0,0.6); }
    100% { transform: scale(1); box-shadow: 0 0 8px rgba(0,150,136,0.4); }
}

/* Reflejo */
.tour-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.2) 100%
    );
    transform: skewX(-25deg);
}

/* Animación de reflejo al pasar el mouse */
.tour-btn:hover::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

/* Animación fade-in */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Opciones del bot */
.bot-options {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* CHATBOT: siempre fijo abajo a la derecha */
.chat-toggle,
.chat-container {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
}

html, body {
  overflow-x: hidden;
}
