/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', sans-serif;
    background:#f1f4f9;
    color:#333;
}

/* HEADER */
.header{
    background:#2c3e50;
    color:white;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* CONTAINER */
.container{
    max-width:1000px;
    margin:40px auto;
    padding:20px;
}

/* CARD */
.card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

/* BUTTON */
.button{
    display:inline-block;
    padding:10px 15px;
    background:#3498db;
    color:white;
    text-decoration:none;
    border-radius:6px;
    border:none;
    cursor:pointer;
    transition:0.3s;
}

.button:hover{
    background:#2980b9;
}

/* FORM */
.form-container{
    max-width:700px;
    margin:auto;
    background:white;
    padding:30px;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

input, textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
}

/* CV VIEW */
.cv{
    max-width:900px;
    margin:auto;
    background:white;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    border-radius:8px;
}

.cv .header{
    border-bottom:2px solid #2c3e50;
    padding-bottom:20px;
    margin-bottom:20px;
}

.cv h1{
    margin-bottom:10px;
    color:#2c3e50;
}

.section{
    margin-top:30px;
}

.section h2{
    font-size:18px;
    border-bottom:1px solid #ddd;
    padding-bottom:5px;
    color:#34495e;
}

.item{
    margin-top:15px;
}

small{
    color:gray;
}

/* RESPONSIVE */
@media(max-width:768px){
    .header{
        flex-direction:column;
        text-align:center;
    }

    .container{
        padding:15px;
    }

    .cv{
        padding:20px;
    }
}

/* PRINT */
@media print{
    body{
        background:white;
    }
    .button{
        display:none;
    }
}



/* ANIMACIÓN SCALE */
.scale-in{
    animation: scaleIn 0.4s ease-in-out;
}

@keyframes scaleIn{
    from{
        transform: scale(0.95);
        opacity:0;
    }
    to{
        transform: scale(1);
        opacity:1;
    }
}

/* Botón principal */
.btn-primary{
    width:100%;
    padding:12px;
    background:#2c3e50;
    color:white;
    border:none;
    border-radius:6px;
    font-size:15px;
    cursor:pointer;
    transition:0.3s;
}

.btn-primary:hover{
    background:#34495e;
    transform:scale(1.03);
}

/* Link simple */
.link{
    display:inline-block;
    margin-top:15px;
    text-decoration:none;
    color:#3498db;
}

.link:hover{
    text-decoration:underline;
}




/* CV ADMIN PANEL */
.cv-admin{
    max-width:1000px;
    margin:40px auto;
    padding:30px;
    background:white;
    border-radius:10px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.cv-header{
    margin-bottom:25px;
}

.cv-header h1{
    margin-bottom:10px;
    color:#2c3e50;
}

.divider{
    height:1px;
    background:#eee;
    margin:30px 0;
}

.section-title{
    margin-bottom:15px;
    color:#34495e;
}

.item-card{
    background:#f8f9fb;
    padding:15px;
    border-radius:8px;
    margin-bottom:12px;
}

.form-section{
    margin-top:20px;
}

.btn-add{
    padding:8px 15px;
    background:#27ae60;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.btn-add:hover{
    background:#219150;
    transform:scale(1.05);
}

.btn-back{
    display:inline-block;
    margin-top:30px;
    text-decoration:none;
    color:#3498db;
}

.btn-back:hover{
    text-decoration:underline;
}



/* LOGIN PAGE */
.auth-wrapper{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#2c3e50,#3498db);
    padding:20px;
}

.auth-card{
    width:100%;
    max-width:400px;
    background:white;
    padding:40px;
    border-radius:12px;
    box-shadow:0 15px 35px rgba(0,0,0,0.2);
}

.auth-card h2{
    text-align:center;
    margin-bottom:25px;
    color:#2c3e50;
}

.auth-card input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
}

.auth-card button{
    width:100%;
    padding:12px;
    background:#2c3e50;
    color:white;
    border:none;
    border-radius:6px;
    font-size:15px;
    cursor:pointer;
    transition:0.3s;
}

.auth-card button:hover{
    background:#34495e;
    transform:scale(1.03);
}

.auth-link{
    display:block;
    text-align:center;
    margin-top:15px;
    text-decoration:none;
    color:#3498db;
}

.auth-link:hover{
    text-decoration:underline;
}



/* =======================
   CV PRINT VIEW
======================= */

.cv-print-wrapper{
    background:#f4f6f9;
    padding:40px;
    min-height:100vh;
}

.cv-print{
    max-width:850px;
    margin:auto;
    background:white;
    padding:50px;
    border-radius:8px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.cv-print-header{
    border-bottom:2px solid #2c3e50;
    padding-bottom:15px;
    margin-bottom:25px;
}

.cv-print-header h1{
    margin:0;
    color:#2c3e50;
    font-size:28px;
}

.cv-contact{
    margin-top:8px;
    color:#555;
}

.cv-section{
    margin-top:30px;
}

.cv-section h3{
    border-bottom:1px solid #ddd;
    padding-bottom:5px;
    margin-bottom:10px;
    color:#34495e;
}

.cv-section p{
    margin-bottom:10px;
    line-height:1.6;
}

.print-btn{
    display:inline-block;
    margin-top:30px;
    padding:10px 18px;
    background:#3498db;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.print-btn:hover{
    background:#2980b9;
    transform:scale(1.05);
}

/* PRINT MODE */
@media print{
    body{
        background:white;
    }

    .print-btn{
        display:none;
    }

    .cv-print{
        box-shadow:none;
        border-radius:0;
        padding:0;
    }
}



/* estilo de modales */
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:white;
    padding:30px;
    border-radius:8px;
    text-align:center;
}


/* BOTONES SUPERIORES */
.cv-actions{
    display:flex;
    gap:10px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.btn-primary{
    padding:10px 18px;
    background:#3498db;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.btn-primary:hover{
    background:#2980b9;
    transform:scale(1.05);
}

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

.modal-content{
    background:white;
    padding:30px;
    border-radius:10px;
    text-align:center;
    width:90%;
    max-width:400px;
}

.template-option{
    display:block;
    padding:12px;
    margin:10px 0;
    background:#f1f4f9;
    border-radius:6px;
    text-decoration:none;
    color:#2c3e50;
    transition:0.3s;
}

.template-option:hover{
    background:#e2e8f0;
    transform:scale(1.03);
}


/* paypal*/
.payment-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:999;
}

.payment-box{
background:white;
width:420px;
border-radius:12px;
padding:30px;
box-shadow:0 15px 40px rgba(0,0,0,0.2);
animation:scaleIn .25s ease;
}

@keyframes scaleIn{
from{transform:scale(.9);opacity:0}
to{transform:scale(1);opacity:1}
}

.payment-header{
display:flex;
justify-content:space-between;
align-items:center;
font-weight:600;
margin-bottom:10px;
}

.payment-header button{
border:none;
background:none;
font-size:20px;
cursor:pointer;
}

.logo{
font-size:26px;
font-weight:700;
margin-bottom:10px;
text-align:center;
}

.logo span{
color:#6366f1;
}

.subtitle{
text-align:center;
color:#666;
margin-bottom:15px;
}

.price{
font-size:36px;
font-weight:700;
text-align:center;
margin-bottom:15px;
}

.features{
list-style:none;
padding:0;
margin-bottom:20px;
}

.features li{
padding:6px 0;
color:#444;
}

.secure{
text-align:center;
font-size:13px;
color:#777;
margin-top:15px;
}