html, body {
    margin: 0;
    padding: 0;
}

body {
    /* font-family: Arial, sans-serif; */
    margin: 0;
    padding: 0;
    background-color: #c1c1c1;
    color: #333;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

header {
    /* background: url('../tlm/tres\ picos.jpg') no-repeat center center fixed; */
        background: url('../tlm/tres picos.jpg') no-repeat center center fixed;

    background-size: cover;
    background-position:  0px -250px; 
    color: #ffffff;
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: 150px;
    text-shadow: 1px 1px 2px black;
}

header h1,
header h2 {
    margin: 30px;
    color: #fff;
    margin-top: 25px;
    text-shadow: 1px 1px 2px black;
    font-weight: bold;
}

/* nav ul {
    list-style: none;
    padding: 0;
    margin: 5;
    background-color: #333;
    overflow: hidden;
    position: fixed;

    top:80px; 

    width: 100%;
    z-index: 1000;
}

nav ul li {
    display: inline-block;
}

nav ul li.left {
    float: left;
}

nav ul li.right {
    float: right;
}

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

nav ul li a:hover {
    background-color: #555;
} */

main {
    padding: 160px 0px 60px 0px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: #efefef;
}

footer {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 10px 0px;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-shadow: 1px 1px 2px black;
}

.visitantes-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    background-color: transparent;
    padding: 10px;
    border-top: 1px solid #ccc;
}

.visitantes {
    color: black;
    font-size: 18px;
    font-weight: bold;
    margin-top: -200px; 
}

.external-link {
    color: #fff;
    text-decoration: underline;
}

.external-link:hover {
    color: #ddd;
    text-decoration: none;
}

.carousel {
    width: 80%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    margin: 0 auto;
    margin-bottom: 50px;
    margin-top: 50px;
}

.carousel-image {
    height: 400px;
    object-fit: cover;
}

.gauge-section {
    text-align: center;
    margin-top: 0px;
}

.gauge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gauge {
    width: 25%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding-top: -20px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.gauge:hover {
    transform: scale(1.1);
    background-color: white;
}

.gauge-title {
    margin-top: 50px;
    text-align: center;
}

#gauge-signal,
#gauge-noise,
#gauge-link-quality {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.texto-arriba {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: 35px;
}

@media (max-width: 800px) {
  .texto-arriba {
    margin-top: 60px;
  }
}

.texto-arriba h2 {
    margin-bottom: 15px;
    text-align: center;
    color: black;
    font-size: 24px;
}

.xlx {
    color: #000;
    font-size: 16px;
    font-variant: small-caps;
    margin-top: -20px;
    margin-bottom: 20px;
}

.texto-arriba .contenido {
    text-align: center;
    color: #fff;
    border: 5px solid #aaa;
    border-radius: 10px;
    background-image: linear-gradient(to bottom right, #222, #005);
    padding: 15px;
    margin: 5px;
    font-variant: small-caps;
    box-shadow: 0px 0px 10px #111;
    font-size: 16px;
}

@media (max-width: 800px) {
  .texto-arriba .contenido {
    padding: 5px;
    margin: 1px;
    border-width: 2px;
    font-size: 14px;
  }
}



.image-box {
    width: 30px;
    height: 30px;
    background-size: cover;
}

.navbar-custom .image-box {
    margin-left: auto;
}

.image-box.night {
    background-image: url('https://cdn.icon-icons.com/icons2/799/PNG/512/night-01_icon-icons.com_65776.png');
}

.image-box.sunny {
    background-image: url('https://cdn.icon-icons.com/icons2/1370/PNG/512/if-weather-3-2682848_90785.png');
}

.image-box.cloudy {
    background-image: url('https://cdn.icon-icons.com/icons2/1370/PNG/512/if-weather-2-2682849_90781.png');
}

.navbar-custom {
    background-color: #4c4c4c;
    margin-top: 50px;
}

.navbar-custom .nav-link {
    color: white;
}

.navbar-custom .nav-link:hover {
    color: #00ff2a;
}

.navbar-toggler {
    z-index: 1050;
}

.navbar-collapse {
    z-index: 1040;
}

.registro {
    font-size: 10px;
}

#lastHerd {
    vertical-align: middle;
    text-align: center;
    empty-cells: show;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-collapse: collapse;
    border-color: #000000;
    border-style: solid;
    border-spacing: 4px;
    border-width: 2px;
    color: #ffffff;
    background: #000000;
    font-family: verdana, arial, sans-serif;
    width: max-content;
    white-space: nowrap;
    margin: 0 auto;
    font-size: 12px;
}

@media (max-width: 800px) {
    #lastHerd {
        white-space: unset;
    }
}

#lastHerd table {
    margin: 0 auto;
    width: 600px;
}

@media (max-width: 800px) {
    #lastHerd table {
        width: fit-content;
        font-size: 10px;
        min-width: 1px;
    }
}

#lastHerd th {
    font-family: "Lucidia Console", Monaco, monospace;
    text-shadow: 1px 1px #029bed;
    text-decoration: none;
    color: #ffffff;
    background: #2d1eac;
    border: 1px solid #c0c0c0;
}

