* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    outline: none;
}

::selection {
	background: rebeccapurple;
	color: white;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 34px;
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
}

/* BODY RESET */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
}

h1 {
	position: relative;
}

h1::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	background: linear-gradient(320deg, mediumpurple, purple);
	width: 40%;
	height: 3px;
	border-radius: 20px;
}

.card {
    width: 90%;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: #f5f5f5;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: .5rem;
    background-color: pink;
    transition: .3s ease;
}}

.card-info {
    flex-grow: 1;
    padding-top: 10px;
    overflow: hidden;
}


svg {
 width: 20px;
 height: 20px;
}

/*Text*/
.text-title {
    font-weight: 900;
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 5px;
}

.text-body {
    font-size: .85em;
    line-height: 1.2;
    color: #333;
    max-height: 2.4em:;
}

/* FOOTER */
.card-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.card-button {
    border: 1px solid #252525;
    display: flex;
    padding: .3em;
    cursor: pointer;
    border-radius: 50px;
    transition: .3s ease-in-out;
}

/*Hover*/
.card-button:hover {
    border: 1px solid purple;
    background-color: pink;
}

.card-img:hover {
    transform: translateY(-10%);
    box-shadow: mediumpurple 0px 13px 47px -5px, mediumpurple 0px 8px 16px -8px;
}

nav.navbar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 7px;
	background: transparent;
	animation: navbar 1s linear both;
	animation-timeline: scroll(root block);
	animation-range: 0 160px;
	position: sticky;
	top: 0;
	z-index: 999999;
}

@keyframes navbar {
	to {
		backdrop-filter: blur(32px) contrast(120%) saturate(110%);
		box-shadow: 0 0 10px rgba(0, 0, 0, .4);
	}
}

a.pc, a.movil {
	color: purple;
	text-decoration: none;
	font-size: 20px;
	position: relative;
	transition: all 0.4s ease;
	&:hover {
		transform: scale(1.1);
	}
}

/* Estilos base del input tipo checkbox */
input[type="checkbox"] {
    position: relative;
    width: 40px;
    height: 40px;
    appearance: none;
    background-color: rebeccapurple;
    border: none;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Icono hamburguesa */
input[type="checkbox"]::before {
    content: "☰";
    text-align: center;
    font-size: 24px;
    color: white;
    transition: transform 0.4s ease, content 0.3s ease;
    transform: scale(1);
}

/* Icono X cuando está activo */
input[type="checkbox"]:checked::before {
    content: "✖";
    text-align: center;
    transform: rotate(180deg) scale(1.2);
    color: white;
}


.options {
	display: flex;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	max-height: 0px;
	overflow: hidden;
	transform: scale(0.2) translateX(120px) translateY(113px);
	opacity: 0;
	padding: 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .7);
	backdrop-filter: blur(20px);
	position: absolute;
	top: 60px;
	right: 35px;
	box-shadow: 0 0 7px rgba(0, 0, 0, .5);
	z-index: 9999999999;
	transition: all .4s ease-in-out;
}

.movil:not(.movil:nth-child(1)) {
	display: flex;
	margin-top: 12px;
}

input:checked ~ .options {
	max-height: 200px;
	transform: scale(1.0) translateX(0) translateY(0);
	opacity: 1;
}

h1 {
	color: purple;
}

#menu, .options {
	display: none;
}

#nameUser {
	padding: 7px;
	border-radius: 4px;
	font-size: 18px;
	color: rebeccapurple;
	font-weight: bold;
	border: 0;
	border: 1px solid rebeccapurple;
	transition: all 0.2s ease;
	&:focus {
		box-shadow: inset 0 0 10px rgba(0, 0, 0, .7);
	}
}

@media screen and (max-width: 720px) {
	#menu, .options {
		display: block;
	}
	.pc {
		display: none;
	}
}