/* =========================================================
   FALCO Admisión™
   Base System v0.1
   Variables, normalización y estilos generales
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
  /* Colores institucionales */
  --falco-gold: #d4af37;
  --falco-gold-light: #ead487;
  --falco-gold-soft: rgba(212, 175, 55, 0.14);
  --falco-gold-border: rgba(212, 175, 55, 0.32);

  --falco-black: #080808;
  --falco-black-soft: #111111;
  --falco-dark: #171717;
  --falco-dark-light: #202020;

  --falco-white: #ffffff;
  --falco-ivory: #f7f4ec;
  --falco-text: #e9e6df;
  --falco-text-soft: #aaa69e;
  --falco-text-muted: #77736d;

  --falco-border: rgba(255, 255, 255, 0.09);
  --falco-surface: rgba(255, 255, 255, 0.035);
  --falco-surface-hover: rgba(255, 255, 255, 0.06);

  /* Estados */
  --falco-success: #7fac8b;
  --falco-warning: #d6ad58;
  --falco-danger: #c87373;
  --falco-info: #7d9eb9;

  /* Tipografías */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-ui: "Montserrat", Arial, sans-serif;

  /* Tamaños */
  --text-xs: 0.72rem;
  --text-sm: 0.84rem;
  --text-base: 1rem;
  --text-md: 1.08rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: 2.2rem;
  --text-3xl: clamp(2.7rem, 5vw, 5.7rem);

  /* Espaciado */
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-soft:
    0 18px 55px rgba(0, 0, 0, 0.22);

  --shadow-medium:
    0 28px 90px rgba(0, 0, 0, 0.38);

  --shadow-gold:
    0 14px 40px rgba(212, 175, 55, 0.14);

  /* Layout */
  --page-max-width: 1440px;
  --content-max-width: 1280px;
  --header-height: 94px;

  /* Transiciones */
  --transition-fast: 180ms ease;
  --transition-base: 320ms ease;
  --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   NORMALIZACIÓN
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--falco-black);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;

  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;

  color: var(--falco-text);
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(212, 175, 55, 0.08),
      transparent 42%
    ),
    var(--falco-black);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  color: var(--falco-black);
  background: var(--falco-gold);
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

:focus-visible {
  outline: 2px solid var(--falco-gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   ELEMENTOS GENERALES
========================================================= */

.admision-page {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 100vh;

  isolation: isolate;
}

.admision-main {
  position: relative;
  z-index: 2;

  display: flex;
  flex: 1;
  width: 100%;
}

.admision-container {
  width: min(
    calc(100% - 48px),
    var(--content-max-width)
  );

  margin-inline: auto;
}

.admision-section {
  position: relative;
  width: 100%;
}

/* =========================================================
   TIPOGRAFÍA INSTITUCIONAL
========================================================= */

.admision-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.admision-ui-text {
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admision-gold-text {
  color: var(--falco-gold);
}

.admision-muted-text {
  color: var(--falco-text-soft);
}

/* =========================================================
   SUPERFICIES
========================================================= */

.admision-surface {
  border: 1px solid var(--falco-border);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admision-gold-border {
  border-color: var(--falco-gold-border);
}

/* =========================================================
   ESTADOS DE INTERACCIÓN
========================================================= */

.is-disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.is-loading {
  cursor: progress;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.is-visible {
  display: block;
}

/* =========================================================
   ANIMACIONES GENERALES
========================================================= */

@keyframes admisionFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes admisionFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes admisionScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes admisionSoftPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.admision-animate-fade {
  animation:
    admisionFadeIn
    700ms ease both;
}

.admision-animate-up {
  animation:
    admisionFadeUp
    800ms var(--transition-slow) both;
}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}