* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
}

:root {
    --Dorado: #D4AF37;
    /*Un dorado más brillante y moderno*/
    --DoradoOscuro: #B8860B;
    /*Un dorado más oscuro*/
    --Blanco: #FAFAFA;
    /*Un blanco ligeramente más cálido*/
    --Negro: #222222;
    /*(Un negro un poco más suave*/
    --GrisMedio: #999999;
    /*Un gris neutro para equilibrar la paleta*/
    --GrisOscuro: #444444;
    /*Un gris oscuro para acentos*/

    --GrisOscuroTransparente: #444444d0;

    --Montserrat: "Montserrat", serif;
    --Playfair: "Playfair Display", serif;

}

html {
    font-size: 62.5%;
    /*1rem son 10px*/
    overflow-x: hidden;
}

body {
    color: var(--Negro);
    font-family: var(--Montserrat);
    background-color: var(--Blanco);
}

/**/
.title {
    font-family: var(--Playfair);
    color: var(--Dorado);
    margin: 3rem;
    padding: 0;
    text-align: center;
}

/*
Menu de navegacion
*/

.header {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem var(--GrisMedio);
    border-radius: 0.5rem;
}

.logo img {
    width: 10rem;
    height: auto;
}

.navbar {
    align-content: space-around;
    display: inline-flex;
}

.navbar a {
    color: var(--Negro);
    font-weight: 600;
    font-size: 2rem;
    transition: .3s ease;
    border-bottom: 0.2rem solid transparent;
    text-transform: uppercase;
    margin: 1rem;
    padding: 0.5rem 2rem;
}

.navbar a:hover,
.navbar a.active {
    border-bottom-color: var(--Dorado);
    color: var(--Dorado);
}

.navbar a.contact {
    background-color: var(--Dorado);
    border-radius: 1rem;
    color: var(--Blanco);
    box-shadow: 2px 2px 4px var(--GrisMedio);
    /* Sombra gris media */ 
    transition: .3s ease;
    border-bottom: none;
}

.navbar a.contact:hover {
    background-color: var(--DoradoOscuro);
    color: var(--Blanco);
    transform: scale(1.2) translateY(-1rem);
}

