/* Fuentes definidas en layouts/app.blade.php usando asset() para compatibilidad con subcarpetas */

input:focus, input:active, .btn:focus,.btn:active, textarea:focus,
input:focus, *:focus {
   outline: none !important;
   box-shadow: none;
}

@font-face {
  font-family: 'HelveticaNeue';
  src: url('../fonts/Helvetica-Neue/HelveticaNeueBold.otf') format('otf'),
       url('../fonts/Helvetica-Neue/HelveticaNeueBoldItalic.otf') format('otf'),
       url('../fonts/Helvetica-Neue/HelveticaNeueLight.otf') format('otf'),
       url('../fonts/Helvetica-Neue/HelveticaNeueLightItalic.otf') format('otf'),
       url('../fonts/Helvetica-Neue/HelveticaNeueMedium.otf') format('otf'),
       url('../fonts/Helvetica-Neue/HelveticaNeueRoman.otf') format('otf');
  font-weight: 300;
  font-display: swap;
}


/* Clase para ocultar visualmente elementos pero mantenerlos accesibles para lectores de pantalla y SEO */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tema del header: cada página sobrescribe estas variables desde su clase de body */
body {
  --header-nav-color: #000;
  --header-logo-color: #000;
  --header-tbc-color: #000;
  --header-tbc-bg: #fff;
  /* Margen lateral del header en escritorio: se reduce en pantallas medianas para que el menú no choque con el logo */
  --header-gutter: clamp(24px, 9vw, 170px);
  --menu-bg: #29c4d4;
  --menu-color: #fff;
  --menu-image: url('../images/landing/dannocean_wbg_web.webp');
  --menu-image-opacity: 0.25;

  background-color: #fff;
  font-family: HelveticaNeue;
}

.body {
  height: 100vh;
}

.bg {
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-logo {
  margin: 0 210px;
}

.nav-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 40px 20px 20px;
}

.bg-dann {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
  height: 0;
  margin: 0 auto;
}

.navbar-collapse {
  justify-content: space-between;
}

