* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #d8a13a;
  --gold-dark: #ba8126;
  --ink: #14110f;
  --soft-ink: #3c3129;
  --cream: #f6eee7;
  --white: #ffffff;
  --shadow: 0 8px 18px rgba(68, 48, 36, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: #e6d1c5;
  font-family: "Poppins", sans-serif;
}

.header {
  width: 100%;
  min-height: 96px;
  padding: 0 5%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 112px;
  height: auto;
  display: block;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-left: 14px;
}

.nav a {
  color: #12100f;
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.menu-btn {
  margin-left: auto;
  display: none;
  background: none;
  border: 0;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 32px;
}

.gallery-page {
  min-height: calc(100vh - 96px);
  padding: 48px 4% 78px;
  background:
    linear-gradient(rgba(248, 243, 239, 0.78), rgba(248, 243, 239, 0.78)),
    url("../img/galeria/fondo.png") top right / min(520px, 48vw) auto no-repeat,
    linear-gradient(180deg, #f8f3ef 0%, #f2e9e2 74%, #e5d0c4 100%);
}

.gallery-hero {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.gallery-hero h1 {
  color: #050505;
  font-family: "Playfair Display", serif;
  font-size: clamp(54px, 6.5vw, 78px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.title-divider {
  width: min(270px, 70%);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 16px;
}

.title-divider span,
.heading-line {
  height: 2px;
  background: var(--gold);
}

.title-divider img {
  width: 42px;
  height: 32px;
  object-fit: contain;
}

.videos-section {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.section-heading {
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: 64px auto minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
}

.heading-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 12px rgba(68, 48, 36, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.heading-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-heading h2 {
  color: #050505;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.heading-line {
  max-width: 260px;
}

.videos-grid {
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}

.video-card {
  min-width: 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #d8c7ba;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card h3 {
  margin: 12px 0 2px;
  color: var(--soft-ink);
  font-family: "Poppins", sans-serif;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 600;
  line-height: 1.18;
}

@media (max-width: 950px) {
  .header {
    min-height: 72px;
    padding: 8px 5%;
  }

  .logo img {
    width: 88px;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    flex: none;
    margin-left: 0;
    justify-content: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 30px;
  }

  .gallery-page {
    min-height: calc(100vh - 72px);
    padding: 38px 4.5% 54px;
    background:
      linear-gradient(rgba(248, 243, 239, 0.84), rgba(248, 243, 239, 0.84)),
      url("../img/galeria/fondo.png") top right / min(360px, 70vw) auto no-repeat,
      linear-gradient(180deg, #f8f3ef 0%, #f2e9e2 74%, #e5d0c4 100%);
  }

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-hero {
    margin-bottom: 30px;
  }

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

  .section-heading {
    grid-template-columns: 50px auto 1fr;
    gap: 12px;
  }

  .heading-icon {
    width: 46px;
    height: 46px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
