:root {
  --tvg-primary: #2f4e9a;
  --tvg-primary-dark: #1e3568;
  --tvg-accent: #1075a0;
  --tvg-gold: #f0b429;
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #eef1f7;
  --gray-600: #5a6478;
  --shadow-sm: 0 0.4rem 1.2rem rgba(24, 37, 74, 0.08);
  --shadow-md: 0 1.2rem 3.2rem rgba(24, 37, 74, 0.14);
  --shadow-lg: 0 2rem 6rem rgba(24, 37, 74, 0.22);
  --radius-sm: 0.8rem;
  --radius-md: 1.6rem;
  --radius-lg: 2.4rem;
  --radius-full: 999rem;
  --transition: 0.25s ease;
  --max-width: 120rem;
  --header-height: 7rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  font-family: "Rubik", system-ui, sans-serif;
  background-color: var(--gray-50);
  color: #1a2233;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── HEADER ── */
.header {
  position: relative;
  margin-bottom: 0;
  background-color: var(--gray-50);
}

.header-hero {
  position: relative;
  width: 100%;
  line-height: 0;
  background-color: #1a2d52;
}

.header-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248, 249, 252, 0.35) 55%,
    var(--gray-50) 100%
  );
  pointer-events: none;
}

.header-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 769px) {
  .header-banner {
    max-height: clamp(28rem, 42vw, 64rem);
    object-fit: cover;
    object-position: center center;
  }
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--tvg-primary);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem clamp(1.6rem, 4vw, 4rem);
  min-height: var(--header-height);
  gap: 1.6rem;
}

.img-logo {
  height: clamp(4.4rem, 8vw, 6rem);
  width: auto;
  margin: 0;
  filter: drop-shadow(0 0.2rem 0.4rem rgba(0, 0, 0, 0.15));
  transition: transform var(--transition);
}

.img-logo:hover {
  transform: scale(1.03);
}

.img-tvgmagazine {
  width: auto;
  height: clamp(2.8rem, 5vw, 4.2rem);
  margin: 0;
  object-fit: contain;
}

/* Hidden legacy hero — kept for structure */
.header-content {
  display: none;
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 1;
}

.magazine-section {
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: clamp(2.4rem, 5vw, 5rem) clamp(1.6rem, 4vw, 3.2rem) 0; */
  padding: clamp(2.4rem, 5vw, 5rem) clamp(1.6rem, 4vw, 3.2rem) clamp(2.4rem, 5vw, 5rem);
}

.section-intro {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.6rem);
}

.section-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--tvg-primary), var(--tvg-accent));
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.section-intro__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--tvg-primary-dark);
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.section-intro__subtitle {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--gray-600);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
}

/* En móvil el banner ya muestra título y eslogan */
@media (max-width: 768px) {
  .section-intro {
    display: none;
  }

  .magazine-section {
    padding-top: 1.6rem;
  }
}

.magazine-table {
  display: flex;
  justify-content: center;
  width: 100%;
}

.magazine-container {
  position: relative;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #0d1117;
  border: 0.3rem solid var(--white);
  outline: 0.1rem solid rgba(47, 78, 154, 0.12);
}

.magazine-container::before {
  content: "";
  display: block;
  padding-top: 75%;
}

.magazine-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .magazine-container::before {
    padding-top: 130%;
  }
}

@media (max-width: 480px) {
  .magazine-container {
    border-radius: var(--radius-sm);
    border-width: 0.2rem;
  }

  .magazine-container::before {
    padding-top: 145%;
  }
}

/* ── DOWNLOAD BUTTON ── */
.btn-container {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.6rem, 4vw, 3.2rem);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--tvg-primary) 0%, var(--tvg-accent) 100%);
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(2.4rem, 6vw, 4rem);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0.6rem 2rem rgba(47, 78, 154, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  width: 100%;
  max-width: 38rem;
}

.btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 1rem 3rem rgba(47, 78, 154, 0.45);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 0.3rem solid var(--tvg-gold);
  outline-offset: 0.3rem;
}

.btn svg {
  width: clamp(2.4rem, 5vw, 3.2rem);
  height: clamp(2.4rem, 5vw, 3.2rem);
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: linear-gradient(160deg, var(--tvg-primary-dark) 0%, var(--tvg-primary) 100%);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.6rem, 4vw, 3.2rem);
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

.text-footer {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  line-height: 1.7;
  margin: 0;
  max-width: 70rem;
}

.span-footer {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.span-footer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.span-footer a:hover {
  opacity: 0.85;
}

.logo-footer {
  height: clamp(6rem, 10vw, 9rem);
  width: auto;
  margin: 0;
  opacity: 0.95;
  flex-shrink: 0;
}

/* ── UTILITIES ── */
.wvbwC {
  display: block !important;
}
