/* =====================================================
   VARIABLES
===================================================== */

:root {
    /* Marca */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.1);

    --secondary: #06b6d4;
    --secondary-soft: rgba(6, 182, 212, 0.1);

    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.1);

    /* Estados */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Fondos y textos */
    --dark: #020617;
    --dark-2: #0f172a;
    --dark-3: #1e293b;

    --white: #ffffff;

    --light: #f8fafc;
    --light-2: #f1f5f9;

    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;

    /* Sombras */
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

    /* Bordes */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 999px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s ease;

    /* Dimensiones */
    --navbar-height: 68px;
    --section-space: clamp(72px, 2vw, 110px);
}


/* =====================================================
   RESET Y BASE
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    margin: 0;

    background: var(--light);
    color: var(--text);

    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
    margin-top: 0;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

section {
    position: relative;
    padding: var(--section-space) 0;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

:focus-visible {
    outline: 3px solid rgba(6, 182, 212, 0.35);
    outline-offset: 3px;
}


/* =====================================================
   UTILIDADES
===================================================== */

.text-primary-custom {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary-custom {
    background: var(--primary) !important;
}

.bg-dark-custom {
    background: var(--dark) !important;
}

.section-header {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-title {
    margin-bottom: 16px;

    color: var(--dark);

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto;

    color: var(--text-light);

    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.8;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 8px 17px;

    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: var(--radius-pill);

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}


/* =====================================================
   BOTONES
===================================================== */

.btn-primary-custom,
.btn-outline-custom,
.btn-outline-dark-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 13px 28px;

    border-radius: var(--radius-pill);

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;

    transition:
        transform var(--transition-normal),
        color var(--transition-normal),
        background-color var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.btn-primary-custom {
    border: 1px solid transparent;

    background:
        linear-gradient(135deg,
            var(--primary),
            var(--accent));

    color: var(--white);

    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus-visible {
    color: var(--white);

    transform: translateY(-3px);

    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
}

.btn-outline-custom {
    border: 1px solid rgba(255, 255, 255, 0.45);

    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus-visible {
    border-color: var(--white);

    background: var(--white);
    color: var(--dark);

    transform: translateY(-3px);
}

.btn-outline-dark-custom {
    border: 1px solid var(--dark-2);

    background: transparent;
    color: var(--dark-2);
}

.btn-outline-dark-custom:hover,
.btn-outline-dark-custom:focus-visible {
    background: var(--dark-2);
    color: var(--white);

    transform: translateY(-3px);

    box-shadow: var(--shadow-md);
}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}