/* =========================================================
   BASE GLOBAL
   RETIRO NACIONAL DE JÓVENES — JUVENTUD MÉXICO
========================================================= */


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    display: block;
}

article,
aside,
footer,
header,
main,
nav,
section {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    margin: 0;
    font: inherit;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: button;
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

textarea {
    resize: vertical;
}

a {
    color: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* =========================================================
   SELECCIÓN DE TEXTO
========================================================= */

::selection {
    background: var(--color-secondary-light);
    color: var(--color-primary);
}


/* =========================================================
   BARRA DE DESPLAZAMIENTO
========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(11, 22, 38, 0.35)
        rgba(11, 22, 38, 0.06);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(11, 22, 38, 0.06);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    background:
        rgba(11, 22, 38, 0.35)
        padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background:
        rgba(11, 22, 38, 0.5)
        padding-box;
}


/* =========================================================
   TIPOGRAFÍA
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-weight: var(--font-weight-black);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

strong,
b {
    font-weight: var(--font-weight-bold);
}

small {
    font-size: var(--font-size-sm);
}


/* =========================================================
   ENLACES Y BOTONES
========================================================= */

a {
    outline: none;
}

button {
    border: 0;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(199, 155, 75, 0.65);
    outline-offset: 3px;
}


/* =========================================================
   FORMULARIOS
========================================================= */

input,
select,
textarea {
    max-width: 100%;
}

input::placeholder,
textarea::placeholder {
    color: rgba(102, 112, 133, 0.75);
    opacity: 1;
}

input[type="search"] {
    appearance: none;
    -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}


/* =========================================================
   CONTENEDORES
========================================================= */

.container {
    width: min(
        calc(100% - (var(--container-padding-mobile) * 2)),
        var(--container-width)
    );

    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--space-20);
}


/* =========================================================
   UTILIDADES DE ACCESIBILIDAD
========================================================= */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: calc(var(--z-notification) + 1);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-text-light);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-160%);
    transition: transform var(--transition-normal);
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   UTILIDADES GENERALES
========================================================= */

.hidden,
[hidden] {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.full-width {
    width: 100%;
}


/* =========================================================
   CARGA DIFERIDA DE IMÁGENES
========================================================= */

img[loading="lazy"] {
    background: rgba(11, 22, 38, 0.04);
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 700px) {

    .container {
        width: min(
            calc(100% - (var(--container-padding-tablet) * 2)),
            var(--container-width)
        );
    }

    .section {
        padding-block: 7rem;
    }
}


/* =========================================================
   ESCRITORIO
========================================================= */

@media (min-width: 980px) {

    .container {
        width: min(
            calc(100% - (var(--container-padding-desktop) * 2)),
            var(--container-width)
        );
    }
}


/* =========================================================
   PANTALLAS GRANDES
========================================================= */

@media (min-width: 1280px) {

    .container {
        max-width: var(--container-width-large);
    }
}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   CONTRASTE ALTO
========================================================= */

@media (forced-colors: active) {

    button,
    .button,
    input,
    select,
    textarea {
        border: 1px solid currentColor;
    }
}


/* =========================================================
   IMPRESIÓN
========================================================= */

@media print {

    .site-header,
    .navbar,
    .footer,
    .video-modal,
    .request-modal,
    button,
    .button {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .section {
        padding-block: 1.5rem;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}