:root {
--b:#0878bd;
--bd:#07558a;
--g:#20a85a;
--o:#f59b16;
--t:#183142;
--m:#5f7180;
--bg:#f6fafc;
}
*{
box-sizing:border-box;
}
html{
scroll-behavior:smooth;
scroll-padding-top:100px;
}
body{
margin:0;
font-family:Arial,Helvetica,sans-serif;
color:var(--t);
background:var(--bg);
line-height:1.55;
}
a{
text-decoration:none;
color:inherit;
}
header{
position:sticky;
top:0;
z-index:10;
background:#fff;
border-bottom:1px solid #dce8ef;
}

/* Estilos menú*/
.nav{
align-items:center;
max-width:1400px;
margin:auto;
padding:12px 10px;
display:flex;
align-items:center;
justify-content:space-between;
}
.nav ul{
display:flex;
list-style:none;
align-items:center;
gap:18px;
margin:0;
padding:0;
}

.nav a{
font-size:13px;
font-weight:700;
}

.nav ul li a{
position:relative;
display:inline-block;
font-size:15px;
font-weight:700;
color:var(--t);
padding:8px 4px;
transition:all .30s ease;
}
/* Línea inferior oculta */
.nav ul li a::after{
content:"";
position:absolute;
left:0;
bottom:-3px;
width:0;
height:3px;
background:linear-gradient(
90deg,
var(--o),
#ffd166
);
border-radius:5px;
transition:width .35s ease;
}

/* Hover */
.nav ul li a:hover{
color:var(--bd);
transform:translateY(-2px);
text-shadow:0 2px 8px rgba(245,155,22,.25);
}
/* Animación de la línea */
.nav ul li a:hover::after{
width:100%;
}

.brand{
font-weight:800;
color:var(--bd);
text-align:center;
font-weight:800;
margin:0 20px;
}
.brand small{
display:block;
color:var(--m);
font-size:11px;
margin-top:4px;
}

.participa{
display:inline-block;
background:linear-gradient(
135deg,
#f59b16,
#ffb22c
);
color:#fff !important;
padding:14px 32px;
border-radius:50px;
min-width:150px;
text-align:center;
font-size:15px;
font-weight:800;
box-shadow:
0 4px 12px rgba(245,155,22,.30);
transition:all .30s ease;
}
.participa:hover{
transform:translateY(-2px);
box-shadow:
0 8px 18px rgba(245,155,22,.45);
color:#fff !important;
}
.participa::after{
display:none;
}

.logo-left,
.logo-right{
display:flex;
align-items:center;
}
.logo-left img,
.logo-right img{
height:55px;
width:auto;
}

/*Estilos de la galeria*/

.galeria-principal{
  margin-top: 0px;
}


.galeria-titulo{
  color:var(--g);
  font-size:30px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* línea | texto | línea */
  align-items: center;
  column-gap: 20px;
  padding: 0 50px; /* márgenes izquierdo y derecho */
  margin-bottom: 5px;
  text-shadow: black;
}
.galeria-titulo h2{
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: #003c78;
  white-space: nowrap; /* evita saltos */
}


.galeria-titulo .lineag {
  height: 2px;
  background-color: #bbc2c9;
}

.slideshow {
  max-width: 500px;
  height: 350px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  cursor: pointer;
}

.slide.activo {
  display: block;
}

.galeria-miniaturas {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 80px;
}

.galeria-miniaturas img {
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0.5;
}

.galeria-miniaturas img:hover {
  opacity: 1;
}

.detalle-galeria {
  max-width: 900px;
  margin: 80px auto;
}

.detalle-galeria ul {
  padding-left: 20px;
}

.detalle-galeria li {
  margin-bottom: 10px;
}


/* ===== LIGHTBOX ===== */


.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-contenido {
  text-align: center;
  color: white;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 15px;
}

#lightbox-texto {
  font-size: 1rem;
  letter-spacing: 1px;
}


.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

.cerrar:hover {
  color: #ccc; /* gris suave */
  transform: scale(1.2); /* pequeño efecto */
}


@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

.anterior { left: 30px; }
.siguiente { right: 30px; }

.flecha:hover {
  color: #ccc;
}

/* Miniaturas pro */
.galeria-miniaturas img {
  width: 50px;
  height: 50px;
  opacity: 0.6;
  border-radius: 6px;
  transition: 0.3s;
}

.galeria-miniaturas img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/*videos*/
.galeria-miniaturas img[data-type="video"] {
  position: relative;
}

.galeria-miniaturas img[data-type="video"]::after {
  content: "▶";
  position: absolute;
  color: white;
  font-size: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.thumb-video {
  position: relative;
  display: inline-block;
}

.thumb-video img {
  display: block;
}

/* Icono de play */
.thumb-video::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-size: 20px;
  color: white;
  
  background: rgba(0,0,0,0.6);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-video:hover::after {
  transform: translate(-50%, -50%) scale(1.2);
  transition: 0.3s;
}


.modal {
  display: none;
  position: fixed;
  z-index: 5000; /* 🔥 más alto que navbar */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;   /* centrar horizontal */
  align-items: center;       /* centrar vertical */
}