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

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

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 {
  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; }

.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 6rem; 
  font-weight: 400;
  letter-spacing: -0.02em;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr; 
  gap: 5rem;
  /* El orden es: Arriba | Derecha | Abajo | Izquierda */
  /* Le pusimos 0 a la derecha para que la foto toque el borde */
  padding: 180px 0 8rem 3rem; 
  max-width: 100%; /* Quitamos el límite de 1400px para que abarque toda la pantalla */
  margin: 0; /* Quitamos el centrado automático */
}

.text-column {
  position: sticky;
  top: 150px; 
  height: max-content; 
}

.side-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.1;
}

.info-block {
  margin-bottom: 2.5rem;
}

.info-block h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.info-block p {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333333;
}

.media-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==========================================
   NUEVO: REGLA PARA LAS IMÁGENES
   ========================================== */
.media-column img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  header { flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .hero-title { font-size: 3.5rem; text-align: center; }
  
  .content-section {
    grid-template-columns: 1fr; 
    gap: 3rem;
    padding-top: 150px;
  }

  .text-column {
    position: relative; 
    top: 0;
  }

/* ... aquí viene tu código de @media para celulares ... */
@media (max-width: 900px) {
  header { flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .hero-title { font-size: 3.5rem; text-align: center; }
  
  .content-section {
    grid-template-columns: 1fr; 
    gap: 3rem;
    padding-top: 150px;
  }

  .text-column {
    position: relative; 
    top: 0;
  }
} /* <--- ESTA ES TU LÍNEA 161. EL NUEVO CÓDIGO VA DESPUÉS DE AQUÍ */

/* ==========================================
   ESTILOS DEL LINK A CASIOPEA
   ========================================== */
.link-casiopea {
  color: #333333 !important;           
  text-decoration: none !important;    
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
}

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