/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI",sans-serif;
}

/* ===========================
   BODY
=========================== */

body{
    background:
        linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)),
        url("img/fondo.webp");
    background-size:cover;
    background-position:center;
    background-attachment:fixed;

    color:#4d2142;
    line-height:1.7;
}

/* ===========================
   BANNER
=========================== */

.banner{
    width:100%;
    height:300px;
    object-fit:cover;
    display:block;
}

/* ===========================
   HEADER
=========================== */

header{
    display:flex;
    flex-direction:column;
    align-items:center;
    background:none;
    padding-bottom:40px;
}

.container{
    width:90%;
    max-width:1000px;
    margin:-80px auto 0;
    text-align:center;
}

header h1{
    font-size:4rem;
}

header p{
    margin-top:15px;
    font-size:1.2rem;
}

/* ===========================
   FOTO PERFIL
=========================== */

.perfil{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    background:white;
    border:6px solid white;
    box-shadow:0 15px 30px rgba(0,0,0,.25);
    margin-bottom:25px;
    transition:.4s;
}

.perfil:hover{
    transform:scale(1.08) rotate(-3deg);
}

/* ===========================
   NAV
=========================== */

nav{
    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(255,95,162,.9);
    backdrop-filter:blur(10px);

    padding:18px;
    text-align:center;
}

nav a{
    color:white;
    text-decoration:none;
    margin:0 15px;
    padding:10px 18px;
    border-radius:12px;
    transition:.3s;
}

nav a:hover{
    background:white;
    color:#ff4f9a;
}

/* ===========================
   MAIN
=========================== */

main{
    width:90%;
    max-width:1100px;
    margin:60px auto;
}

/* ===========================
   TARJETAS
=========================== */

.card{
    background:rgba(255,255,255,.55);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.4);
    border-radius:25px;
    padding:35px;
    margin-bottom:30px;
    box-shadow:0 15px 35px rgba(255,105,180,.15);

    animation:aparecer .8s ease;
}

.card h2{
    color:#ff3d8b;
    margin-bottom:20px;
}

@keyframes aparecer{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ===========================
   SKILLS
=========================== */

.skills{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.skill{
    background:white;
    border-radius:20px;
    padding:25px;
    transition:.3s;
}

.skill:hover{
    transform:translateY(-8px) scale(1.03);
    box-shadow:0 15px 35px rgba(255,105,180,.25);
}

.skill h3{
    color:#ff3d8b;
    margin-bottom:10px;
}

/* ===========================
   IMÁGENES
=========================== */

.imagen{
    width:100%;
    border-radius:20px;
    margin-bottom:20px;
}

/* ===========================
   RECUERDOS
=========================== */

.recuerdos{
    width:90%;
    max-width:1200px;
    margin:50px auto;
    text-align:center;
}

.recuerdos h1{
    color:#ff4f9a;
    font-size:3rem;
    margin-bottom:10px;
}

.recuerdos p{
    color:#666;
    margin-bottom:40px;
}

.subtitulo{
    color:#777;
    font-size:1rem;
    margin:-5px 0 30px;
    font-style:italic;
}

/* ===========================
   GALERÍA
=========================== */

.galeria{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.galeria img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:25px;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 10px 25px rgba(255,105,180,.18);
}

.galeria img:hover{
    transform:translateY(-8px) scale(1.03);
    box-shadow:0 20px 40px rgba(255,105,180,.35);
}

/* ===========================
   LIGHTBOX
=========================== */

.lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.9);
    z-index:9999;
}

.lightbox img{
    max-width:85%;
    max-height:85%;
    object-fit:contain;
    border-radius:20px;
}

.cerrar{
    position:absolute;
    top:25px;
    right:35px;
    color:white;
    font-size:45px;
    cursor:pointer;
}

.anterior,
.siguiente{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(255,255,255,.2);
    color:white;
    font-size:40px;
    transition:.3s;
}

.anterior:hover,
.siguiente:hover{
    background:#ff5fa2;
}

.anterior{
    left:40px;
}

.siguiente{
    right:40px;
}

/* ===========================
   LISTAS
=========================== */

ul{
    margin-left:20px;
}

/* ===========================
   CONTACTO
=========================== */

.contacto{
    text-align:center;
}

.contacto p{
    margin:10px 0;
}

/* ===========================
   FOOTER
=========================== */

footer{
    text-align:center;
    padding:30px;
    color:#555;
    font-size:14px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:768px){

    header h1{
        font-size:2.7rem;
    }

    .banner{
        height:220px;
    }

    .perfil{
        width:150px;
        height:150px;
    }

    .anterior,
    .siguiente{
        width:50px;
        height:50px;
        font-size:30px;
    }

}