a {
	text-decoration: none;
}

.container {
	width: 90%;
	max-width: 800px;
	margin: auto;
}


/*-------------------------*/
/*          HEADER         */
/*-------------------------*/



/*---------- Logo ---------*/

header .logo {
	text-align: center;
	margin-bottom: 20px;
    margin-top:20px;
}

header .logo span {
	color: #494B4D;
	display: block;
	letter-spacing: 0.8px;
	font-size: 16px;
	font-weight: normal;
}

/*--- Barra de Búsqueda ---*/

header form {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	width: 100%;
}

header .search-bar {
	background: #FFF;
	border: 1px solid rgba(155,155,155,0.3);
	border-radius: 100px;
	font-size: 16px;
	height: 40px;
	text-align: center;
	width: 70%;
	line-height: 40px;
	padding: 0 20px;
}

/*------- Categorías ------*/

header .categories {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

header .categories a {
	color: #8A8A8C;
	font-size: 16px;
	font-weight: 700;
	margin: 10px 18px;
}

header .categories a.active {
	color: #000;
}


/*-------------------------*/
/*           GRID          */
/*-------------------------*/

.grid {
	position: relative;
	opacity: 0;
	transition: opacity 0.5s linear 1s;
	width: 100%;
}

.grid.loaded-images {
	opacity: 1;
}

.grid .item {
	position: absolute;
	display: block;
	margin: 10px;
	padding: 0;
	width: calc(33.33% - 20px);
}

.grid .item-content {
	position: relative;
}

.grid .item img {
	border: 1px solid rgba(155,155,155,0.15);
	border-radius: 10px;
	cursor: pointer;
	vertical-align: top;
	width: 100%;
}

/*-------------------------*/
/*         OVERLAY         */
/*-------------------------*/

.overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,.9);
	width: 100%;
	height: 100vh;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.overlay.active {
	display: flex;
}

.overlay img {
	max-width: 100%;
}

.overlay .description {
	display: block;
	background: #FFF;
	border-radius: 10px;
	margin-top: 5px;
	padding: 20px;
	text-align: center;
	max-width: 50%
}

.container-img {
	position: relative;
}

.overlay #btn-close-popup {
	background: none;
	border: none;
	color: #FFF;
	cursor: pointer;
	font-size: 20px;
	position: absolute;
	right: -20px;
	top: -20px;
}

/*---- Animación Íconos ---*/

footer .icon-container:hover a {
	animation: icon .5s ease;
}





/* Fondo negro de la página */
.fondo {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botón para abrir modal */
.btn-abrir {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Fondo del modal */
.modal-fondo {
    display: none; /* Asegura que está oculto al inicio */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9;
}

/* Contenido del modal */
.modal-contenedor {
    background: white;
    padding: 20px;
    width: 320px;
    border-radius: 8px;
    position: relative;
    color: black;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    width: 25%;
}

/* Botón de cerrar */
.btn-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

/* Estilos del formulario */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campo-nombre,
.campo-correo,
.campo-telefono,
.campo-categoria,
.campo-mensaje {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botón de enviar */
.btn-enviar {
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Contenedor principal con fondo blanco y margen superior */
.seccion {
    background-color: white;
    width: 100%;
    max-width: 500px;
    margin: 10px auto; /* Centrado horizontal y margen superior de 10px */
    padding: 20px;
    text-align: center; /* Centra el botón dentro */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    margin-bottom: 0;
}

/* Botón centrado */
.btn-abrir {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block; /* Asegura que el botón no ocupe todo el ancho */
}

.fondoseccion{
    width: 100%;
    background-color: white;
    margin:0;
    padding-top: 5%;;
}



    article
    {
        display: flex;
        justify-content: center;
        align-items: center;
        background-position: center;
        background-size: cover;
        border: none;

        h2
        {
            font-family: 'Mulish', sans-serif;
            text-shadow: 0px 0px 17px #000000, 0px 0px 11px #000000;
            @include text_corpse(19px,500,white);
        }

        
        &:hover 
        {
            opacity: 0.7; /* ajusta la opacidad a tu gusto */
            filter: brightness(150%); /* ajusta el brillo a tu gusto */
            cursor: pointer;
            transition: all 0.3s ease-in-out; /* ajusta la duración y el tipo de transición */
        }

        &:nth-child(1)
        {
            background-image: url("../images/educativa/tallercocina.jpg");
        }

        &:nth-child(2)
        {
            background-image: url("../images/educativa/tallerceramica.jpg");
        }

        &:nth-child(3)
        {
            background-image: url("../images/educativa/tallerjardineria.jpg");
        }

        &:nth-child(4)
        {
            background-image: url("../images/educativa/tallerespacioadolescente_dos.jpg");
        }

        &:nth-child(5)
        {
            background-image: url("../images/educativa/tallermusicoterapia.jpg");
        }

        &:nth-child(6)
        {
            background-image: url("../images/educativa/teatro.jpg") !important;
        }
		 &:nth-child(7)
        {
            background-image: url("../images/educativa/tallermovimiento.jpg") !important;
        }
    }
}






@keyframes icon {
	from {
		transform: rotate3d(0,0,0,0);
	}
	to {
		transform: rotate3d(0,1,0, 360deg);
	}
}



/*-------------------------*/
/*      MEDIA QUERIES      */
/*-------------------------*/

@media screen and (max-width: 700px) {
	.grid .item {
		width: calc(50% - 20px);
	}

	header {
		padding: 28px 0;
	}

	header .logo {
		margin-bottom: 30px;
	}

	header .logo h1 {
		font-size: 30px;
	}

	header .search-bar {
		width: 100%;
	}

	.overlay .description {
		padding: 10px;
		max-width: 90%
	}

	.overlay #btn-close-popup {
		background: rgba(0,0,0,.5);
		border-radius: 10px;
		padding: 5px 10px;
		right: 10px;
		top: 10px;
	}

	footer .social-nets {
		padding: 20px 0px;
	}

	footer .social-nets a {
		width: 60px;
		height: 60px;
		margin: 13px;
		font-size: 20px;
		line-height: 60px;
	}
    .modal-contenedor{
        width: 90%;
    }

}

@media screen and (min-width: 1281px) and (max-width: 1650px) {
	.container {
		max-width: 1500px;
	}

	.grid .item {
		width: calc(25% - 20px);
	}

	header .search-bar {
		width: 50%;
	}
}

@media screen and (min-width: 1651px) {
	.container {
		max-width: 1600px;
	}

	.grid .item {
		width: calc(20% - 20px);
	}
}


