/* GENERAL */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #333;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffffee;
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid #e5e5e5;
}

.nav-container{
    max-width: 1180px;
    margin: auto;
    padding: 0 25px;     /* antes 15px 25px */
    height: 72px;        /* barra fija */
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo-icon {
    background: #1e73be;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    margin-left: 18px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e73be;
}

/* FLOATING LANGUAGE BUTTON LEFT */
.lang-floating {
    position: fixed;
    left: 25px;
    bottom: 35px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-main-btn {
    background: #1e73be;
    color: #fff;
    padding: 12px 18px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.lang-options {
    display: none;
    flex-direction: column;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.lang-options.show {
    display: flex;
}

.lang-btn-flag {
    background: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}


/* WHATSAPP FLOATING BUTTON (RIGHT) */
.whatsapp-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-floating {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 18px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.whatsapp-menu {
    display: none;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.whatsapp-menu a {
    display: block;
    padding: 12px 16px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.whatsapp-menu a:hover {
    background: #f2f2f2;
}

/* HERO */
.gallery-hero {
    text-align: center;
    padding: 140px 20px 70px;
    background: #f4f7fb;
}

.gallery-hero h1 {
    font-size: 40px;
}

/* CATEGORY BUTTONS */
.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px auto;
    padding: 0 20px;
}

.cat-btn {
    padding: 10px 18px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    transition: .2s;
}

.cat-btn.active,
.cat-btn:hover {
    background: #1e73be;
    color: white;
    border-color: #1e73be;
}

/* GRID */
.gallery-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    padding: 30px 20px 80px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* POPUP */
.img-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.img-popup.show {
    display: flex;
}

.popup-img {
    max-width: 70%;
    max-height: 75%;
    border-radius: 12px;
}

.close-popup,
.popup-arrow {
    position: absolute;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
}

.close-popup {
    top: 30px;
    right: 40px;
}

.left-arrow {
    left: 40px;
}

.right-arrow {
    right: 40px;
}

/* RESPONSIVE */
@media (max-width: 780px) {
    .gallery-hero {
        padding-top: 110px;
    }

    .gallery-grid img {
        height: 200px;
    }
}


/* ===== HAMBURGER MENU (GALLERY) ===== */
/* BOTÓN MENÚ – 3 PUNTOS */
.nav-toggle{
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span{
  width: 6px;
  height: 6px;
  background: #2f2f2f;
  border-radius: 50%;
  transition: 0.25s;
}

/* hover */
.nav-toggle:hover span{
  background: var(--brand);
}

/* mobile */
@media (max-width: 900px){
  .nav-toggle{ display: flex; }
}


@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; }

  .nav-links{
    position: absolute;
    top: 72px;
    right: 20px;
    width: min(320px, 92vw);
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
    padding: 10px;
    display: none;
  }

  .nav-links a{
    display: block;
    margin: 0;
    padding: 12px 12px;
    border-radius: 10px;
  }

  body.nav-open .nav-links{ display: block; }

  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
}


/* Logo igual al index */
.logo-block{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo{
  height: 64px;   /* grande sin inflar la barra */
  width: auto;
  display: block;
}

.subtitle{
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

/* Barra baja (sin engordar) */
.nav-container{
  padding: 0 25px;
  height: 72px;
}

/* En móvil oculta subtítulo si falta espacio */
@media (max-width: 900px){
  .subtitle{ display: none; }
  .logo{ height: 58px; }
}
