*{
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    margin:0;
    padding:20px;
    background:linear-gradient(135deg,#1565C0,#1E88E5,#42A5F5);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container{
    width:100%;
    max-width:1000px;
    margin:auto;
}

.card{
    background:white;
    border-radius:20px;
    padding:40px;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

/* ===== TABS ===== */
.tabs{
    display:flex;
    flex-wrap:wrap;
    border-bottom:2px solid #e0e0e0;
    margin-bottom:30px;
}

.tab{
    padding:14px 24px;
    cursor:pointer;
    font-weight:600;
    color:#555;
    transition:.3s;
    border-radius:12px 12px 0 0;
}

.tab:hover{
    background:#E3F2FD;
}

.tab.active{
    background:#1565C0;
    color:white;
}

/* ===== TAB CONTENT ===== */
.tab-content{
    display:none;
    animation:fade .35s ease-in-out;
}

.tab-content.active{
    display:block;
}

@keyframes fade{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
}

/* ===== GRID RESPONSIVO ===== */
.form-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px 30px;
}

/* Labels */
label{
    font-weight:600;
    margin-bottom:5px;
    display:block;
}

/* Inputs */
input,select{
    width:100%;
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:16px;
    transition:.2s;
}

/* Campos calculados */
input[readonly]{
    background:#f5f5f5;
    color:#555;
}

/* Campos editables */
.editable{
    border:2px solid #1565C0;
    font-weight:700;
    color:#0D47A1;
}

.editable:hover{
    background:#E3F2FD;
}

input:focus,select:focus{
    outline:none;
    border-color:#0D47A1;
    box-shadow:0 0 8px rgba(21,101,192,.4);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets */
@media(max-width:900px){
    .card{
        padding:30px;
    }
    .form-grid{
        grid-template-columns: 1fr;
    }
}

/* Celulares */
@media(max-width:600px){

    body{
        padding:15px;
    }

    .card{
        padding:25px;
        border-radius:15px;
    }

    .tabs{
        flex-direction:column;
    }

    .tab{
        border-radius:10px;
        margin-bottom:5px;
        text-align:center;
    }

    .tab.active{
        border-radius:10px;
    }
}