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

body {
  background-color: #fbf8f2;
  color: #000000;
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
}

#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fbf8f2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s ease, visibility 1s ease;
}

.cipher-text {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
}

.char {
  display: inline-block;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.char.scatter-up { transform: translateY(-120vh) scale(0.6) rotate(15deg); opacity: 0; }
.char.scatter-down { transform: translateY(120vh) scale(0.6) rotate(-15deg); opacity: 0; }

#intro-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  background-color: rgba(251, 248, 242, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.header-left, nav { pointer-events: auto; }

.header-left {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-left a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 10000;
}

.header-left a:hover {
  opacity: 0.5;
}

nav { display: flex; gap: 2rem; }

nav a {
  color: #000000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 10000;
}

nav a:hover { opacity: 0.5; }

.main-content {
  display: flex;
  padding: 180px 4rem 80px 4rem; 
  min-height: 100vh;
  position: relative;
}

.charms-container {
  width: 45%;
  position: relative;
}

.charm {
  position: absolute;
  cursor: grab;
  filter: grayscale(100%); 
  transition: filter 0.3s ease, transform 0.1s, box-shadow 0.3s ease;
  object-fit: contain;
}

.charm:hover {
  filter: grayscale(0%); 
  z-index: 99;
  transform: scale(1.05);
}

.charm:active {
  cursor: grabbing;
  filter: grayscale(0%);
  transform: scale(1.05);
}

#charm1 { top: 10%; left: 20%; width: 140px; }
#charm2 { top: 30%; left: 60%; width: 80px; }

/* Estilos de los enlaces para que no sean azules */
.link-casiopea {
  color: #000000 !important;
  text-decoration: underline; /* Lo dejamos subrayado sutil para que parezca link, pero negro */
  font-family: 'Space Mono', monospace;
  transition: opacity 0.3s ease;
}

.link-casiopea:hover {
  opacity: 0.5 !important;
}

/* ==========================================
   ESTRUCTURA PRINCIPAL Y BIO
   ========================================== */
.info-container {
  width: 55%;
  display: flex;
  flex-direction: column;
  padding-left: 2rem;
  padding-top: 2rem; /* Agregamos este padding para empujar todo hacia abajo y no chocar con el menú */
}

/* ==========================================
   ESTILOS EDITORIALES (Textos y Líneas)
   ========================================== */
.bio-block {
  margin-bottom: 5rem; /* Más espacio antes de llegar a contacto */
}

.bio-block h2 {
  font-family: 'Newsreader', serif;
  font-size: 4rem; /* Título grande */
  font-weight: 400;
  color: #000000;
  margin-bottom: 2rem;
}

.bio-block p {
  font-size: 0.95rem;
  line-height: 1.8; /* Un poco más de interlineado para mejor lectura */
  margin-bottom: 0.2rem;
  max-width: 85%; /* Acotamos el ancho para que no se superponga con el menú flotante de la derecha */
}

.editorial-divider {
  border: 0;
  border-top: 1px solid #000000;
  margin-top: 0rem;
  margin-bottom: 3rem;
  width: 100%;
}

.dotted-divider {
  border: 0;
  border-top: 1px dashed #cccccc;
  margin: 0.5rem 0 1.5rem 0;
}

/* ==========================================
   GRILLA DE DATOS (Competencias y Experiencia)
   ========================================== */
.data-grid {
  display: grid;
  /* Creamos 2 sub-columnas dentro del lado derecho */
  grid-template-columns: 1fr 1fr; 
  gap: 3rem;
  margin-bottom: 3rem;
}

.data-title {
  font-family: 'Newsreader', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.data-list, .data-bullet-list {
  list-style: none;
}

.data-list li {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  /* El secreto para que no se corte: */
  word-break: normal; 
  overflow-wrap: break-word;
}

.data-bullet-list {
  padding-left: 1rem;
}

.data-bullet-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  color: #333333;
}

.data-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.data-role {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  margin-top: 0rem;
  max-width: 85%;
  /* Asegúrate de que NO haya ningún "border-top" aquí */
}

.contact-section .side-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.contact-links p {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
}

.contact-left {
  flex: 1;
}

.contact-right {
  flex: 1.5;
  text-align: right;
}

.ai-declaration {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #666666;
  line-height: 1.6;
  text-align: left; /* Aseguramos que la declaración esté alineada a la izquierda */
}

/* Ajustes Responsivos */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    padding-top: 150px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .charms-container {
    width: 100%;
    height: 350px;
  }
  
  .info-container {
    width: 100%;
    padding-left: 0;
  }
  
  .data-grid {
    grid-template-columns: 1fr; /* Una columna en celular */
    gap: 2rem;
  }
  
  .contact-section {
    flex-direction: column;
  }
  
  .contact-right {
    text-align: left;
  }
}
@media (max-width: 900px) {
  .main-content {
    padding: 150px 2rem 80px 2rem; 
  }
  
  .data-grid {
    grid-template-columns: 1fr; /* Pasa a 1 sola columna */
    gap: 3rem;
  }
  
  .bio-section h2 {
    font-size: 3rem;
  }
}