@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Amatic SC", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: #052a8a 0.8px 0.8px 0.8px ;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

nav {
    background-color: #333;
    color: white;
    padding: 12px 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding-inline-start: 6%;
    
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 25px;
}

.banner {
    
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 47% 100%;
    background-repeat: no-repeat;
    background-position: center;
    animation: slide 12s infinite;
}

#image1 { background-image: url('/img/madam.jpg'); }
#image2 { background-image: url('/img/grid\ 1.jpg'); }
#image3 { background-image: url('/img/madam.jpg'); }
#image4 { background-image: url('/img/grid\ 2.jpg'); }

@keyframes slide {
    0% { opacity: 0; }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

.banner-image:nth-child(1) { animation-delay: 0s; background-color: white; }
.banner-image:nth-child(2) { animation-delay: 4s; background-color: white;}
.banner-image:nth-child(3) { animation-delay: 8s; background-color: white;}
.banner-image:nth-child(4) { animation-delay: 8s; background-color: white;}

/*slogan*/

.slogan {
    text-align: center;
    padding: 20px 10px;
}

.slogan h1{
    font-size: 80px;
}

.slogan p{
    font-size: 35px;
}
/*galeria*/

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1.5fr));
    gap: 100px;
    padding: 100px;
}

.titulo-cards{
    align-content: center;
    font-size: 100px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 5%;
    border: solid 1px #212020;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s;
}

.card img {
    width: 100%;
    display: block;
}

.card .info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.5s;
}

.card .info p{
    font-size: 100px;
}

.card:hover {
    transform: perspective(1000px) rotateY(180deg);
}

.card:hover .info {
    opacity: 1;
    transform: rotateY(0deg);
}
/*informativo*/

.informacion {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.informacion div {
    flex: 2;
    align-content: center;
    font-size: 30px;
    padding-left: 70px;
}

.informacion h2{
    font-size: 70px;
    color: #ac0d28;
    font-weight:bolder;
}

.informacion p{
    font-weight: 800;
    color: #000;
}
.informacion img {
    width:500px;
    height: 500px;
    margin-right: 110px;
    border-radius: 10%;
    flex: 1;

}


/*formulario*/

.formulario {
    margin-top:2% ;
    width: 50%;
    margin-left: 25%;
}

.formulario form {
    display: flex;
    flex-direction: column;
}

.formulario label {
    margin-bottom: 5px;
}

.formulario input, .formulario button {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
}

/*footer*/
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/*responsive

@media (max-width: 768px) {
    .informacion {
        flex-direction: column;
    }
}*/

@media (max-width: 360px) {
    .banner-image{
    background-size: 100% 90%;
    }

    .galeria{
        padding: 40px;

    }    

    .titulo-cards p{
        font-size: 80px;
    }
    .informacion div{
        padding-left: 10px;
    }
    .informacion img{
        max-width: 300px;
        max-height: 300px;
        padding-top: 5%;
    }
}