/* ============================
   FONDO GLOBAL OSCURO + CRT
   ============================ */
@font-face {
    font-family: '8BITOPERATORPLUS';
    src: url('/fonts/8bitOperatorPlus-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '8BITOPERATORPLUS';
    src: url('/fonts/8bitOperatorPlus-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html {
    overflow-y: scroll;
}
.logo-text {
    text-decoration: none;   /* Quita el subrayado */
    color: inherit;          /* Mantiene el color del texto original */
}


body {
    margin: 0;
    background: linear-gradient(#000000, #111010); /* fondo retro */
    color: #e0e0e0;
        font-family: '8BITOPERATORPLUS', monospace;
    position: relative;
   overflow-x: auto;
}
/* CENTRADO IMAGEN */
.img-center {
    text-align: center;
    margin: 30px 0;
}

.img-center img {
    display: inline-block;
    max-width: 80%;
    height: auto;

    /* Borde fino */
    border: 1px solid #00ffcc;

    /* Glow CRT alrededor */
    box-shadow: 0 0 8px #00ffcc;
}



/* Scanlines CRT globales */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0,5px,
        rgba(0,0,0,0.2) 0,5px,
        transparent 4px,
        transparent 8px
    );
    pointer-events: none;
    opacity: 0.2;
    z-index: -1; /* debajo de todo */
}

/* NAVBAR FIJA */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #000;
    border-bottom: 2px solid #00ffcc;
      box-shadow: 0 0 10px #00ffcc;       /* glow CRT */
    display: flex;
         font-family: '8BITOPERATORPLUS', monospace;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 9999;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-text {
    font-size: 1.3rem;
    color: #00ffcc;
    font-weight: bold;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
}

.nav-link:hover {
    color: #00ffcc;
}

.topbar-right {
    display: flex;
    gap: 15px;
    padding-right: 40px; /* mueve los iconos hacia la izquierda */
}




.social-icon {
    font-size: 1.2rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: 0.2s;
}

.social-icon:hover {
    color: #00ffcc;
}

/* ScrollSmoother */
#smooth-wrapper {
    overflow: hidden;
}

#smooth-content {
    position: relative;
    background: transparent;
}

/* PANEL CENTRAL CON GLOW CRT */
.page-container {
    width: 900px;
    margin: 80px auto;
    background: #0a0a0a;
    padding: 30px;
    border: 2px solid #00ffcc;          /* borde verde */
    box-shadow: 0 0 10px #00ffcc;       /* glow CRT */
            font-family: '8BITOPERATORPLUS', monospace;
    color: #e0e0e0;
    position: relative;
    overflow: auto;
}

/* Scanlines CRT dentro del panel */
.page-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.05) 0px,
        rgba(0,0,0,0.2) 2px,
        transparent 4px,
        transparent 8px
    );
    pointer-events: none;
    opacity: 0.25;
}

/* ============================
   EFECTO TV ANTIGUA REAL EN BANNER
   ============================ */

.banner {
  position: relative;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 5;

  /* Aberración cromática */
  filter: contrast(1.4) brightness(1.2) saturate(1.2);

  /* Vibración CRT */
  animation: crtShake 0.01s infinite alternate;
}

/* Ruido blanco + scanlines + aberración */
.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Ruido blanco animado */
  background: url("https://upload.wikimedia.org/wikipedia/commons/3/3f/White_Noise.gif");
  background-size: cover;
  opacity: 0.12;

  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 10;
}

/* Scanlines visibles */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: repeating-linear-gradient(
    to bottom,
    rgba(238, 239, 245, 0.904) 0px,
    rgba(0, 0, 0, 0.938) 2px,
    transparent 5px,
    transparent 10px
  );

  opacity: 0.25;
  pointer-events: none;
  z-index: 9;

  animation: scanlines 0.04s infinite linear;
}

/* Vibración CRT */
@keyframes crtShake {
  from { transform: translateX(-2px); }
  to   { transform: translateX(2px); }
}

/* Movimiento de scanlines */
@keyframes scanlines {
  from { background-position: 0 0; }
  to   { background-position: 0 10px; }
}

/* CONTENIDO */
.main-content {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: transparent;
}

.content {
    padding: 20px 0;
    background: transparent;
}

h2 {
    font-size: 2rem;
    color: #00ffcc;
    margin-top: 30px;
}

p {
    line-height: 1.6;
    font-size: 1.2rem;
}

/* CARRUSEL */
.projects-box {
    background: #111;
    border: 1px solid #00ffcc;
      box-shadow: 0 0 10px #00ffcc;       /* glow CRT */
    padding: 20px;
    margin-top: 40px;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #00ffcc;
    
}

.item {
    min-width: 250px;
    background: #222;
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

.item img {
    width: 100%;
    height: auto;
  
}

/* GALERIA */


.galeria-box {
    background: #111;
    border: 1px solid #00ffcc;
      box-shadow: 0 0 10px #00ffcc;       /* glow CRT */
    padding: 20px;
    margin-top: 40px;
}

.galeria {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.galeria::-webkit-scrollbar {
    height: 8px;
}

.galeria::-webkit-scrollbar-thumb {
    background: #00ffcc;
    
}
.galeria-item {
    min-width: 250px;
    background: #222;
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

.galeria-item img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #00ffcc;
}





/* NOTICIAS */
.news-box {
    background: #111;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 10px #00ffcc;    
    padding: 20px;
    margin-top: 40px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.news-item img {
    width: 120px;
    height: auto;
    border: 2px solid #00ffcc;
    
}



/* RESPONSIVE */
 @media (max-width: 900px) {
    .page-container {
        width: 100%;
        margin: 70px 0 0 0;
        border: none;
        padding: 10px;
    }
} 


/* ============================
   FOOTER
   ============================ */

.footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #00ffcc;
    font-size: 1rem;
    background: #000;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 10px #00ffcc;    
}

/* SCROLL NOTICIAS */
.news-box {
    max-height: 600px;        /* Ajusta la altura que quieras */
    overflow-y: auto;         /* Activa scroll vertical */
    padding-right: 0px;      /* Evita que el scroll tape contenido */
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.news-item img {
    width: 150px;
    height: 150x;
    object-fit: cover;
    border-radius: 4px;
}


/* ============================
   COOKIES
   ============================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #000;
    border: 2px solid #00ffcc;
    padding: 20px;
    color: #e0e0e0;
    font-size: 1rem;
    z-index: 99999;
    text-align: center;
    box-shadow: 0 0 10px #00ffcc;
}

.cookie-banner button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #00ffcc;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-banner button:hover {
    background: #00d4aa;
}

.cookie-link {
    color: #00ffcc;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-link:hover {
    color: #00d4aa;
}

