/*  PALETA DE COLORES CORPORATIVOS */
:root {
  --azul: #ff7300;
  --azul-claro: #fd9825;
  --gris-oscuro: #2B2B2B;
  --gris-claro: #F9F9F9;
  --blanco: #FFFFFF;
  --sombra: rgba(0, 0, 0, 0.1);
}

/* ESTILOS GENERALES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: rgb(255, 255, 255);
  color: var(--gris-oscuro);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 0px; /* aumentado por header más alto */
}

/* HEADER */
header {
  background-color: var(--gris-oscuro);
  color: var(--blanco);
  padding: 15px 25px;
  display: flex;
  flex-direction:row; /* permite colocar buscador debajo del nav */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--sombra);
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  z-index: 1000;
  gap: 10px; /* espacio entre elementos */
  margin-bottom: 0; /* elimina margen inferior */
  padding-bottom: 0; /* elimina padding inferior si hay */
}


.logo {
  height: 60px;                /* ajusta según tu asset */
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}


header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

header nav ul li a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

header nav ul li a:hover {
  color: var(--azul-claro);
}

/* CONTENEDOR DEL BUSCADOR DENTRO DEL HEADER */
.buscador-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

/* BUSCADOR */
.buscador {
  padding: 10px 20px;
  width: 60%;
  max-width: 500px;
  border: 2px solid var(--azul);
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  background-color: var(--blanco);
  color: var(--gris-oscuro);
}

.buscador:focus {
  border-color: var(--azul-claro);
  box-shadow: 0 0 16px rgba(243, 108, 33, 0.4);
}

/* BOTONES */
.boton, .boton-descargar {
  display: inline-block;
  background-color: var(--azul);
  color: var(--blanco);
  padding: 10px 25px;
  margin: 15px auto;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.boton:hover, .boton-descargar:hover {
  background-color: var(--azul-claro);
  transform: translateY(-2px);
}

.banner {
    text-align: center;           /* Centra la imagen dentro del div */
    margin: 0px;               /* Espacio arriba y abajo */
    overflow: hidden;             /* Evita que algo sobresalga del contenedor */
    padding-top: 0px;
    margin-top: 0px;
}


.banner img {
    width: 100%;                  /* La imagen ocupa todo el ancho del contenedor */
    height: auto;                 /* Mantiene proporciones */
    display: block;               /* Evita pequeños espacios debajo de la imagen */
  }




/* SECCIONES */
section {
  margin: 40px auto;
  width: 90%;
  max-width: 1200px;
}

section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--gris-oscuro);
  border-bottom: 3px solid var(--azul);
  display: inline-block;
  padding-bottom: 5px;
}

/* CONTENEDOR DE GALERÍA */
.contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  justify-items: center;
}

/* TARJETAS */
.item {
  background: var(--blanco);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px var(--sombra);
  transition: 0.3s;
  width: 100%;
  border: 4px solid #ff9900;
}

.item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* IMÁGENES Y VIDEOS */
.item img,
.item video {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #000;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

/* TEXTOS DENTRO DE TARJETAS */
.item p {
  font-size: 0.95rem;
  color: black;
  margin: 8px 0;
  word-break: break-all;
}

/* LIGHTBOX */
#lightbox-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  cursor: zoom-out;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

html {
  scroll-behavior: smooth;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .buscador {
    width: 80%;
  }

  header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  header nav ul {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .item img, .item video {
    height: 180px;
  }
}
