/*
1. Posicionamiento
2. Modelo de caja (box model)
3. Tipografía
4. Visuales
5. Miscelaneo
*/
:root{
	/* Colores */
	--just-black: #0a0a0a;
	--just-white: #ffffff;
	--white-grey: #e3e3e3;
	--soft-grey: #dbdbdb;
	--medium-grey: #8C8C8C;
	--hard-grey: #666666;
	--shadow-black: #0d0000;
	
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	font-size: 62.5%;
	font-family: "Nunito", sans-serif;
}
body {
	line-height: 1.6;
}



header {
	display: flex;
	flex-direction: column;
	background: linear-gradient(220.8deg, var(--hard-grey) 6.69%, var(--just-black) 60%);
}
header img {
	width: clamp(50px, 50vw, 500px);
	height: auto;
	margin: 3rem;
	align-self: center;
	max-height: 70px;
}
.header--title-container {
	margin: 2rem auto 0;
	text-align: center;
}
.header--title-container h1 {
	font-size: clamp(1.2rem, 4vw, 2rem);
	color: var(--just-white);
}
.header--title-container p {
	font-size: clamp(1rem, 2.5vw, 1.4rem);
	color: var(--soft-grey);
}
.header--button {
    position: relative;
	top: 1rem;
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
}
.header--button-inicio,
.header--button-portafolio,
.header--button-acceso {
    min-width: 150px;
    max-width: 130px;
    height: 48px;
    background-color: var(--medium-grey);
	border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: var(--just-white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.header--button-inicio:hover,
.header--button-portafolio:hover,
.header--button-acceso:hover {
    transform: translateY(-2px);
    box-shadow: -3px 4px 12px rgba(50, 50, 50, 0.4);
    background-color: var(--just-white);
    color: var(--just-black);
}


main {
	min-width: 240px;
	background-color: var(--just-white);
}
.main--titulo-doc {
	padding: 2rem 1rem 2rem;
	text-align: center;
}
.main--titulo-doc h1 {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	color: var(--just-black);
}
.main--titulo-doc h2 {
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	color: var(--hard-grey);
}

h1{
	margin: 1rem 1rem;
}
h2{
	margin: 3rem 2rem
}
.button-container { 
	margin: 2rem 2rem
}
.button-orden {
	padding: 0.5rem 1rem;
	border: 2px solid var(--medium-grey);
	background: var(--just-black);
	color: var(--just-white);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.8s ease;
    text-decoration: none;
	font-size: clamp(0.8rem, 2vw, 1rem);
}
.button-orden:hover,
.button-orden.active {
	background: var(--medium-grey);
	color: var(--just-white);
	border-color: var(--hard-grey);
}
.button {
	margin: 0.7rem 0.2rem;
	padding: 1rem 1.5rem;
	border: 2px solid var(--medium-grey);
	background: var(--just-white);
	color: var(--hard-grey);
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: clamp(0.8rem, 2vw, 1rem);
}
.button:hover,
.button.active {
	background: var(--medium-grey);
	color: var(--just-white);
	border-color: var(--hard-grey);
}


footer {
	display: flex;
	background-color: var(--hard-grey);
	padding: 1rem 2rem;
}
footer section {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}
footer .pie-izquierdo ul {
	font-weight: 1000;
	line-height: 1.2rem;
	list-style: none;
	text-align: center;
}
.pie-izquierdo li {
	margin: 1rem 0;
}
.pie-izquierdo a {
	text-decoration: none;
	color: var(--soft-grey);
	transition: color 0.3s ease;
}
.pie-izquierdo a:hover {
	color: var(--just-white);
}
.pie-derecho img {
	width: clamp(60px, 10vw, 100px);
	height: auto;
}

/* Card products container */
.card-products-container {

	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}
.card-products-container h4{
    text-align: center;
	margin-top: 1rem;
    margin-left: 1rem;
	margin-right: 1rem;
}
.card-products-container p{
    text-align: end;
	margin-top:2rem;
	margin-bottom: 1rem;
    margin-right: 1rem;
}
#shopContent {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, auto));
	gap: 5rem;
	transition: opacity 0.3s ease;
}
#shopContent img{
	border-radius: 20px;
	padding: 1rem
}
.card-products {
	background: var(--white-grey);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-products:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
@media (max-width: 480px) {
	header {
		min-height: 350px;
	}
	.header--button {
		flex-direction: column;
		align-items: center;
	}
	footer {
		flex-direction: column;
		text-align: center;
	}
	footer section {
		padding: 0.5rem;
	}
}
@media (min-width: 480px) {
	footer section {
		width: 50%;
	}
}


