html{
    box-sizing: border-box;
	scroll-behavior: smooth;
}
*, *:after, *:before {
    box-sizing: inherit;
}

:root {
    --color-primary: black;
    --color-secondary: rgb(181, 150, 99);
    --color-terciary: white;
    --color-quart: #d1a11a;
    background-color: var(--color-primary);
}
body {
    margin: 0;
    padding: 0;
	background-color: black;
}


h2 {
    padding: 2rem;
	font-size: 2rem;
	color: var(--color-terciary);
}

h3 {
    padding: 1rem;
}

a {
    text-decoration: none;
}

/* Botón */
.btn {
	background-color: var(--color-secondary);
    color: var(--color-terciary);
    border-radius: 10%;
    font-size: larger;
    text-decoration: double;
    -webkit-text-stroke-color: var(--color-terciary);
	padding: 20px 30px;
	transition: .5s;
}
.btn:hover {
    transform: scale(1.2);
    color: var(--color-terciary);
    background-color: var(--color-primary);
}


/* Cabecera */
header {
    display: flex;
    justify-content: space-between;
    z-index: 1;
    position: absolute;
    top: 0;
    width: 100%;
}
.logo {
	margin: 40px;
}

/* Menú */
.menuppal {
	margin: 60px;
}

.menuppal ul {
    display: none;
}

.menuppal a {
    color: var(--color-secondary);
}

.menuppal input:checked~ul {
    display: block;
}

.menuppal input {
    display: none;
}

.menuppal label {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    box-sizing: border-box;
    display: inline-block;
    border-radius: 5px;
    padding: 0.4rem;
    line-height: 30px;
    font-weight: bold;
    text-align: center;
    user-select: none;
}

.menuppal label:hover {
    background: var(--color-terciary);
	cursor: pointer;
}

.menuppal input:checked~label {
    background: var(--color-terciary);
}

.menuppal ul {
    position: absolute;
    right: 1.5rem;
    top: 2.5rem;
    width: 200px;
}

.menuppal li {
    display: block;
    background: var(--color-primary);
    padding: .3rem;
    list-style: none;
    border-bottom: 1px solid var(--color-secondary);
}

/*Estilo cuando el mouse pasa encima de cada link del menu*/
.menuppal li:hover {
    transform: scale(1.1);
}

/* Hero */
.hero {
    min-height: 80vh;
    text-align: center;
    color: var(--color-secondary);
    background-image: url(../img/imageninicialdeheader.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    flex-direction: column;
	padding-bottom: 50px;
}

.hero h1 {
    font-size: 60px;
    text-decoration: double;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
}

/* Sección Nosotros */
.nosotros {
    display: flex;
    flex-direction: column;
    align-items: center;
	text-align: center;
    background-color: rgb(32, 31, 31);
	color: var(--color-terciary);
}
.nosotros h2 {
	position: relative;
	z-index: 1;
}
.nosotros h3 {
	font-size: 1.6rem;
	position: relative;
	z-index: 1;
}
.nosotros p {
	width: 40%;
	padding-bottom: 60px;
	position: relative;
	z-index: 1;
}
.nosotros h2 span {
    color: var(--color-secondary);
}

/* Imágenes nosotros en movimiento */
.objetos_barberia {
    display: flex;
    align-items: center;
    margin-top: -8rem;
    justify-content: center;
    z-index: -1;
    animation: salto 4.8s 1.5s infinite;
	position: relative;
	z-index: 0;
}
@keyframes salto {
    25% {
        translate: 0px 50px;
    }

    50% {
        translate: 0px 100px;
    }

    100% {
        translate: 0px 0px;
    }
}
.barbera {
    position: relative;
    top: -10rem;
    right: 10%;
}

.tijeras {
    position: relative;
    top: -10rem;
    left: 35%;
}


.rostro {
    position: relative;
    top: -20rem;
    right: -30%;
}

.maquina {
    position: relative;
    top: -5rem;
    right: -10%;
}

.simbolo {
    position: relative;
    top: -19rem;
    right: 40%;
}

.cuchilla1 {
    position: relative;
    top: -5rem;
    right: 50%;
}



/* Sección servicios */
.servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    grid-template-rows: auto auto; /* 2 filas automáticas */
    gap: 20px; /* Espacio entre las imágenes */
    margin-bottom: 2rem;
}

.imgServicio {
    text-align: center; /* Alinea el contenido al centro */
}


.servicios h3 {
	color: var(--color-terciary);
	font-size: 1.6rem;
}

.imgsServicios {
    display: grid;
    justify-content: space-around;
    width: 100%;
    padding-bottom: 10%;
}



