/* ============================================================
   BASE.CSS
   Tokens, reset, tipografia y estilos base globales
   ============================================================ */

/* ---- 1. Variables globales ---- */
:root {
  --color-primary: #ff0000;
  --color-primary-dark: #c90026;
  --color-black: #000000;
  --color-white: #ffffff;

  --color-text: #1f2933;
  --color-text-muted: #666666;
  --color-text-soft: #868686;

  --color-border: #b8b8b8;
  --color-border-light: #d0d5dd;
  --color-border-subtle: #e5e7eb;
  --color-border-contrast: #666666;

  --color-surface: #ffffff;
  --color-surface-muted: #f3f3f3;
  --color-surface-soft: #f2f4f7;
  --color-surface-dark: #111111;

  --color-success: #009b0f;
  --color-error: #e7112d;
  --color-warning: #f19307;
  --color-info: #213e96;
  --color-disabled: #9ca3af;

  --font-body: 'HankenGrotesk Regular', sans-serif;
  --font-semibold: 'HankenGrotesk SemiBold', sans-serif;
  --font-bold: 'HankenGrotesk Bold', sans-serif;
  --font-black: 'HankenGrotesk Black', sans-serif;
  --font-display: 'Montecatini Pro Normale', sans-serif;

  --fs-xs: 1.1rem;
  --fs-sm: 1.2rem;
  --fs-base: 1.4rem;
  --fs-md: 1.6rem;
  --fs-lg: 1.8rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.4rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;
  --fs-5xl: 5rem;
  --fs-6xl: 7.2rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-panel: 1px 1px 15px #333333;

  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
  --transition-slow: 0.5s ease;

  --z-header: 4;
  --z-overlay: 5;
  --z-loader: 100;
  --z-navbar: 1000;
  --z-modal: 2000;
}

/* ---- 2. Fuentes locales ---- */
@font-face {
  font-family: 'Montecatini Pro Normale';
  src: url('/assets/css/fonts/Louise Fili Ltd - Montecatini Pro Normale.otf') format('opentype');
}

@font-face {
  font-family: 'HankenGrotesk Regular';
  font-display: swap;
  src: url('/assets/css/fonts/hankengrotesk-regular.woff2') format('woff2'),
       url('/assets/css/fonts/hankengrotesk-regular.woff') format('woff'),
       url('/assets/css/fonts/HankenGrotesk-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'HankenGrotesk SemiBold';
  font-display: swap;
  src: url('/assets/css/fonts/HankenGrotesk-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'HankenGrotesk Bold';
  font-display: swap;
  src: url('/assets/css/fonts/HankenGrotesk-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'HankenGrotesk Black';
  font-display: swap;
  src: url('/assets/css/fonts/HankenGrotesk-Black.ttf') format('truetype');
}

/* ---- 3. Reset y base ---- */
html {
  font-size: 62.5% !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 479px) {
  html {
    font-size: 60% !important;
  }
}

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

html,
body {
  min-height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

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

button,
select {
  outline: none;
}

button {
  touch-action: manipulation;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  min-width: 300px;
  overflow-x: hidden;
  background-color: var(--color-black);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: none;
}

hr {
  margin: 1em 0;
  border: 0;
  border-top: 1px solid #cccccc;
}

mark,
ins {
  background-color: #ff9;
  color: var(--color-black);
}

ins {
  text-decoration: none;
}

mark {
  font-style: italic;
  font-weight: 700;
}

abbr[title],
dfn[title] {
  cursor: help;
  border-bottom: 1px dotted currentColor;
}

/* ---- 4. Tipografia base reutilizable ---- */
.heading-display,
.title {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-black);
  text-transform: uppercase;
}

.heading-display--sm,
.title.title-sm,
.title > span.title-sm {
  font-size: 1.9rem;
}

.heading-display--underline,
.title.title-line,
.title > span.title-line {
  position: relative;
}

.heading-display--underline::after,
.title.title-line::after,
.title > span.title-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 2px;
  background-color: var(--color-primary);
}

.title.title-inside::after,
.title > span.title-inside::after {
  content: 'PORTAL DE SOCIOS';
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--color-black);
}

.heading-container,
.title-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-heading,
.u-section-title.section-title {
  display: inline-block;
  padding: 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 40px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.page-title-overlay,
.title-header {
  position: relative;
  bottom: 60px;
  width: fit-content;
  margin-inline: auto;
  color: var(--color-black);
  font-family: var(--font-black);
  font-size: 3.6rem;
  font-weight: 700;
}

.page-subtitle-overlay,
.subtitle-header {
  position: relative;
  bottom: 75px;
  width: fit-content;
  margin-inline: auto;
  color: var(--color-black);
  font-size: 1.5rem;
}

@media (max-width: 992px) {
  .page-title-overlay,
  .title-header,
  .page-subtitle-overlay,
  .subtitle-header {
    display: none;
  }
}

/* ---- 5. noUiSlider legacy ---- */
.noUi-target,
.noUi-target * {
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: none;
}

.noUi-target {
  position: relative;
  border: 1px solid #d3d3d3;
  border-radius: var(--radius-sm);
  background: #fafafa;
  box-shadow: inset 0 1px 1px #f0f0f0, 0 3px 6px -5px #bbbbbb;
}

.noUi-base,
.noUi-connects {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.noUi-connects {
  z-index: 0;
  overflow: hidden;
  border-radius: 3px;
}

.noUi-connect,
.noUi-origin {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  transform-origin: 0 0;
  transform-style: flat;
  will-change: transform;
}

.noUi-connect {
  width: 100%;
  height: 100%;
  background: #3fb8af;
}

.noUi-origin {
  width: 10%;
  height: 10%;
}

.noUi-horizontal {
  height: 18px;
}

.noUi-horizontal .noUi-origin {
  height: 0;
}

.noUi-horizontal .noUi-handle {
  top: -6px;
  right: -17px;
  width: 34px;
  height: 28px;
}

.noUi-vertical {
  width: 18px;
}

.noUi-vertical .noUi-origin {
  width: 0;
}

.noUi-vertical .noUi-handle {
  top: -17px;
  right: -6px;
  width: 28px;
  height: 34px;
}

.noUi-handle {
  position: absolute;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: var(--color-white);
  box-shadow: inset 0 0 1px var(--color-white), inset 0 1px 7px #ebebeb, 0 3px 6px -3px #bbbbbb;
  cursor: default;
  backface-visibility: hidden;
}

.noUi-handle::before,
.noUi-handle::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 14px;
  width: 1px;
  height: 14px;
  background: #e8e7e6;
}

.noUi-handle::after {
  left: 17px;
}

.noUi-touch-area {
  width: 100%;
  height: 100%;
}

.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  transition: transform var(--transition-med);
}

.noUi-state-drag * {
  cursor: inherit !important;
}

.noUi-tooltip {
  position: absolute;
  display: block;
  padding: 5px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: var(--color-white);
  color: var(--color-black);
  text-align: center;
  white-space: nowrap;
}
