/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Encabezado - EXACTO como la imagen objetivo */
.header {
    background-color:#1e40af;
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 58px;
    position: relative;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 32px;
    width: auto;
}

.titulo {
    font-size: 16px;
    color: white;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.titulo img {
    height: 20px;
    width: auto;
}

.acciones {
    display: flex;
    gap: 12px;
}

.acciones .link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}

.acciones .link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.acciones .link img {
    height: 16px;
    width: 16px;
}

/* Botón hamburguesa - Solo visible en móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay para cerrar menú */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Container principal */
.container {
    display: flex;
    flex: 1;
    height: calc(100vh - 58px);
    background-color: #ffffff;
}

/* Sidebar - EXACTO como la imagen objetivo */
.sidebar {
    background-color: #f8f9fa;
    width: 218px;
    border-right: 1px solid #dee2e6;
    padding: 0;
    overflow-y: auto;
    min-height: calc(100vh - 58px - 40px);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

.sidebar li a {
    text-decoration: none;
    color: #495057;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    gap: 8px;
    line-height: 1.2;
}

.sidebar li a img {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
}

.sidebar li.activo {
    background-color: #78a6d8;
    border-left: 4px solid #4472C4;
}

.sidebar li.activo a {
    color: white;
    font-weight: 600;
}

.sidebar li:hover:not(.activo) {
    background-color: #e9ecef;
}

.sidebar li:hover:not(.activo) a {
    color: #212529;
}

/* Contenido principal - EXACTO como la imagen objetivo */
.contenido {
    flex: 1;
    padding: 24px 40px;
    background-color: #ffffff;
    overflow-y: auto;
    border-top: 1px solid #dee2e6;
}

.contenido h2 {
    font-size: 18px;
    margin-bottom: 24px;
    color: #212529;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-left: 4px solid #ffc107;
    margin: -24px -40px 24px -40px;
}

.contenido p {
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.5;
    color: #495057;
    max-width: 900px;
    font-weight: 400;
}

/* Formulario - EXACTO como la imagen objetivo */
.formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.opciones {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.opcion {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    padding: 24px 20px;
    width: 240px;
    height: 200px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.opcion:hover {
    border-color: #adb5bd;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.opcion h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 400;
    line-height: 1.3;
}

.opcion .bold {
    font-weight: 700;
    color: #212529;
    display: block;
    margin-top: 2px;
}

.opcion input {
    width: 100%;
    padding: 8px 0;
    font-size: 12px;
    border: none;
    border-bottom: 1px solid #ced4da;
    outline: none;
    background: transparent;
    text-align: left;
    color: #6c757d;
    margin-top: auto;
}

.opcion input:focus {
    border-bottom-color: #4472C4;
    color: #212529;
}

.opcion input::placeholder {
    color: #adb5bd;
    font-size: 12px;
}

/* Captcha - EXACTO como la imagen objetivo */
.captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    font-size: 13px;
    color: #495057;
}

.captcha input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4472C4;
}

.captcha label {
    font-weight: 400;
}

/* Botón - EXACTO como la imagen objetivo */
.btn {
    background-color: #4472C4;
    color: white;
    border: none;
    padding: 10px 32px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #3a5fb8;
}

.btn:active {
    transform: translateY(1px);
}

/* Footer - EXACTO como la imagen objetivo */
.footer {
    background-color: #ffffff;
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Responsive - NUEVO sistema con menú hamburguesa */
@media (max-width: 768px) {
    .header {
        padding: 10px 16px;
        height: 58px;
    }

    .logo-box {
        gap: 8px;
    }

    .logo {
        height: 28px;
    }

    .titulo {
        font-size: 14px;
    }

    .titulo img {
        height: 18px;
    }

    /* Ocultar botones de acción en móvil */
    .acciones {
        display: none;
    }

    /* Mostrar botón hamburguesa en móvil */
    .menu-toggle {
        display: flex;
    }

    .container {
        height: calc(100vh - 58px);
    }

    /* Sidebar como menú lateral deslizable */
    .sidebar {
        position: fixed;
        top: 58px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 58px);
        background-color: #f8f9fa;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        border-right: 1px solid #dee2e6;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar ul {
        display: block;
        padding: 0;
    }

    .sidebar li {
        border-bottom: 1px solid #dee2e6;
        border-right: none;
        width: 100%;
        min-width: auto;
    }

    .sidebar li:last-child {
        border-right: none;
    }

    .sidebar li a {
        padding: 16px 20px;
        font-size: 12px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
        justify-content: flex-start;
    }

    .sidebar li a img {
        height: 16px;
        width: 16px;
    }

    .sidebar li.activo {
        border-left: 4px solid #4472C4;
        border-top: none;
    }

    .contenido {
        padding: 16px 20px;
        width: 100%;
    }

    .contenido h2 {
        font-size: 16px;
        margin: -16px -20px 16px -20px;
        padding: 10px 12px;
    }

    .contenido p {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .opciones {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .opcion {
        width: 100%;
        max-width: 280px;
        height: 180px;
        padding: 20px 16px;
    }

    .opcion h3 {
        font-size: 13px;
    }

    .opcion input {
        font-size: 11px;
    }

    .captcha {
        font-size: 12px;
        margin: 20px 0;
    }

    .btn {
        font-size: 12px;
        padding: 8px 24px;
    }

    .footer {
        padding: 10px 16px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 12px;
    }

    .logo {
        height: 24px;
    }

    .titulo {
        font-size: 12px;
    }

    .titulo img {
        height: 16px;
    }

    .sidebar {
        width: 260px;
    }

    .contenido {
        padding: 12px 16px;
    }

    .contenido h2 {
        font-size: 14px;
        margin: -12px -16px 12px -16px;
        padding: 8px 10px;
    }

    .contenido p {
        font-size: 12px;
    }

    .opcion {
        max-width: 260px;
        height: 160px;
        padding: 16px 12px;
    }

    .opcion h3 {
        font-size: 12px;
    }

    .sidebar li a {
        font-size: 11px;
        padding: 14px 16px;
    }

    .sidebar li a img {
        height: 14px;
        width: 14px;
    }

    .btn {
        font-size: 11px;
        padding: 6px 20px;
    }
}