@media (max-width: 800px) {
    #lastHerd th {
        font-size: 8px;
    }
}

#lastHerd tr:nth-child(even) {
    background: #f7f7f7;
}

#lastHerd tr:nth-child(odd) {
    background: #d0d0d0;
}

#lastHerd td {
    color: #000000;
    font-family: "Lucidia Console", Monaco, monospace;
    text-decoration: none;
    border: 1px solid #000000;
    overflow-x: hidden;
}

a.tooltip,
a.tooltip:link,
a.tooltip:visited,
a.tooltip:active {
    text-decoration: none;
    position: relative;
    color: #FFFFFF;
}

@media (max-width: 800px) {
    a.tooltip,
    a.tooltip:link,
    a.tooltip:visited,
    a.tooltip:active {
        font-size: 12px;
    }
}

.tooltip {
    opacity: 1;
}

.tooltip:hover {
    text-shadow: none;
    text-decoration: none;
    color: #FFFFFF;
    background: transparent;
}

a.tooltip span {
    text-shadow: none;
    text-decoration: none;
    display: none;
}

a.tooltip:hover span {
    text-shadow: none;
    text-decoration: none;
    display: block;
    position: absolute;
    left: 0;
    top: 20px;
    color: #000000;
    border: 1px solid #000000;
    background: #f7f7f7;
    font: 12px Verdana, sans-serif;
    text-align: left;
    white-space: nowrap;
}

th:last-child a.tooltip:hover span {
    left: auto;
    right: 0;
}

a.tooltip span b {
    text-shadow: none;
    text-decoration: none;
    display: block;
    color: #000000;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: bold;
    border: 0px;
    border-bottom: 1px solid black;
    background: #d0d0d0;
}

.contat,
.contan {
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.contat {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contan {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.datagrid.datagrid-statistics {
    margin: 0px auto;
    width: max-content;
    border-collapse: collapse;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
}

@media (max-width: 800px) {
    .datagrid.datagrid-statistics {
        font-size: 12px;
    }
}

.datagrid.datagrid-statistics thead tr th {
    text-align: center;
}

.datagrid.datagrid-statistics tbody tr td:first-child {
    text-align: left;
}

.datagrid.datagrid-statistics th {
    background-color: #dd4b39;
    padding: 0px;
    color: #fff;
    cursor: pointer;
}

.datagrid.datagrid-statistics td {
    padding: 0px;
}

.datagrid.datagrid-statistics tr:nth-child(even) {
    background-color: #bebebe;
    color: #000;
}

.datagrid.datagrid-statistics tr:nth-child(odd) {
    background-color: #ebebeb;
    color: #000;
}

.datagrid.datagrid-statistics td,
.datagrid.datagrid-statistics th {
    text-align: center;
    padding: 5px;
    border: 1px solid #000;
}

.datagrid.datagrid-statistics td.left-align,
.datagrid.datagrid-statistics th.left-align {
    text-align: left;
}

.datagrid.datagrid-statistics td.right-align,
.datagrid.datagrid-statistics th.right-align {
    text-align: right;
}

.datagrid.datagrid-statistics a {
  color: #0520b3
  pointer-events: none;
  text-decoration: none;
  font-weight: normal;
}

.datagrid.datagrid-statistics1 {
    margin: 0px auto;
    width: max-content;
    border-collapse: collapse;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
}

@media (max-width: 800px) {
    .datagrid.datagrid-statistics1 {
        font-size: 10px;
    }
}

.datagrid.datagrid-statistics1 thead tr th {
    text-align: center;
}

.datagrid.datagrid-statistics1 tbody tr td:first-child {
    text-align: left;
}

.datagrid.datagrid-statistics1 th {
    background-color: #dd4b39;
    padding: 0px;
    color: #fff;
}

.datagrid.datagrid-statistics1 td {
    padding: 0px;
}

.datagrid.datagrid-statistics1 tr:nth-child(even) {
    background-color: #bebebe;
    color: #000;
}

.datagrid.datagrid-statistics1 tr:nth-child(odd) {
    background-color: #ebebeb;
    color: #000;
}

.datagrid.datagrid-statistics1 td,
.datagrid.datagrid-statistics1 th {
    text-align: center;
    padding: 5px;
    border: 1px solid #000;
}

.datagrid.datagrid-statistics1 td.left-align,
.datagrid.datagrid-statistics1 th.left-align {
    text-align: left;
}

.datagrid.datagrid-statistics1 td.right-align,
.datagrid.datagrid-statistics1 th.right-align {
    text-align: right;
}

.datagrid.datagrid-statistics1 a {
  color: #0520b3
  pointer-events: none;
  /* text-decoration: none; */
}

.dire {
    text-align: center;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
}

/* .rame {
    background-color: black;
} */

.marc {
    background-color: black;
    color: #fff;
    width: max-content;
    border: 3px solid black;
    margin: 0 auto;
}

.audio-container {
    display: none;
}

.stations-heard-by tbody td {
    text-align: left;
}

.teleg {
    width: fit-content;
    border: 3px solid #188fcb;
    margin: 0 auto;
    background-color: #4c4c4c;
    color: #ffffff;
    text-shadow: 1px 1px 2px black;
    border-radius: 10px;
    padding: 5px;
    margin-top: 25px;
    border: 5px double #188fcb;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.no-underline {
    text-decoration: none !important; /* Elimina el subrayado */
}




@keyframes flash-red {
    0% { color: red;  font-weight: bold;}
    100% { color: rgb(255, 234, 2); font-weight: bold; }
}

.flash-red {
    animation: flash-red 1s infinite alternate;
}



@keyframes blink-red {
    0% { color: red; font-weight: bold; }
    100% { color: rgb(0, 0, 0);  font-weight: bold;}
}

.blink-red {
    animation: blink-red 1s infinite alternate;
}


.small-text {
    font-size: 12px;
}



/* boton play */
.custom-btn {
    background-color: #faf200;
    color: black;
    border: none;
    border-radius: 25px;
    /* transition: transform 0.3s ease;
    animation: zoom 2s infinite; */
}

@keyframes zoom {
    0%, 100% {
        transform: scale(0.9); /* Tamaño normal */
    }
    50% {
        transform: scale(1); /* Zoom in (aumentar tamaño) */
    }
}

.custom-btn:hover {
    font-weight: bold; /* Cambia el peso de la fuente a negrita */
}



.custom-background {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px; /* Ajusta esta altura si lo necesitas */
    background: linear-gradient(180deg, #75AADB 33%, white 33%, white 66%, #75AADB 66%);
    width: 400px; /* Ancho reducido del contenedor */
            margin: 0 auto; /* Centrar el contenedor horizontalmente */
            margin-top: 3%;
    border-radius: 10px;
}

/* Sección 1 (Franja Celeste superior) */
.section-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 33%;
}

/* Sección 2 (Franja Blanca) */
.section-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 33%;
}

/* Sección 3 (Franja Celeste inferior) */
.section-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 33%;
    /* transition: transform 0.3s ease;
    animation: zoom 2s infinite; */
}

.section-3:hover {
    transform: scale(1.2); /* Escalar a 110% al hacer hover */
}

.emapa {
    margin: 0 auto;
    width: 800px;
    height: 300px;
    border: 5px solid #000;
    border-radius: 10px;
    padding: 0;
    text-align: center;
    overflow: hidden;
}


@media screen and (max-width: 768px) {
    .emapa {
        width: 95%;
    }
}


#birthday-rain {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow: hidden;
}

