@font-face {
  font-family: 'TravelingTypewriter';
  /* Asegúrate de que la ruta sea correcta */
  src: url('fonts/TravelingTypewriter.ttf') format('truetype');
}

/* ESTILOS BASE / FONDO */
body {
  margin: 0;
  font-family: "TravelingTypewriter"; /* Fallback añadido */
  background-color: #fbf8ef; 
  color: #1a1a1a; /* Negro tinta, no negro puro #000 para realismo */
  line-height: 1.4;
}

/* HEADER */
.page-header {
  text-align: center;
  margin: 4rem 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1.4px solid #333; /* Línea de corte opcional bajo el título */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  color: #b83228;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 2px;
}

.page-header h2 {
  font-size: 1.1rem;
  font-weight: normal;
  opacity: 0.8;
}

/* LAYOUT GENERAL */
.layout {
  display: flex;
  gap: 4rem; /* Más espacio entre columna y contenido */
  max-width: 1000px;
  margin: auto;
  padding: 0 2rem 4rem;
  align-items: flex-start;
}

/* COLUMNA IZQUIERDA */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  text-align: left; /* Alineación a la izquierda estilo máquina */
}

/* CONTENIDO CENTRAL */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* SECCIONES DE MÁQUINA DE ESCRIBIR (Reemplaza a .box) */
.typewriter-section {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  transform: none !important; /* Forza quitar rotaciones anteriores */
}

/* EL SEPARADOR (---) */
/* Esto añade los guiones automáticamente entre cualquier sección */
.typewriter-section + .typewriter-section {
  margin-top: 2rem;
  padding-top: 2rem;
  position: relative;
}

.typewriter-section + .typewriter-section::before {
  content: "  "; /* Los tres guiones */
  display: block;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #333;
  font-weight: bold;
  letter-spacing: 5px; /* Espacio entre los guiones */
}

/* TÍTULOS */
h3 {
   color: #b83228;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: lowercase; /* Opcional: estilo estético */
  font-weight: bold;
  border-bottom: 1px solid transparent; /* Espacio reservado */
}

/* TEXTO */
p {
  text-align: justify; /* Mantenido como pediste */
  margin-bottom: 1rem;
}

/* LISTAS */
ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

li {
  margin-bottom: 0.5rem;
}

/* Bullet points personalizados */
ul li::before {
  content: "* ";
  margin-right: 5px;
}

/* ENLACES */
a {
  color:#314f4a;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  font-style: italic;
}

a:visited {
  text-decoration: none;
  color: #b83228;
}

/* SECCIÓN ABOUT ME */
.about-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

/* RESPONSIVE (Móvil) */
@media (max-width: 700px) {
  .layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .sidebar {
    width: 100%;
    border-bottom: 1px dashed #333;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
  
  /* En móvil, que el separador de la sidebar no se confunda */
  .sidebar .typewriter-section + .typewriter-section::before {
    content: "* * *"; 
  }
}