:root {
    --primary-300: hsl(218, 91%, 58%);
    --primary-500: hsl(218, 91%, 48%);
    --primary-600: hsl(218, 91%, 38%);
	--secondary-400: hsl(211, 73%, 35%);
    --secondary-700: hsl(211, 73%, 12%);
    --secondary-800: hsl(211, 73%, 9%);
    --secondary-900: hsl(211, 73%, 5%);
    --accent-300: hsl(41,97%,75%);
    --accent-500: hsl(41,97%,63%);
    --accent-600: hsl(41,97%,53%);
    --white-10: hsla(0, 0%, 100%, .1);
    --white-70: hsla(0, 0%, 100%, .7);
    --white-80: hsla(0, 0%, 100%, .8);
    --white-90: hsla(0, 0%, 100%, .9);
    --white: hsl(0, 0%, 100%);
    --space: 4px;
	--font-sans: 'basier_circleregular';
	--font-bold: 'basier_circlesemibold';
    --font-serif: Georgia, serif;
	--text-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
	--text-1: clamp(1.375rem, 1.2999rem + 0.4727vw, 1.625rem);
	--text-2: clamp(1.75rem, 1.5683rem + 0.8424vw, 2.25rem);
	--text-3: clamp(2.25rem, 1.8849rem + 1.3881vw, 3rem);
	--text-4: clamp(2.75rem, 2.2556rem + 2.182vw, 4rem);
}

@font-face {
    font-family: 'basier_circleregular';
    src: url('../fonts/basiercircle-regular-webfont.woff2') format('woff2'),
         url('../fonts/basiercircle-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'basier_circlesemibold';
    src: url('../fonts/basiercircle-semibold-webfont.woff2') format('woff2'),
         url('../fonts/basiercircle-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

*:not(dialog) {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  	html:focus-within {
   		scroll-behavior: auto;
  	}
  
  	*,
  	*::before,
  	*::after {
    	animation-duration: 0.01ms !important;
    	animation-iteration-count: 1 !important;
    	transition-duration: 0.01ms !important;
    	scroll-behavior: auto !important;
  	}
}

html {
	background-color: var(--secondary-900);
}

html:focus-within {
  	scroll-behavior: smooth;
}

body {
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    font-family: var(--font-sans);
    background-color: var(--secondary-800);
    color: var(--white-80);
    font-size: var(--text-0);
	background: radial-gradient(70% 40% at 50% 0%, rgba(43, 114, 253, 0.2) 0%, var(--secondary-900) 100%);
}

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

input,
button,
textarea,
select {
    font: inherit;
}

nav > ul {
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 16px;
	display: flex;
	justify-items: space-between;
	flex-wrap: wrap;

	a {
		padding-block: 10px;
	}
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p, li {
    text-wrap: pretty;

    * + * {

    }
}

main {

    p + p,
    li + li {
        margin-block-start: 1em
    }
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bold);
    color: var(--white);
    margin-block-end: .75em;
}

h1 {
	font-size: var(--text-4);
	line-height: 1.2;
}

h2 {
	font-size: var(--text-3);
	line-height: 1.25;
}

h3 {
	font-size: var(--text-2);
	line-height: 1.375;
}

h4, .text-1 {
	font-size: var(--text-1);
	line-height: 1.5;
}
a {
	text-decoration: none;

	&:has(p) {
		color: inherit;
	}

	&:not([class]) {
        color: var(--accent-500);
  		text-decoration-skip-ink: auto;
	}

	.header &:not(.btn),
    .footer &:not(.btn) {
		color: var(--white-70);

		&:hover {
			color: var(--white);
		}
	}

	.skip & {
        position: absolute;
        left: -10000px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;

        &:focus {
            position: static;
            width: auto;
            height: auto
        }
    }
}

strong {
    font-family: var(--font-bold);
}

summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
}

summary::before {
  content: '';
  width: 18px;
  height: 10px;
  background: url('../img/chevron-down.svg') no-repeat;
  background-size: cover;
  margin-right: .5em;
  transition: 0.2s;
}

details[open] > summary::before {
  transform: rotate(180deg);
}

summary::-webkit-details-marker {
  display: none;
}

summary {
    color: var(--accent-500);
    
    &:hover {
        color: var(--accent-300);
        cursor: pointer;
        user-select: none;
    }
}

blockquote {

    > p {
        font-family: var(--font-serif);
        font-style: italic;
        position: relative;
/*
        &:first-of-type {

            &:before {
                color: var(--accent-500);
                content: '“';
                font-family: var(--font-serif);
                font-size: 4rem;
                position: absolute;
                left: -2.25rem;
                top: -2rem;
           */ }
        }
    }
}

.skip {
	display: contents;
}