.imgServicio img {
    border: solid 4.5px rgb(181, 150, 99);
    border-radius: 10%;
    transition: .5s;
}

.imgServicio img:hover {
    transform: scale(1.5);
}

.cortedecabello.jpg {
    grid-row: 1 / 3;
  }
.cortedecabelloniño.jpg {
    grid-row: 2 / 3;
  }





/* Sección promociones */
.promociones {
    flex-direction: column;
    text-align: center;
    background-image: url(../img/productosdebarberia.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
    gap: 55%;
    background-repeat: no-repeat;
    display: flex;
    padding-bottom: 3rem;
}

.promociones h3 {
    color: var(--color-primary);
    font-size: x-large;
    font-weight: bold;
    text-decoration: double;
    -webkit-text-stroke-width: px;
    -webkit-text-stroke-color: black;
    letter-spacing: 0.1rem;
}

.promociones h2 {
    color: var(--color-primary);
    text-decoration: double;
    letter-spacing: 0.1rem;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}

.promociones span {
    color: var(--color-terciary);
    border-color: #0000;
}


/* Sección clientes satisfechos */
.clientesSatisfechos {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(32, 31, 31);
    gap: 5%;
    padding-bottom: 10%;
}

.clientesSatisfechos p {
	color: var(--color-secondary);
}

.testimonios {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.textoTestimonios {
    display: flex;
    text-align: center;
    align-items: center;
    padding: 0 10rem 0 10rem;
    font-size: medium;
    z-index: 1;
    letter-spacing: 0.1rem;
}

.fotosDeClientes {
    display: flex;
    text-align: center;
    margin-right: 5rem;
}




/* Sección precios */
precio {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-content: center;
    align-items: center;
    min-width: 100%;
    gap: 5%;
    font-weight: 400;
}

.nombreDeServicio {
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: center;
}

.nombreDeServicio li {
    transition: .5s;
}


.nombreDeServicio li:hover {
    transform: scale(1.2);
}

.precios h2 {
    display: flex;
    justify-content: center;
}

.nombreDeServicio li {
    color: var(--color-secondary);
    list-style: none;
    letter-spacing: 0.1rem;
    padding-bottom: 2rem;
}



/* Sección tipo de cortes */
.estilosDeCortes {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(32, 31, 31);
	padding-bottom: 60px;
}

.menuCortes {
    display: flex;
    flex-direction: row;
    align-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.menuCortes a {
    transition: .5s;
    font-size: 20px;
    color: var(--color-secondary);
}

.menuCortes a:hover {
    transform: scale(1.3);
}

.GaleriaDeCortes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: center;
    align-content: center;
}

.infoestilo p {
	color: var(--color-secondary);
    display: flex;
    align-content: center;
}



/* Sección formulario reserva */
.reserva {
    background-repeat: repeat;
    background-size: 100%;
    width: 50%;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    color: var(--color-secondary);
    padding: 3rem;
    gap: 3rem;
}

.reserva h2 {
    color: var(--color-terciary);
}

.main form {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: left;
    padding: 20px;
    font-size: 1.3em;
}

.cajas {
    border-radius: 5px;
    margin: 15px 0;
    background-color: var(--color-secondary);
    border: 2px solid #fff;
}

.cajas:hover {
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 6px var(--color-quart);
}

.reserva .btn:hover {
    box-shadow: 3px 3px 5px #000;
    background-color: #ffffff;
    color: var(--color-primary);
}

.reserva name {
    color: #d1a11a;
}


/* Sección ubicación */
.ubicacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(32, 31, 31);
    padding-bottom: 3rem;
}
.ubicacion p {
	color: var(--color-secondary);
}



/* Media queries */
@media screen  and (max-width: 768px) {
	.nosotros p {
		width: 90%;
	}
	.GaleriaDeCortes {
		display: flex;
	}
	.imgsServicios, .testimonios, .nombreDeServicio, .menuCortes, .GaleriaDeCortes, .reserva {
		flex-direction: column;
		text-align: center;
	}
	.GaleriaDeCortes img, .servicios img {
		width: 50%;
	}
	.textoTestimonios {
		padding: 0 1rem;
	}
	.clientesSatisfechos img {
		width: 100%;
	}
	.fotosDeClientes {
		margin-right: 0;
	}

	.nombreDeServicio ul {
		padding-left: 0;
		font-size: 0.7rem;
	}
	.reserva {
		margin: 0;
		padding: 0 15px 40px;
		width: 100%;
	}
	.ubicacion iframe {
		width: 100%;
	}
}