.birthday-item {
  position: absolute;
  top: -50px;
  font-size: 24px;
  opacity: 0.9;
  animation: fall linear;
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}


#birthday-effect {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 248, 220, 0.5); /* fondo suave */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeOut 1s ease-out 4s forwards;
}

.birthday-message {
  font-size: 3rem;
  font-weight: bold;
  color: #d1005d;
  animation: pop 1s ease;
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Confetti simple */
.confetti::before,
.confetti::after {
  content: "🎊🎈🎉";
  font-size: 2rem;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}







.flip-card {
  background-color: transparent;
  width: 100%;
  height: 220px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/* .flip-card-front {
  background-color: #fff;
  padding: 15px;
} */
.flip-card-front {
  background: linear-gradient(135deg, #f6f0d6 0%, #eadfba 100%);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #c8b97a;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.15);
  color: #4a3f2b;
  font-family: "Georgia", serif;
}



.flip-card-back {
  background-color: #f8f9fa;
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
}

/* icono chat */

#chat-float-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgb(123, 0, 255);
  color: white;
  font-size: 18px;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 999;
  text-decoration: none;
  font-family: sans-serif;
  animation: bounceIn 1s ease;
}

/* Animación de rebote */
@keyframes bounceIn {
  0%   { transform: translateY(-200px); opacity: 0; }
  30%  { transform: translateY(0px);    opacity: 1; }
  45%  { transform: translateY(-80px); }
  60%  { transform: translateY(0px); }
  75%  { transform: translateY(-20px); }
  85%  { transform: translateY(0px); }
  92%  { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}



  #chat-float-button:hover {
    background-color:  rgb(96, 1, 198);;
  }



.msg {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}


/* notificacion */


#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#notification-bubble {
  position: absolute;
  top: -8px;    /* Sube la burbuja */
  right: 8px;   /* Ajusta un poco a la derecha */
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 14px;
  min-width: 20px;
  height: 20px;
  line-height: 16px;
  text-align: center;
  font-weight: bold;
}


.hidden {
  display: none;
}




/* Fondo oscuro */
.overlay {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* opacidad del fondo */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  background: #11111100;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative; /* IMPORTANTE: ahora la ❌ se posiciona respecto a este contenedor */
}

/* Botón de cerrar */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;  /* <-- antes estaba muy grande, lo acercamos al reproductor */
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.download-link {
    text-align: center;
    margin-top: 10px;
}


/* *************************************************************** */