.socialmedia, .overlaySocialmedia{
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.socialmedia a{
    color: var(--Dorado);
    font-size: 4rem;
    margin: 2rem;
    justify-content: center;
    transition: .3s ease;
}

.socialmedia a:hover, .overlaySocialmedia a:hover {
    color: var(--DoradoOscuro);
    transform: scale(1.2) translateY(-1rem);
}

/* menu escondido*/

.header .overlay{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    background-color: var(--Blanco);
    overflow: hidden;
    transition: all 0.3s ease 0s;
}

.header .overlay .overlayContent{
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

.header .overlay a{
    font-family: var(--Montserrat);
    margin: 2rem;
    padding: 2rem;
    font-size: 2rem;
    display: block;
    transition: all 0.3s ease 0s;
    font-weight: 600;
    color: var(--Dorado);
}

.header .overlay a:hover{
    color: var(--Dorado);
    border-bottom: 0.2rem solid var(--Dorado);
}

.menu{
    display: none;
    font-size: 4rem;
    color: var(--Dorado);
}

.header .overlay .overlayContent .overlaySocialmedia a{
    color: var(--Dorado);
    font-size: 2rem;
    margin: 1rem;
    justify-content: center;
    transition: .3s ease;
}

.header .overlay .close{
    font-size: 4rem;
    top: 1rem;
    right: 3rem;
}

.header .overlay .close:hover{
    border-bottom:  none;
}

/* Media queries */
@media (max-width: 480px) {
    /* Móviles en portrait */
    .navbar {
        display: none;
    }

    .socialmedia {
        display: none;
    }

    .header .overlay a{
        margin: 1rem;
        padding: 2rem;
        font-size: 2rem;
    }

    .footer{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .footer h2{
        font-size: 2rem;
    }

    .footer .OurServices p,
    .footer .ServiceLinks a,
    .footer .Info p,
    .footer .Payment p{
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Tabletas en portrait */
    .navbar {
        display: none;
        flex-direction: column;
    }

    .header .overlay a{
        margin: 1rem;
        padding: 2rem;
        font-size: 2rem;
    }

    footer{
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .menu{
        display: block;
    }

    .ServiceLinks a,
    .OurServices,
    .Info,
    .Payment{
        align-items: center;
    }

    .carousel-slide {
        display: flex;
        width: 600%;
        /* 100% * número de imágenes / 2 (porque mostramos 2 a la vez) */
        height: 100%;
        transition: transform 0.5s ease-in-out;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .gallery{
        columns: 1;
        width: 100%;
        height: auto;
    }

    .sectioncontact .contactcontent{    
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sectioncontact .contactcontent img{
        width: 30rem;
        height: 30rem;
        padding: 1rem;
    }
    
    .sectioncontact .contacttext{
        padding: 2rem;
        justify-content: center;
    }

    .service .service-container{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .about{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .aboutcontent{
        display: flex;
        flex-direction: column-reverse;
        margin: 1rem;
        padding: 1rem;
    }
    
    .about .aboutcontent img{
        width: 100%;
        height: auto;
        border-radius: 1rem;
        justify-content: center;
    }

    .about .aboutText{
        width: 100%;
        padding: 1rem;
    }
    
    .about .aboutText p{
        width: 90%;
        font-size: 2rem;
        justify-content: center;
    }

    .carousel-container .content p{
        font-size: 1.5rem;
    }

    body .gallery{
        columns: 1;
        width: 100%;
        height: auto;
    }

}

@media (max-width: 1024px) {
    /* Tabletas en landscape y pantallas pequeñas */
    .socialmedia{
        display: none;
    }

    .footer h2{
        font-size: 2rem;
    }

    .footer .OurServices p,
    .footer .ServiceLinks a,
    .footer .Info p,
    .footer .Payment p{
        font-size: 1.5rem;
    }
}

@media (max-width: 1368px) {

    .navbar a{
        font-size: 1.5rem;
    }

    .socialmedia a{
        font-size: 2rem;
    }
    /* Desktops pequeños */
}

@media (max-width: 1920px) {
    /* Pantallas grandes */
}









/*
HOME
*/

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
}

h1 {
    font-size: 4rem;
    align-self: center;
}

/* Estilos del carrusel */


.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    /* Ajusta según necesites */
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 300%;
    /* 100% * número de imágenes / 2 (porque mostramos 2 a la vez) */
    height: 100%;
    transition: transform 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-slide img {
    width: 16.66%;
    /* (100% / número de imágenes) */
    height: auto;
    object-fit: cover;
    /* Asegura que las imágenes ocupen todo el contenedor */
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    /* Ajusta según necesites */
    background-color: var(--GrisOscuroTransparente);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 2;
    /* Asegura que el contenido esté encima del carrusel */
    color: white;
    text-align: center;
}

.content h2,
.about h2{
    font-size: 3rem;
}

.content p,
.aboutcontent p{
    font-size: 2.5rem;
    margin: 2rem;
}

.contacInvitation{
    color: var(--Dorado);
    font-weight: 700;
}


.about{
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.aboutcontent{
    display: flex;
    justify-content: space-evenly;
    margin: 1rem;
    padding: 1rem;
}

.aboutcontent img{
    width: 50%;
    height: auto;
    border-radius: 1rem;
}

/*
services
*/

.service{
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 2rem;
    align-items: center;
}

.service h2{
    font-size: 3rem;
    border-bottom: 2px solid var(--Dorado);
}

.service-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-container div{
    margin: 2rem;
    background: var(--GrisOscuroTransparente);
    padding:1rem;
    text-align: center;
    color: var(--Blanco);
    border-radius: 1rem;

}

.Servicecontent h2{
    background-color: var(--Dorado);
    border-radius: 1rem;
    font-size: 2rem;
    padding: 2rem 1rem;
    margin: 2rem;
    height: 8rem;
    text-align: center;
}

.Servicecontent p{
    font-size: 1.5rem;
    margin: 1rem;
}


.sectioncontact{
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 2rem;
    align-items: center;
}

.contactcontent{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2rem;
}

.sectioncontact h2{
    font-size: 3rem;
}

.contactcontent img{
    width: 50rem;
    height: 50rem;
    border-radius: 50%;
    padding: 2rem;
    margin: 2rem;
}

.contacttext{
    padding: 2rem;
}

.contacttext h2{
    font-size: 2rem;
}

.contacttext p{
    font-size: 1.5rem;
    margin: 2rem;
}

/*
footer
*/


footer {
    border-top: 2px solid var(--GrisOscuro);
    padding: 1rem 1rem;
    display: flex;
    align-items: top;
    justify-content: space-evenly;
    background-color: var(--Dorado);
    padding: 4rem;
}

.ServiceLinks a,
.OurServices,
.Info,
.Payment {
    display: flex;
    flex-direction: column;
    color: var(--Blanco);
}

.ServiceLinks a,
.Info p,
.Payment p {
    margin: 1rem 0rem;
    font-size: 2rem;
}

.footerTitle {
    color: var(--Blanco);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ServiceLinks a:hover {
    color: var(--Negro);
    border-bottom-color: var(--Negro);
}

.gallery{
    max-width: 1400px;
    margin: 1rem auto;
    columns: 4;
    column-gap: 20px;
}

.gallery .box{
    width: 100%;
    margin-bottom: 10px;
    break-inside: avoid;
}

.gallery .box img{
    max-width: 100%;
    border-radius: 15px;
    padding: 1rem;
}




/*formulario*/
.wrap{
    width: 90%;
    max-width: 500px;
    margin: auto;
    justify-items: center;
}

.wrap h2{
    color: var(--Dorado);
    font-family: var(--Playfair);
    font-size: 2rem;
    
}

form{
    width: 100%;
    margin: 5rem;
    padding: 20px;
    background: var(--GrisMedio);
    overflow: hidden;
    box-shadow: 0 0 3px var(--GrisOscuro);
    border-top: 4px solid var(--GrisMedio);
}

form input[type = "text"],
form input[type = "email"],
form textarea {
    border: 1px solid var(--Dorado);
    border-radius: 2px;
    padding: 16px;
    width: 100%;
    display: block;
    margin-bottom: 20px;
    font-family: var(--Montserrat);
    font-size: 1em;

}

form input[type = "text"]:focus,
form input[type = "email"]:focus,
form textarea {
    border: 2px solid var(--DoradoOscuro);
    padding: 15px;
}

form textarea{
    max-width: 100%;
    min-width: 100%;
    max-height: 300px;
    min-height: 150px;
}

.alert {
    padding: 1em;
    color: #f2f2f2;
    border-radius: 2px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.error{
    background: #F2DEDE;
    border: 1px solid #a94442;
    color: #a94442;
}

.alert.success{
    background: #4CAF50;
}

.btn,
form input[type = "submit"]{
    padding: 15px;
    background: var(--Dorado);
    color: var(--Blanco);
    font-size: 2rem;
    font-family: var(--Montserrat);
    border-radius: 2px;
    border:none;
    float: right;
    cursor: pointer;
}

form input[type = "submit"]:hover{
    background: var(--DoradoOscuro);
}