* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #070a0f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f3ea;
  --muted: rgba(247, 243, 234, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #f6c453;
  --accent-2: #ff7a59;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(246, 196, 83, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(255, 122, 89, 0.18), transparent 28rem),
    linear-gradient(180deg, #070a0f 0%, #10141d 100%);
  color: var(--text);
}

.hero {
  min-height: 58vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 20px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  z-index: -1;
}

.hero__content {
  width: min(980px, 100%);
  text-align: center;
}

.logo {
  width: min(160px, 36vw);
  height: auto;
  display: block;
  margin: 0 auto 1.2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.kicker,
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 9vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.subtitle {
  max-width: 720px;
  margin: 1.3rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #ffe6a3);
  box-shadow: 0 14px 32px rgba(246, 196, 83, 0.22);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
}

main {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 88px;
}

.section {
  margin-top: 42px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery {
  column-count: 4;
  column-gap: 16px;
}

.photo-card {
  margin: 0 0 16px;
  break-inside: avoid;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-link {
  display: block;
  line-height: 0;
}

.photo-link img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  transition: transform 360ms ease, filter 360ms ease;
}

.photo-card:hover .photo-link img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.02);
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

figcaption a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

figcaption a:hover {
  text-decoration: underline;
}

.video-section {
  margin-top: 70px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 1500px) {
  .gallery {
    column-count: 5;
  }
}

@media (max-width: 1024px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 50vh;
  }

  .gallery {
    column-count: 2;
    column-gap: 10px;
  }

  .photo-card {
    margin-bottom: 10px;
    border-radius: 18px;
  }

  figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  main {
    width: min(100% - 20px, 1320px);
    padding-top: 22px;
  }

  .gallery {
    column-count: 1;
  }

  .section {
    margin-top: 34px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .photo-link img {
    transition: none;
  }

  .button:hover,
  .photo-card:hover .photo-link img {
    transform: none;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  outline: none;
}

.lightbox--active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__container {
  position: relative;
  width: min(1200px, 94%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox__content {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: min(72vh, 800px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 150ms ease;
  user-select: none;
}

.lightbox__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 900px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  gap: 16px;
}

.lightbox__caption {
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
}

.lightbox__download svg {
  flex-shrink: 0;
}

/* Lightbox Controls */
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 200ms ease;
  z-index: 1010;
}

.lightbox__close:hover,
.lightbox__close:focus {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
  outline: none;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 200ms ease;
  z-index: 1005;
  user-select: none;
}

.lightbox__arrow:hover,
.lightbox__arrow:focus {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

.lightbox__arrow--left {
  left: 32px;
}

.lightbox__arrow--right {
  right: 32px;
}

/* Animación de éxito para botón de compartir */
.button--success {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.22) !important;
  border-color: transparent !important;
}

/* Responsividad para Lightbox */
@media (max-width: 900px) {
  .lightbox__arrow {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .lightbox__arrow--left {
    left: 16px;
  }
  .lightbox__arrow--right {
    right: 16px;
  }
  .lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .lightbox__container {
    width: 96%;
    height: 94%;
    justify-content: center;
  }
  .lightbox__info {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
  }
  .lightbox__caption {
    font-size: 0.85rem;
    white-space: normal;
  }
  .lightbox__download {
    width: 100%;
    justify-content: center;
  }
  .lightbox__arrow {
    display: none;
  }
}

