@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {

    --primary: #0f2d52;
    --primary-dark: #0a1f3b;

    --accent: #f4b400;
    --accent-dark: #d99c00;

    --success: #0f766e;
    --success-dark: #115e59;

    --bg: #f5f7fa;
    --white: #ffffff;

    --text: #1e293b;
    --text-light: #64748b;

    --border: #dbe3ec;

    --shadow-sm: 0 2px 8px rgba(15, 45, 82, 0.05);
    --shadow-md: 0 10px 25px rgba(15, 45, 82, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 45, 82, 0.12);

    --radius: 12px;

    --transition: all 0.2s ease;
}

/* ========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    line-height:1.5;
}

/* ========================================= */
/* NAVBAR */
/* ========================================= */

.navbar{

    background:var(--primary);

    padding:18px 40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:var(--shadow-sm);

    position:sticky;

    top:0;

    z-index:100;
}

.logo{

    color:white;

    font-size:28px;

    font-weight:700;
}

.logo span{
    color:var(--accent);
}

.nav-links{

    display:flex;

    align-items:center;

    gap:16px;
}

.nav-links a{

    text-decoration:none;

    color:white;

    font-size:14px;

    font-weight:500;
}

.btn-dashboard{

    background:var(--accent);

    color:#1e293b !important;

    padding:10px 20px;

    border-radius:10px;

    font-weight:700;

    transition:var(--transition);
}

.btn-dashboard:hover{

    background:var(--accent-dark);
}

/* ========================================= */
/* CONTENEDOR */
/* ========================================= */

.container{

    max-width:1100px;

    margin:40px auto;

    padding:0 20px;
}

.card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow-md);
}

/* ========================================= */
/* HEADER */
/* ========================================= */

.card-header{

    background:linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );

    color:white;

    padding:45px 35px;
}

.card-header h1{

    font-size:34px;

    margin-bottom:10px;

    font-weight:700;
}

.card-header p{

    opacity:0.9;

    font-size:15px;
}

/* ========================================= */
/* STEPS */
/* ========================================= */

.steps{

    background:#eef2f7;

    padding:20px;

    display:flex;

    gap:10px;

    flex-wrap:wrap;
}

.step{

    flex:1;

    min-width:120px;

    background:white;

    border:1px solid var(--border);

    border-radius:10px;

    padding:14px 10px;

    text-align:center;

    font-size:13px;

    font-weight:600;

    color:var(--text-light);

    transition:var(--transition);
}

.step small{

    display:block;

    margin-top:4px;

    font-size:10px;

    opacity:0.8;
}

.step.active{

    background:var(--primary);

    color:white;

    border-color:var(--primary);
}

.step.completed{

    background:var(--success);

    color:white;

    border-color:var(--success);
}

/* ========================================= */
/* FORMULARIO */
/* ========================================= */

.form-container{

    padding:40px;
}

.form-step{
    display:none;
}

.form-step.active-step{
    display:block;
}

.form-group{

    margin-bottom:26px;
}

.row-2{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:24px;
}

label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:var(--text);
}

/* ========================================= */
/* INPUTS */
/* ========================================= */

input,
select,
textarea{

    width:100%;

    padding:14px 16px;

    border:1px solid var(--border);

    border-radius:10px;

    background:white;

    font-size:15px;

    font-family:'Inter',sans-serif;

    transition:var(--transition);
}

input:hover,
select:hover,
textarea:hover{

    border-color:#b8c5d6;
}

input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(15,45,82,0.08);
}

textarea{
    resize:vertical;
}

/* ========================================= */
/* BOTONES */
/* ========================================= */

.button-group{

    display:flex;

    justify-content:space-between;

    gap:16px;

    margin-top:36px;
}

.btn{

    border:none;

    cursor:pointer;

    padding:14px 28px;

    border-radius:10px;

    font-size:14px;

    font-weight:700;

    font-family:'Inter',sans-serif;

    transition:var(--transition);
}

.btn-primary{

    background:var(--accent);

    color:#1e293b;
}

.btn-primary:hover{

    background:var(--accent-dark);

    transform:translateY(-1px);
}

.btn-secondary{

    background:white;

    border:1px solid var(--border);

    color:var(--text);
}

.btn-secondary:hover{

    background:#f8fafc;
}

/* ========================================= */
/* RESULTADOS */
/* ========================================= */

.resultado-card{

    background:white;

    border-left:6px solid var(--accent);

    border-radius:16px;

    padding:24px;

    margin-bottom:20px;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);
}

.resultado-card:hover{

    transform:translateY(-2px);

    box-shadow:var(--shadow-md);
}

.resultado-card h3{

    font-size:22px;

    margin-bottom:10px;

    color:var(--primary);
}

.resultado-precio{

    font-size:36px;

    font-weight:800;

    color:var(--primary);

    margin:14px 0;
}

.resultado-precio span{

    font-size:14px;

    color:var(--text-light);

    font-weight:500;
}

.resultado-coberturas{

    margin-top:12px;

    color:var(--text);

    line-height:1.7;

    font-size:14px;
}

.btn-contratar{

    width:100%;

    margin-top:20px;

    background:var(--primary);

    color:white;

    border:none;

    border-radius:10px;

    padding:14px;

    font-weight:700;

    cursor:pointer;

    transition:var(--transition);
}

.btn-contratar:hover{

    background:var(--primary-dark);
}

/* ========================================= */
/* BADGE */
/* ========================================= */

.folio-badge{

    display:inline-block;

    background:var(--primary);

    color:white;

    padding:12px 22px;

    border-radius:10px;

    font-weight:700;
}

/* ========================================= */
/* CAMPOS OCULTOS */
/* ========================================= */

.campo-texto-oculto{
    display:none;
}

.campo-texto-visible{
    display:block;
    margin-top:12px;
}

/* ========================================= */
/* TEXTO AUXILIAR */
/* ========================================= */

.text-muted{

    display:block;

    margin-top:6px;

    color:var(--text-light);

    font-size:12px;
}

/* ========================================= */
/* LOADER */
/* ========================================= */

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.loader{

    display:inline-block;

    width:18px;

    height:18px;

    border:2px solid white;

    border-top:2px solid transparent;

    border-radius:50%;

    margin-right:8px;

    animation:spin 1s linear infinite;
}

.btn-loading{

    opacity:0.8;

    pointer-events:none;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */

.footer{

    text-align:center;

    padding:30px 20px;

    color:var(--text-light);

    font-size:13px;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width:768px){

    .navbar{
        padding:16px;
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
    }

    .nav-links{
        width:100%;
        justify-content:space-between;
    }

    .container{
        margin:20px auto;
        padding:0 16px;
    }

    .card-header{
        padding:30px 22px;
    }

    .card-header h1{
        font-size:26px;
    }

    .steps{
        flex-direction:column;
    }

    .step{
        width:100%;
    }

    .form-container{
        padding:24px;
    }

    .row-2{
        grid-template-columns:1fr;
    }

    .button-group{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .resultado-precio{
        font-size:30px;
    }
}