/* ============================================================
   LOEX — Core: fuentes, reset y tipografía global
   ============================================================ */

/* ── Fuentes ─────────────────────────────────────────────── */
@font-face {
    font-family: 'CircularStd';
    src: url('../../fonts/CircularStd-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'CircularStd';
    src: url('../../fonts/CircularStd-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'CircularStd';
    src: url('../../fonts/CircularStd-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'CircularStd';
    src: url('../../fonts/CircularStd-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* ── Variables ───────────────────────────────────────────── */
:root {
    --color-blue:       #074C78;
    --color-blue-dark:  #072538;
    --color-blue-grad:  linear-gradient(90deg, #074C78 0%, #2b91d6 100%);
    --color-accent:     #F5576E;
    --color-accent-bg:  rgba(245, 87, 110, 0.08);
    --color-white:      #ffffff;
    --color-bg:         #f5f8fa;
    --color-border:     #edf0f2;
    --color-muted:      #5d6978;

    --font-base:        'CircularStd', Arial, sans-serif;

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

    --radius-sm:  5px;
    --radius-md:  10px;
    --radius-lg:  50px;

    --header-height: 100px;
}

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

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

body {
    font-family: var(--font-base);
    color: var(--color-blue-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.1;
}

p {
    margin: 0;
    line-height: 1.7;
}

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

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

/* ── Accesibilidad ───────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Animaciones de scroll ───────────────────────────────── */
.animatable {
    visibility: hidden;
    animation-play-state: paused;
}

.animated {
    visibility: visible;
    animation-fill-mode: both;
    animation-duration: 0.9s;
    animation-play-state: running;
}

.animated.animationDelay     { animation-delay: 0.4s; }
.animated.animationDelayMed  { animation-delay: 1.2s; }
.animated.animationDelayLong { animation-delay: 1.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0%, 60% { opacity: 0; }
    100%     { opacity: 1; }
}
@keyframes bounceInLeft {
    0%   { opacity: 0; transform: translateX(-80px); }
    60%  { transform: translateX(10px); }
    80%  { transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes bounceInRight {
    0%   { opacity: 0; transform: translateX(80px); }
    60%  { transform: translateX(-10px); }
    80%  { transform: translateX(5px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { transform: scale(1.05); }
    80%  { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.animated.fadeInUp      { animation-name: fadeInUp; }
.animated.fadeInDown    { animation-name: fadeInDown; }
.animated.fadeIn        { animation-name: fadeIn; }
.animated.bounceInLeft  { animation-name: bounceInLeft; }
.animated.bounceInRight { animation-name: bounceInRight; }
.animated.bounceIn      { animation-name: bounceIn; }

/* ── Skeleton loading (shimmer) ──────────────────────────── */
@keyframes skeletonShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-shimmer {
    background-color: rgba(7, 37, 56, 0.06);
    background-image: linear-gradient(
        90deg,
        rgba(7, 37, 56, 0.06) 25%,
        rgba(7, 37, 56, 0.12) 37%,
        rgba(7, 37, 56, 0.06) 50%
    );
    background-size: 800px 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    pointer-events: none;
}

.skeleton-line {
    height: 14px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-line--sm { width: 35%; height: 12px; margin-bottom: 10px; }
.skeleton-line--lg { width: 85%; height: 18px; }

/* ── Botones globales ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    height: 56px;
    border-radius: var(--radius-lg);
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 500;
    transition: opacity var(--transition-fast);
    cursor: pointer;
    border: none;
}
.btn:hover { opacity: 0.85; }

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

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}
