/* =========================================
   14. IDENTIDAD Y APERTURA
   ========================================= */

.marca-punto {
  color: var(--arena);
}

.apertura {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;
  padding: 24px;

  background: var(--cafe);
  color: var(--crema);
  pointer-events: none;

  animation: retirar-apertura 650ms ease 1400ms forwards;
}

/* Esta regla permite que JavaScript cierre la apertura. */
.apertura[hidden] {
  display: none !important;
}

.apertura-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  animation: presentar-marca 650ms ease both;
}

.apertura-monograma {
  font-family: var(--fuente-titulos);
  font-size: clamp(72px, 12vw, 112px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.apertura-linea {
  width: 54px;
  height: 1px;
  margin: 26px 0;
  background: var(--arena);

  animation: extender-linea 650ms ease both;
}

.apertura-nombre {
  font-family: var(--fuente-titulos);
  font-size: 24px;
  line-height: 1.3;
}

.apertura-descripcion {
  margin-top: 12px;
  color: var(--arena);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@keyframes presentar-marca {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes extender-linea {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes retirar-apertura {
  from {
    opacity: 1;
    visibility: visible;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apertura {
    display: none !important;
  }
}