/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-color: black;
  color: white;
  overflow: hidden;
}

/* ------------------------- INICIO - INTRO PAGE ------------------------- */
.intro {
  background-image: url('../assets/images/background_index.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

.overlay {
  background: rgba(46, 45, 45, 0.25);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  font-size: 5vw;
  border: 3px solid white;
  display: inline-block;
  width: 80%;
  padding: 10px 30px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.webdoc {
  max-width: 70%;
  font-size: 1.2em;
  margin: 25px auto;
  line-height: 1.5em;
}

.btn {
  text-align: center;
  display: inline-block;
  margin: 25px auto;
  padding: 5px 10px;
  background-color: white;
  color: black;
  font-weight: bold;
  font-size: 2.3em;
  text-decoration: none;
  transition: 0.3s;
  word-wrap: break-word;
}

.btn:hover {
  background-color: #ddd;
}

.nota {
  font-style: italic;
  font-size: 1em;
  margin: 25px auto;
}

/* ------------------------- FOOTER ------------------------- */
footer.footer-grid {
  background: rgba(165, 165, 165, 0.85);
  display: flex;
  justify-content: space-between;
  padding: 10px 40px;
  font-size: 1em;
  gap: 25px;
}

.footer-grid .col {
  flex: 1;
  max-width: 50%;
}

.footer-grid .col p {
  margin: 0;
  line-height: 1.2em;
  font-size: 0.8em;
  padding-bottom: 5px;
}

.footer-grid a {
  color: #ddd;
  text-decoration: underline;
}

.footer-grid a:hover {
  color: white;
}

.col2 {
  text-align: right;
}

#side-panel em {
  font-style: italic !important;
}

/* ------------------------- TRANSITION PAGE ------------------------- */
.transition-page {
  background-color: black;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Helvetica Neue', sans-serif;
  overflow: hidden;
}

.transition-container {
  text-align: center;
}

.quote {
  font-size: 1.2em;
  text-align: center;
  font-style: italic;
  max-width: 80%;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.5s;
}

.arrow {
  font-size: 6em;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 2s;
  transition: transform 0.3s;
}

.arrow:hover {
  transform: scale(1.2);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ------------------------- PANEL LATERAL ------------------------- */

#panel-content i,
#panel-content em {
  font-style: italic !important;
}

/* PANEL LATERAL */
/* Panel: solo slide con transform */
#side-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100vh;
  background: rgba(80, 80, 80, 0.95);
  overflow-y: auto;
  z-index: 20;
  padding: 20px;

  transform: translateX(100%);
  /* fuera a la derecha */
  pointer-events: none;
  /* sin clicks cuando está fuera */
  transition: transform 0.4s ease;
  will-change: transform;
}

#side-panel.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Oculto del DOM para el estado inicial y tras cerrar */
#side-panel.hidden {
  display: none;
}

/* Mantén tu fadeUp al abrir si quieres */
#side-panel.active #panel-content>* {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#panel-content h2 {
  font-size: 2em;
  margin-top: 1em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

#panel-content p {
  text-align: justify;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Solo usamos el fade para el contenido al entrar */
#panel-content {
  opacity: 1;
}

#panel-content strong {
  font-weight: bold;
  color: #f2f2f2;
}

#panel-content blockquote {
  font-style: italic;
  margin: 1em 0;
  padding-left: 0;
  border-left: none;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 30;
  transition: transform 0.2s ease;
  transform-origin: center center;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  opacity: 0.6;
}

/* ------------------------- MENU GRID ------------------------- */

.bio-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: black;
  color: white;
  border: 1px solid white;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
}

.fondo-negro {
  background-color: black;
  cursor: default;
}

/* Estado normal */
#app {
  display: block;
}

#mobile-block {
  display: none;
}

/* Cuando está bloqueado por móvil */
.blocked #app {
  display: none;
}

.blocked #mobile-block {
  background-image: url('../assets/images/background_index.jpg');
  background-size: cover;
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  padding: 24px;
  background: #0d0d0d 0.3;
  color: #fff;
  text-align: center;
}

#mobile-block .mbox {
  max-width: 600px;
  line-height: 1.6;
}

#mobile-block h1 {
  margin: 0 0 2rem;
  font-size: 8vw;
  border: 3px solid white;
  display: inline-block;
  width: 80%;
  padding: 10px 30px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

#mobile-block a {
  color: white;
}

#mobile-block p {
  margin: 0 0 2rem;
  font-size: clamp(16px, 2.8vw, 20px);
}