* {
    box-sizing: border-box;
}

/* ===== BODY ===== */
body.bg-custom {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: url('/assets/img/itech2.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding-top: 90px;
    color: #2B2B2B;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.main-container {
    max-width: 900px;
    margin: auto;
    background: rgba(243,239,230,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    border-radius: 20px;
    padding-bottom: 30px;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg,#2F4F3E,#1E3A2F);
    color: #fff;
    padding: 40px;
    border-bottom: 4px solid #C6A15B;
    border-radius: 20px 20px 0 0;
}

.header h1,
.header h2,
.header h3,
.header h4 {
    margin-bottom: 10px;
}

/* ===== NAVBAR ===== */
.navbar {
    background:#2F4F3E;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    border-bottom: 4px solid #C6A15B;
}

.navbar-brand {
    font-weight: 600;
    font-size: 18px;
    margin-left: 10px;
    color:white;
}

/* ===== FORMULARIOS ===== */

form {
    padding: 25px;
}

.form-label {
    font-weight: 500;
}

.form-select:focus,
.form-control:focus {
    border-color: #2F4F3E;
    box-shadow: 0 0 0 0.2rem rgba(47,79,62,.25);
}

/* ===== BOTONES ===== */

.btn-primary {
    background-color: #2F4F3E;
    border-color: #2F4F3E;
}

.btn-primary:hover {
    background-color: #1E3A2F;
    border-color: #1E3A2F;
}

/* ===== ESCALA FORMACION ===== */
.btn-escala {
    border: 1px solid #2F4F3E;
    color: #2F4F3E;
    background: #fff;
    font-weight: 600;
}

.btn-escala:hover {
    border-color: #1E3A2F;
    color: #1E3A2F;
    background: #F3EFE6;
}

.btn-check:checked + .btn-escala {
    background: #2F4F3E;
    border-color: #2F4F3E;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(47,79,62,.25);
}

.btn-check:checked + .btn-escala:hover {
    background: #C6A15B;
    border-color: #C6A15B;
    color: #1E3A2F;
}

/* ===== RANGE VERDE/DORADO ===== */
.range-verde-dorado {
    accent-color: #2F4F3E;
}

.range-verde-dorado::-webkit-slider-runnable-track {
    height: 0.5rem;
    background: linear-gradient(90deg, #2F4F3E 0%, #C6A15B 100%);
    border-radius: 999px;
}

.range-verde-dorado::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -5px;
    border-radius: 50%;
    background: #2F4F3E;
    border: 2px solid #C6A15B;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.range-verde-dorado::-moz-range-track {
    height: 0.5rem;
    background: linear-gradient(90deg, #2F4F3E 0%, #C6A15B 100%);
    border-radius: 999px;
}

.range-verde-dorado::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2F4F3E;
    border: 2px solid #C6A15B;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ===== TARJETAS DEL MENÚ ===== */

.card-area {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-area:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.card-area i {
    font-size: 50px;
    color: #C6A15B;
    margin-bottom: 15px;
}

.card-area h5 {
    font-weight: 600;
    color: #2F4F3E;
}

.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* ===== ACCESIBILIDAD ===== */

.card-link:focus .card-area {
    outline: 3px solid #C6A15B;
    outline-offset: 4px;
}

/* ===== FOOTER ===== */

.footer {
    margin-top: 40px;
    padding: 20px;
    background: #2F4F3E;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.footer small {
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */

@media (max-width:768px){

    .header {
        padding: 25px;
        text-align: center;
    }

    .header h1 {
        font-size: 20px;
    }

    .header h4 {
        font-size: 16px;
    }

}

/* ===== CONTENT ===== */

.content {
    padding: 40px;
}

@media (max-width:768px){
    .content {
        padding: 20px;
    }
}

/* ===== PRINT ===== */

@media print {

    body * {
        visibility: hidden;
    }

    #areaImpresion,
    #areaImpresion * {
        visibility: visible;
    }

    #areaImpresion {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .btn,
    .navbar {
        display: none !important;
    }

    body {
        background: white !important;
    }

}

/* =========================
   LAYOUT GENERAL
========================= */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
}

/* GRID DASHBOARD */

.dashboard-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
}

/* =========================
   DASHBOARD LAYOUT
========================= */

.dashboard-layout{
display:grid;
grid-template-columns:1fr 1.4fr;
gap:40px;
align-items:center;
}

.dashboard-left{
text-align:center;
}

.egresado-foto{
width:150px;
height:150px;
border-radius:50%;
object-fit:cover;
border:5px solid #C6A15B;
margin-bottom:15px;
}

.dashboard-name{
font-weight:600;
color:#2F4F3E;
}

.dashboard-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.card-dashboard{
background:white;
border-radius:15px;
padding:25px;
text-align:center;
transition:.3s;
box-shadow:0 6px 18px rgba(0,0,0,0.2);
height:100%;
min-height:190px;
display:flex;
flex-direction:column;
justify-content:space-between;
align-items:center;
}

.card-dashboard:hover{
transform:translateY(-8px);
}

.card-dashboard i{
font-size:35px;
color:#C6A15B;
margin-bottom:10px;
}

.card-dashboard h5{
margin:0;
min-height:48px;
display:flex;
align-items:center;
justify-content:center;
}

/* estados */

.estado{
font-size:12px;
padding:4px 10px;
border-radius:6px;
font-weight:600;
}

.estado-actualizado{
background:#d1fae5;
color:#065f46;
}

.estado-desactualizado{
background:#fee2e2;
color:#991b1b;
}

.estado-pendiente{
background:#fef3c7;
color:#92400e;
}

/* RESPONSIVE */

@media (max-width:768px){

.dashboard-layout{
    grid-template-columns:1fr;
}

.dashboard-grid{
    grid-template-columns:1fr;
}

}

/* ===== UBICACION LABORAL ===== */
@media (min-width: 992px){
    .laboral-grid{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        column-gap:20px;
        align-items:start;
    }

    .laboral-grid .full-width,
    .laboral-grid .text-center.mt-4{
        grid-column:1 / -1;
    }
}
