:root {
  color-scheme: light;
  --bg-start: #ffffff;
  --bg-end: #f5f5f5;
  --accent: #111111;
  --text: #111111;
  --text-muted: #555555;
  --header-height: 60px;
  font-family: "Inter", "Segoe UI", sans-serif;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(var(--bg-start), var(--bg-end));
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* ▸ navegación */
.navigation {
  position: sticky;
  top: 0;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
  z-index: 100;
  background: var(--bg-start);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-logo .logo-image {
  height: clamp(36px, 7vw, 52px);
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  position: static;
  color: inherit;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.mobile-social-links {
  display: none;
}

/* ▸ botón hamburguesa / X */
.mobile-menu-btn {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
  z-index: 10001;
}

.mobile-menu-btn.open {
  background: #111;
  position: fixed;
  top: clamp(1.5rem, 6vw, 2.2rem);
  right: clamp(1.5rem, 6vw, 2.2rem);
}

.mobile-menu-btn .hamburger-line {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2.5px;
  background: #111;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.32s ease, opacity 0.24s ease, background 0.3s ease, top 0.3s ease;
}

.mobile-menu-btn .hamburger-line:nth-child(1) { top: 19px; }
.mobile-menu-btn .hamburger-line:nth-child(2) { top: 27px; }
.mobile-menu-btn .hamburger-line:nth-child(3) { top: 35px; }

.mobile-menu-btn.open .hamburger-line {
  background: #fff;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  top: 27px;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  top: 27px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ▸ layout principal */
main {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
}

.content {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vw, 8rem);
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section:first-child {
  opacity: 1;
  transform: translateY(0);
}

.content-section:first-child .video-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section:has(.paragraph) {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible .video-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paragraph {
  opacity: 1;
  transform: translateY(0);
  color: var(--text);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 900px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  transition: transform 0.8s ease, opacity 0.8s ease, color 0.3s ease;
}

.content-section:has(.logo-container) .paragraph {
  margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
  padding-bottom: 0;
}

.paragraph img {
  display: inline-block;
  vertical-align: middle;
  height: 1.2em;
  width: auto;
  margin: 0 0.3em;
  object-fit: contain;
}

.logo-container {
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible .logo-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.content-section:has(.logo-container) {
  gap: clamp(0.5rem, 1vw, 1rem);
}

.bysible-logo {
  display: block;
  height: clamp(4.5rem, 12vw, 8rem);
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.cta-container a{
  text-decoration: none;
}

.cta-section {
  padding: clamp(1rem, 2vw, 1.5rem) 0 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Asegurar que el botón sea visible si el observer no lo detecta */
.cta-section:last-child {
  min-height: 100px;
}

.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  width: 100%;
  text-decoration: none;
}

.cta-container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta-button {
  display: inline-block;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(2.5rem, 6vw, 3.5rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #24e80b;
  border: 2px solid #24e80b;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.cta-button:hover {
  background: #1fd309;
  border-color: #1fd309;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 232, 11, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* ▸ overlay móvil */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    color: #fff;
    flex-direction: column;
    gap: clamp(1.4rem, 5vw, 2.5rem);
    padding: clamp(3.5rem, 10vw, 5rem) 2rem 3rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .video-wrapper {
    height: auto;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cta-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    text-align: center;
  }

  .cta-button {
    width: 100%;
    max-width: 90%;
  }


  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .mobile-social-links {
    display: grid;
    gap: 0.85rem;
    margin-top: clamp(1rem, 4vw, 1.5rem);
  }

  .social-title {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
  }

  .social-icons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
  }

  .social-link {
    color: inherit;
    font-size: 1.4rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  main {
    padding: clamp(1rem, 4vw, 2rem) clamp(0.5rem, 2vw, 1rem);
  }

  .content {
    padding: clamp(2rem, 5vw, 4rem) clamp(0.75rem, 2vw, 1.25rem);
    gap: clamp(4rem, 8vw, 6rem);
    width: 100%;
  }

  .content-section {
    gap: clamp(1.2rem, 3vw, 2rem);
    width: 100%;
  }

  .video-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .paragraph {
    max-width: 100%;
    width: 100%;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 350;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 901px) {
  .mobile-menu-btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .content {
    gap: clamp(6rem, 12vw, 10rem);
  }

  .content-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: center;
    text-align: left;
  }

  /* Secciones impares: texto a la izquierda, video a la derecha */
  .content-section:nth-child(odd) {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .content-section:nth-child(odd) .paragraph {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .content-section:nth-child(odd) .video-wrapper {
    grid-column: 2;
    grid-row: 1;
  }

  .content-section:nth-child(odd):has(.logo-container) {
    grid-template-rows: auto;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .content-section:nth-child(odd):has(.logo-container) .paragraph {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 80px;
    padding: 0;
    line-height: 1;
    display: block;
  }

  .content-section:nth-child(odd) .logo-container {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    justify-content: flex-start;
    display: flex;
    align-items: flex-start;
    margin: 0;
    margin-top: 0.1em;
    position: relative;
    top: 0.2em;
  }

  /* Secciones pares: video a la izquierda, texto a la derecha */
  .content-section:nth-child(even) {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .content-section:nth-child(even) .video-wrapper {
    grid-column: 1;
    grid-row: 1;
  }

  .content-section:nth-child(even) .paragraph {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .content-section:nth-child(even):has(.logo-container) {
    grid-template-rows: auto;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .content-section:nth-child(even):has(.logo-container) .paragraph {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
    text-align: right;
  }

  .content-section:nth-child(even) .logo-container {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    justify-content: flex-end;
    display: flex;
    align-items: flex-start;
    margin: 0;
    margin-top: 0.1em;
    position: relative;
    top: 0.2em;
  }

  /* Sección sin párrafo (solo video) - centrar */
  .content-section:not(:has(.paragraph)):not(.cta-section) {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr;
  }

  .content-section:not(:has(.paragraph)):not(.cta-section) .video-wrapper {
    grid-column: 1;
    grid-row: 1;
    max-width: 1200px;
  }

  /* Sección CTA - centrar */
  .content-section.cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    max-width: 1200px;
    width: 100%;
  }

  .video-wrapper video {
    object-fit: contain;
  }

  .paragraph {
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.1;
  }

  .content-section:has(.logo-container) .paragraph {
    line-height: 0.9;
    padding: 0;
    margin-bottom: clamp(-2.5rem, -3.5vw, -1.8rem);
  }

  .content-section:nth-child(even) .paragraph {
    justify-content: flex-end;
  }

  .logo-container {
    display: flex;
    align-items: flex-start;
    margin-top: clamp(-2rem, -3vw, -1.2rem);
  }

  .content-section:has(.logo-container) {
    grid-template-rows: auto auto;
    row-gap: clamp(-3rem, -4vw, -2rem);
  }

  .content-section:has(.logo-container) .logo-container {
    margin-top: clamp(6rem, -4vw, -2rem);
  }
}

@media (min-width: 401px) {
  .content {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    gap: clamp(4rem, 8vw, 7rem);
  }
}

@media (max-width: 400px) {
  .content {
    padding: clamp(1.5rem, 4vw, 2rem) clamp(0.5rem, 1.5vw, 1rem);
    gap: clamp(3rem, 6vw, 5rem);
    width: 100%;
  }

  .content-section {
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .video-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border-radius: 15px;
    aspect-ratio: auto;
    height: auto;
  }

  .video-wrapper video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
  }
}

