body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  background: #fff;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  background: linear-gradient(90deg, #001f3f, #003366, #004080);
  background-size: 300% 300%;
  animation: navbarGradient 10s ease infinite;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes navbarGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar.scrolled {
  background: linear-gradient(90deg, #001933, #003366);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.logo img {
  height: 55px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #38a1ff;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #38a1ff;
  text-shadow: 0 0 10px rgba(56,161,255,0.6);
}

#lang-select {
  background: #001830; 
  color: #ffffff;
  border: 1px solid #3b6ea5;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

#lang-select option {
  background: #001830;
  color: white;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.nav-toggle:hover {
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .navbar {
    padding: 15px 20px;
  }
}

footer {
  background: #001f3f;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  z-index: 9999;
}

.whatsapp-float:hover {
  background: #1ebc57;
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {

  .nav-links,
  #lang-select {
    display: none;
  }

  .nav-toggle {
    display: block;
    font-size: 1.9rem;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    transition: transform 0.3s ease;
  }

  .nav-toggle:hover {
    transform: scale(1.2);
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 900;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: linear-gradient(180deg, #001f3f, #003366, #004080);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 25px;
    transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-size: 200% 200%;
    animation: menuGradient 12s ease infinite;
  }

  .mobile-menu.open {
    right: 0;
  }

  @keyframes menuGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
  }

  .mobile-menu-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .mobile-menu-header button:hover {
    transform: rotate(90deg);
  }

  .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
  }

  .mobile-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-links a:hover {
    color: #38a1ff;
    text-shadow: 0 0 8px rgba(56,161,255,0.7);
    transform: translateX(6px);
  }
}

html, body {
  overflow-x: hidden;
}

@media (min-width: 901px) {
  .mobile-menu,
  .menu-overlay {
    display: none !important;
  }
}

:root{
  --azul:#001f3f;
  --azul-2:#0b1220;
  --azul-3:#0d2b66;
  --acento:#2a78ff;
  --blanco:#fff;
  --gris:#b7c3d6;
}

