@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --bg-main: #d9dee6;
  --bg-alt: #c6ccd6;
  --surface: #f5f7fa;
  --hero-image: url('images/portadaweb.jpg');
  --hero-overlay: linear-gradient(110deg, rgba(10, 12, 16, 0.26), rgba(10, 12, 16, 0.78));
  --main-bg-image: url('images/portadaweb.jpg');
  --main-bg-overlay: linear-gradient(160deg, rgba(10, 12, 16, 0.28), rgba(245, 247, 250, 0.42));
  --ink: #0f1217;
  --ink-soft: #4e5664;
  --accent: #3aa8ff;
  --accent-2: #7f8795;
  --line: #c5ccd7;
  --shadow: 0 12px 35px rgba(31, 36, 48, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(53, 60, 72, 0.12), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(20, 24, 32, 0.1), transparent 40%),
    linear-gradient(180deg, var(--bg-main), #eef2f6);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

main section,
.site-footer {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
}

.site-header {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  margin-top: 0.8rem;
  padding: 1rem 1rem 2rem;
  border-radius: calc(var(--radius-lg) + 8px);
  overflow: hidden;
  isolation: isolate;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-overlay), var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(9, 10, 14, 0.3));
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.5);
  backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.main-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  color: #fff;
}

.to-top {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 12, 16, 0.65);
  color: #f5f7fa;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.to-top:hover {
  transform: translateY(-2px);
  background: rgba(10, 12, 16, 0.82);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero {
  margin-top: auto;
  margin-left: auto;
  width: min(540px, 95%);
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  animation: fade-slide 680ms ease both;
}

.hero-kicker {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #e5e8ed;
  color: #2e3541;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin-top: 0;
  font-family: 'Bebas Neue', sans-serif;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.hero-text {
  max-width: 42ch;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.84rem, 1.8vw, 0.98rem);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  background: rgba(255, 255, 255, 0.92);
  color: #1b1f2a;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  background: #fff;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

main {
  position: relative;
  isolation: isolate;
  padding-top: 0.2rem;
  padding-bottom: 2.8rem;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 8px);
  background-image: var(--main-bg-overlay), var(--main-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

main section {
  margin-top: 1.6rem;
  padding: clamp(1.2rem, 3.2vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(245, 247, 250, 0.9);
  backdrop-filter: blur(2px);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.about p + p {
  margin-top: 1.1rem;
}

.release-grid,
.gallery-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 1rem;
}

.release-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.release-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, var(--bg-main));
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.release-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.release-card h3 {
  margin-bottom: 0.4rem;
}

.release-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.release-card a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.history-list {
  margin-top: 0.8rem;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.history-list li {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 0.72rem 0.9rem;
}

.history-list time {
  font-weight: 800;
  color: var(--accent-2);
}

.video-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 1023px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, var(--bg-main));
  padding: 0;
  overflow: hidden;
}

.video-card h3 {
  margin: 0;
  padding: 0.9rem 0.9rem 0.6rem;
}

.video-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 18 / 9;
  border: 0;
  border-radius: 0;
  background: #000;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 18 / 9;
  background: #000;
}

.video-player iframe,
.video-cover {
  position: absolute;
  inset: 0;
}

.video-cover {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #0e1116;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
}

.video-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.22));
}

.video-cover-play,
.video-cover-text {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
}

.video-cover-play {
  top: 50%;
  transform: translate(-50%, -55%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.video-cover-text {
  bottom: 0.85rem;
  color: #f5f7fa;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.video-player iframe {
  opacity: 0;
  pointer-events: none;
}

.video-player.is-playing iframe {
  opacity: 1;
  pointer-events: auto;
}

.video-player.is-playing .video-cover {
  opacity: 0;
  pointer-events: none;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery figure {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.75rem 0.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.social-links {
  margin-top: 0.8rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-links a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: #fff;
}

.social-links a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.site-footer {
  margin-top: 1rem;
  margin-bottom: 1.7rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .to-top {
    top: 0.7rem;
    right: 0.7rem;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
  }

  .site-header {
    min-height: 100dvh;
    padding: 0.8rem 0.85rem 1.2rem;
  }

  .main-nav {
    position: relative;
    border-radius: var(--radius-md);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(16, 16, 20, 0.95);
    backdrop-filter: blur(6px);
    z-index: 10;
  }

  .main-nav.is-open .nav-links {
    display: flex;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .btn {
    flex: 0 1 auto;
    min-width: 150px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    width: 100%;
    margin-inline: 0;
    border-radius: 0;
    padding-inline: 0;
  }

  .main-nav {
    width: min(var(--max-width), 92vw);
    margin-inline: auto;
  }

  .hero {
    margin-right: max(4vw, 2.2rem);
  }
}
