/* OVERLAY */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 4000;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  -webkit-backdrop-filter: var(--modal-backdrop-blur);
  backdrop-filter: var(--modal-backdrop-blur);
}

.about-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* MODAL
   Ancho ajustado al texto (sin espacio vacío a la derecha), con un máximo
   cómodo para leer; en celular deja 16px de margen a cada lado. */
.about-modal {
  width: fit-content;
  max-width: min(640px, calc(100vw - 32px));
  height: auto;

  /* background: #000; 
  border: 1px solid var(--border); */

  display: flex;
  flex-direction: column;

  overflow: hidden;
  position: relative;

  background: linear-gradient(145deg, #000, #0a0a0a);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--modal-halo); /* halo: ver variables.css */
}

/* HEADER */
.about-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LOGO */
.about-logo {
  grid-column: 1;
  justify-self: start;
}

.about-logo img {
  height: 30px;
  width: auto;          /* respeta la proporción original del logo */
  object-fit: contain;
}

/* TITLE */
.about-title-header {
  grid-column: 2;

  justify-self: center;   
  text-align: center;

  font-size: var(--font-size-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);

  display: inline-block; 
}

.about-title-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--details);
  margin-top: 4px;
}

/* CLOSE */
.about-close {
  justify-self: end;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* CONTENT: márgenes internos parejos a los lados y abajo (24px) */
.about-content {
  justify-self: start;
  padding: 8px 24px 24px;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TEXT */
.about-title {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: .5em;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.about-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}
