/* Estilos específicos para la página de biografía (biografia.html) */

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  position: fixed;
  margin: 0;
  padding: 0;
}


/* Header */
.header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 3px;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.active {
  opacity: 1;
  border-bottom: 2px solid #ffffff;
}

/* Contenedor principal con borde dorado */
.content-box {
  position: fixed;
  top: 10rem;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92vw;
  max-width: 1400px;
  border: 2px solid #ffffff;
  /* Borde dorado */
  border-radius: 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

/* Título */
.page-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Contenedor de las dos secciones */
.sections-container {
  display: flex;
  gap: 3rem;
  flex: 1;
  min-height: 0;
}

/* Sección izquierda - Texto */
.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1.5rem;
  padding-left: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.left-section::-webkit-scrollbar {
  width: 6px;
}

.left-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.left-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.text-content {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  width: 100%;
  box-sizing: border-box;
}

.text-content p {
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Sección derecha - Imagen */
.right-section {
  flex: 0 0 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Responsive */
/* Tablet */
@media (max-width: 968px) {
  .content-box {
    top: 7rem;
    width: 95vw;
    height: 85vh;
    padding: 2rem;
    gap: 1.5rem;
  }

  .sections-container {
    flex-direction: column;
    gap: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .left-section {
    padding-right: 0;
    max-height: 50vh;
  }

  .right-section {
    flex: 1;
    min-height: 300px;
    max-height: 400px;
  }

  .content-image {
    object-fit: cover;
  }

  .text-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .header {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    top: 1rem;
  }

  .nav {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.7rem;
  }

  .logo {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .content-box {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
    margin: 4.5rem 1rem 1rem 1rem !important;
    /* Margen superior: altura del header (~3.5rem) + margen (1rem) = 4.5rem para estar más cerca del header */
    padding: 1.5rem !important;
    border: 2px solid #ffffff !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    gap: 1rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Permitir scroll dentro de la sección */
    max-height: calc(100vh - 6.5rem) !important;
    /* Altura máxima para permitir scroll dentro */
  }

  .sections-container {
    padding: 0 !important;
    gap: 1.5rem;
  }

  .page-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 0 !important;
  }

  .left-section {
    max-height: 40vh;
    padding: 0 1rem;
  }

  .right-section {
    min-height: 250px;
    max-height: 300px;
  }

  .text-content {
    font-size: 0.85rem;
    line-height: 1.6;
  }



  .nav a[href="/index.php"] {
    display: none;
  }

}