.gallery-hero{
  position:relative; isolation:isolate; overflow:hidden;
  min-height:42vh;
  display:grid; place-items:center; text-align:center;
  color:#fff;
  background:url('img/fondo-galeria.png') center/cover no-repeat;
}
.gallery-hero .hero-shade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,31,63,.65), rgba(0,31,63,.35));
  z-index:1;
}
.gallery-hero .hero-content{ position:relative; z-index:2; padding:18px }
.gallery-hero h1{ margin:0 0 10px; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing:.5px }
.gallery-hero p{ margin:0; color:#e6f1ff }
.gallery-hero .hero-wave{ position:absolute; left:0; right:0; bottom:-1px; height:110px; z-index:2 }
.gallery-hero .hero-wave path{ fill: #0b1220; }

.gallery-featured{ padding:28px 16px; background:linear-gradient(180deg,#0b1220,#0b1220 50%,#08111d) }
.carousel{ max-width:1100px; margin:0 auto; position:relative }
.c-track{ overflow:hidden; border-radius:18px; box-shadow:0 30px 70px rgba(0,0,0,.45) }
.c-track .c-slide{ min-width:100%; }
.c-track img{ display:block; width:100%; height:380px; object-fit:cover; }
.c-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25);
  color:#fff; width:44px; height:44px; border-radius:12px; cursor:pointer;
  backdrop-filter: blur(4px); transition:.25s;
}
.c-btn:hover{ background:rgba(255,255,255,.2) }
.c-btn.prev{ left:14px } .c-btn.next{ right:14px }

.gallery-controls{ padding:22px 16px; background:#142338; border-top:1px solid #0c1f36 }
.tabs{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap }
.tab{
  background:#0f1c2f; color:#e9f2ff; border:1px solid #1d3557;
  padding:10px 16px; border-radius:999px; cursor:pointer; font-weight:700; transition:.25s;
}
.tab:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.35) }
.tab.active{ background:linear-gradient(135deg,#1d4ed8,#2563eb); border-color:#1d4ed8 }

.gallery-grid{
  column-count: 1;
  column-gap: 16px;
  max-width: 1200px;
  margin: 16px auto 70px;
  padding: 0 16px;
}
@media (min-width:700px){ .gallery-grid{ column-count: 2 } }
@media (min-width:1050px){ .gallery-grid{ column-count: 3 } }

.g-item{
  break-inside: avoid; margin:0 0 16px; position:relative; overflow:hidden;
  border-radius:16px; background:#0f1c2f; border:1px solid #1b2b46;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  transform: translateZ(0);
}
.g-item img{
  display:block; width:100%; height:auto; transition: transform .5s ease, filter .5s ease;
}
.g-item::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
  opacity:.0; transition:.35s;
}
.g-item:hover img{ transform: scale(1.04) }
.g-item:hover::after{ opacity:1 }
.g-item figcaption{
  position:absolute; left:14px; bottom:10px; right:14px;
  color:#eaf2ff; font-weight:700; text-shadow:0 6px 20px rgba(0,0,0,.65);
  opacity:.95; letter-spacing:.2px;
}

.lightbox{
  position:fixed; inset:0; background:rgba(8,17,29,.85);
  display:none; align-items:center; justify-content:center; z-index:9999;
}
.lightbox.show{ display:flex; }
.lb-stage{ max-width:min(92vw,1100px); max-height:86vh; position:relative }
.lb-stage img{ display:block; max-width:100%; max-height:86vh; border-radius:14px; box-shadow:0 40px 110px rgba(0,0,0,.6) }
.lb-stage figcaption{ color:#e8f1ff; text-align:center; margin-top:10px; font-weight:700 }
.lb-close{
  position:absolute; top:18px; right:18px; background:#0f1c2f; border:1px solid #2a3c5c; color:#fff;
  width:44px; height:44px; border-radius:12px; cursor:pointer; font-size:18px;
}
.lb-nav{
  position:absolute; top:50%; transform:translateY(-50%); background:#0f1c2f; border:1px solid #2a3c5c; color:#fff;
  width:46px; height:46px; border-radius:12px; cursor:pointer; font-size:20px;
}
.lb-prev{ left:10px } .lb-next{ right:10px }


[data-animate]{ opacity:0; transform: translateY(24px); transition:.6s ease }
[data-animate].show{ opacity:1; transform:none }

.gallery-sliders{ max-width:1200px; margin: 8px auto 70px; padding: 0 16px }
.slider{ position:relative; display:none }
.slider.active{ display:block }

.s-wrapper{
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  background:#0f1c2f;
  border:1px solid #1b2b46;
}

.slider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;

  position: relative;
}

.s-track{
  display: grid;                 
  grid-auto-flow: column;        
  grid-auto-columns: 100%;      
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;        
}

figure, .s-slide { margin: 0; }  

.s-slide{
  width: 100%;
  min-width: 100%;
  height: auto;                     
  padding: 30px 0;                   
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.s-slide img{
  width: auto;
  height: auto;

  max-width: 90%;       
  max-height: 70vh;    

  object-fit: contain; 
  object-position: center;
  display: block;
  z-index: 2; 
}

.s-slide figcaption{
  position:absolute;
  left:16px; right:16px; bottom:12px;
  color:#eaf2ff; font-weight:700;
  text-shadow:0 6px 20px rgba(0,0,0,.65);
}

.slider.fit-cover .s-slide img{ width:100%; height:100%; object-fit:cover; }

.s-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:12px; cursor:pointer;
  background:rgba(15,28,47,.8); color:#fff; border:1px solid #2a3c5c;
  z-index:2; transition:.25s; backdrop-filter: blur(4px);
}
.s-btn:hover{ background:rgba(15,28,47,1) }
.s-prev{ left:14px } .s-next{ right:14px }

.s-dots{ display:flex; gap:8px; justify-content:center; margin:14px 0 0 }
.s-dots button{
  width:10px; height:10px; border-radius:50%; border:none; cursor:pointer;
  background:#2a3c5c; opacity:.6; transition:.2s;
}
.s-dots button.active{ background:#2f6bff; opacity:1; transform:scale(1.1) }

[data-animate]{ opacity:0; transform: translateY(24px); transition:.6s ease }
[data-animate].show{ opacity:1; transform:none }

.gallery-all{ max-width:1200px; margin: 30px auto 90px; padding: 0 16px }
.gallery-all .all-head{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between;
  margin-bottom:16px;
}
.gallery-all h2{ margin:0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color:#eaf2ff }

.all-filters{ display:flex; gap:8px; flex-wrap:wrap }
.chip2{
  background:#142338; color:#eaf2ff; border:1px solid #28456e;
  border-radius:999px; padding:8px 14px; font-weight:700; cursor:pointer; transition:.2s;
}
.chip2:hover{ background:#1a2e4a }
.chip2.active{ background:#2f6bff; border-color:#2f6bff }

.all-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
@media (max-width: 1100px){ .all-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px){ .all-grid{ grid-template-columns: repeat(2, 1fr); } }

.all-item{
  position:relative; overflow:hidden; border-radius:14px;
  background:#0f1c2f; border:1px solid #1b2b46;
  aspect-ratio: 4 / 3;     
  cursor:pointer;
}
.all-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .35s ease, filter .35s ease;
}
.all-item:hover img{ transform:scale(1.04); filter:brightness(1.02) }

