/* ========== RESET & VARIABLES ========== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --brand:      #5366ad;
    --brand-dark: #3d4f96;
    --dark-bg:    #1a1a2e;
    --footer-bg:  #111122;
    --text-light: #e8e8e8;
    --accent:     #c8002c;
    --font-head:  'Exo', sans-serif;
    --max-w:      1200px;
    --header-h:   80px;
  }

  html { scroll-behavior: smooth; }
  body { font-family: var(--font-head); color: #222; background: #000; overflow-x: hidden; }
  img  { display: block; max-width: 100%; }
  a    { text-decoration: none; color: inherit; }
  ul   { list-style: none; }

  /* ========== HEADER ========== */
  #header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(83,102,173,0.3);
  }
  .header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
  }
  .logo img { height: 55px; width: auto; object-fit: contain; }
  nav ul { display: flex; gap: 4px; }
  nav ul li a {
    color: var(--text-light);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 3px;
    transition: color 0.2s;
    position: relative;
  }
  nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.2s;
  }
  nav ul li a:hover { color: #fff; }
  nav ul li a:hover::after { transform: scaleX(1); }
  nav ul li.active a { color: var(--brand); }
  nav ul li.active a::after { transform: scaleX(1); }

  /* ========== HAMBURGER ========== */
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--text-light); }
  .mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(26,26,46,0.98);
    padding: 16px 0; z-index: 998;
    flex-direction: column;
    border-top: 1px solid rgba(83,102,173,0.3);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav li a {
    display: block; padding: 12px 30px;
    color: var(--text-light); font-weight: 700;
    font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
    transition: color 0.2s, padding-left 0.2s;
  }
  .mobile-nav li a:hover { color: var(--brand); padding-left: 40px; }
  .mobile-nav li.active a { color: var(--brand); }

  /* ========================================================
     MASONRY — replicates av-masonry-col-3, 1px gap, bg #000
     ======================================================== */
  .masonry-section {
    margin-top: var(--header-h);
    background: #000;
  }

  .masonry-grid {
    column-count: 3;
    column-gap: 1px;
    background: #000;
  }

  .masonry-item {
    break-inside: avoid;
    margin-bottom: 1px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    background: #000;
    line-height: 0; /* removes phantom gap under images */
  }

  .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    transition: transform 0.45s ease, filter 0.3s ease;
  }

  .masonry-item:hover img { transform: scale(1.07); filter: brightness(0.75); }

  /* ========== GALLERY CTA BUTTONS ========== */
  .gallery-cta {
    background: #000;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px 30px;
  }
  .gallery-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    background: #b8860b;
    color: #fff !important;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    border: 2px solid #b8860b;
    line-height: 1;
    transition: background 0.3s, color 0.3s, transform 0.2s;
  }
  .gallery-cta-btn:hover {
    background: transparent;
    color: #b8860b !important;
    transform: translateY(-2px);
  }
  @media (max-width: 550px) {
    .gallery-cta { padding: 36px 20px; gap: 14px; }
    .gallery-cta-btn { flex: 1 1 140px; text-align: center; }
  }

  /* ========== LIGHTBOX ========== */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.97);
    align-items: center;
    justify-content: center;
  }
  .lightbox.open { display: flex; }

  .lb-inner {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lb-inner img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.8);
    transition: opacity 0.18s ease;
  }
  .lb-counter {
    position: absolute;
    bottom: -32px;
    left: 50%; transform: translateX(-50%);
    color: #777;
    font-size: 12px;
    letter-spacing: 2px;
    white-space: nowrap;
    font-family: var(--font-head);
  }
  .lb-close {
    position: fixed; top: 18px; right: 22px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff; font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 9001;
    font-family: var(--font-head);
  }
  .lb-close:hover { background: rgba(255,255,255,0.2); }
  .lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff; font-size: 30px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 9001;
    font-family: var(--font-head);
    line-height: 1;
  }
  .lb-nav:hover { background: rgba(255,255,255,0.2); }
  #lb-prev { left: 14px; padding-right: 2px; }
  #lb-next { right: 14px; padding-left: 2px; }

  /* ========== FOOTER dark band ========== */
  .footer-band {
    background: var(--dark-bg);
    padding: 50px 0;
  }
  .footer-band .container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
  }
  .footer-col h3 {
    font-family: var(--font-head);
    font-size: 14px; font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
  }
  .footer-col p, .footer-col li, .footer-col a {
    font-size: 13px; color: #aaa; line-height: 2;
  }
  .footer-col a:hover { color: var(--brand); }
  .footer-col .closed { color: var(--accent); font-weight: 700; }
  .footer-col .note   { font-size: 11px; color: #777; font-style: italic; margin-top: 6px; }

  /* ========== SOCKET ========== */
  .socket {
    background: var(--footer-bg);
    padding: 18px 30px;
    text-align: center; font-size: 12px; color: #555;
    letter-spacing: 1px; font-family: var(--font-head);
  }

  /* ========== WHATSAPP BUTTON (footer) ========== */
  .footer-col-whatsapp {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .whatsapp-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #b8860b;
    color: #fff !important;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    border: 2px solid #b8860b;
    line-height: 1;
    transition: background 0.3s, color 0.3s, transform 0.2s;
  }
  .whatsapp-btn:hover { background: transparent; color: #b8860b !important; transform: translateY(-2px); }
  .whatsapp-btn svg { flex-shrink: 0; width: 16px; height: 16px; }

  @media (max-width: 900px) {
    .footer-col-whatsapp { justify-content: center; }
  }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 900px) {
    nav { display: none; }
    .hamburger { display: flex; }
    .masonry-grid { column-count: 2; }
    .footer-band .container { grid-template-columns: 1fr 1fr; gap: 28px; }
  }
  @media (max-width: 550px) {
    .masonry-grid { column-count: 2; }
    .footer-band .container {
      grid-template-columns: 1fr;
      text-align: center;
      flex-direction: column;
      align-items: center;
    }
    .footer-col { width: 100%; }
    .footer-col-whatsapp { justify-content: center; }
    .badge-imgs { align-items: center; }
    #lb-prev { left: 6px; }
    #lb-next { right: 6px; }
    .lb-nav { width: 38px; height: 38px; font-size: 22px; }
  }

  /* ========== COOKIESCRIPT - BOTÓN ACEPTAR TODO ========== */
#cookiescript_accept,
.cookiescript_accept {
  background: #b8860b !important;
  border-color: #b8860b !important;
  color: #fff !important;
}

#cookiescript_accept:hover,
.cookiescript_accept:hover {
  background: transparent !important;
  color: #b8860b !important;
}