/* ============================================
   LOGYSER — GLOBAL STYLES
   global.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;900&family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* --- RESET --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- TIPOGRAFÍA BASE --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    line-height: var(--leading-loose);
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

input,
textarea,
select {
    font-family: var(--font-body);
    font-size: var(--text-base);
}

/* --- UTILIDADES DE LAYOUT --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* --- SECCIONES --- */
.section {
    padding-block: var(--space-20);
}

.section--lg {
    padding-block: var(--space-24);
}

.section--xl {
    padding-block: var(--space-32);
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--primary {
    background-color: var(--color-primary);
}

/* --- ENCABEZADOS DE SECCIÓN --- */
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-black);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    max-width: 600px;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin-inline: auto;
}

/* --- BREADCRUMB --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb__sep {
    opacity: 0.4;
    font-size: 0.7em;
}

/* --- DIVISORES --- */
.divider {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    margin-block: var(--space-4);
}

.divider--center {
    margin-inline: auto;
}

/* --- PAGE HERO (páginas internas) --- */
.page-hero {
    background-color: var(--color-dark);
    padding-block: var(--space-16) var(--space-12);
    margin-top: var(--navbar-total);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 168, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: var(--color-white);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-md);
    max-width: 560px;
}

/* --- UTILIDADES --- */
.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: var(--color-white);
}

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

.text-center {
    text-align: center;
}

.text-upper {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mt-auto {
    margin-top: auto;
}

.mx-auto {
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* --- SCROLL REVEAL BASE --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 {
    transition-delay: 0.1s;
}

.reveal--delay-2 {
    transition-delay: 0.2s;
}

.reveal--delay-3 {
    transition-delay: 0.3s;
}

.reveal--delay-4 {
    transition-delay: 0.4s;
}