* {
    text-decoration: none;
    box-sizing: border-box;
}


.hero{
    position: relative;
    width: min(1200px, 95vw);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.polaroid{
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.polaroid img{
    width: 330px;
    transform: rotate(-12deg);
    filter: drop-shadow(10px 12px 18px rgba(0,0,0,.20));
}

.polaroid span{
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    letter-spacing: 3px;
}

.card{
    position: relative;
    width: 850px;
    min-height: 430px;
    margin-left: 180px;
    background: linear-gradient(
        180deg,
        #A19CC8 10%,
        #9892C0 100%
    );
    border-radius: 15px;
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.card-top{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:10px;
    background:#5F5A8B;
}

.nombre{
    position:absolute;
    top:-25px;
    right:35px;
    background:#A19CC8;
    color:white;
    padding:12px 26px;
    border-radius:8px 8px 0 0;
    font-size:18px;
    font-weight:500;
}

.menu{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    padding: 45px 40px 25px;
}

.menu-btn{
    background: transparent;
    border: none;
    color: white;
    font-family: "Comfortaa", sans-serif;
    font-size: 24px;
    cursor: pointer;
    transition: .40s;
}

.menu-btn:hover{
    transform: translateY(-7px);
    color: #F8F6F3;
}

.menu-btn.active{
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 8px;
}

#viewer{
    width: calc(100% - 80px);
    min-height: 420px;
    margin: auto;
    margin-bottom: 35px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    border: 2px dashed rgba(255,255,255,.30);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.welcome{
    text-align: center;
    color: white;
}

.welcome h2{
    font-size: 34px;
    margin-bottom: 18px;
    font-weight: 500;
}

.welcome p{
    font-size: 18px;
}

/*GALERÍA*/

.gallery-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 22px;
}

.gallery-item{
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: .30s;
}

.gallery-item img{
    width: 100%;
    display: block;
}

.gallery-item:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,.15);
}

/* HERRAMIENTAS*/

.tools-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 22px;
}

.tool-card{
    background: rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: white;
    transition: .30s;
}

.tool-card:hover{
    transform: translateY(-6px);
}

.tool-card h3{
    font-size: 26px;
    margin-bottom: 15px;
}

.tool-card p{
    font-size: 20px;
}

#lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#lightbox img{
    width: min(900px,90vw);
    max-height: 85vh;
    border-radius: 10px;
}

#closeLightbox,
#prevImage,
#nextImage{
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 45px;
    cursor: pointer;
}

#closeLightbox{
    top: 30px;
    right: 40px;
}

#prevImage{
    left: 40px;
}

#nextImage{
    right: 40px;
}


@media(max-width:1000px){
.hero{
    flex-direction: column;
}

.polaroid{
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: -60px;
}

.card{
    width: 100%;
    margin-left: 0;
    }

}



@media(max-width:700px){
.menu{
    gap: 20px;
}

.menu-btn{
    font-size: 20px;
}

.tools-grid{
    grid-template-columns: 1fr;
}

.gallery-grid{
    grid-template-columns: 1fr;
}

#viewer{
    width: calc(100% - 30px);
    }

}


/* ── CONTACTO ── */

#contacto {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6vw;
    text-align: center;
}


#miFormulario {
    text-align: center;
    max-width: 50vw;
    margin: 0 auto;
    padding-top: 1vw;
    padding-bottom: 6vw;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#miFormulario h2 {
    color: #F8F6F3;
}

.input-form,
.textarea-form,
.email-form,
.boton-submit {
    min-width: 45vw;
    max-width: 50vw;
    background: transparent;
    padding: 15px;
    border: 1.5px solid #d7c7fc;
    box-shadow:
        0 0 5px #A19CC8,
        0 0 7px #605b80;
    border-radius: 5px;
    font-size: 1rem;
}

.boton-submit {
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    box-shadow:
        5px 5px 5px #A19CC8,
        5px 5px 7px #605b80,
        0px 5px 5px rgb(52, 38, 83);
    outline: none;
}