.navbar-toggler {
  color: var(--header-nav-color);
  border: 0;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background-image: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath stroke='black' stroke-width='2.5' d='M1 4.5h22M1 12h22M1 19.5h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath stroke='black' stroke-width='2.5' d='M1 4.5h22M1 12h22M1 19.5h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Logo centrado en el header, independiente de lo que haya a los lados */
.header-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.navbar {
  margin: 20px 0 0 20px;
}

ul.navbar-nav {
  justify-content: left;
  flex-direction: row;
  gap: clamp(24px, 4vw, 80px);
}

.navbar-nav a {
  color: var(--header-nav-color);
  font-family: HelveticaNeue;
  text-transform: uppercase;
  font-size: 16px;
}

.navbar-nav .active {
  text-decoration: none;
  position: relative;
  font-family: HelveticaNeue;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 4px;
}

.menu a:active,
.menu a:hover,
.menu a:focus,
li:active,
li:focus,
li:hover {
  color: var(--header-nav-color);
  font-weight: bold;
}

.menu a:active {
  font-weight: bolder;
}

/* a.active:after {
  content: '';

  width: 80%;
  position: absolute;
  left: 6px;
  bottom: 4px;

  border-width: 0 0 1px;
  border-style: solid;
  border-color: #000;
} */

.header-logo {
  display: block;
  width: clamp(130px, 15vw, 284px);
  aspect-ratio: 284.436 / 33.745;
  background-color: var(--header-logo-color);
  -webkit-mask: url('../images/home/logo-oneline.svg') center / contain no-repeat;
          mask: url('../images/home/logo-oneline.svg') center / contain no-repeat;
}

.babylon-btn {
  padding: 0;
}

/* Las letras del SVG son huecos: ::before pinta el fondo que se ve a través de ellas */
.tbc-badge {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tbc-badge:hover,
.tbc-badge:focus-visible {
  transform: scale(1.06);
}

.tbc-badge::before,
.tbc-badge::after {
  content: '';
  position: absolute;
}

.tbc-badge::before {
  inset: 12%;
  border-radius: 50%;
  background-color: var(--header-tbc-bg);
}

.tbc-badge::after {
  inset: 0;
  background-color: var(--header-tbc-color);
  -webkit-mask: url('../images/home/tbc_black.svg') center / contain no-repeat;
          mask: url('../images/home/tbc_black.svg') center / contain no-repeat;
}

/* Iconos de redes sociales: el color se controla con --social-color */
.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--social-color, #000);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  transition: opacity 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  opacity: 0.6;
}

.social-link--spotify {
  -webkit-mask-image: url('../images/home/spotify.svg');
          mask-image: url('../images/home/spotify.svg');
}

.social-link--apple-music {
  -webkit-mask-image: url('../images/home/apple-music.svg');
          mask-image: url('../images/home/apple-music.svg');
}

.social-link--youtube {
  -webkit-mask-image: url('../images/home/youtube.svg');
          mask-image: url('../images/home/youtube.svg');
}

.social-link--instagram {
  -webkit-mask-image: url('../images/home/instagram.svg');
          mask-image: url('../images/home/instagram.svg');
}

.social-link--tiktok {
  -webkit-mask-image: url('../images/home/tiktok.svg');
          mask-image: url('../images/home/tiktok.svg');
}

.social-link--x {
  -webkit-mask-image: url('../images/home/x.svg');
          mask-image: url('../images/home/x.svg');
}

/* Bloque derecho del header: redes sociales + botón de The Babylon Club */
.header-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-actions .social-links {
  --social-color: var(--header-nav-color);
}

/* Entre tablet y escritorio pequeño el bloque se compacta para no pisar el logo centrado */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .header-actions {
    gap: 16px;
  }

  .header-actions .social-links {
    gap: 12px;
  }

  .header-actions .social-link {
    width: 18px;
    height: 18px;
  }

  .header-actions .tbc-badge {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .header-actions {
    gap: 12px;
  }

  .header-actions .social-links {
    gap: 10px;
  }

  .header-actions .social-link {
    width: 16px;
    height: 16px;
  }

  .header-actions .tbc-badge {
    width: 56px;
    height: 56px;
  }
}

/* Menú móvil a pantalla completa (offcanvas de Bootstrap) */
.mobile-menu.offcanvas {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: var(--menu-bg);
  color: var(--menu-color);
  transform: none;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.mobile-menu.offcanvas.showing,
.mobile-menu.offcanvas.show:not(.hiding) {
  opacity: 1;
}

/* La imagen solo se pide al abrir el menú */
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: no-repeat center top 8svh / 110% auto;
  opacity: var(--menu-image-opacity);
  pointer-events: none;
}

.mobile-menu.showing::before,
.mobile-menu.show::before {
  background-image: var(--menu-image);
}

.mobile-menu__close {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background-color: var(--menu-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath stroke='black' stroke-width='3' stroke-linecap='round' d='M4 4l32 32M36 4L4 36'/%3E%3C/svg%3E") center / 75% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath stroke='black' stroke-width='3' stroke-linecap='round' d='M4 4l32 32M36 4L4 36'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.mobile-menu__nav {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 80px 24px 40px;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__links a,
.mobile-menu__links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--menu-color);
  font-family: HelveticaNeue;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.mobile-menu__links .active {
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

.mobile-menu .social-links {
  --social-color: var(--menu-color);
  gap: 18px;
}

.mobile-menu .social-link {
  width: 17px;
  height: 17px;
}

.btn-babylon:hover {
  text-decoration: none;
  color: #fff;
}

.arrow-up {
  display: none;
}

#myBtn {
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  cursor: pointer; /* Add a mouse pointer on hover */
  background: none;
  width: 60px;
  height: 60px;
}

@media (min-width: 2300px) {
  .body {
    font-size: 1.2rem;
  }
  .btn-babylon {
    font-size: 1.2rem;
  }

  p {
    font-size: 1.2rem!important;
  }
}

/* Header con menú hamburguesa: hamburguesa a la izquierda y logo al centro.
   Las redes y The Babylon Club pasan al menú móvil (el botón sigue en el DOM porque el menú lo usa para abrir la modal). */
@media (max-width: 767.98px) {
  .nav-container {
    min-height: 88px;
    padding: 16px 24px;
  }

  .header-actions {
    display: none;
  }

  .nav-container .navbar {
    margin: 0;
    padding: 0;
  }

  .nav-container .navbar > .container {
    padding: 0;
  }

  .header-logo {
    width: 110px;
  }
}

@media (max-width: 768px) {
  ul.navbar-nav {
    gap: 0;
    flex-direction: column;
  }

  .menu a:hover,
  .menu a:focus,
  li:active,
  li:focus,
  li:hover {
    font-size: 1.5rem;
  }
  .navbar {
    position: relative;
    left: 0;
  }

  a.active:after {
    left: 0;
    width: 10%;
  }

  .bg-logo {
    margin: 0 10px;
  }

  .bg {
    height: 55vh;
    justify-content: space-evenly;
  }

  .babylon-btn-container {
    margin-top: 20px;
    border-top: 1px solid;
    padding-top: 20px;
  }

  .babylon-btn-container .btn-babylon {
    border: none;
    padding-left: 0;
  }

  .social-media {
    margin-top: 200px;
  }
  
}