.container {
	max-width: 75ch;
	margin-inline: auto;
	padding-inline: 1.5rem;
    container: container / inline-size;
}

.footer {
    background: radial-gradient(51% 95% at 50% 120%, rgba(43, 114, 255, 0.1) 0%, var(--secondary-900) 100%);
    padding-block: 1rem;
}

.icon {
	width: 6rem;
	height: 6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	border-radius: .75em;
	flex-shrink: 0;
    transition: .2s ease-out;

	&.destinoreta {
		padding: 0;
	}

    .box:hover & {
        transform: rotate(-2deg) scale(1.03);
    }

    .little-boxes & {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: .5em;
        padding: .5rem;
    }
}

.btn {
    transition: .15s ease-out;
    border-radius: .375em;
    display: inline-flex;
    background-color: var(--primary-500);
    color: white;

    &:hover {
        background-color: var(--primary-600);
    }
    
    &.-primary {
        padding: .5em 1.125em;
        font-size: 1.25em;
    }
    &.-secondary {
        padding: .25rem 1rem;
    }
}

.tachado {
    position: relative;
    display: inline-block;
    font-weight: 500;    
    padding-inline: 3px;
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.tachado::before {
    content: "";
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    border-top: 7px solid hsl(22.72deg 97% 63%);
    transform: rotate(45deg);
    transform-origin: center;
}

.tachado::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    border-top: 7px solid hsl(10deg 97% 63%);
    transform: rotate(-15deg);
    transform-origin: center;
}

.boxes {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 1rem;
}

.box {
    padding: 1.25rem 1.5rem;
    border-radius: 1em;
    transition: .2s ease-out;
    width: 100%;
    border: 1px solid var(--white-10);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    h3 {
        margin-block: 0;
        font-family: sans-serif;
        font-style: normal;
        font-weight: 500;
        color: var(--accent-500);
        font-size: 1.5rem;
    }

    &:hover {
	    background-color: hsla(0, 0%, 100%, 0.03);
    }
}

@container container (inline-size > 520px) {
    .box {
        gap: 1.5rem;
        flex-direction: row;
    }
}
@container container (inline-size > 720px) {
    .boxes {
        grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    }
}

.media {
    display: grid;
    grid-row-gap: 12px;
    grid-column-gap: 32px;
    margin-bottom: 3rem;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    grid-template-areas: "media-img" "media-title" "media-content";
}

.media>* {
    margin: 0;
}

.media-title {
    grid-area: media-title;
}

.media-img {
    grid-area: media-img;
}

.media-content {
    grid-area: media-content;
}

@media screen and (min-width:50rem) {
    .media {
        grid-template-columns: 180px 3fr;
        grid-template-rows: auto 1fr;
        grid-template-areas: "media-img media-title" "media-img media-content"
    }
}

* + * {
    .spacer-sm > & {
        margin-block-start: .5em
    }

    .spacer > & {
        margin-block-start: 1em
    }

    .spacer-md > & {
        margin-block-start: 1.5em
    }

    .spacer-lg > & {
        margin-block-start: 2.5em
    }

    .spacer-xl > & {
        margin-block-start: 4em
    }

    .spacer-ul > & {
        margin-block-start: 6em
    }
}

.list-none {
    list-style: none;
    margin: 0;
    padding: 0;
}

.first-letter:first-letter {
    font-size: 1.25rem;
    line-height: 1.875rem;
    /* letter-spacing: -2px; */
    color: var(--accent-500);
    /* font-weight: 700; */
}

/* Clases Utilitarias */
.scroll-smooth {
    scroll-behavior: smooth;
}

.display-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

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

.items-baseline {
    align-items: baseline;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
	gap: calc(var(--space) * 2);
}

.gap-4 {
	gap: calc(var(--space) * 4);
}

.gap-6 {
	gap: calc(var(--space) * 6);
}

.gap-8 {
	gap: calc(var(--space) * 8);
}

.m-0 {
	margin: 0;
}

.p-6 {
	padding: calc(var(--space) * 6);
}

.py-4 {
	padding-block: calc(var(--space) * 4);
}

.bg-subtle {
    background-color: hsla(0, 0%, 100%, .05);
}

.color-accent-300 {
	color: var(--accent-300);
}

.color-white {
    color: white;
}

.border {
    border: 1px solid var(--white-10);
}

.uppercase {
	text-transform: uppercase;
}

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

.text-balance {
	text-wrap: balance;
}

.text-1 {
    font-size: var(--text-1);
}

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

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

.font-italic {
	font-style: italic;
}

.font-serif {
    font-family: var(--font-serif);
}

.font-bold {
    font-weight: 600;
}

.rounded-lg {
    border-radius: 1rem;
}