/* =========================================================
   QREAIX · SISTEMA DE DISEÑO
   Paleta corporativa intocable. Estética editorial sobria.
========================================================= */

:root {
    /* PALETA QREAIX */
    --primary-blue: #173E68;
    --cta-blue:     #2E5C88;
    --accent-gold:  #FFD700;
    --text-light:   #eef1f3;
    --bg-light:     #ffffff;
    --bg-soft:      #f8f9fa;

    /* JERARQUÍA DE TEXTOS */
    --text-primary:       var(--primary-blue);
    --text-secondary:     rgba(23, 62, 104, 0.85);
    --text-tertiary:      rgba(23, 62, 104, 0.6);
    --text-muted:         rgba(23, 62, 104, 0.45);
    --text-on-dark:       var(--text-light);
    --text-on-dark-soft:  rgba(238, 241, 243, 0.82);
    --text-on-dark-muted: rgba(238, 241, 243, 0.55);

    /* TIPOGRAFÍA */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-xs:   0.875rem;
    --fs-sm:   1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.375rem;
    --fs-xl:   clamp(1.75rem, 3vw, 2.25rem);
    --fs-2xl:  clamp(2.25rem, 4.5vw, 3.5rem);
    --fs-3xl:  clamp(2.75rem, 6vw, 4.5rem);
    --fs-4xl:  clamp(3rem, 7vw, 5.5rem);

    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;

    --lh-tight:   1.05;
    --lh-snug:    1.2;
    --lh-normal:  1.5;
    --lh-relaxed: 1.7;

    --ls-tight:  -0.03em;
    --ls-normal: -0.01em;

    /* ESPACIADO */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  32px;
    --space-lg:  56px;
    --space-xl:  80px;
    --space-2xl: 120px;

    /* RADIOS */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-full: 9999px;

    /* TRANSICIONES */
    --transition-fast: 0.2s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;

    /* SOMBRAS */
    --shadow-sm: 0 1px 2px rgba(23, 62, 104, 0.05);
    --shadow-md: 0 4px 12px rgba(23, 62, 104, 0.08);
    --shadow-lg: 0 12px 32px rgba(23, 62, 104, 0.12);

    /* LAYOUT */
    --container-max: 1240px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

p {
    margin: 0 0 var(--space-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--cta-blue); }

/* CONTENEDOR */
.qreative-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

@media (max-width: 768px) {
    .qreative-container { padding: 0 var(--space-sm); }
}

/* ETIQUETA DE SECCIÓN (discreta, editorial) */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: var(--fw-medium);
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    letter-spacing: normal;
}

.section-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent-gold);
    flex-shrink: 0;
}

.section-label.on-dark {
    color: var(--text-on-dark-soft);
}

/* TÍTULOS DE SECCIÓN */
.section-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    color: var(--text-primary);
    margin: 0 0 var(--space-md);
    max-width: 880px;
}

.section-title.on-dark {
    color: var(--text-on-dark);
}

.section-subtitle-text {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--text-tertiary);
    margin: 0 0 var(--space-xl);
    max-width: 640px;
}

.section-subtitle-text.on-dark {
    color: var(--text-on-dark-soft);
}

/* SECCIONES · RITMO */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-dark {
    background: var(--primary-blue);
    color: var(--text-on-dark);
}

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

.section-dark p { color: var(--text-on-dark-soft); }

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

@media (max-width: 768px) {
    section { padding: var(--space-lg) 0; }
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    line-height: 1;
    letter-spacing: var(--ls-normal);
}

.btn-primary {
    background: var(--cta-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-blue);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-gold:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid rgba(23, 62, 104, 0.2);
}

.btn-ghost:hover {
    border-color: var(--primary-blue);
    background: var(--bg-soft);
}

.btn-ghost.on-dark {
    color: var(--text-on-dark);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost.on-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ICONOS LUCIDE */
[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    vertical-align: middle;
    flex-shrink: 0;
}

[data-lucide].icon-lg {
    width: 28px;
    height: 28px;
    stroke-width: 1.75;
}

[data-lucide].icon-xl {
    width: 44px;
    height: 44px;
    stroke-width: 1.5;
}

/* UTILIDADES */
.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }

.d-flex { display: flex !important; }
.d-none  { display: none !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
}