    
@font-face {
    font-family: "NewsCycle-Regular";
    src: url("../fonts/NewsCycle-Regular.ttf");
  }	

@font-face {
    font-family: "NewsCycle-Bold";
    src: url("../fonts/NewsCycle-Bold.ttf");
  }	

@font-face {
    font-family: "AmaticSC";
    src: url("../fonts/AmaticSC.ttf");
}

@font-face {
    font-family: "BebasNeueBold";
    src: url("../fonts/BebasNeueBold.ttf");
}
   
 

/*
 * Seccion BODY y HTML:
 */

    
    body {
  margin: 0;
}
    
    
    body {
  padding-top: 70px;
}
    
    html, body {
  overflow-x: hidden;
}
    
html {
  touch-action: manipulation;
}
  /* capa oscura */
    
.item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}
    
    /* texto por encima de todo */
.overlay-text {
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  font-family: 'AmaticSC', sans-serif;
  text-align: center;
  pointer-events: none;
}
   
    
    .filters button {
      margin: 5px;
      padding: 8px 16px;
      background: #111;
      color: #fff;
      border: none;
      border-radius: 6px;
    }

    .filters button.active {
      background: #fff;
      color: #000;
    }
  


/* Navbar completo */
.navbar {
  -webkit-user-select: none;
  user-select: none;
}

.navbar.fixed-top {
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

/* Links */
.navbar .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  min-height: 44px; /* estándar Apple */
  color: white;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; /* quita flash azul */
}

/* Mejora sensación táctil */
.navbar .nav-link:active {
  opacity: 0.6;
  transform: scale(0.98);
}

/* Botón hamburguesa */
.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Evita zoom en todo el navbar */
.navbar,
.navbar * {
  touch-action: manipulation;
}
    
    
/* GRID PRINCIPAL */
.masonry {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  /*max-width: 1200px;*/
  max-width: fit-content;
  margin: auto;
  padding: 20px;
  width: 90%;
    margin-top: 0;
  padding-top: 0;
}
    
.masonry img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
    

@media (max-width: 768px) {
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ITEM */
.item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* IMAGENES IGUALES */
.item img {
  width: 100%;
  /*aspect-ratio: 4 / 5;*/
  aspect-ratio: 2 / 2;
  object-fit: cover;
  display: block;
  -webkit-touch-callout: none;
  user-select: none;
  /*max-width: 250px;*/
}
    
/* FILTRO OCULTO */
.hidden {
  display: none;
}
    
/* FILTROS */
.filters button {
  margin: 5px;
  padding: 8px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.filters button.active {
  background: #fff;
  color: #000;
}
    
.filters {
  text-align: center;
  padding: 30px 20px;
}

.lg-close {
  color: #F00 !important;
  opacity: 1 !important;
}
    
    .lg-zoom-in,
.lg-zoom-out {
  color: white !important;
}
    
    .lg-thumb-item:hover {
  border-color: #fff !important; /* blanco */
}
    
    .lg-thumb-item.active {
  border-color: #fff !important; /* o #000 */
}
    
    .lg-outer {
  touch-action: pan-y pinch-zoom;
}

/* FIX viewport iOS */
.lg-outer {
  height: 100vh;
  height: 100dvh;
}

/* Evitar scroll detrás */
body.lg-open {
  position: fixed;
  width: 100%;
}

.lg-image,
.lg-img-wrap img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.50) !important;
  backdrop-filter: blur(5px) !important;
}
  



/*
 * NAVBAR 
 * */
   .navbar {
      background: rgba(0,0,0,0.85);
      backdrop-filter: blur(10px);
      padding-top: env(safe-area-inset-top);
    }


/**
 * Logo de la barra
 * */
.brand-icon {
  height: 50px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

svg {
  fill: white;
}

  .social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
    
/**
 * Capa correspondiente a lo que se coloca encima de las miniaturas.
 * 
 * **/
    .overlay{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*transition: all 0.5s ease;*/
    background-color: rgba(0,0,0,0.3);
    opacity: 1;
    border: 5px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 18px;
    margin: 0;
    transition: all 0.5s ease;
    text-align: center;
    font-family: 'AmaticSC', sans-serif;
    }
    
/**
 * Texto correspondiente a lo que se coloca encima de las miniaturas.
 * 
 * 
    .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  font-family: 'AmaticSC', sans-serif;
  text-align: center;
  pointer-events: none; 
}**/
    
     .navbar .nav-link {
        font-family: 'NewsCycle-Regular', sans-serif;
      }
    
    .extra-padding {
      padding-top: 10%;
    }



/**
 * Temas de carga, icono de carga y demas.
 * 
 * */
#loader {
  position: fixed;
  inset: 0;
  background: #fff; /* 🔥 fondo blanco */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔥 centra contenido interno */
  justify-content: center;
  text-align: center;
}


.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #000; /* 🔥 negro */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-size: 14px;
  color: #000;
  letter-spacing: 1px;
  opacity: 0.7;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* animación salida */
#loader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

/*
 * Pagina de olitica de privacidad.
 * */
#policy {
      font-family: 'NewsCycle-Regular', sans-serif;
    }

 #policy a:link,
    #policy a:visited {
      color: black !important;
    }

/*
 * Pagina de About Me:
 * */
 #aboutMe {
  font-family: 'AmaticSC', sans-serif;
}

/**
 * Para el tema del carrousel de abot me.
 * */


/**
 * Para el tema del carrousel de abot me.
 * */

.carousel-item img {
  -webkit-touch-callout: none;
  user-select: none;
}


.img-wrapper {
  position: relative;
}

.img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
}

/*
 * Pagina de Aviso Legal:
 * */
 #avisoLegal {
      font-family: 'NewsCycle-Regular', sans-serif;
    }

.navbar-toggler-icon {
background-image: url("../img/PNG/hamburguer.svg");
}

