@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Quicksand:wght@700&display=swap');

.flag-counter-container {
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff; /* Fondo blanco */
    border: 1px solid #ddd; /* Bordes grises claros */
    font-family: 'Poppins', sans-serif;
}

.exclusive-total-visits {
    text-align: left;
    background-color: #f7f7f7; /* Fondo gris claro */
    color: #333; /* Texto gris oscuro */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 1.2em;
    grid-column: span 6;
}

.exclusive-total-visits .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exclusive-total-visits h3 {
    font-size: 1.8em;
    color: #333; /* Texto gris oscuro */
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.exclusive-total-visits .total-number {
    font-size: 2.8em;
    color: #ff9800; /* Color de acento naranja */
    text-align: right;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.visit-stats {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    color: #555; /* Texto gris medio */
    margin: 10px 0;
}

.visit-stats span {
    flex: 1;
    text-align: center;
    margin: 5px 0;
    border-left: 1px solid #ddd; /* Bordes grises claros */
    padding-left: 10px;
    font-weight: 700; /* Aplicar negrita a todas las cifras */
}

.visit-stats span:first-child {
    border-left: none;
    padding-left: 0;
}

.online-countries {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.online-countries span {
    margin-right: 10px;
    align-self: flex-start;
    color: #333; /* Texto gris oscuro */
}

.online-country {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.online-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #333; /* Bordes grises oscuros */
    border-radius: 50%;
    margin-left: 5px;
    font-size: 0.8em;
    color: #333; /* Texto gris oscuro */
    line-height: 20px;
    background-color: #fff; /* Fondo blanco */
}

.online-flag {
    margin-left: 5px;
    margin-top: 0;
}

.flag-counter {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.flag {
    text-align: center;
    background-color: #f7f7f7; /* Fondo gris claro */
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Aplicar negrita a todas las cifras en las banderas */
}

.flag:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.flag img {
    display: block;
    margin: 0 auto 10px;
}

.flag span {
    display: block;
    font-weight: bold;
    color: #333; /* Texto gris oscuro */
}

.flag ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #555; /* Texto gris medio */
    text-align: left;
}

.flag ul li {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.flag ul li span:first-child {
    flex: 1;
}

.flag img {
  width: 100%; /* que ocupe todo el contenedor */
  max-width: 80px; /* tamaño uniforme */
  height: 50px; /* altura fija */
  object-fit: cover; /* recorte suave y proporcionado */
  border-radius: 8px; /* bordes redondeados */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.flag img:hover {
  transform: scale(1.05);
}


.online-users {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f7f7f7; /* Fondo gris claro */
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #333; /* Texto gris oscuro */
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.flag-image-wrapper {
  position: relative;
  display: inline-block;
}

.online-bubble {
  position: absolute;
  top: -6px;
  left: -6px;
  background-color: rgba(0, 255, 170, 0.95);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.7);
  z-index: 10;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 4px rgba(0, 255, 170, 0.3); }
  50% { box-shadow: 0 0 12px rgba(0, 255, 170, 0.9); }
  100% { box-shadow: 0 0 4px rgba(0, 255, 170, 0.3); }
}

.visit-block {
  margin-top: 8px;
}

.signature-banner {
  text-align: center;
  margin-bottom: 12px;
  padding: 4px 18px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #00ffaa;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 6px rgba(0, 255, 170, 0.3);
  animation: fadeInSignature 1.8s ease-out;
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.8);
}

@keyframes fadeInSignature {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.signature:hover::after {
  content: "hecho con alma 🖋️";
  margin-left: 8px;
  color: #ccc;
  font-style: italic;
}

.signature:hover {
  filter: brightness(1.4);
  letter-spacing: 0.8px;
  transition: all 0.3s ease-in-out;
}

.time-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111; /* Negro suave para el texto */
  text-shadow: none; /* Sin brillo para más sobriedad */
  font-style: italic;
  opacity: 0.9;
}

.time-label strong {
  color: #000000; /* Negro profundo para los valores fuertes */
  font-weight: 700;
  text-shadow: none; /* Eliminamos el glow blanco */
}

@keyframes fadeInSignature {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 0.85; transform: translateX(0); }
}


.past-years-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.year-card {
  background-color: #333; /* fondo elegante */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  color: white;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* 🖱️ cambia el cursor */
}

.year-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

.year-card * {
  user-select: none; /* ✋ evitar selección */
}

.year-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.year-info h3 {
  font-size: 1.5rem;
  color: #00ffaa;
  margin: 0.8rem 0 0.2rem;
}

.year-total {
  font-weight: 700;
  font-size: 1.2rem;
}

.year-caption {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* Año cerrado: estilo en rojo */
.year-info.closed h3 {
  color: #ff4d4d;
  text-shadow: 0 0 6px rgba(255, 77, 77, 0.5);
}

.closed-icon {
  margin-right: 6px;
  font-size: 0.9em;
  opacity: 0.7;
}

/* Brillo pulsante para h3 cerrado */
.year-card .closed h3 {
  animation: pulseGlow 4s infinite;
}

@keyframes pulseGlow {
  0% { text-shadow: 0 0 5px rgba(255, 77, 77, 0.3); }
  50% { text-shadow: 0 0 10px rgba(255, 77, 77, 0.8); }
  100% { text-shadow: 0 0 5px rgba(255, 77, 77, 0.3); }
}

.hidden {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.blink {
    animation: blink-animation 1s steps(5, start) 3;
    -webkit-animation: blink-animation 1s steps(5, start) 3;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination .page-number {
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd; /* Bordes grises claros */
    text-align: center;
    text-decoration: none;
    color: #333; /* Texto gris oscuro */
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-number.current {
    background-color: #ff9800; /* Color de acento naranja */
    color: #ffffff; /* Texto blanco */
}

.pagination .page-number:hover {
    background-color: #555; /* Fondo gris medio al pasar el mouse */
    color: #ffffff; /* Texto blanco */
}

@media (max-width: 768px) {
    .flag-counter {
        grid-template-columns: repeat(2, 1fr);
    }
    .exclusive-total-visits {
        grid-column: span 2;
    }
    .visit-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    .visit-stats span {
        text-align: left;
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .flag-counter {
        grid-template-columns: repeat(1, 1fr);
    }
    .exclusive-total-visits {
        grid-column: span 1;
    }
    .visit-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    .visit-stats span {
        text-align: left;
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin: 5px 0;
    }
}

.blink {
  animation: blink-fade 1s ease-in-out;
}

@keyframes blink-fade {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ===== MODAL ÁLBUMES POR AÑO (Optimizado) ===== */

#album-modal.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenido del Modal */
#album-modal .modal-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,255,170,0.2);
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #f0f0f0;
  animation: fadeInModal 0.4s ease-out;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

#album-modal .modal-content::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

#album-modal .modal-content::-webkit-scrollbar-thumb {
  background: transparent;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ✖ Botón de cierre */
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 24px;
  color: #00ffaa;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.modal-close:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* === Álbum Card === */
#modal-album-content .album-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: #2b2b2b;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,255,170,0.1);
  transition: background 0.3s;
  animation: fadeInAlbum 0.6s ease-out both;
}

#modal-album-content .album-card:hover {
  background: #333;
}

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

/* Imagen del Álbum */
.album-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* Información del Álbum */
.album-info {
  flex-grow: 1;
  padding-right: 15px;
}

/* Título del Álbum */
.album-info h4 {
  margin: 0 0 8px;
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
}

.album-info h4 .prefix {
  color: #00ffaa;
  font-weight: 500;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  margin-right: 5px;
}

.album-info h4 .title {
  color: #ffffff;
  font-weight: 700;
  display: inline;
  white-space: nowrap;
}

/* Descripción del Álbum */
.album-info p {
  margin: 0;
  font-size: 0.95em;
  color: #ddd;
}

/* Botón de Enlace */
.album-link {
  display: block;
  min-width: 120px;
  text-align: center;
  margin-top: 8px;
  padding: 12px 18px;
  background-color: #ff9800;
  color: #1a1a1a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: center;
}

.album-link:hover {
  background-color: #ffaa33;
  color: #000;
}

/* Sin álbumes */
.no-albums {
  text-align: center;
  color: #ff4d4d;
  font-weight: bold;
  font-style: italic;
  margin: 30px auto;
  font-size: 1.2em;
}

/* === Responsive móvil === */
@media (max-width: 768px) {
  #modal-album-content .album-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .album-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }

  .album-info {
    padding: 0;
    text-align: center;
  }

  .album-info h4 {
    font-size: 1.1em;
  }

  .album-link {
    margin: 12px auto 0;
  }

  .album-info h4 .title {
    display: block;
    white-space: normal;
  }
}

.album-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  background: #2b2b2b;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.12);
  align-items: center;
  animation: fadeInAlbum 0.6s ease-out both;
}

.album-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.album-info {
  padding-right: 15px;
}

.album-info h4 {
  margin: 0 0 6px;
  color: #00ffaa;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.3;
}

.album-info p {
  margin: 0;
  font-size: 1em;
  color: #e0e0e0;
}

.album-link {
  align-self: start;
  padding: 10px 20px;
  min-width: 120px;
  font-weight: bold;
  text-align: center;
  background: #ff9800;
  border-radius: 6px;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.3s ease;
}

.album-link:hover {
  background: #ffaa33;
  color: #000;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


