@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css?family=Caveat|Lato:400,700|Patua+One&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Patua+One&display=swap");

body{
    margin:0;
    padding:0;
    font-family:"Poppins",sans-serif;
    background:#f6f2ed;
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

main{
    flex:1;
}

/*======================
MENSAJE DE ÉXITO
=======================*/

.alert-success{
    width:90%;
    max-width:900px;
    margin:30px auto 0;
    padding:15px;
    border-radius:12px;
    background:#e8f7eb;
    color:#2e6b3d;
    text-align:center;
}

/*======================
TARJETA PRINCIPAL
=======================*/

.profile-card{

    width:90%;
    max-width:950px;

    margin:50px auto;

    background:white;

    border-radius:25px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    overflow:hidden;

}

/*======================
ENCABEZADO
=======================*/

.profile-header{

    background:linear-gradient(135deg,#61234A,#8a4d73);

    color:white;

    text-align:center;

    padding:45px 30px;

}

.profile-icon{

    width:90px;
    height:90px;

    margin:auto;

    border-radius:50%;

    background:rgba(255,255,255,.18);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:40px;

    margin-bottom:20px;

}

.profile-header h1{

    margin:0;

    font-family:"Patua One";

    font-size:40px;

}

.profile-header h3{

    margin-top:15px;

    font-weight:400;

}

.profile-message{

    margin:25px auto 0;

    max-width:650px;

    line-height:1.8;

    opacity:.95;

}

/*======================
SECCIONES
=======================*/

.profile-section{

    padding:35px;

    border-bottom:1px solid #ececec;

}

.profile-section:last-of-type{

    border-bottom:none;

}

.profile-section h2{

    margin-bottom:30px;

    color:#61234A;

    font-family:"Patua One";

    font-size:28px;

}

/*======================
INFORMACIÓN
=======================*/

.profile-info{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

}

.compra-item{
    width: 100%;
    box-sizing: border-box; 
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:14px;
    padding:15px;
    margin: 0 0 15px 0; 
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.compra-img{
    width: 100px;
    height: 100px;
    object-fit: contain;   /* evita que se corte */
    background: #fff;      /* fondo blanco si sobra espacio */
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 4px;
    cursor: pointer;       /* indica que se puede hacer clic */
    transition: transform 0.3s ease;
}

.compra-img:hover{
    transform: scale(1.05);
}

.compra-info h3{
    margin:0 0 8px;
    color:#333;
}

.compra-info p{
    margin:4px 0;
    color:#555;
}

@media (max-width: 600px){
    .compra-item{
        flex-direction:column;
        text-align:center;
    }

    .compra-img{
        width:100px;
        height:100px;
    }
}

.info-item{

    background:#faf8f6;

    padding:18px;

    border-radius:15px;

    border-left:5px solid #c989b2;

    transition:.3s;

}

.info-item:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 20px rgba(0,0,0,.08);

}

.info-item span{

    display:block;

    font-size:14px;

    color:#777;

    margin-bottom:6px;

}

.info-item strong{

    color:#61234A;

    font-size:17px;

    font-weight:600;

}

/* ================= MODAL IMAGEN ================= */
.modal-imagen{
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.imagen-grande{
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

.cerrar-modal{
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 600px){
    .imagen-grande{
        max-width: 95%;
        max-height: 85%;
    }
}
/*======================
BOTONES
=======================*/

.profile-buttons{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:20px;

    padding:40px;

}

.btn-profile{

    background:#61234A;

    color:white;

    text-decoration:none;

    padding:14px 28px;

    border-radius:40px;

    font-weight:500;

    transition:.3s;

    box-shadow:0 6px 15px rgba(97,35,74,.25);

}

.btn-profile:hover{

    background:#7d3c65;

    transform:translateY(-3px);

}

.logout{

    background:#b34563;

}

.logout:hover{

    background:#cf5879;

}

  /*====================================================
                FORGOT PASSWORD
====================================================*/

.containerForgot{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;

    width:90%;
    max-width:500px;

    margin:60px auto;

    padding:35px;

    background:white;

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    gap:20px;
}

.containerForgot h2{
    color:#61234A;
    font-family:"Patua One";
}

.containerForgot input{

    width:100%;

    padding:12px;

    border-radius:10px;

    border:1px solid #d4d4d4;

    font-size:16px;

}

.containerForgot button{

    padding:12px 30px;

    background:#61234A;

    color:white;

    border:none;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

}

.containerForgot button:hover{

    background:#7d3c65;

}

  /*---------------------------------------RESETPASSWORD---------------------------------*/

  .containerReset {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
    gap: 15px
  }

.containerReset button {
  cursor: pointer;
  border: none;
  background-color: #61234A;
  color: white;
  padding: 5px;
  border-radius: 8px;
}

form{
  gap:15px
}

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

.containerReset{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    width:90%;

    max-width:500px;

    margin:60px auto;

    padding:35px;

    background:white;

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    gap:20px;

}

.containerReset h2{

    color:#61234A;

    font-family:"Patua One";

}

.containerReset form{

    width:100%;

    display:flex;

    flex-direction:column;

    gap:15px;

}

.containerReset input{

    width:100%;

    padding:12px;

    border-radius:10px;

    border:1px solid #d4d4d4;

    font-size:16px;

}

.containerReset button{

    padding:12px;

    background:#61234A;

    color:white;

    border:none;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

}

.containerReset button:hover{

    background:#7d3c65;

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

@media(max-width:768px){

.profile-card{

    width:95%;

    margin:30px auto;

}

.profile-header{

    padding:35px 20px;

}

.profile-header h1{

    font-size:32px;

}

.profile-header h3{

    font-size:20px;

}

.profile-section{

    padding:25px;

}

.profile-section h2{

    font-size:24px;

}

.profile-buttons{

    flex-direction:column;

    align-items:center;

}

.btn-profile{

    width:90%;

    text-align:center;

}

}
