/*!
 * PATE · Hero motion — estilos del componente (v1.0)
 * Todo está encapsulado bajo el prefijo .phm
 *
 * COLORES Y TIPOGRAFÍAS EDITABLES → variables de .phm (abajo).
 * Las rutas de las fuentes son relativas a este archivo.
 */

@font-face {
  font-family: 'PHM Archivo';
  src: url('fonts/archivo-variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'PHM Fira';
  src: url('fonts/fira-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PHM Fira';
  src: url('fonts/fira-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.phm {
  /* ── Paleta de marca ─────────────────────────────── */
  --phm-violeta: #21126D;
  --phm-verde:   #0FEBC3;
  --phm-rosa:    #E7ACE4;
  --phm-blanco:  #FFFFFF;
  /* ── Tipografías ─────────────────────────────────── */
  --phm-font-display: 'PHM Archivo', 'Archivo', system-ui, sans-serif;
  --phm-font-text:    'PHM Fira', 'Fira Sans', system-ui, sans-serif;
  /* ── Proporción reservada (evita saltos de carga) ── */
  --phm-ratio: 16 / 9;
  --phm-ratio-sm: 1 / 1;
  --phm-radius: 0px;

  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--phm-ratio);
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--phm-radius);
  background: var(--phm-violeta);
  color: var(--phm-blanco);
  font: 400 16px/1 var(--phm-font-text);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 640px) {
  .phm { aspect-ratio: var(--phm-ratio-sm); }
}
.phm *, .phm *::before, .phm *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  float: none;
  background: none;
  box-shadow: none;
  text-shadow: none;
  font-style: normal;
  text-decoration: none;
}

/* Escenario: sin JS ocupa todo el contenedor; con JS toma medidas virtuales */
.phm-stage {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.phm--js .phm-stage { inset: auto; left: 0; top: 0; }

/* Logo original (estado final / alternativa estática) */
.phm .phm-logo {
  position: absolute;
  left: 7%;
  top: 7%;
  width: 86%;
  height: 86%;
  display: block;
  overflow: visible;
}
.phm--js .phm-logo { left: 0; top: 0; }

/* Elementos generados */
.phm-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.phm-el {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  backface-visibility: hidden;
}
.phm .phm-t {
  font-family: var(--phm-font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-synthesis: none;
  font-kerning: normal;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-transform: uppercase;
  color: inherit;
}
.phm .phm-l { display: inline-block; position: relative; }
.phm .phm-mask { overflow: hidden; }
.phm .phm-corner { border-color: var(--phm-blanco); border-style: solid; border-width: 0; }
.phm .phm-tc {
  font-family: var(--phm-font-text);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--phm-blanco);
}
.phm .phm-tc b { font-weight: 500; color: var(--phm-verde); }
.phm .phm-measure { position: absolute; left: 0; top: 0; visibility: hidden; }

/* Control pausa / reproducción */
.phm .phm-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(33, 18, 109, .74);
  color: var(--phm-blanco);
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease, background-color .2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.phm .phm-toggle[hidden] { display: none; }
.phm .phm-toggle:hover, .phm .phm-toggle:focus-visible { opacity: 1; background: rgba(33, 18, 109, .92); }
.phm .phm-toggle:focus { outline: none; }
.phm .phm-toggle:focus-visible { outline: 2px solid var(--phm-verde); outline-offset: 2px; }
.phm .phm-toggle svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.phm .phm-toggle .phm-i-play { display: none; }
.phm.phm--paused .phm-toggle .phm-i-play { display: block; }
.phm.phm--paused .phm-toggle .phm-i-pause { display: none; }
.phm .phm-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 640px) {
  .phm .phm-toggle { right: 8px; bottom: 8px; width: 40px; height: 40px; }
}
